capture

package
v0.0.0-...-fb677f5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

capturing single image from webcam with Video for Linux 2

references: http://www.jayrambhia.com/blog/capture-v4l2/ https://gist.github.com/Circuitsoft/1126411 http://saibara.sakura.ne.jp/program/v4l2/ http://linuxtv.org/downloads/v4l-dvb-apis/

Index

Constants

View Source
const (
	BUFFER_COUNT  = 8
	IGNORE_FRAMES = 10
)

Variables

View Source
var (
	ErrMJPEGNotSupported = errors.New("this webcam dosen't support Motion-JPEG")
	ErrYUYVNotSupported  = errors.New("this webcam dosen't support YUV 4:2:2")
	ErrInvalidFormat     = errors.New("invalid image format")
	ErrUnknown           = errors.New("unknown error")
)

Functions

func Capture

func Capture(device string) (image.Image, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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