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

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

本站已经建立2583天!

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