I am using OpenCV to make the image easier for tesseract to scan, and I 
have not been getting the results I am looking for. Does anyone have any 
suggestions for preprocessing using OpenCV?

Here is what I am doing right now.

cv::Mat cvImage = [self cvMatFromUIImage:image];

 

    // GaussianBlur(sudoku, sudoku, Size(11,11), 0); 

    cv::GaussianBlur(cvImage, cvImage, cv::Size(11, 11), 0); 

    // adaptiveThreshold(sudoku, outerBox, 255, ADAPTIVE_THRESH_MEAN_C, 
THRESH_BINARY, 5, 2); 

    cv::cvtColor(cvImage, cvImage, CV_RGB2GRAY); 

    cv::adaptiveThreshold(cvImage, cvImage, 255, 
CV_ADAPTIVE_THRESH_MEAN_C,CV_THRESH_BINARY
, 5, 2);


-- 
-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to