Following the object [closed]

asked 2016-06-15 04:11:28 -0600

bloodkid gravatar image

Hi! I have to make a project using openCV to follow the object using camera. For example: I go inside the room and camera have to detect me and than follow me when I move. If i go right, camera go right too by using 2 servo drives (1 vertically, 1 horizontally). Is it possible to do in OpenCV?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-08 07:09:46.874931

Comments

1

we can't help you with the servos, but the kind of motion detection you need for this is very simple

so - for sure possible !

berak gravatar imageberak ( 2016-06-15 04:43:06 -0600 )edit

i'd start with the most simple idea first:

use absdiff() of 2 consecutive frames to detect motion, divide your image into 3 horizontal regions, if the sum() of the difference in one of the outer regions exceeds a certain threshold, move cam.

berak gravatar imageberak ( 2016-06-16 04:53:59 -0600 )edit