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。
| 34 | /// 封装 [`Camera`] 并自动解码格式。 |
| 35 | /// 每次调用 [`read()`](Self::read) 采集一帧并解码为 BGR。 |
| 36 | pub struct VideoCapture { |
| 37 | /// The underlying camera device. |
| 38 | /// 底层摄像头设备。 |
| 39 | camera: Camera, |
| 40 | } |
| 41 | |
| 42 | impl VideoCapture { |
| 43 | /// Open a camera by device index with default settings. |
nothing calls this directly
no outgoing calls
no test coverage detected