camera

package
v0.0.0-...-8c93f6f Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeFormat = "2006-01-02T15:04:05.000"
)

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, args []string) error

Types

type Camera

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

func NewCamera

func NewCamera(ctx context.Context, deviceID, destination string) (*Camera, error)

func (*Camera) Close

func (c *Camera) Close()

func (*Camera) Open

func (c *Camera) Open() error

func (*Camera) TakePicture

func (c *Camera) TakePicture() error

type FileImageSaver

type FileImageSaver struct {
	Dir string
}

func (*FileImageSaver) Close

func (s *FileImageSaver) Close()

func (*FileImageSaver) Save

func (s *FileImageSaver) Save(img gocv.Mat) error

type ImageSaver

type ImageSaver interface {
	Save(img gocv.Mat) error
	Close()
}

type Options

type Options struct {
	Save       string
	DeviceID   string
	Frequency  time.Duration
	NotifyAddr string
}

type RemoteImageSaver

type RemoteImageSaver struct {
	Network  string
	Address  string
	Ctx      context.Context
	DeviceID string
	// contains filtered or unexported fields
}

func (*RemoteImageSaver) Close

func (c *RemoteImageSaver) Close()

func (*RemoteImageSaver) Save

func (s *RemoteImageSaver) Save(img gocv.Mat) error

Jump to

Keyboard shortcuts

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