Hi, I have a project at my school, in wich I need to track motion of a person’s hand. The person must draw a 2d shape before a camera. I use a marker to track the motion. To simplify the task, first, I want to process a single line, at the end it would be great to do it with a more complex shape like a pentagon. So, to process the line, I did this:
I set the images to binary, thus I can get the marker’s position.
xcoor(n) = round((s.Centroid(1)));
ycoor(n) = round((s.Centroid(2)));
I would like to ask your help in the evaluating. I mean, I get 2 coordinates: x-y, but what sould I do to them to measure the drawed line straightness for example. Or am I doing it right, or is it a dead end, and never going to work?
Thanks a lot!