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

Method from_orbbec

python/scripts/camera/base.py:36–44  ·  view source on GitHub ↗
(cls, intrinsics: Any)

Source from the content-addressed store, hash-verified

34
35 @classmethod
36 def from_orbbec(cls, intrinsics: Any) -> "CameraIntrinsics":
37 return cls(
38 width=int(intrinsics.width),
39 height=int(intrinsics.height),
40 fx=float(intrinsics.fx),
41 fy=float(intrinsics.fy),
42 ppx=float(intrinsics.cx),
43 ppy=float(intrinsics.cy),
44 )
45
46
47@dataclass(frozen=True)

Callers 1

startMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected