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

Method list_devices

rustcv-backend-msmf/src/lib.rs:119–121  ·  view source on GitHub ↗

Lists all available video capture devices. This method initializes Media Foundation if needed and enumerates all connected video capture devices. # Returns A vector of [`DeviceInfo`] containing device name, ID, and backend info. Returns an empty vector if no devices are found.

(&self)

Source from the content-addressed store, hash-verified

117 /// A vector of [`DeviceInfo`] containing device name, ID, and backend info.
118 /// Returns an empty vector if no devices are found.
119 fn list_devices(&self) -> Result<Vec<DeviceInfo>> {
120 device::list_devices()
121 }
122
123 /// Opens a camera device for video capture.
124 ///

Callers 2

main_bodyFunction · 0.45
dump_capabilitiesFunction · 0.45

Calls 1

list_devicesFunction · 0.70

Tested by

no test coverage detected