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

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

本站已经建立2590天!

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