Category : tesseract

I have an image that is oriented at a 90-degree angle. When fetch the angle using the tesseract command line I get a 90-degree orientation. However, when I run it in python code using pytesseract (with the same tesseract version) I get 270-degree orientation. In the command line: >tesseract test-file.PNG stdout -l osd –psm 0 ..

Read more

I have an image that looks like this: And this is the processed image I have tried pretty much everything. I processed the image like this: gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) #Converting to GrayScale (h, w) = gray.shape[:2] gray = cv2.resize(gray, (w*2, h*2)) thresh = cv2.threshold(gray, 150, 255.0, cv2.THRESH_BINARY | cv2.THRESH_OTSU)[1] gray = cv2.morphologyEx(thresh, cv2.MORPH_CLOSE, rectKernel) ..

Read more