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/

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 216,258评论 6 498
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,335评论 3 392
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 162,225评论 0 353
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,126评论 1 292
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,140评论 6 388
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,098评论 1 295
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,018评论 3 417
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,857评论 0 273
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,298评论 1 310
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,518评论 2 332
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,678评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,400评论 5 343
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,993评论 3 325
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,638评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,801评论 1 268
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,661评论 2 368
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,558评论 2 352