SpatialImgDetections¶
Similar to ImgDetections, but this message includes XYZ coordinates of the detected objects as well.
Both YoloSpatialDetectionNetwork and MobileNetSpatialDetectionNetwork output this message.
Examples of functionality¶
Reference¶
-
class
depthai.
SpatialImgDetections
-
getData
(self: object) → numpy.ndarray[numpy.uint8]
-
getRaw
(self: depthai.ADatatype) → depthai.RawBuffer
-
getSequenceNum
(self: depthai.SpatialImgDetections) → int
-
getTimestamp
(self: depthai.SpatialImgDetections) → datetime.timedelta
-
getTimestampDevice
(self: depthai.SpatialImgDetections) → datetime.timedelta
-
setData
(*args, **kwargs) Overloaded function.
setData(self: depthai.Buffer, arg0: list[int]) -> None
setData(self: depthai.Buffer, arg0: numpy.ndarray[numpy.uint8]) -> None
-
setSequenceNum
(self: depthai.SpatialImgDetections, arg0: int) → depthai.SpatialImgDetections
-
setTimestamp
(self: depthai.SpatialImgDetections, arg0: datetime.timedelta) → depthai.SpatialImgDetections
-
setTimestampDevice
(self: depthai.SpatialImgDetections, arg0: datetime.timedelta) → depthai.SpatialImgDetections
-
-
class
dai
::
SpatialImgDetections
: public dai::Buffer¶ SpatialImgDetections message. Carries detection results together with spatial location data
Public Functions
-
SpatialImgDetections
()¶ Construct SpatialImgDetections message.
-
~SpatialImgDetections
() = default¶
-
SpatialImgDetections &
setTimestamp
(std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration> timestamp)¶ Sets image timestamp related to dai::Clock::now()
-
SpatialImgDetections &
setTimestampDevice
(std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration> timestamp)¶ Sets image timestamp related to dai::Clock::now()
-
SpatialImgDetections &
setSequenceNum
(int64_t sequenceNum)¶ Retrieves image sequence number
Public Members
-
std::vector<SpatialImgDetection> &
detections
¶ Detection results.
Private Members
-
RawSpatialImgDetections &
dets
¶
-