I am currently working on a class project, my goal is to track a color or shape with a camera. Then to receive the coordinates of the object. any assistance would be helpful, including how to track an object by color or shape and how to detect the coordinates.
I have done some work but the built in library seems to be missing some things that i have to extract from demos.
Comments
I think that, first of all, you have to "clean" the image, so that it remains only the circle.
You can mantein only the objects that have an area > of a certain threshold, or you can use some morphological operators.
Then, you can use the function regionprops to find the coordinates of the center of your object.
For the color you can simply check the value of the centroid pixel.
What is the problem with the coordinates?
and if there are multiple targets then each point is needed. i sort of see it in centroid but do not know what can view that.