Hi,
When I use find_qrcodes to find qrcodes, call draw_rectangle on the LCD screen to draw a rectangle on the LCD screen.
But when running for some time after the OpenMV long green light and then crash. Why is this so?
Will the next version of the firmware update OCR?
I have posted my code with two wrong places, including the one I just described.
Please help.
Thanks
import sensor, image, time, lcd
sensor.reset()
sensor.set_pixformat(sensor.GRAYSCALE)
sensor.set_framesize(sensor.VGA)
sensor.set_windowing((320, 240))
sensor.skip_frames(30)
sensor.set_auto_gain(True)
sensor.set_auto_exposure(True)
sensor.set_auto_whitebal(True)
clock = time.clock()
lcd.init(type = 2)
lcd.set_backlight(1)
lcd.clear()
while(True):
clock.tick()
img = sensor.snapshot()
codes = img.find_qrcodes()
if codes:
for code in codes:
# Green crash
#img.draw_rectangle(code.rect())
print(code)
print(clock.fps())
# Cant convert to type
#lcd.display(img)