59 jevois.LINFO(
"Input image is {} {}x{}".format(
jevois.fccstr(inimg.fmt), inimg.width, inimg.height))
62 outimg = outframe.get()
64 jevois.LINFO(
"Output image is {} {}x{}".format(
jevois.fccstr(outimg.fmt), outimg.width, outimg.height))
67 jevois.paste(inimg, outimg, 0, 0)
73 jevois.hFlipYUYV(outimg)
77 jevois.writeText(outimg,
"Hi from Python!", 20, 20, jevois.YUYV.White, jevois.Font.Font10x20)
79 jevois.drawCircle(outimg, self.
cx.get(), self.
cy.get(), self.
radius.get(), 2, jevois.YUYV.White)
86 if self.
frame % 100 == 0:
87 jevois.sendSerial(
"DONE frame {}".format(self.
frame));
94 idle, winw, winh = helper.startFrame()
97 x, y, w, h = helper.drawInputFrame(
"c", inframe,
False,
False)
106 helper.drawCircle(self.
cx.get(), self.
cy.get(), self.
radius.get(), 0xffffffff,
True)
109 fps = self.
timer.stop()
110 helper.iinfo(inframe, fps, winw, winh);