Videos are recorded through motion detection across all 3 color channels. I'd really like to be able to detect the contours of groups of pixels that changed within the video frame. If we can detect contours of movement inside the frame, then we can use general spatial locations to determine whether the movement picked up be the camera captured activities related to parental care (e.g. movement at the nest container entrance or inside the container) versus other activities (e.g. the parents feeding on the floor of the cage, which the wide-angle camera can pick up through the entrance hole).
Contour detection should be possible using OpenCV tools that are already available in Python. I found some tutorials on how to do this:
- OpenCV motion detection in Python, see code on GitHub
- Another motion detection tutorial with OpenCV and Python
- Use OpenCV to detect movement within a given area(region of interest or ROI)
- Install Open CV on a RPi
Videos are recorded through motion detection across all 3 color channels. I'd really like to be able to detect the contours of groups of pixels that changed within the video frame. If we can detect contours of movement inside the frame, then we can use general spatial locations to determine whether the movement picked up be the camera captured activities related to parental care (e.g. movement at the nest container entrance or inside the container) versus other activities (e.g. the parents feeding on the floor of the cage, which the wide-angle camera can pick up through the entrance hole).
Contour detection should be possible using OpenCV tools that are already available in Python. I found some tutorials on how to do this: