PointCloudData
PointCloudData
PointCloudData 封装了 3D 空间信息,代表了 3D 空间中的一组点。点云中的每个点都有自己的位置(X、Y、Z 坐标)。PointCloudData 用于表示 PointCloud 节点的输出,并可用于执行各种空间分析和重建任务。Setter 方法仅用于向 PointCloudData 消息提供元数据(将用于录制和回放点云)。Reference
PointCloudData 的详细 API 提供了对 3D 点云数据的生成、操作和检索的控制。Python
class
depthai.PointCloudData(depthai.Buffer)
method
method
getHeight(self) -> int: intRetrieves the height in pixels - in case of a sparse point cloud, this represents the hight of the frame which was used to generate the point cloud
method
getInstanceNum(self) -> int: intRetrieves instance number
method
getMaxX(self) -> float: floatRetrieves maximal x coordinate in depth units (millimeter by default)
method
getMaxY(self) -> float: floatRetrieves maximal y coordinate in depth units (millimeter by default)
method
getMaxZ(self) -> float: floatRetrieves maximal z coordinate in depth units (millimeter by default)
method
getMinX(self) -> float: floatRetrieves minimal x coordinate in depth units (millimeter by default)
method
getMinY(self) -> float: floatRetrieves minimal y coordinate in depth units (millimeter by default)
method
getMinZ(self) -> float: floatRetrieves minimal z coordinate in depth units (millimeter by default)
method
method
getSequenceNum(self) -> int: intRetrieves sequence number
method
getTimestamp(self) -> datetime.timedelta: datetime.timedeltaRetrieves timestamp related to dai::Clock::now()
method
getTimestampDevice(self) -> datetime.timedelta: datetime.timedeltaRetrieves timestamp directly captured from device's monotonic clock, not synchronized to host time. Used mostly for debugging
method
getWidth(self) -> int: intRetrieves the height in pixels - in case of a sparse point cloud, this represents the hight of the frame which was used to generate the point cloud
method
isSparse(self) -> bool: boolRetrieves whether point cloud is sparse
method
setHeight(self, arg0: typing.SupportsInt) -> PointCloudData: PointCloudDataSpecifies frame height Parameter ``height``: frame height
method
setInstanceNum(self, arg0: typing.SupportsInt) -> PointCloudData: PointCloudDataInstance number relates to the origin of the frame (which camera) Parameter ``instance``: Instance number
method
setMaxX(self, arg0: typing.SupportsFloat) -> PointCloudData: PointCloudDataSpecifies maximal x coordinate in depth units (millimeter by default) Parameter ``val``: maximal x coordinate in depth units (millimeter by default)
method
setMaxY(self, arg0: typing.SupportsFloat) -> PointCloudData: PointCloudDataSpecifies maximal y coordinate in depth units (millimeter by default) Parameter ``val``: maximal y coordinate in depth units (millimeter by default)
method
setMaxZ(self, arg0: typing.SupportsFloat) -> PointCloudData: PointCloudDataSpecifies maximal z coordinate in depth units (millimeter by default) Parameter ``val``: maximal z coordinate in depth units (millimeter by default)
method
setMinX(self, arg0: typing.SupportsFloat) -> PointCloudData: PointCloudDataSpecifies minimal x coordinate in depth units (millimeter by default) Parameter ``val``: minimal x coordinate in depth units (millimeter by default)
method
setMinY(self, arg0: typing.SupportsFloat) -> PointCloudData: PointCloudDataSpecifies minimal y coordinate in depth units (millimeter by default) Parameter ``val``: minimal y coordinate in depth units (millimeter by default)
method
setMinZ(self, arg0: typing.SupportsFloat) -> PointCloudData: PointCloudDataSpecifies minimal z coordinate in depth units (millimeter by default) Parameter ``val``: minimal z coordinate in depth units (millimeter by default)
method
setSequenceNum(self, arg0: typing.SupportsInt) -> PointCloudData: PointCloudDataSpecifies sequence number Parameter ``seq``: Sequence number
method
method
setTimestamp(self, arg0: datetime.timedelta) -> PointCloudData: PointCloudDataRetrieves image timestamp related to dai::Clock::now()
method
setTimestampDevice(self, arg0: datetime.timedelta) -> PointCloudData: PointCloudDataSets image timestamp related to dai::Clock::now()
method
setWidth(self, arg0: typing.SupportsInt) -> PointCloudData: PointCloudDataSpecifies frame width Parameter ``width``: frame width
property
method
需要帮助?
请前往 Discussion Forum 获取技术支持或提出您可能有的任何其他问题。