Performing motion tracking with OpenCV
While it is useful to be able to track objects of a specific color, sometimes we are just interested in the actual motion taking place. This is particularly true when the objects we wish to track could blend in with the background.
Note
Note: Security cameras often use IR detectors to act as triggers; however, these rely upon detecting a change in detected heat across the sensor. This means they will not work if the object does not give off additional heat relative to the background and they will not track the direction of the motion.
https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/how-pirs-work
The following recipe will demonstrate how OpenCV can be used to detect motion and also provide ...
Get Raspberry Pi for Python Programmers Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.