Following the object [closed]
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?
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 !
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.