rpicamera

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 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 {
	LogLevel          string
	CameraID          int
	Width             int
	Height            int
	HFlip             bool
	VFlip             bool
	Brightness        float64
	Contrast          float64
	Saturation        float64
	Sharpness         float64
	Exposure          string
	AWB               string
	AWBGainRed        float64
	AWBGainBlue       float64
	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 {
	Params Params
	OnData func(time.Duration, [][]byte)
}

RPICamera is a RPI Camera reader.

func (*RPICamera) Close

func (c *RPICamera) Close()

Close closes a RPICamera.

func (*RPICamera) Initialize added in v1.4.1

func (c *RPICamera) Initialize() error

Initialize initializes 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