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

本站现有博文333篇,共被浏览908507

本站已经建立2610天!

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