tesseract

Swift 3 - How do I improve image quality for Tesseract?

你离开我真会死。 提交于 2019-12-13 12:22:55
问题 I am using Swift 3 to build a mobile app that allows the user to take a picture and run Tesseract OCR over the resulting image. However, I've been trying to increase the quality of scan and it doesn't seem to be working much. I've segmented the photo into a more "zoomed in" region that I want to recognize and even tried making it black and white. Are there any strategies for "enhancing" or optimizing the picture quality/size so that Tesseract can recognize it better? Thanks! tesseract.image =

How to sort an array of rectangles by position?

那年仲夏 提交于 2019-12-13 12:09:31
问题 I've just realized that if I perform OCR process only on the regions that contain text, it would be a lot faster. So what I did were detecting the text regions in the image and then perform OCR process on each one of them. This is the result of "detecting text regions" step using OpenCV (I used it to draw the rectangles on the image): The only problem remains is I couldn't arrange the text result in the order that they appear on the original image. In this case, it should be: circle oval

Read text from colored image using tess4j [closed]

旧巷老猫 提交于 2019-12-13 11:13:20
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I am able to read text from monochrome image but I am unable to read text from colored image. I will appreciate any help... 回答1: You can use Thresholding to preprocess the bitmap/image, before feeding the library

open source code to remove Non Text regions in image?

二次信任 提交于 2019-12-13 10:00:22
问题 i want to remove any Non Text regions from an captured image as a preprocessing step for OCR Engine, any idea , demo , source code about doing that will be helpful,thanks. 回答1: I guess this question could be seen as a possible duplicate of your other question: How to detect Text Area from image? if it wasn't asked in reverse! Anyway, I rather the other way of thinking about this problem, which is: anything that is not a text region should be ignored . At this point I need to refer to my other

Matlab - OCR Languages Support Package Installation [closed]

寵の児 提交于 2019-12-13 09:31:55
问题 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 3 years ago . Today I wanted to install OCR Languages Support Package on Matlab (using visionSupportPackages function) and I encountered a following a problem: by which I can't coplete installation. On this site: tesseract-ocr.googlecode.com I learned that this project was moved. What should I download now to complete

Errors with Tesseract in Android

我的未来我决定 提交于 2019-12-13 08:52:44
问题 I am following this tutorial to include tesseract in my android app. Below is my activity code: package com.MyApp; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import com.googlecode.tesseract.android.TessBaseAPI; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; import android.content.Intent; import android

Convert command not working in windows

北城以北 提交于 2019-12-13 06:17:29
问题 Installed ImageMagick-7.0.4-7-Q16-x64-dll.exe for resolving the issue of Tesseract facing problems with smaller font explained in this Stackoverflow question Is there any way to improve tesseract OCR with small fonts? I ran the following convert command. But it still says invalid parameter. C:\Users\rt\Desktop\Sample_Files>convert -resize 400% image5.jpg image5out.jpg Invalid Parameter - 400% and when I ran this C:\Users\rt\Desktop\Sample_Files>where convert.exe C:\Windows\System32\convert

Tesseract implementing a web service to trigger OCR actions

无人久伴 提交于 2019-12-13 05:09:19
问题 I am trying to implement a web service which triggers OCR actions of the server side. Client code: ... sy = belgeArsivle(testServisIstegi, ab); ... private static ServisYaniti belgeArsivle(com.ocr.ws.ServiceRequest serviceRequest,com.ocr.ws.Document document) { com.ocr.ws.ServiceRequest service = new com.ocr.ws.OCRArsivWSService(); com.ocr.ws.OCRArsivWS port = service.getOCRArsivWSPort(); return port.docArchive(serviceRequest, document); } When I run the code on the server side there is no

Provide Pattern for Tesseract

妖精的绣舞 提交于 2019-12-13 04:53:58
问题 I'm using go and tesseract together. I have something like 2^3 or 22^55 And Tesseract is still sometimes wrong with a white list so I'm looking for a way to provide pattern I read through the FaQ and tried the suggested option with the bazaar. My Pattern file looks like this: \d\d^\d\d \d^\d\d \d^\d \d^\d\d But somehow It still doesnt work. Are there any tips to get it working or is the only way to realize this to generate a new language file. 回答1: Not a developer so forgive me. I was looking

TesseractNotFound - Pytesser

这一生的挚爱 提交于 2019-12-13 04:44:05
问题 I'm trying to do OCR using pytesser downloaded from HERE. Here is the code of pytesser.py try: import cv2.cv as cv OPENCV_AVAILABLE = True except ImportError: OPENCV_AVAILABLE = False from subprocess import Popen, PIPE import os PROG_NAME = 'tesseract' TEMP_IMAGE = 'tmp.bmp' TEMP_FILE = 'tmp' #All the PSM arguments as a variable name (avoid having to know them) PSM_OSD_ONLY = 0 PSM_SEG_AND_OSD = 1 PSM_SEG_ONLY = 2 PSM_AUTO = 3 PSM_SINGLE_COLUMN = 4 PSM_VERTICAL_ALIGN = 5 PSM_UNIFORM_BLOCK = 6