ImgDetections¶
Both YoloDetectionNetwork and MobileNetDetectionNetwork output this message. This message contains a list of detections
,
which contains label
, confidence
, and the bounding box information (xmin
, ymin
, xmax
, ymax
).
Examples of functionality¶
Reference¶
-
class
depthai.
ImgDetections
-
getData
(self: object) → numpy.ndarray[numpy.uint8]
-
getRaw
(self: depthai.ADatatype) → depthai.RawBuffer
-
getSequenceNum
(self: depthai.ImgDetections) → int
-
getTimestamp
(self: depthai.ImgDetections) → datetime.timedelta
-
getTimestampDevice
(self: depthai.ImgDetections) → 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.ImgDetections, arg0: int) → depthai.ImgDetections
-
setTimestamp
(self: depthai.ImgDetections, arg0: datetime.timedelta) → depthai.ImgDetections
-
setTimestampDevice
(self: depthai.ImgDetections, arg0: datetime.timedelta) → depthai.ImgDetections
-
-
class
dai
::
ImgDetections
: public dai::Buffer¶ ImgDetections message. Carries normalized detection results
Public Functions
-
ImgDetections
()¶ Construct ImgDetections message.
-
~ImgDetections
() = default¶
-
ImgDetections &
setTimestamp
(std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration> timestamp)¶ Sets image timestamp related to dai::Clock::now()
-
ImgDetections &
setTimestampDevice
(std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration> timestamp)¶ Sets image timestamp related to dai::Clock::now()
-
ImgDetections &
setSequenceNum
(int64_t sequenceNum)¶ Retrieves image sequence number
Public Members
-
std::vector<ImgDetection> &
detections
¶ Detections.
Private Members
-
RawImgDetections &
dets
¶
-