MCPcopy Create free account
hub / github.com/SpectacularAI/sdk / createDevice

Function createDevice

python/cli/record/oak.py:252–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250 deviceInfo = None
251 if args.mxid: deviceInfo = depthai.DeviceInfo(args.mxid)
252 def createDevice():
253 if deviceInfo:
254 return depthai.Device(pipeline, deviceInfo=deviceInfo, maxUsbSpeed=depthai.UsbSpeed.SUPER_PLUS)
255 return depthai.Device(pipeline)
256
257 with createDevice() as device, vio_pipeline.startSession(device) as vio_session:
258

Callers 1

main_loopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected