This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
products:sbc:common:add-ons:os08a10-mipi-camera [2022/10/27 22:42] ivan [See Also] |
products:sbc:common:add-ons:os08a10-mipi-camera [2023/03/21 03:24] nick |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | This document mainly introduces MIPI Camera. The first part of the document describes how to connect. The second part introduces how to use it under Ubuntu. The third part introduces how to use it under Android. | + | This document mainly introduces |
===== Hardware Connection ===== | ===== Hardware Connection ===== | ||
Line 35: | Line 35: | ||
The test needs to be conducted in the framebuffer mode, and switch to the framebuffer mode through the keyboard combination of '' | The test needs to be conducted in the framebuffer mode, and switch to the framebuffer mode through the keyboard combination of '' | ||
- | * Disable status: '' | + | === Disable status |
+ | |||
+ | ```shell | ||
$ v4l2_test | $ v4l2_test | ||
- | '' | + | ``` |
- | | + | |
+ | === Enable status | ||
+ | |||
+ | ```shell | ||
$ v4l2_test | $ v4l2_test | ||
- | '' | + | ``` |
==== Record Video via Gstreamer ==== | ==== Record Video via Gstreamer ==== | ||
Line 53: | Line 58: | ||
In addition to this, you can also test the camera via program. | In addition to this, you can also test the camera via program. | ||
+ | |||
+ | ==== Install Dependencies ==== | ||
+ | |||
+ | |||
+ | ```shell | ||
+ | sudo apt install libopencv-dev python3-opencv | ||
+ | ``` | ||
==== Python ==== | ==== Python ==== | ||
Line 133: | Line 145: | ||
``` | ``` | ||
- | Compile: | + | === Compile |
- | ```sh | + | ```shell |
$ gcc -o mipi mipi.cpp -lopencv_imgproc -lopencv_core -lopencv_videoio -lopencv_imgcodecs -lopencv_highgui -std=c++11 -std=gnu++11 -Wall -std=c++11 -lstdc++ -I/ | $ gcc -o mipi mipi.cpp -lopencv_imgproc -lopencv_core -lopencv_videoio -lopencv_imgcodecs -lopencv_highgui -std=c++11 -std=gnu++11 -Wall -std=c++11 -lstdc++ -I/ | ||
``` | ``` | ||
- | Run format: | + | === Run === |
- | ```sh | + | ```shell |
- | $ ./test /dev/videoX | + | $ ./mipi /dev/videoX |
``` | ``` | ||
===== See Also ===== | ===== See Also ===== | ||
- | * [[https:// | + | * [[pp>os08a10-8mp-camera|Buy OS08A10 8MP Camera]] |
- | * [[https://dl.khadas.com/Hardware/Accessories/OS08A10/ | + | * [[dl> |
- | * [[https:// | + | |