camera

package
v0.0.0-...-fac26c7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CameraStillReader

type CameraStillReader interface {
	Snapshot() (string, error)
}

type LibCameraStill

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

LibCameraStill represents the Golang wrapper over the `libcamera-still` command line application that is found in the Raspberry Pi OS.

func NewLibCameraStill

func NewLibCameraStill(width int, height int, format string, workingDirectoryAbsoluteFilePath string) (*LibCameraStill, error)

NewLibCameraStill creates an instance of our LibCameraStill struct.

func (*LibCameraStill) Snapshot

func (cam *LibCameraStill) Snapshot() (string, error)

Snapshot will take a snapshot with the Raspberry Pi camera module and save it to the specified file. This function is essentially a wrapper function over the `libcamera-still` command.

Jump to

Keyboard shortcuts

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