4

这是我的形象:

在此处输入图像描述

我使用此链接(tessaract)来捕获和处理图像: http: //kurup87.blogspot.com/2012/03/android-ocr-tutorial-image-to-text.html

但这就是问题所在,如果扫描整个区域,返回值是一些垃圾值,不准确。但如果我分别扫描 V516990、2653 和日期。结果是正确的。

我的目的是一次性扫描 V516990 和 2653,而无需用户使用两次相机。欢迎任何意见!

4

1 回答 1

3

Let the user take one image only You can store it in memory and set region of interest to top portion and then extract it Use cvSetImageROI

https://github.com/mintuhouse/FinMan/blob/master/src/unix/imp.cpp

Check line 337, when you pass IplImage to tesseract set your region (top or bottom parts in your case) of interest on image Check 297 here

https://github.com/mintuhouse/FinMan/blob/master/src/unix/main.cpp

This function does main text extraction in out case use JNI java native interface

or even better use javacv OpenCV port in Java we realized it later. It make life a lot simpler

于 2013-06-02T05:23:08.143 回答