motion

来自「外国人写的一个很好的嵌入式视频采集源程序。」· 代码 · 共 12 行

TXT
12
字号
This is the first motion detection release.Uncomment the -DMOTION in the Makefile, and when in loop capture, videodog will only save changing frames.The algorithm is explained into motion.c, and the approach is very simple.The entry point is inside video.c file, grab_loop function. Its very beta software, but have been working ok for me. There are two functions:detect_motion - which only detects and returns an average changed pixel number, but keeps image as it were before analysissubtract_motion - which does the same, but returns a modified image, containing only the diff'ed pixels.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?