Hi DannyCheng ,
Quick snippet:
from time import monotonic
import depthai as dai
det1 = dai.ImgDetection()
det1.label = 1
det1.xmin = 0.1
det1.xmax = 0.3
det1.ymin = 0.2
det1.ymax = 0.4
dets = dai.ImgDetections()
dets.setSequenceNum(1) # 2, 3..
dets.setTimestamp(monotonic())
dets.detections = [det1]
You can then send the dets
ImgDetections message to the OAK device via XLinkIn. I hope this helps!
Thanks, Erik