1 import libjevois
as jevois
28 jevois.LINFO(
"PythonTest Constructor")
29 jevois.LINFO(dir(jevois))
35 jevois.LFATAL(
"process no usb not implemented")
40 jevois.LINFO(
"process with usb")
44 jevois.LINFO(
"Input image is {} {}x{}".format(
jevois.fccstr(inimg.fmt), inimg.width, inimg.height))
47 outimg = outframe.get()
48 jevois.LINFO(
"Output image is {} {}x{}".format(
jevois.fccstr(outimg.fmt), outimg.width, outimg.height))
51 jevois.paste(inimg, outimg, 0, 0)
57 jevois.hFlipYUYV(outimg)
60 jevois.drawCircle(outimg, int(outimg.width/2), int(outimg.height/2), int(outimg.height/2.2), 2, 0x80ff)
61 jevois.writeText(outimg,
"Hi from Python!", 20, 20, 0x80ff, jevois.Font.Font10x20)
68 jevois.sendSerial(
"DONE frame {}".format(self.
frame));
74 jevois.LINFO(
"parseserial received command [{}]".format(str))
77 return "ERR Unsupported command"
83 return "hello - print hello using python"
88 return "Hello from python!"