摘要
video4linux提供了一整套linux环境下操纵视频设备的函数接口,首先通过对video4linux函数的调用成功实现了两种方式(内存映射(mmap)和直接读取(read))下摄像头数据的读取;然后对读取到内存缓冲区中的RGB数据流进行分析,实现了同时对两种特定颜色(红、绿、蓝等)的识别,并给出相应色块的端点坐标;最后通过对特定颜色箭头的端点分析,识别了箭头指向的角度;为了便于调试程序和验证结果,分析完成后把缓冲区中的RGB流保存为BMP文件。
Video41inux provide a set of linux environment under the manipulation of video equipment function connection, frist the paper through the using video41inux function Successfully achieve in two ways (memory mapping (mmap) and direct readers (read)) under the camera data read ,then the RGB data flow that read to the memory of the buffer zone will be analysed, the two realized at the same time a specific color (red, green, blue, etc. ) to identify, and gives the corresponding color coordinates of the endpoint; Finally, Arrow on a specific color of the endpoint, identify the arrow pointing to the point of view; In order to facilitate the adjustment process and verify the results, after the completion of the buffer zone in the RGB flow saved as BMP file.
出处
《信阳农业高等专科学校学报》
2009年第1期145-147,共3页
Journal of Xinyang Agricultural College