Coordinates from video input

3 views (last 30 days)
David Pereira
David Pereira on 13 Feb 2017
I have a USB camera connected to my computer. The camera only detects white and black and will show the picture of a circle with 2 points. One of them is concentric and fixed and it comes from a laser. The other is not concentric, it moves, and it is the reflection of the first one.
The idea is to obtain the coordinates of each point, and store them in a vector, for example, so I can later see the distance between them, send an information to my motor and the position of the 2nd point will change. This iteration will happen till the 2 points are concentric, which is the final objective.
I took 2 pictures. One of them shows only the first point, and the second one shows both. HOWEVER. in the real case, there won't be that "stain" evolving the first point. The 2 points will have the same size. This is only happening because the mirror for the reflection isn't ideal, but after it only show the point.
Only one point: http://imgur.com/a/tZqYB
Since I have just began working with image processing, I would really appreciate some help on how to develop a program.
Thank you

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!