Using Google Coral Camera Print

Google Coral Camera

The i.MX 8M Mini kit comes configured to support the Google Coral camera. The Coral camera connects to the kit through the MIPI-CSI interface and provides an easy way to bring visual input into the i.MX 8M Mini:

The camera is based on the Omnivision OV5645 chip. It provides auto focus, focal length 2.5mm, range 10cm-infinity and an 84.0 degrees / 87.6 degrees field-of-view. Link to the i.MX 8M Mini is via the dual-lane MIPI-CSI interface.

Connecting Coral Camera

To connect the Coral camera to the kit, plug the camera cable into the P2 ("CSI") connector on the HGI board. The following picture illustrates connection of the camera to the kit:

Streaming Video to HDMI Display

Use the following Linux command to stream video input to the HDMI display:

[email protected]:~# gst-launch-1.0 v4l2src ! waylandsink

At this point you should be getting video stream displayed in real-time on your HDMI display:

Capturing Video Frames

Use the following Linux command to capture a single frame into a file:

[email protected]:~# $ gst-launch-1.0 v4l2src ! jpegenc ! filesink location=capture1.jpeg