linux

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 6 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package linux implement linux device

Index

Constants

View Source
const (
	PropBrightness    = v4l.CtrlBrightness
	PropContrast      = v4l.CtrlContrast
	PropSaturation    = v4l.CtrlSaturation
	PropHue           = v4l.CtrlHue
	PropGain          = v4l.CtrlGain
	PropExposure      = v4l.CtrlExposure
	PropWhiteBalanceU = v4l.CtrlWhiteBalance
	PropSharpness     = v4l.CtrlSharpness
	PropWhiteBalanceV = v4l.CtrlDoWhiteBalance
	PropBacklight     = v4l.CtrlBacklightCompensation
)

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 v4l camera

func New

func New(opts camera.Options) (c *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)

SetProperty sets a camera property.

func (*Camera) Start

func (c *Camera) Start() error

Start implement Device interface

Jump to

Keyboard shortcuts

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