rtsp

package
v0.2.27 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Overview

Package rtsp implements an RTSP camera client for RDK

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRTSPCamera

func NewRTSPCamera(ctx context.Context, attrs *Attrs, logger golog.Logger) (camera.Camera, error)

NewRTSPCamera creates a camera client using RTSP given the server URL. Right now, only supports servers that have MJPEG video tracks.

Types

type Attrs

type Attrs struct {
	Address          string                             `json:"rtsp_address"`
	IntrinsicParams  *transform.PinholeCameraIntrinsics `json:"intrinsic_parameters,omitempty"`
	DistortionParams *transform.BrownConrady            `json:"distortion_parameters,omitempty"`
}

Attrs are the config attributes for an RTSP camera model.

func (*Attrs) Validate

func (at *Attrs) Validate() error

Validate checks to see if the attributes of the model are valid.

Jump to

Keyboard shortcuts

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