Documentation ¶
Overview ¶
Package camera handles the camera processing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CamHandler ¶
type CamHandler struct {
Cam Camera
}
CamHandler is an http.Handler for a camera
func (CamHandler) ServeHTTP ¶
func (c CamHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Camera ¶
type Camera interface { GetFrameJPEG() (io.ReadCloser, error) Close() error }
Camera is a camera used for the robot
type Local ¶
type Local struct {
// contains filtered or unexported fields
}
Local is a local camera
func NewLocalCam ¶
NewLocalCam sets up a new local camera
func (*Local) GetFrameJPEG ¶
func (l *Local) GetFrameJPEG() (io.ReadCloser, error)
GetFrameJPEG returns an io.ReadCloser with a frame in JPEG format
type Remote ¶
type Remote struct {
// contains filtered or unexported fields
}
Remote is a remote camera
func NewRemoteCam ¶
NewRemoteCam creates a new Remote object
func (*Remote) GetFrameJPEG ¶
func (r *Remote) GetFrameJPEG() (io.ReadCloser, error)
GetFrameJPEG returns an io.ReadCloser with a frame in JPEG format
Click to show internal directories.
Click to hide internal directories.