Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the location of all text present in image using opencv

I have this image that contains text(numbers and alphabets) in it. I want to get the location of all the text and numbers present in this image. Also I want to extract all the text as well.

enter image description here

How do I get the cordinates as well as the all the text(numbers and alphabets) in my image. For eg 10B, 44, 16, 38, 22B etc

like image 509
Pulkit Bhatnagar Avatar asked Jan 17 '20 10:01

Pulkit Bhatnagar


1 Answers

One method is to use sliding window (It is expensive).

Determine the size of the characters in the image (all characters are of same size as seen in the image) and set the size of the window. Try tesseract for the detection (The input image requires pre processing). If a window detects characters consecutively, then store the coordinates of the window. Merge the coordinates and get the region on the characters.

like image 150
saveearth Avatar answered Oct 02 '22 16:10

saveearth