README.rst
1.. _video_capture-sample:
2
3Video Capture
4#############
5
6Description
7***********
8
9This sample application uses the Video API to retrieve video frames from the
10video capture device, writes a frame count message to the console, and then
11discards the video frame data.
12
13Requirements
14************
15
16This sample requires a video capture device (e.g. a camera).
17
18- :ref:`mimxrt1064_evk`
19- `MT9M114 camera module`_
20
21Wiring
22******
23
24On :ref:`mimxrt1064_evk`, The MT9M114 camera module should be plugged in the
25J35 camera connector. A USB cable should be connected from a host to the micro
26USB debug connector (J41) in order to get console output via the freelink
27interface.
28
29Building and Running
30********************
31
32For :ref:`mimxrt1064_evk`, build this sample application with the following commands:
33
34.. zephyr-app-commands::
35 :zephyr-app: samples/video/mt9m114
36 :board: mimxrt1064_evk
37 :goals: build
38 :compact:
39
40Sample Output
41=============
42
43.. code-block:: console
44
45 Found video device: CSI
46 width (640,640), height (480,480)
47 Supported pixelformats (fourcc):
48 - RGBP
49 Use default format (640x480)
50 Capture started
51 Got frame 743! size: 614400; timestamp 100740 ms
52 Got frame 744! size: 614400; timestamp 100875 ms
53 Got frame 745! size: 614400; timestamp 101010 ms
54 Got frame 746! size: 614400; timestamp 101146 ms
55 Got frame 747! size: 614400; timestamp 101281 ms
56 Got frame 748! size: 614400; timestamp 101416 ms
57
58 <repeats endlessly>
59
60References
61**********
62
63.. _MT9M114 camera module: https://www.onsemi.com/PowerSolutions/product.do?id=MT9M114
64