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

本站现有博文338篇,共被浏览979423次

本站已经建立2692天!

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