...
To connect the Emcraft OV5640 camera to the kit, plug the camera cable into the CSI1 CSI2 on the back side of the carrier board. The following picture illustrates connection of the camera to the kit:
...
For correct functioning of the Emcraft OV5640 camera with NAVQ+ kit BSP release 1.1.7-387 or higher is required. To enable support for the camera in software follow the below steps that enable correct DTB configuration for Linux kernel:
...
Connect NAVQ+ kit to a host via a USB-to-serial adapter, then open a serial terminal program on the host, and set “115200, 8N, 1” serial properties for the NAVQ+ port.
...
Alternatively, connect to the NAVQ+ kit via an ssh client.
...
Enter “user” for both login and password in the serial/ssh login prompt.
...
Issue the below commands in the Linux shell:
Code Block |
---|
user@imx8mpnavq:~$ sudo fw_setenv fdtfile imx8mp-navq-ov5640-ov5645.dtb
user@imx8mpnavq:~$ sudo reboot |
...
.
4. Finding Camera Device Nodes
...
Code Block |
---|
user@imx8mpnavq:~$ v4l2-ctl --list-devices | grep -A1 mxc-isi-cap mxc-isi-cap (platform:32e0000032e02000.isi:cap_devic): /dev/video3video4 |
In the above output, the /dev/video3video4 device node corresponds to the camera connected to the CSI1 CSI2 slot.
5. Streaming Video to HDMI Display
...
Code Block |
---|
user@imx8mpnavq:~$ cheese -d /dev/video3video4 |
At this point you should be getting GUI window with video stream displayed in real-time on your HDMI display:
...
Code Block |
---|
user@imx8mpnavq:~$ gst-launch-1.0 v4l2src device='/dev/video3video4' num-buffers=1 ! jpegenc ! filesink location=capture1.jpeg |
...
Code Block |
---|
user@imx8mpnavq:~$ gst-launch-1.0 v4l2src device='/dev/video3video4' ! queue ! 'video/x-raw,widtgh=1920,height=1080' ! v4l2h264enc ! mpegtsmux ! filesink location=video.mp4 |