MIPI-CSI camera

From Tinker Board Wiki
Revision as of 11:01, 24 November 2017 by Mikerr (talk | contribs) (added gStreamer, supported chipsets, & camstill)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Hardware

Supported Chipsets

Currently MX219 and OV5647 tested & supported

OV5647 commonly used in Raspberry Pi Camera v1

MX219 commonly used in Raspberry Pi Camera v2

Camera Operation

Csi.png

Camera Preview:

Built-in Camera test tool for operation.

Key-in

  camHalTest.bin 0

or

  camHalTest.bin 1

0 for show preview on DSI, 1 for HDMI

gStreamer support

On screen video preview:

   gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV12,width=640,height=480 ! videoconvert ! autovideosink

Capture a single JPEG image :

   gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=5 ! video/x-raw,format=NV12,width=640,height=480 ! videoconvert ! jpegenc ! multifilesink location=test.jpg

View captured image:

  gpicview test.jpg


Camstill

A script for general capture using gstreamer http://github.com/mikerr/tinkercam


Capture JPEG with arbitrary size:

   camstill.sh -e jpeg -w 1280 -h 800

Capture PNG and set filename:

   camstill.sh -e png -f test.png

Capture still with text overlay:

   camstill.sh -t "Experiment 13"

Other apps

Camera output available at /dev/video0 for use with other apps


Video of use: https://youtu.be/43-AAvKdRUg?t=4m27s