Ask Your Question

sohaib's profile - activity

2013-10-08 09:34:13 -0600 asked a question Track markers on a face in a video

Same question in Stackoverflow

I have a video which has frames as shown in my previous image in this question.

Detect markers on a face and find their coordinates

I detected these markers and numbered them as shown in the image given below:

Detected Markers

My problem is as follows. After I have detected markers in one frame I need to detect them in another frame and find out how much the marker has moved from its previous location. However on using my code again on the second frame I sometimes in some frames get a different numbering among markers and hence I am not able to track markers from one image to another. Also detecting the markers in each image becomes a cumbersome task and takes a lot of time for a video which has around 200 frames.

How can I track these markers over images so as to know how much a particular marker has moved between frames or simply how can I number these markers such that the numbering never changes viz, the marker numbered 60 remains marker number 60 from frame 1 to frame 200.

As a side question is there a way to actually decrease the processing time such that I don't have to detect the face and eyes in each and every frame (Please refer to the image given in the link in my previous question it makes things clearer).

2013-09-28 13:11:52 -0600 commented question Detect markers on a face and find their coordinates

Thanks GiLevi Ill try that. If you get the time please point me out to a good link or resource that I could get my hands on. Meanwhile Ill try and research the topics on my own.

2013-09-27 15:47:59 -0600 asked a question Detect markers on a face and find their coordinates

I have an image of a face. Their are some markers painted with a different color (blue) on this face. There are a total of 60 markers. I tried using the inRange function provided by openCV to detect these markers however using this I may be able to detect the markers but I'm not able to find out the coordinates of these markers. My problem is divided in two parts: 1. I need to find out and number each marker from 1 to 60 and find out its coordinates. 2. Once that is done I need to track those markers on another image of the same person taken at a different time. (Consider it to be like a video with continuous frames. These markers need to calculated at say every 10th frame. What needs to be known is say the distance between marker 1 and marker 5 in image one and in image two)

I am new to openCV and trying to learn its various functions. Even if you cannot point to a specific solution I would be much obliged if I could be pointed towards one direction which would help solve this problem. I am uploading a sample image here.image description