Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:add-ons:os08a10-mipi-camera

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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:37]
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 [[https://www.khadas.com/product-page/os08a10-8mp-camera | OS08A10 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.
  
 ===== 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 ''Ctrl''+''Alt''+''F1''. The test needs to be conducted in the framebuffer mode, and switch to the framebuffer mode through the keyboard combination of ''Ctrl''+''Alt''+''F1''.
  
-  * Disable status: ''+=== Disable status ===  
 + 
 +```shell
 $ v4l2_test  -c 1 -p 0 -F 0 -f 0 -D 0 -R 1 -r 2 -d 2 -N 1000 -n 800 -w 0 -e 1 -I 0 -b /dev/fb0 -v /dev/video0 $ v4l2_test  -c 1 -p 0 -F 0 -f 0 -D 0 -R 1 -r 2 -d 2 -N 1000 -n 800 -w 0 -e 1 -I 0 -b /dev/fb0 -v /dev/video0
-'' +``` 
-  Enable status: ''+ 
 +=== Enable status === 
 + 
 +```shell
 $ v4l2_test  -c 1 -p 0 -F 0 -f 0 -D 0 -R 1 -r 2 -d 2 -N 1000 -n 800 -w 0 -e 1 -I 1 -b /dev/fb0 -v /dev/video0 $ v4l2_test  -c 1 -p 0 -F 0 -f 0 -D 0 -R 1 -r 2 -d 2 -N 1000 -n 800 -w 0 -e 1 -I 1 -b /dev/fb0 -v /dev/video0
-''+```
  
 ==== 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/usr/include/opencv4 $ 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/usr/include/opencv4
 ``` ```
  
-Run format:+=== Run ===
  
-```sh +```shell 
-$ ./test /dev/videoX+$ ./mipi /dev/videoX
 ``` ```
  
 ===== See Also ===== ===== See Also =====
  
-  * [[https://www.khadas.com/product-page/os08a10-8mp-camera|khadas.com/shop/product-page/os08a10-8mp-camera]] +  * [[pp>os08a10-8mp-camera|Buy OS08A10 8MP Camera]] 
-  * [[https://http://dl.khadas.com/hardware/Accessories/OS08A10/OS08A10_V11_Specification.pdf|Schematic]]+  * [[dl>products/add-ons/os08a10/|OS08A10 Hardware Documentations]] 
  
Last modified: 2023/12/29 05:30 by nick