filmov
tv
Motion Tracking Demo Windows, Unix, Raspberry Pi using Python, openCV, webcam/pi-camera

Показать описание
Watch for our black and tan chihuahua in the first part of the video get tracked for motion. Hard to see , but the camera found her.
It will detect motion in the field of view and use opencv to compare images and calculate a threshold image and related contours. It will then determine the largest contour and return its x, y coordinates in real time. Note this program is for demonstration purposes only.
I will be using similar code for a simple RPI robotics project, but thought this demo code would be useful for other users as a starting point or part of an existing project.
I did quite a bit of searching on the internet, github, etc, but could not find a similar implementation that returns x,y coordinates of the most dominate moving object in the frame although some came close
Prerequisites
Requires a Raspberry Pi, windows or unix computer running an up-to-date python version and a Web or RPI camera module installed and configured. See Github repo for more details.
Good Luck Claude ...
Комментарии