subokita / Robust-Text-Detection

Robust Text Detection implementation based on http://www.stanford.edu/~hchen2/papers/ICIP2011_RobustTextDetection.pdf
MIT License
157 stars 80 forks source link

Support Multiple Bounding Boxes Enclosing Text Regions #4

Closed mihaelkovach closed 9 years ago

mihaelkovach commented 9 years ago

Saburo, Could you add support of Multiple Bounding Boxes Enclosing Text Regions like in Matlab version (step6, part2)? As far as I undetstand this will require changes of the lines 115-131 of RobustTextDetection.cpp.

Thank you in advance.

subokita commented 9 years ago

Sadly, I can't. Because I never have Matlab to begin with, so I don't really know what it's actually doing (and Octave can't even provide half of the functionalities).

Actually when connected component labelling is executed, the program will try to determine each individual letter (not a whole text region), based on the edge enhanced MSER. So it's done on letter to letter basis, not by text region to text region basis.

result |= (labels == prop.labelID); is the part where it tries to aggregate all the detected letters into one large region.