camera

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package camera provides utilities for working with camera resources in the context of streaming.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Camera

func Camera(robot robot.Robot, stream gostream.Stream) (camera.Camera, error)

Camera returns the camera from the robot (derived from the stream) or an error if it has no camera.

func VideoSourceFromCamera added in v0.55.0

func VideoSourceFromCamera(ctx context.Context, cam camera.Camera) gostream.VideoSource

VideoSourceFromCamera converts a camera resource into a gostream VideoSource. This is useful for streaming video from a camera resource.

Types

This section is empty.

Jump to

Keyboard shortcuts

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