Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Binarization and Background Filtering in opencv

Shortly, I want to make the pre-processing procedures before OCR with the suggestion comes from ABBYY 's technology. There are two parts in article:

  • Background Filtering: separate text strings from background. enter image description here
  • Adaptive Binarization: make lines and words will be correctly detected and higher recognition accuracy will be reached. And they try to impact on characters. enter image description hereenter image description here

I wonder are there any ways to achieve them by using opencv? Any suggestions or sample codes would be appreciated.

like image 627
ductran Avatar asked Feb 11 '14 08:02

ductran


1 Answers

I would encourage you to use this code: http://liris.cnrs.fr/christian.wolf/software/binarize/ In particular wolf's binarization, it works really well in practice and it needs very little change to c++ code if you want to use it with opencv. Basically you have to pass the pointer to your image data to this function.

like image 103
3 revs, 3 users 97% Avatar answered Sep 28 '22 00:09

3 revs, 3 users 97%