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

本站现有博文336篇,共被浏览940947

本站已经建立2651天!

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