GitHub Repo https://github.com/pageauc/motion-track
and here https://github.com/pageauc/face-track...
See Repo for Code, documentation and install script. As well as links to more useful motion tracking projects like a vehicle speed camera https://github.com/pageauc/rpi-speed-... and a motion tracking game https://github.com/pageauc/hotspot-game
Motion Tracking ode is now improved with threaded video streaming.so performance is a lot faster than seen in this demo.
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.
motion-track.py is a raspberry p, unix, windows python opencv (computer vision) motion tracking demonstration program.
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 ...