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

Function _selector

python/scripts/camera/__init__.py:51–60  ·  view source on GitHub ↗
(args: argparse.Namespace, backend: str)

Source from the content-addressed store, hash-verified

49
50
51def _selector(args: argparse.Namespace, backend: str) -> str | None:
52 if args.serial:
53 return args.serial
54 if args.usb_id:
55 return args.usb_id
56 if backend == "realsense":
57 return args.realsense
58 if backend == "orbbec":
59 return args.orbbec
60 return None
61
62
63def create_camera(args: argparse.Namespace) -> RgbdCamera:

Callers 1

create_cameraFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected