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')
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
93 helper.drawLine(float(x1), float(y1), float(x2), float(y2), 0xff0000ff)
94 helper.drawLine(float(x2), float(y2), float(x3), float(y3), 0xff0000ff)
95 helper.drawLine(float(x3), float(y3), float(x4), float(y4), 0xff0000ff)
96 helper.drawLine(float(x4), float(y4), float(x1), float(y1), 0xff0000ff)
99 fps = self.
timer.stop()
100 helper.iinfo(inframe, fps, winw, winh);
101 helper.itext(
"JeVois-Pro - " + self.
modelname)