rpicamera

package
v0.23.8 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package rpicamera allows to interact with a Raspberry Pi Camera.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup()

Cleanup cleanups files created by the camera implementation.

Types

type Params

type Params struct {
	CameraID          int
	Width             int
	Height            int
	HFlip             bool
	VFlip             bool
	Brightness        float64
	Contrast          float64
	Saturation        float64
	Sharpness         float64
	Exposure          string
	AWB               string
	Denoise           string
	Shutter           int
	Metering          string
	Gain              float64
	EV                float64
	ROI               string
	HDR               bool
	TuningFile        string
	Mode              string
	FPS               float64
	IDRPeriod         int
	Bitrate           int
	Profile           string
	Level             string
	AfMode            string
	AfRange           string
	AfSpeed           string
	LensPosition      float64
	AfWindow          string
	TextOverlayEnable bool
	TextOverlay       string
}

Params is a set of camera parameters.

type RPICamera

type RPICamera struct{}

RPICamera is a RPI Camera reader.

func New

func New(
	_ Params,
	_ func(time.Duration, [][]byte),
) (*RPICamera, error)

New allocates a RPICamera.

func (*RPICamera) Close

func (c *RPICamera) Close()

Close closes a RPICamera.

func (*RPICamera) ReloadParams

func (c *RPICamera) ReloadParams(_ Params)

ReloadParams reloads the camera parameters.

Jump to

Keyboard shortcuts

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