本章节使用的资料已经放到了迅为IMX6ULL开发板网盘资料中,路径为:11_Linux 系统开发进阶\91_章节使用资料。
本章节介绍如何在 Qt5 文件系统测试 USB 免驱摄像头,例程中使用迅为 i.MX6ULL 终结者开发板,yocto
的 Qt5 文件系统和编译器,测试程序(Qt5Camera)在本章节同一目录下。 
将 UVC 摄像头连接到开发板的 USB 接口上,查看多出的设备结点,例程中设备节点为“/dev/video2”,

修改测试程序,在 processimage.cpp 文件中修改设备结点,

帧的宽高可在 videodevice.h 里的宏定义设置,本例程以 640x480 为例:

交叉编译测试程序后,将可执行文件拷贝到开发板运行,终端会打印出摄像头信息:

屏幕显示出画面:

能显示出图像说明摄像头正常。
|