MCPcopy Create free account
hub / github.com/RustCV/RustCV / VideoCapture

Class VideoCapture

rustcv-camera/src/videocapture.rs:36–40  ·  view source on GitHub ↗

OpenCV-style video capture. OpenCV 风格的视频采集。 Wraps [`Camera`] with automatic format decoding. Each call to [`read()`](Self::read) captures one frame and decodes it to BGR. 封装 [`Camera`] 并自动解码格式。 每次调用 [`read()`](Self::read) 采集一帧并解码为 BGR。

Source from the content-addressed store, hash-verified

34/// 封装 [`Camera`] 并自动解码格式。
35/// 每次调用 [`read()`](Self::read) 采集一帧并解码为 BGR。
36pub struct VideoCapture {
37 /// The underlying camera device.
38 /// 底层摄像头设备。
39 camera: Camera,
40}
41
42impl VideoCapture {
43 /// Open a camera by device index with default settings.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected