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

Method open_with

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

Open a camera with custom configuration. 使用自定义配置打开摄像头。

(index: u32, config: CameraConfig)

Source from the content-addressed store, hash-verified

53 /// Open a camera with custom configuration.
54 /// 使用自定义配置打开摄像头。
55 pub fn open_with(index: u32, config: CameraConfig) -> Result<Self> {
56 let camera = Camera::open_with(index, config)?;
57 Ok(Self { camera })
58 }
59
60 /// Read the next frame, decoded as BGR, into the provided [`Mat`].
61 /// 读取下一帧,解码为 BGR,写入提供的 [`Mat`]。

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected