Open a camera with custom configuration. 使用自定义配置打开摄像头。
(index: u32, config: CameraConfig)
| 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`]。 |
nothing calls this directly
no outgoing calls
no test coverage detected