New Debian Images with UVC camera support, Python and OpenCV in Wiki


As you maybe noticed we play a lot recently with video processing and OpenCV + Python, so we decided to release new image which includes these packages.

Unfortunately we are on the limit with the current 2GB cards, so we had to release two images:

1. Debian with OpenCV + UVC camera support + Python without XFCE4 which still fits in 2GB cards we ship now.

2. Debian with XFCE4 + OpenCV + UVC + Python on 4GB image. We recommend you to use Class10 card as with Class4 things work many times slower.

We are now working to source new fast 4GB cards which to ship with A13-OLinuXino new image.

You can download the images from our WIKI

Connecting Web Camera to A13-OLinuXino for video streaming


In our previous blog post we setup demo where A13-OLinuXino-WIFI both was running web server with MOD-RGB control and at the same time was streaming video from Web Camera so you can see the result from the MOD-RGB control

Here is description how the video streaming was done:

USB video cameras use UVC driver which is not enabled by default in A13-OLinuXino kernel so have to be enabled additionally.

  1. Installing UVC
  • # git clone
  • # cd linux-sunxi
  • # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- a13_defconfig;make ARCH=arm menuconfig
  • select in  Device Drivers -> Multimedia support -> Video capture adapters ->  V4L USB devices -> USB Video Class (UVC) (M)
  • # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j5 uImage modules
  • # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=output modules_install
  • # cp arch/arm/uImage /<sdcard mount point>/<FAT Partition>/.
  • # cp -aRv output/lib/modules/* /<sdcard mount point>/<EXT Partition>/lib/modules/.
  • # reboot
  • # modprobe uvcvideo

Now you have UVC support in your kernel and can use Web Camera for your Linux apps.

2.  Setup VLC Streaming

  • apt-get install vlc
  • # chmod 777 /dev/video*
  • # adduser vlc
  • # su vlc
  • # cvlc v4l2:// :v4l2-vdev=”/dev/video0″ :v4l-adev=”/dev/null” –sout

last command is actually setting VLC streamer to stream mpg1 video 320×240 pixels at 8080 port, for more details check: