ocr

android update project --path “path” error: target invalid (ubuntu)

白昼怎懂夜的黑 提交于 2019-12-12 05:16:46
问题 I am trying to build tesseract library in android studio. abhimanyu@MyPC:~/Documents/tess-two-master/tess-two$ /home/abhimanyu/Android/Sdk/tools/android update project --path . Error: The project either has no target set or the target is invalid. Please provide a --target to the 'android update' command. What path to specify then? plz help 回答1: You can install API level 8 of the Android platform, or include a --target parameter to avoid this error. But a better alternative is to not try to

How to access the command line for Tesseract from Python?

情到浓时终转凉″ 提交于 2019-12-12 04:45:10
问题 I am using Python to do some processing, and I need to OCR with Tesseract. Is there a way I can, from python, type this: "tesseract --tessdata-dir /usr/share imagename outputbase -l eng -psm 3" into the command line somehow or its equivalent? thanks! 回答1: See the example below. import subprocess p = subprocess.Popen(["ping", "localhost"], stdout=subprocess.PIPE) output, err = p.communicate() print output Output: Pinging w10-PC [::1] with 32 bytes of data: Reply from ::1: time<1ms Reply from :

OCR reading using C#

橙三吉。 提交于 2019-12-12 04:35:18
问题 I have a project which is to read character in a captured image but I'm stuck at the button which is to scan image. I ended up tesseract dll in c#, but I don't know how can I code it. I'm a newbie to this programming. private void Browse_Click(object sender, EventArgs e) { //FileInfo fi = new FileInfo(string.Format(@"C:\Documents and Settings\JOrce0201610\My Documents\Visual Studio 2005\Projects\OCR Reader\{0}", imageName)); OpenFileDialog fi = new OpenFileDialog(); fi.InitialDirectory = @"C:

WindowsError: [Error 2] The system cannot find the file specified for pytesseract

丶灬走出姿态 提交于 2019-12-12 04:13:53
问题 I am trying to do OCR using pytesseract but getting an Windowserror. Kindly help. from PIL import Image from pytesseract import image_to_string import matplotlib.pyplot as plt Loading the images im = Image.open('image_112472.jpg') # the second one im.load() Printing the text print(image_to_string(im,lang='eng')) I am getting the following error Traceback (most recent call last): File "C:/Users/amuly/PycharmProjects/P1/Teeth_detection/test1.py", line 17, in <module> print(image_to_string(im

Eliminating Interferential Curve of Text in Images?

天大地大妈咪最大 提交于 2019-12-12 04:07:32
问题 As you can see,I have an image of some formulas but it has some interferential curve,so how can I to remove it? I tried to erode and dilate but failed. 回答1: You can remove those lines by using image inpainting. But need to make a mask first. Take a look at this- http://docs.opencv.org/trunk/df/d3d/tutorial_py_inpainting.html I just tried one see- This code (python) helps you make a mask: import cv2 import numpy as np imgg=cv2.imread("your_image.png") flag = False def draw(event,x,y,flags

why tesseract 3.0 does not recognize text inside box/rectangles/squares? [duplicate]

不打扰是莪最后的温柔 提交于 2019-12-12 02:09:13
问题 This question already has answers here : why tesseract fails for this image? (2 answers) Closed 5 years ago . I'have tried tesseract on this image and some scanned images with some text inside rectangles. but it fails each time with "empty image" as output. please suggest me how can i solve this problem as I'm working on form prosessing. plz do help 回答1: What you could do would be to draw a section of the image you are getting, where the section would be the inner part of the border. You

OCR Tesseract - Tess4J behaving weirdly

风流意气都作罢 提交于 2019-12-12 01:55:42
问题 I am trying to extract text out of an image. The issue is that I am using the below given code to process the image and print the extracted text. public class Test { public static void extractText(String filename) // public static void main(String[] args) { System.setProperty("jna.library.path", "32".equals(System.getProperty("sun.arch.data.model")) ? "lib/win32-x86" : "lib/win32-x86-64"); File imageFile = new File("img_perspective.png"); Tesseract instance = Tesseract.getInstance(); // JNA

Zinnia (handwriting recognition) and PHP integration

故事扮演 提交于 2019-12-12 01:29:57
问题 Can anyone please provide some instructions or steps on how to integrate zinnia (handrecognition system) with regular php? A sample of how it works could be found here. Thank you. 回答1: It says Thread-safe C/C++/Perl/Ruby/Python libraries , so I guess you can't use it with PHP. Place a feature request for PHP wrappers with the project space at sourceforge. 来源: https://stackoverflow.com/questions/1947706/zinnia-handwriting-recognition-and-php-integration

How to scan a thing from a iphone application

你说的曾经没有我的故事 提交于 2019-12-12 01:23:19
问题 i want to know how to scan a paper from a iphone cam and i need to read the data on the paper later i want to store the data... is it possible..? please give me a thought... Thanks.. 回答1: Well, it it very much possible. I am not sure really how do it, but you should definitly have a look at OCR. Try to get a look at Google Googles in the official Google iPhone app, this can actually read text off a picture you take, even at an angle. 回答2: I've found this, http://maniacdev.com/2011/08/example

Image registration page border of photo (quasi scan) of book. What algorithms, libraries in python to use for cropping?

吃可爱长大的小学妹 提交于 2019-12-12 01:05:34
问题 I would like to crop photo such that only "necessary" thing left - in this case I mean text of photographed page left. I hope, that the belowe example demonstrates it clear. I would like to do my task in python. I guess opencv library may be helpful, but what algorithms would you suggest to use? Write some own heuristics basing on image statistics, or are there some ready tools, and there is really no need for reinventing the wheel? 来源: https://stackoverflow.com/questions/18069843/image