Ask Your Question
1

Country Boundaries detection

asked 2013-02-21 03:04:25 -0600

ankitiitd gravatar image

Hi

I am trying to build an app which will use live camera, pointed towards a world map. When the user taps on screen the country underneath needs to be detected. I am thinking that this can be done using OCR, or maybe if I can detect the country boundaries somehow. Can this be done using OpenCV.

Thanks & Regards Ankit

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-02-21 04:11:10 -0600

The map will changed during the usage? Otherwise, only create a 2D map where each point is associated to a country.

OCR doesn't seem to be a good idea, you should probably used a segmentation step to identify country (specially if your map is in color, where each country has it own). After that, you test the position of the finger inside each component (aka country). The finger detection looks like more challenging, especially when the arm is occluding some parts...

edit flag offensive delete link more

Comments

Hey Mathieu. Thanks for your reply. The map will not change. And map is also in color, where countries will have different color (although some will still have same color). But I did not want to use colors because actual colors do not look the same when viewed through the camera. That is why I was thinking if the boundaries can be used some how. Please feel free to correct me if I am wrong somewhere in my thinking.

Also what did you mean by "each point associated to a country"? Thanks in advance for your help.

ankitiitd gravatar imageankitiitd ( 2013-02-21 22:16:55 -0600 )edit

I mean each pixel of the map is associated to a country. Therefore, you search the map in the camera (finding rectangle is quite easy with OpenCV) and you find the pixel pointed by the user => you know the country. Take care of the perspective transformation! The principle is quite similar to clickable map on the web... if it could help you.

Mathieu Barnachon gravatar imageMathieu Barnachon ( 2013-02-22 04:05:18 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-02-21 03:04:25 -0600

Seen: 573 times

Last updated: Feb 21 '13