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

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

本站已经建立2674天!

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