Ask Your Question
0

please help me to detect an rectangle box on image?

asked 2017-02-02 02:23:41 -0600

Khang gravatar image

updated 2017-02-02 02:44:03 -0600

sorry if i say something wrong guys, my english is bad!

IMAGE 1

i want to detect that number on my image so how can i do it. i have learned some simple canny detection and i 've done this

IMAGE 2

Please help me, thanks you

RESOURCE

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2017-02-02 18:15:32 -0600

Tetragramm gravatar image

Image 1 is the only numbers you want?

Look at your resource image. The number you want are the only numbers surrounded by blue. Isolate the color blue, and erase any small bits that are a similar color.

Then find the bounding box (contours, connected components, just checking each row an column for contents, lots of ways to do that).

Then do canny on the bounding box, and you should have something like Image 1. If you want to know the numbers, you need to do OCR, which is THIS module.

edit flag offensive delete link more

Comments

great answer, thanks for reply me i will try it out

Khang gravatar imageKhang ( 2017-02-03 08:42:56 -0600 )edit

hi, i have found the box using blue hsv detection bounding_box but i used python to do it :( is that OCR is not supporting for python yet?

Khang gravatar imageKhang ( 2017-02-03 09:37:00 -0600 )edit

I think it is, but you have to install OpenCV contrib, which you have to compile yourself. If you don't know how to compile OpenCV, check out the tutorials HERE and pick the appropriate one for your system.

Tetragramm gravatar imageTetragramm ( 2017-02-03 21:26:14 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-02-02 02:23:41 -0600

Seen: 1,195 times

Last updated: Feb 02 '17