camera

package
v0.0.0-...-cbc7d21 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package camera.

Index

Constants

View Source
const (
	PropPosMsec = iota
	PropPosFrames
	PropPosAviRatio
	PropFrameWidth
	PropFrameHeight
	PropFps
	PropFourcc
	PropFrameCount
	PropFormat
	PropMode
	PropBrightness
	PropContrast
	PropSaturation
	PropHue
	PropGain
	PropExposure
	PropConvertRgb
	PropWhiteBalanceU
	PropRectification
	PropMonocrome
	PropSharpness
	PropAutoExposure
	PropGamma
	PropTemperature
	PropTrigger
	PropTriggerDelay
	PropWhiteBalanceV
	PropZoom
	PropFocus
	PropGuid
	PropIsoSpeed
	PropMaxDc1394
	PropBacklight
	PropPan
	PropTilt
	PropRoll
	PropIris
	PropSettings
	PropBuffersize
)

Property identifiers.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camera

type Camera struct {
	// contains filtered or unexported fields
}

Camera represents camera.

func New

func New(index int) (camera *Camera, err error)

New returns new Camera for given camera index.

func (*Camera) Close

func (c *Camera) Close() (err error)

Close closes camera.

func (*Camera) GetProperty

func (c *Camera) GetProperty(id int) float64

GetProperty returns the specified camera property.

func (*Camera) Read

func (c *Camera) Read() (img image.Image, err error)

Read reads next frame from camera and returns image.

func (*Camera) SetProperty

func (c *Camera) SetProperty(id int, value float64) int

SetProperty sets a camera property.

Jump to

Keyboard shortcuts

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