Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Rock/Camera"

(CSI)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{rock_header}}
 
__TOC__
 
__TOC__
  
 +
== USB ==
 
=== Support list ===
 
=== Support list ===
 
Below is the list of the USB cameras supported by Radxa Rock stock Android firmware.
 
Below is the list of the USB cameras supported by Radxa Rock stock Android firmware.
Line 10: Line 12:
 
* '''gsou'''            B18/D30/D50
 
* '''gsou'''            B18/D30/D50
 
* '''HYUNDAI'''    S36
 
* '''HYUNDAI'''    S36
 +
 +
== CSI ==
 +
On rock pro/lite, there is CSI camera interfaces, the rock pro/lite default kernel supports '''OV5640''' and '''OV2659''' sensors. Most sensors of this two model on the market are compatible with rock pro/lite on hardware. Note, the kernel should be newer than July, 25th. Check [https://github.com/radxa/linux-rockchip/commit/f0700a581320c2304dbfcd8ef682126e54ce5a36 this commit].
 +
 +
Kernel driver supports resolution 800*600,  '''NV16''',  '''YUV422P''' and '''YUYV'''  formats.
 +
 +
Read image with ffmpeg from command line
 +
.
 +
  ffmpeg -f video4linux2 -s 800*600 -r 20 -i /dev/video0 test.mp4
 +
 +
 +
Program with V4L2 library examples.
 +
 +
  NV16 format read and display example.
 +
  http://dl.radxa.com/users/jack/camera/sample/cap_img_nv16.c
 +
  # gcc -o cap_img_nv16 cap_img_nv16.c
 +
  # ./cap_img_nv16 -d /dev/videoX  //your camera device
 +
 +
  YUV422P format read and display example.
 +
  http://dl.radxa.com/users/jack/camera/sample/cap_img_yuv422p.c
 +
  # gcc -o cap_img_yuv422p cap_img_yuv422p.c
 +
  # ./cap_img_yuv422p -d /dev/videoX  //your camera device
 +
 +
  YUYV format read and display example.
 +
  http://dl.radxa.com/users/jack/camera/sample/cap_img_yuyv.c
 +
  # gcc -o cap_img_yuyv cap_img_yuyv.c
 +
  # ./cap_img_yuyv -d /dev/videoX  //your camera device

Latest revision as of 12:00, 5 August 2015

USB

Support list

Below is the list of the USB cameras supported by Radxa Rock stock Android firmware.

  • Logitech C110/C210/C270
  • madsn MD-903
  • teclast L200
  • bluelover T998
  • gsou B18/D30/D50
  • HYUNDAI S36

CSI

On rock pro/lite, there is CSI camera interfaces, the rock pro/lite default kernel supports OV5640 and OV2659 sensors. Most sensors of this two model on the market are compatible with rock pro/lite on hardware. Note, the kernel should be newer than July, 25th. Check this commit.

Kernel driver supports resolution 800*600, NV16, YUV422P and YUYV formats.

Read image with ffmpeg from command line .

 ffmpeg -f video4linux2 -s 800*600 -r 20 -i /dev/video0 test.mp4


Program with V4L2 library examples.

 NV16 format read and display example.
 http://dl.radxa.com/users/jack/camera/sample/cap_img_nv16.c
 # gcc -o cap_img_nv16 cap_img_nv16.c
 # ./cap_img_nv16 -d /dev/videoX  //your camera device
 YUV422P format read and display example.
 http://dl.radxa.com/users/jack/camera/sample/cap_img_yuv422p.c
 # gcc -o cap_img_yuv422p cap_img_yuv422p.c
 # ./cap_img_yuv422p -d /dev/videoX  //your camera device
 YUYV format read and display example.
 http://dl.radxa.com/users/jack/camera/sample/cap_img_yuyv.c
 # gcc -o cap_img_yuyv cap_img_yuyv.c
 # ./cap_img_yuyv -d /dev/videoX  //your camera device