ocr

Google ML Kit: Waiting for the text recognition model to be downloaded

a 夏天 提交于 2019-12-23 09:34:55
问题 [mlkit] I am implementing the "On-device text recognition" from the Google Machine Learning Kit for android. I followed this guide but every time try to detect text I get the exception "Waiting for the text recognition model to be downloaded. Please wait." Obviously, waiting doesn't help, neither does making a new detection 10 seconds later. I have the meta tag <meta-data android:name="com.google.firebase.ml.vision.DEPENDENCIES" android:value="text" /> in my manifest's app tag, which is

Converting TIFF to PDF via Windows command line [closed]

隐身守侯 提交于 2019-12-23 07:45: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 2 years ago . I'm looking for a free way to create a large batch of tif files (10-20k) into PDF files, ideally with OCR too. It needs to be callable from the command line in windows. 回答1: You can use the XnView application. It's got command line too. Another alternative might be IrfanView. 回答2: You can try LibTiff.Net library

Detect if a PDF is created from a scanned document using OCR [pdfbox]

折月煮酒 提交于 2019-12-23 05:27:33
问题 I would like to know if a PDF was created from a scanned document using OCR. To make the text from the scanned document selectable, I guess the same text is written using a transparent color, a special font, ... I'm using pdfbox and I looked at the font, the color, and many other properties and I didn't find anything special. 回答1: In my case the text rendering mode was set to "Neither fill nor stroke text". pdfbox code: getGraphicsState().getTextState().getRenderingMode() == PDTextState

extracting data from specific image locations using google vision OCR API

吃可爱长大的小学妹 提交于 2019-12-23 05:26:05
问题 I am using Googles Vision OCR API to try and extract 2 types of data from an image 1) handwritten text from text-boxes; marked with red circles below and 2) ticks or 'x' from check-boxes; marked with green circles below. I will be entering this data into a database so I will need a string returned for both types of data Currently, when I pass this image into the API I get a string with all of the data: Secondary School Study Student Perception of Computers LO 13 . Are any of your family

Tesseract use subset of letters

泪湿孤枕 提交于 2019-12-23 04:13:20
问题 Im using tesseract-ocr package on Ubuntu Linux, I have been using it for a while and I think that in order to improve the accuracy of the OCR I only need a subset of letters from the alphabet. The letters I need are: 0123456789abcdefghijklmnopqrstuvwxyz and only that, not even capital letters, can anybody give me a hand on indicating tesseract to only match againts a subset of letters ? Thanks, 回答1: From the python-tesseract project page: import tesseract api = tesseract.TessBaseAPI() api

Using pypdfocr library from within a Python script

谁都会走 提交于 2019-12-23 03:35:10
问题 How can you run pypdfocr from within a Python script, as opposed to the command line? This question How to call pypdfocr functions to use them in a python script? approaches the answer I want, but doesn't quite get there. import pypdfocr from pypdfocr import pypdfocr from pypdfocr.pypdfocr import PyPDFOCR as pocr filepath = 'C:/myfolder/myPDF.pdf' newfile = pocr.run_conversion(filepath) This throws an error: Unbound method run_conversion must be called with PyPDFOCR instance as first argument

Xamarin Tesseract OCR binding for Android

陌路散爱 提交于 2019-12-23 03:04:15
问题 I would like to use tesseract ocr for Xamarin.Android and Xamarin.iOS applications. I found the binding for iOS (https://github.com/jherby2k/Xamarin-Tesseract-OCR-iOS-Unified). Is there an equivalent for Android ? 回答1: Yes, there is Tesseract for Android implementation. You can find it here. But you'll have to build it and create android bindings by yourself. EDIT I created Xamarin Android binding based on this project. You can find it here. There is a test project, just don't forget that you

Scanned Image/PDF to Searchable Image/PDF

拜拜、爱过 提交于 2019-12-23 02:32:23
问题 Can anyone suggest me how to convert a scanned image into a searchable image or a scanned pdf to a searchable pdf ? I have been stuck in this situation since quite a while now. i have tried pdfocr application in ubuntu but no success. 回答1: Tesseract version 3.03 supports creation of searchable PDF from image. For PDF, you can use GhostScript to convert it to image before sending it to Tesseract. https://github.com/tesseract-ocr/tesseract 回答2: Currently, there is no right way of doing this on

How to read this barcode?

蹲街弑〆低调 提交于 2019-12-23 02:13:36
问题 How to find out which type of barcode is this in my sample ? I looked on wikipedia and there are quite many types of barcodes, most common should be Code 39 and Code 128. Is there any lib for barcode OCR (python, java, C#, delphi) ? On this barcode should be encoded time and date of expiration. EDIT I need to know how to read and decode above barcode. This barcodes were generated in legacy system and It would be nice if my app could OCR and understand them On my barcode should be date 19.11

android - recognized text from tess-two library is wrong

醉酒当歌 提交于 2019-12-23 01:28:11
问题 I am trying to use the tess-two library to recognize text from imagae. Here is my code: load.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // recognize text Bitmap temp = loadJustTakenImage(); //loads taken image from sdcard Bitmap rotatedImage = rotateIfNeeded(temp); // rotate method i found in some tutorial String text1 = recognizeText(rotatedImage); } }); Recognize text method: (tessdata folder is in Download with the eng.traineddata and other