2 if pyjevois.pro:
import libjevoispro
as jevois
3 else:
import libjevois
as jevois
7 from lpd_yunet
import LPD_YuNet
44 self.
modelname =
"license_plate_detection_lpd_yunet_2022may-int8-quantized.onnx"
51 backendId = cv2.dnn.DNN_BACKEND_TIMVX,
52 targetId = cv2.dnn.DNN_TARGET_NPU)
65 idle, winw, winh = helper.startFrame()
68 dx, dy, dw, dh = helper.drawInputFrame(
"c", inframe,
False,
False)
69 helper.itext(
'JeVois-Pro License Plate Detection', 0, -1)
72 frame = inframe.getCvBGRp()
79 if self.
w != w
or self.
h != h:
80 self.
model.setInputSize([w, h])
85 dets = self.
model.infer(frame)
90 x1, y1, x2, y2, x3, y3, x4, y4 = bbox
99 fps = self.
timer.stop()
100 helper.iinfo(inframe, fps, winw, winh);
101 helper.itext(
"JeVois-Pro - " + self.
modelname, 0, -1)