vcam

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebayerRGGBBilinear

func DebayerRGGBBilinear(camData []uint16, width, height int) *image.NRGBA

Takes camera data and converts it to an image.NRGBA. Does full 1280x720, though it's a little slow. Meant for single frames, not streams.

func GetFrame

func GetFrame() ([]byte, error)

Gets a frame from the camera when the next one is ready. Read about output data here: https://github.com/digital-dream-labs/vector/blob/main/docs/vision/Debayering.md DebayerRGGBBilinear() can convert this to a nice image.Image. vjpeg includes a function for converting this to JPEG.

func InitCam

func InitCam(autoExposure bool) error

Init camera. This initiates the communication with mm-anki-camera and starts getting frames. It also modifies the service file to get full framerate from the camera. If you want a horrible autoexposure implementation, give it `true`.

func IsInited added in v1.2.1

func IsInited() bool

Check if vcam is recieving frames from the camera

func SetExposure

func SetExposure(ms uint16, gain float64)

Set exposure. Accepts milliseconds and gain. I still need to experiment with limits and combinations.

func StopCam

func StopCam() error

Stop the camera. This should be run when you are done using the camera.

Types

This section is empty.

Jump to

Keyboard shortcuts

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