EADST

Code for SPIE paper - CEIR

CEIR

This project is for the SPIE paper - Novel Receipt Recognition with Deep Learning Algorithms. In this paper, we propose an end-to-end novel receipt recognition system for capturing effective information from receipts (CEIR).

CEIR code and results have been made available at: CEIR code

CEIR system demo is available at: CEIR Demo

The CEIR has three parts: preprocess, detection, recognition.

Introduction

In the preprocessing method, by converting the image to gray scale and obtaining the gradient with the Sobel operator, the outline of the receipt area is decided by morphological transformations with the elliptic kernel.

In text detection, the modified connectionist text proposal network to execute text detection. The pytorch implementation of detection is based on CTPN.

In text recognition, the convolutional recurrent neural network with the connectionist temporal classification with maximum entropy regularization as a loss function to update the weights in networks and extract the characters from receipt. The pytorch implementation of recognition is based on CRNN and ENESCTC.

We validate our system with the scanned receipts optical character recognition and information extraction (SROIE) database.

Dependency

Python 3.6.3 1. torch==1.4 2. torchvision 3. opencv-python 4. lmdb

Prediction

  1. Download pre-trained model from Google Drive and put the file under ./detection/output/ folder.

  2. Change the image name to demo.jpg in the CEIR folder.

  3. Run python ceir_crop.py for stage 1.
  4. Run python ceir_detect.py for stage 2.
  5. Run python ceir_recognize.py for stage 3.

  6. The result will be saved in ./result/.

Training

  1. Put dataset in ./dataset/train/image and ./dataset/train/label.

  2. Preprocess parameters can be changed in ./preprocess/crop.py.

  3. In the detection part, the ./detection/config.py is used for configuring. After that, run python train.py in the detection folder.

  4. In recognition, you need to change trainroot and other parameters in train.sh, then run sh train.sh to train.

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
FP16 CLAP Image2Text EXCEL Data Agent BeautifulSoup TensorRT SVR OCR Plotly Video API网关 Zip Plate diffusers DeepStream Tiktoken TensorFlow Pandas 论文速读 Jetson 证件照 Knowledge tqdm UI Web FP8 Land CUDA CSV Paper Shortcut Baidu PyCharm FlashAttention CAM Qwen2.5 NLP Pytorch 腾讯云 GoogLeNet Crawler YOLO Animate Rebuttal Domain OpenCV Input Disk Qwen2 uwsgi 版权 继承 BF16 Streamlit Django Clash Ptyhon Hilton 音频 阿里云 v2ray Breakpoint OpenAI 第一性原理 Ubuntu PIP XGBoost HuggingFace torchinfo GPTQ Math ResNet-50 Bert Google Safetensors NameSilo Heatmap PyTorch Search SQLite LLM QWEN Github 图标 Jupyter Linux 财报 RL Dataset Conda FP64 Card Numpy Markdown Pickle Excel Sklearn CC VSCode Jev Cloudreve hf WAN Bipartite Proxy FastAPI 强化学习 Python LeetCode Permission uWSGI 净利润 Datetime TTS transformers MD5 FP32 算法题 GPT4 Nginx 公式 Base64 Llama Magnet PDB 报税 Claude mmap Website Diagram GGML COCO Vim scipy Tracking Logo JSON Attention XML Gemma C++ Food Statistics Quantize Mixtral Use GIT AI UNIX RGB Algorithm DeepSeek BTC Anaconda Template VPN Augmentation icon logger Freesound ModelScope Review 域名 Michelin Tensor 多线程 PDF ONNX 多进程 IndexTTS2 llama.cpp SAM Color CV Harness Hungarian LoRA VGG-16 CTC InvalidArgumentError Password git-lfs Interview NLTK Docker Translation v0.dev 签证 git RAR printf Bin Distillation Firewall 顶会 Random Pillow LLAMA SPIE Miniforge LaTeX SQL 飞书 HaggingFace Transformers Qwen Git CEIR Bitcoin Vmess 论文 TSV 搞笑 云服务器 ms-swift 关于博主 News 递归学习法 API WebCrawler Hotel Windows tar ChatGPT Quantization 图形思考法 Paddle
站点统计

本站现有博文337篇,共被浏览960861次

本站已经建立2672天!

热门文章
文章归档
回到顶部