camera

package
v0.0.0-...-79c5f0e Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KillFFMPEGBYID

func KillFFMPEGBYID(psc, grepc *exec.Cmd) error

Types

type Camera

type Camera interface {
	TakePicture() error
}

func NewCameraByOS

func NewCameraByOS(c config.Config, l utils.Logger) Camera

func NewMacOSCamera

func NewMacOSCamera(folder string, c config.Config, l utils.Logger) Camera

func NewWinCamera

func NewWinCamera(picdir string, c config.Config, l utils.Logger) Camera

type CameraService

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

func NewCameraService

func NewCameraService(cam Camera, c config.Config, l utils.Logger) *CameraService

func (*CameraService) TakePictureEvery

func (cs *CameraService) TakePictureEvery()

func (*CameraService) TakePictureWithFail

func (cs *CameraService) TakePictureWithFail() error

Jump to

Keyboard shortcuts

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