iTOP-iMX6ULL development board-Using UVC camera under Qt5
[Copy link]
The materials used in this chapter have been put into the Xunwei IMX6ULL development board network disk materials, the path is: 11_Linux system development advanced\91_Chapter use materials.
This chapter introduces how to test the USB driver-free camera in the Qt5 file system. The routine uses the Xunwei i.MX6ULL Terminator development board, Yocto
's Qt5 file system and compiler, and the test program (Qt5Camera) is in the same directory as this chapter.
Connect the UVC camera to the USB port of the development board and check the extra device nodes. The device node in the example is "/dev/video2".
Modify the test program and modify the device node in the processimage.cpp file.
The width and height of the frame can be set by the macro definition in videodevice.h. This example takes 640x480 as an example:
After cross-compiling the test program, copy the executable file to the development board and run it. The terminal will print out the camera information:
The screen displays the picture:
The fact that the image can be displayed indicates that the camera is normal.
|