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

本站现有博文332篇,共被浏览885213

本站已经建立2589天!

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