avafinger / fswebcam

fswebcam for H2 / H3 / A64 / Rockchip (exposure,Hflip and Vflip control set)
GNU General Public License v2.0
7 stars 6 forks source link
camera fswebcam ov5640 rockchip

fswebcam

fswebcam - Small and simple webcam software for *nix.

Created by Philip Heron phil@sanslogic.co.uk http://www.sanslogic.co.uk/fswebcam/

This is the program used to generate images for a webcam. It captures a number of frames from any V4L or V4L2 compatible device, averages them to reduce noise and draws the details on it using the GD Graphics Library which also handles compressing the image to PNG or JPEG.

INSTALLING

Run the following commands in the source folder to build and install fswebcam:

./configure --prefix=/usr --disable-v4l1 --enable-32bit-buffer make sudo make install

It's only requirements are that the GD library be installed with JPEG, PNG and FreeType support.

Install Dependencies

    sudo apt-get install libgd-dev libjpeg-dev libpng-dev 
    sudo apt-get install libfreetype6-dev

Run samples:

    fswebcam --Vflip 1 -r 1600x1200 -p YUV420P - > cam640x480_2.jpg
    fswebcam --Hflip 1 -r 640x480 -p YUV420P - > cam640x480_1.jpg
    fswebcam --exposure 4 -r 640x480 -p YUV420P - > cam640x480_3.jpg

** Don't forget to update your GC2035 driver to get better results

Rockchip platform support

IMX-415 camera sensor:

fswebcam  --displayfps 1 -S 90 -d /dev/video11 -r 3864x2192 -p UYVY  - > 3864x2192.jpg

Mainline Kernel support

In order to use fswebcam in your Distro running a mainline kernel version you need to play with media-ctl and v4l2-ctl before you grab the files.

640x480