I’ve recently recived the OpenVm7 and I’m playing with it.
I just want perform some logical operation on two image but I got and syntax error when i try to perform the and operation :
# Untitled - By: HomeLenovo - ven giu 2 2017
import sensor
import image
import pyb
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.skip_frames()
while(True):
img = sensor.snapshot()
pyb.delay(500)
img2 = sensor.snapshot()
img3 = img.and(img2)
Where is the problem ?