Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Camera ¶
type Camera struct {
// contains filtered or unexported fields
}
func New ¶
func New(id int, t WriterType) (*Camera, error)
New creates a new Camera. Parameter id is the USB device ID to be used. Argument t is type of Writer (Window or direct to file).
func (*Camera) Draw ¶
Draw draws the original video frame to the writer. If D is not nil, then apply some drawing function to it first.
type CameraWriter ¶
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
func NewRecorder ¶
type WriterType ¶
type WriterType int
const ( WriterTypeWindow WriterType = 0 WriterTypeRecorder WriterType = 1 )
Click to show internal directories.
Click to hide internal directories.