camera

package
v0.0.0-...-3fe0d88 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Overview

Package camera.

Index

Constants

This section is empty.

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(opts 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) Read

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

Read reads next frame from camera and returns image.

type Options

type Options struct {
	Index      int
	Rotate     int
	Flip       string
	Width      float64
	Height     float64
	Timestamp  bool
	TimeFormat string
}

Options .

Jump to

Keyboard shortcuts

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