Ask Your Question

bystro's profile - activity

2017-01-04 10:20:21 -0600 commented answer Improve image preprocessing

here is a link to the input image

2017-01-04 05:49:39 -0600 received badge  Editor (source)
2017-01-04 05:27:18 -0600 asked a question Improve image preprocessing

I am trying to make image processing algorithm before proceeding to an OCR procedure.

Since the OCR fails. I needed to make a preprocessing in order to get better accuracy.

I am providing sample code used here and also the input and result image.

Mat image = imread("address2.jpg");

Mat gray_image;
cvtColor(image, gray_image, CV_BGR2GRAY);

Mat bluredImage;
GaussianBlur(gray_image, bluredImage, Size(1, 1), 0);

Mat threshImage;
threshold(bluredImage, threshImage, 0, 255, THRESH_OTSU);

imwrite("result.jpg", asd);

And here is input image

image description

and the result image here

image description

If you look close the dotted area is the problem.

Could you give me advise how to optimize the image processing? What kinds of procedures are needed to improve the OCR output?

2017-01-04 04:44:03 -0600 received badge  Autobiographer