fswebcam

package module
v0.0.0-...-9cf567a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2015 License: GPL-2.0 Imports: 3 Imported by: 0

README

This is a Golang wrapping of the fswebcam application. Suitable for use in a go-based application that needs webcam functionality on *nix.

For an example use, see the unit test.

To include in a project:

```
$ export GOPATH=`pwd`
$ go get -d github.com/NimbleIndustry/fswebcam
$ cd src/github.com/NimbleIndustry/fswebcam
$ ./configure
```

Then in your application, simply import the fswebcam project. Again, see the unit test for an example usage.

Original README follows....

==========

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
make
make install

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCaptureJPEGBytes

func GetCaptureJPEGBytes(args []string, quality int) ([]byte, error)

func ImageToJPEGBuffer

func ImageToJPEGBuffer(p *C.gdImage, quality int) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL