OCR技术总结

1.文本检测批量分块传入tesseract识别

2.翻译后映射到原票据字体问题

3.图片去噪(难点),参考方案:

[https://dsp.stackexchange.com/questions/33540/binarization-of-image-for-varying-background-and-foreground-colors-for-ocr](https://dsp.stackexchange.com/questions/33540/binarization-of-image-for-varying-background-and-foreground-colors-for-ocr]

http://mile.ee.iisc.ernet.in/mile/publications/softCopy/DocumentAnalysis/CBDAR_Kasar_2007.pdf

https://arxiv.org/pdf/1506.04395.pdf

4.GNU并行,参考方案:

https://github.com/tesseract-ocr/tesseract/wiki/FAQ-Old#how-do-i-uninstall-tesseract

http://www.gnu.org/software/parallel/

5.流程解析
Useful parameters

https://github.com/tesseract-ocr/tesseract/wiki/ControlParams

https://github.com/tesseract-ocr/tesseract/wiki/FAQ-Old#error-message-font-id---10-class-id--1105-on-sample-0

训练基本参数配置

https://github.com/tesseract-ocr/tesseract/blob/master/doc/tesseract.1.asc#config-files-and-augmenting-with-user-data

训练模型说明4.0

https://github.com/tesseract-ocr/tesseract/wiki/TrainingTesseract-4.00

Data Files

https://github.com/tesseract-ocr/tesseract/wiki/Data-Files

tesseract常见问题论坛

https://github.com/tesseract-ocr/tesseract/issues

parameters config(./configs)

http://www.sk-spell.sk.cx/tesseract-ocr-parameters-in-302-version

https://pastebin.com/av7huwQP

Tesseract 4.00中新的神经网络系统概述

https://github.com/tesseract-ocr/tesseract/wiki/NeuralNetsInTesseract4.00

Noise characters recognized with bbox as the entire page(去噪框到了一张图片)

https://github.com/tesseract-ocr/tesseract/issues/1192

tesseract for python

pyocr

https://gitlab.gnome.org/World/OpenPaperwork/pyocr

https://github.com/tesseract-ocr/tesseract/wiki/FAQ-Old#how-do-i-uninstall-tesseract

并行处理多个图像

parallel "tesseract {} {} -l eng hocr; hocr2pdf -i {} -n -o {}.pdf < {}.html" ::: *.tif

线程线程

OMP_THREAD_LIMIT

https://groups.google.com/forum/#!forum/tesseract-ocr

https://groups.google.com/forum/#!topic/tesseract-ocr/pL6GELDd9Yg

How can define character size for tesseract?

config='--psm 8'

https://groups.google.com/forum/#!topic/tesseract-ocr/MbFSNPtXt84

Really poor performance with decimal numbers

try --psm 6

https://groups.google.com/forum/#!searchin/tesseract-ocr/l.bolzani%7Csort:date/tesseract-ocr/be4-rjvY2tQ/32evtMHlAQAJ

微调模型

https://groups.google.com/forum/#!topic/tesseract-ocr/Fkv2omJWxNw

-l eng --psm 8 --textord_min_linesize 2.5 hocr 1>/null 2>&1

几何图像变换(包含许多图像缩放算法)

https://docs.opencv.org/2.4/modules/imgproc/doc/geometric_transformations.html#resize

Harris Corner Detection(找到物体顶点)

https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_feature2d/py_features_harris/py_features_harris.html

Camera Calibration

https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_calib3d/py_calibration/py_calibration.html

Interactive Foreground Extraction using GrabCut Algorithm

https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_grabcut/py_grabcut.html#grabcut

图像金字塔

https://docs.opencv.org/3.1.0/dc/dff/tutorial_py_pyramids.html

可结合pyimagesearch了解

https://www.pyimagesearch.com/2015/11/02/watershed-opencv/

Image Denoising

https://docs.opencv.org/3.3.1/d5/d69/tutorial_py_non_local_means.html

使用数据预处理不做处理的对比

https://www.pyimagesearch.com/2017/07/10/using-tesseract-ocr-python/

4 Point OpenCV getPerspective Transform Example(图片旋转)

https://www.pyimagesearch.com/2014/08/25/4-point-opencv-getperspective-transform-example/

imutils包(pip install imutils)作者自己封装了一些图像平移、旋转、调整等,OpenCV也可实现,但比OpenCV结构稍简单

https://www.pyimagesearch.com/2015/02/02/just-open-sourced-personal-imutils-package-series-opencv-convenience-functions/

提取获取票据的边框和提取票据(仅票据与背景颜色有明显区别)

How to Build a Kick-Ass Mobile Document Scanner in Just 5 Minutes

https://www.pyimagesearch.com/2014/09/01/build-kick-ass-mobile-document-scanner-just-5-minutes/

字体倾斜矫正

Text skew correction with OpenCV and Python

https://www.pyimagesearch.com/2017/02/20/text-skew-correction-opencv-python/

Extract object from background with OpenCv and Python(前景物体提取)

http://faqpython.com/extract-object-from-background-with-opencv-and-python/

基于OpenCV识别游戏机的口袋怪物(共6step)

Building a Pokedex in Python: Finding the Game Boy Screen(find screen)

https://www.pyimagesearch.com/2014/03/10/building-pokedex-python-getting-started-step-1-6/

https://www.pyimagesearch.com/2014/03/24/building-pokedex-python-scraping-pokemon-sprites-step-2-6/

https://www.pyimagesearch.com/2014/04/07/building-pokedex-python-indexing-sprites-using-shape-descriptors-step-3-6/

https://www.pyimagesearch.com/2014/04/21/building-pokedex-python-finding-game-boy-screen-step-4-6/

https://www.pyimagesearch.com/2014/05/05/building-pokedex-python-opencv-perspective-warping-step-5-6/

https://www.pyimagesearch.com/2014/05/19/building-pokedex-python-comparing-shape-descriptors-opencv/

标准多边形检测

https://www.pyimagesearch.com/2016/02/08/opencv-shape-detection/

https://www.pyimagesearch.com/2014/10/20/finding-shapes-images-using-python-opencv/

图片旋转,可根据旋转图片大小改变旋转后图片大小

https://www.pyimagesearch.com/2017/01/02/rotate-images-correctly-with-opencv-and-python/

信用卡下的数字识别

Credit card OCR with OpenCV and Python

https://www.pyimagesearch.com/2017/07/17/credit-card-ocr-with-opencv-and-python/

Detecting Barcodes in Images with Python and OpenCV

https://www.pyimagesearch.com/2014/11/24/detecting-barcodes-images-python-opencv/

Sorting Contours using Python and OpenCV

https://www.pyimagesearch.com/2015/04/20/sorting-contours-using-python-and-opencv/

背景与前景提取

Extract object from background with OpenCv and Python

http://faqpython.com/extract-object-from-background-with-opencv-and-python/

使用图像纹理对图像做加工,然后进行分类

Local Binary Patterns with Python & OpenCV

https://www.pyimagesearch.com/2015/12/07/local-binary-patterns-with-python-opencv/

流域分割硬币(分水岭算法)

https://www.pyimagesearch.com/2015/11/02/watershed-opencv/

OpenCV+深度学习学习资料

https://www.pyimagesearch.com/static/cv_dl_resource_guide.pdf

https://www.pyimagesearch.com/pyimagesearch-gurus/

你可能感兴趣的:(OCR技术总结)