Ask Your Question
0

face tracking with ip camera

asked 2016-08-26 04:34:56 -0600

Hello everyone,

I'm new with opencv and I'm developing an opencv project to performance a face detection. I have already reached the face detection with my axis ip camera but now, I would like to track the camera to the posittion of the face marker in the opencv window, when the user is moving around. So what I want to do is: continuously check if the face detection marker(an ellipse) is centered in the image showed and if it's not centered, move the camera(sending the proper HTTP command to the camera).

My question is : Is there any way to check if the ellipse marker of the face detection is centered in the image showed??

Thanks in advance!!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-08-26 04:56:58 -0600

Yes it is possible. Simply said, an ellipse that is drawn, is drawn with a Point() parameter specifying the ellipse center. Simply check if that marker is close to Point(imagerows/2, imagecols/2)! Calculate the euclidean distance and set a threshold on that!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-08-26 04:34:56 -0600

Seen: 332 times

Last updated: Aug 26 '16