This page is about the next step for motion detection.

MotionToVideo

If you already have installed node-opencv and opencv3, you may need to update node-opencv from https://github.com/btsimonh/node-opencv-nr branch btsimonh-dev.

The flow is here

Example result is here and here

To start it, press the start inject.

To stop, press the stop inject.  (if you don’t stop before redeploy, you may need to restart NR to start again).

When motion is detected, the flow triggers the start of recording, which creates an instance of cv.VideoWriter, and then writes frames to the video until motion ceases or 200 frames at 5 fps have elapsed.  The video will not be re-triggered unless motion stops and restarts.

Video is written to /home/pi as a dated AVI file containing mp4 video.  The CPU usage does not seem outrageous.

Charts show timings from the flow, both immediate and average.

 

Â