首页 | 本学科首页   官方微博 | 高级检索  
     检索      

linux环境下基于usb摄像头的图片采集与分析
引用本文:李应真,刘松.linux环境下基于usb摄像头的图片采集与分析[J].信阳农业高等专科学校学报,2009,19(1).
作者姓名:李应真  刘松
作者单位:信阳农业高等专科学校,计算机科学系,河南,信阳,464000
摘    要:video4linux提供了一整套linux环境下操纵视频设备的函数接口,首先通过对video4linux函数的调用成功实现了两种方式(内存映射(mmap)和直接读取(read))下摄像头数据的读取;然后对读取到内存缓冲区中的RGB数据流进行分析,实现了同时对两种特定颜色(红、绿、蓝等)的识别,并给出相应色块的端点坐标;最后通过对特定颜色箭头的端点分析,识别了箭头指向的角度;为了便于调试程序和验证结果,分析完成后把缓冲区中的RGB流保存为BMP文件。

关 键 词:video4linux  内存映射  直接设备读取

Under linux environment based on usb camera's picture gathering and analysis
LI Ying-zhen,LIU Son.Under linux environment based on usb camera's picture gathering and analysis[J].Journal of Xinyang Agricultural College,2009,19(1).
Authors:LI Ying-zhen  LIU Son
Abstract:Video4linux provide a set of linux environment under the manipulation of video equipment function connection,first the paper through the using video4linux 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.
Keywords:video4linux
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号