⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 motion.h

📁 外国人写的一个很好的嵌入式视频采集源程序。
💻 H
字号:
/* Motion detection package *  (c) Gleicon S. Moraes */#include <unistd.h>#include <time.h>#include <malloc.h>#include <errno.h>#include <stdio.h>#include <string.h>#ifndef TRUE#define TRUE    1#define FALSE   0#endif/* default tolerance reference */#define _TOLERANCE      10/*  * Basic elements we are dealing: * the image itself, its size and depth and a time mark */struct image_motion {	unsigned char   *image;	int             x, y, depth;	int		left, right; // side-o	time_t          stamp;  	};/* methods & functions */int detect_motion (struct image_motion *_reference_image, struct image_motion *_local_img, char tolerance);int subtract_motion (struct image_motion *_reference_image, struct image_motion *_local_img, char _tolerance);int load_pnm(char *wot, struct image_motion *bufo);int detect_motion_mask (struct image_motion *_reference_image, struct image_motion *_local_img, struct image_motion *mask, char _tolerance);

⌨️ 快捷键说明

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