Ask Your Question

How can i improve quality of this receipt

asked 2020-03-23 05:50:09 -0500

kani gravatar image

updated 2020-03-23 07:57:45 -0500

I have a problem recognizing data from selected area showed on receipt screenshot image description

For recognition i'm using Tesseract, and this red area is being skipped. What kind of techniques can i try to improve quality of an image?

Original image:

So far i tried this simple methods:

img = cv2.imread(image)
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
median = cv2.GaussianBlur(gray, (5, 5), 0)
thresh = cv2.threshold(median, 127, 255, cv2.THRESH_BINARY | cv2.THRESH_OTSU)[1]
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-03-23 10:03:04 -0500

juanmamdp gravatar image

Here you have a good example and explanation of dewarping: There are plenty of examples of code for this kind of problem, but I like the one above.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-03-23 05:50:09 -0500

Seen: 70 times

Last updated: Mar 23