This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
products:sbc:common:add-ons:os08a10-mipi-camera [2022/10/27 22:59] hyphop [Introduction] |
products:sbc:common:add-ons:os08a10-mipi-camera [2023/12/29 05:29] nick |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== OS08A10 MIPI Camera ====== | ====== OS08A10 MIPI Camera ====== | ||
- | |||
- | /* | ||
===== 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 14: | Line 11: | ||
</ | </ | ||
- | {{/ | + | {{/ |
+ | |||
+ | |||
+ | ===== For 5.15 kernel ===== | ||
+ | |||
+ | ===== For 4.9 kernel ===== | ||
- | ===== Guvcview | + | ==== Guvcview ==== |
The desktop version has '' | The desktop version has '' | ||
Line 32: | Line 34: | ||
After the setting is successful, you can use the camera normally. | After the setting is successful, you can use the camera normally. | ||
- | ===== Command Line ===== | + | ==== Command Line ==== |
- | ==== Control IR-Cut via V4L2 ==== | + | === Control IR-Cut via V4L2 === |
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 | ```shell | ||
Line 44: | Line 46: | ||
``` | ``` | ||
- | === Enable status | + | == Enable status == |
```shell | ```shell | ||
Line 50: | Line 52: | ||
``` | ``` | ||
- | ==== Record Video via Gstreamer | + | === Record Video via Gstreamer === |
```shell | ```shell | ||
Line 58: | Line 60: | ||
The recorded video is saved in '' | The recorded video is saved in '' | ||
- | ===== Demo Source Code ===== | + | ==== Demo Source Code ==== |
In addition to this, you can also test the camera via program. | In addition to this, you can also test the camera via program. | ||
- | ==== Python | + | === Install Dependencies |
+ | |||
+ | |||
+ | ```shell | ||
+ | sudo apt install libopencv-dev python3-opencv | ||
+ | ``` | ||
+ | |||
+ | === Python | ||
```python mipi-camera.py | ```python mipi-camera.py | ||
Line 141: | Line 150: | ||
``` | ``` | ||
- | === Compile | + | == Compile == |
```shell | ```shell | ||
Line 147: | Line 156: | ||
``` | ``` | ||
- | === Run === | + | == Run == |
```shell | ```shell | ||
- | $ ./test /dev/videoX | + | $ ./mipi /dev/videoX |
``` | ``` | ||
Line 156: | Line 165: | ||
* [[pp> | * [[pp> | ||
- | * [[dl>Hardware/Accessories/OS08A10/OS08A10_V11_Specification.pdf|OS08A10 | + | * [[dl>products/add-ons/os08a10/ |
- | * [[dl> | + | |