40 inimg = inframe.getCvBGR()
46 msgbox = np.zeros((40, inimg.shape[1], 3), dtype = np.uint8) + 80
54 cv2.rectangle(inimg, (d.rect.left, d.rect.top), (d.rect.left+d.rect.width-1, d.rect.top+d.rect.height-1),
56 cv2.putText(msgbox, d.data.decode(
"utf-8"), (3, y), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (255,255,255))
60 outimg = np.vstack((inimg, msgbox))
63 cv2.putText(outimg,
"JeVois Python DataMatrix", (3, 20), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (255,255,255))
66 fps = self.
timer.stop()
67 cv2.putText(outimg, fps, (3, inimg.shape[0] - 6), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (255,255,255))
70 outframe.sendCv(outimg)