Documentation
¶
Index ¶
Constants ¶
View Source
const ( VideoCaptureFrameHeight = int32(gocv.VideoCaptureFrameHeight) VideoCaptureFrameWidth = int32(gocv.VideoCaptureFrameWidth) VideoCaptureFPS = int32(gocv.VideoCaptureFPS) )
Variables ¶
View Source
var ErrClosed = errors.New("capture device closed")
Functions ¶
This section is empty.
Types ¶
type Capture ¶
type Capture interface { Open() error Close() error Read() (*cv.Frame, error) Get(property int32) (value float32, err error) Set(property int32, value float32) error }
Capture is the interface that wraps the basic methods for capturing frames.
func OpenDevice ¶ added in v0.4.0
OpenDevice opens a capture device based on the specified type and source. It returns a Capture interface that can be used to read frames from the device. The captureDevice parameter can be "auto", "webcam", "gstreamer", or "ffmpeg". The source parameter is the input source for the capture device. If the capture device type is not recognized, an error is returned. If the capture device fails to open, an error is returned.
type FFmpeg ¶ added in v0.2.0
type FFmpeg struct {
// contains filtered or unexported fields
}
type GStreamer ¶
type GStreamer struct {
// contains filtered or unexported fields
}
func NewGStreamer ¶
Click to show internal directories.
Click to hide internal directories.