MCPcopy Create free account
hub / github.com/Ar-Ray-code/lingbot-depth-trt / list_devices

Function list_devices

python/scripts/camera/orbbec.py:60–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59
60def list_devices() -> list[DeviceInfo]:
61 ob = _ob()
62 ctx = ob.Context()
63 device_list = ctx.query_devices()
64 count = device_list.get_count() if hasattr(device_list, "get_count") else len(device_list)
65 return [_device_info(device_list.get_device_by_index(i), i) for i in range(count)]
66
67
68def _matching_devices(selector: str | None) -> list[DeviceInfo]:

Callers 1

_matching_devicesFunction · 0.70

Calls 2

_obFunction · 0.85
_device_infoFunction · 0.70

Tested by

no test coverage detected