Skip to content

Latest commit

 

History

History
29 lines (13 loc) · 1.51 KB

File metadata and controls

29 lines (13 loc) · 1.51 KB

Automatically-detect-and-recognize-text-in-images MATLAB demo

Firstly, Maximally Stable Extremal Regions(MSER) is used to find the text regions. By this the regions which does not contain text are also highlighted. It can be removed by geometric properties(eccentricity, euler number, extent, solidity) or stroke width variation. The values of geometric properties needs to be changed for different images. Then bounding box is drawn for every character. A chain of overlapping bounding boxes indicates a word. Afterwards, the whole text region will be represented by bounding box. The detected text will then be recognized by using OCR function.

Step 1:- Detect text regions using MSER

a

Step 2:- Remove non-text regions using geometric properties

b

Step 3:- Remove non-text regions based on stroke width variation

c

d

Step 4:- Merge text regions

e

Step 5:- Recognize detected text using OCR

f