ocr

How to split credit card number digits into separate blocks for further recognition?

南笙酒味 提交于 2019-12-24 10:57:01
问题 Currently my company's R&D department is working on an iOS application that recognizes credit card numbers and expiration dates using a camera of a mobile device. We have successfuly completed most of the project and now working on the stage of splitting card number digits into separate blocks for further recognition. Read more to find the details: http://rnd.azoft.com/optical-recognition-ios-application/ If you have worked on similar tasks we will appreciate if you could share your

Vertical projection and horizontal projection

╄→尐↘猪︶ㄣ 提交于 2019-12-24 10:19:15
问题 I'm trying to implement the following algorithm for ocr in that paper. https://arxiv.org/ftp/arxiv/papers/1707/1707.00800.pdf I'm confused about that part: I constructed the vertical profile of an image: env = np.sum(img, axis=1) and that's What I get I'm looking for a clear explanation of the algorithm, maybe with a pseudo code 回答1: From my understanding, this algorithm is designed to separate individual Arab letters, which when written are connected via a horizontal line (I have exactly

Error with global variables are not defined in a thread function on python

半腔热情 提交于 2019-12-24 07:54:13
问题 I'm working in a project with OCR using a webcam. I defined a capture() function for save the frame that contains minimum 20 contours with areas greater than 60 pixels in lapses of 3 seconds. I need that the main while cycle works all the time. So I'm using a thread to call capture() function. When I run the code the Python Shell returned an error: NameError: global name frame, ln2 are not defined . The 13th commented line solves the error for the variable frame . Does it means that I have to

OCR .NET Recommended [closed]

点点圈 提交于 2019-12-24 07:35:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . hi i have just tried a component for OCR in .NET and the results were pretty inacurrate. has anybody else been down this route before? can you please recommend a path for me to save me the time of evaluating lots of components that produce not satisfactory results. any recommendations much appreciated. i dont

USPS API - After creating labels retrieving Tracking Number C#

╄→尐↘猪︶ㄣ 提交于 2019-12-24 06:39:06
问题 I have been able to successfully use the USPS API to create a shipping label. The XML returned gives me a Delivery Confirmation Number, but it does not return the tracking number. The tracking number is what I really need. I've used (https://www.usps.com/business/web-tools-apis/delivery-confirmation-domestic-shipping-label-api.pdf) as my base for how to successfully create the label, but no place does it mention how to get the tracking number. The tracking number is in the label that can be

How to read text written on a image?

青春壹個敷衍的年華 提交于 2019-12-24 04:14:29
问题 I need to parse some scanned documents to textual data. Is it possible to parse text written on a image using some software. If yes , please recommend any such online utility or software. 回答1: Maybe some OCR software would help? http://en.wikipedia.org/wiki/Optical_character_recognition 来源: https://stackoverflow.com/questions/842986/how-to-read-text-written-on-a-image

Tesseract training: only few words

有些话、适合烂在心里 提交于 2019-12-24 02:25:36
问题 I need to train tesseract to recognize just ten words. Words are pharma name, thing like: Atrasil, Spectful Since fonts used are pretty common, I tried to unpack eng.traineddata, substitute freq-dawg and word-dawg with just those words. Then I've repack them into a new traineddata, unfortunatly it doesn't seem to work very well. Matching results are still unacceptable and I can't use them, even when I use images obtained from a simple word file. Is there a way to achieve a good matching? do I

Train Tesseract for specific words - possible?

隐身守侯 提交于 2019-12-24 01:27:50
问题 I want to use Tesseract to extract about 10-20 keywords from a document. The document will contain all English characters/words. What I am interested in is something like "Age: 23". Here Age is the keyword I am interested in and want to extract the 23 (the value for that) as well. The first approach that comes in my mind is to extract the whole page into text and then look for keywords in the recognized text. But in terms of training the tesseract, is there a better approach if I know the

How to setup and running Tesseract OCR for PHP (opensource)?

强颜欢笑 提交于 2019-12-24 01:19:51
问题 I have installed the Tesseract OCR via MacPorts based on the documentation provided on the GitHUb, and they were installed successfully, and However, I am trying to use Tesseract OCR for PHP (https://github.com/thiagoalessio/tesseract-ocr-for-php), so I download the zip and include the library to my php file, and use the echo (new TesseractOCR('text.png')) ->run(); but nothing is showing up. Below is the full code in the php <?php REQUIRE_ONCE __DIR__.'/src/TesseractOCR.php'; echo (new

Tess-Two (Tesseract OCR in Android) shows very inaccurate results

匆匆过客 提交于 2019-12-24 01:13:31
问题 I use the following function to perform offline OCR using Tesseract OCR's Android fork Tess-Two : private String startOCR(Uri imgUri) { try { ExifInterface exif = new ExifInterface(imgUri.getPath()); int exifOrientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL); int rotate = 0; switch(exifOrientation) { case ExifInterface.ORIENTATION_ROTATE_90: rotate = 90; break; case ExifInterface.ORIENTATION_ROTATE_180: rotate = 180; break; case ExifInterface