I try to analysesome areas of the image but i am not sure if i do it well because my results are not what i expected.
For exemple, i created a bmp image, as i did it for masking, with the background at value 0x00 and an area in the middle with 0xFF value.
I tried to do an AND boolean operation with this image in this python code :
Code: Select all
import sensor, image sensor.reset() sensor.set_pixformat(sensor.GRAYSCALE) sensor.set_framesize(sensor.VGA) sensor.set_windowing((170,65,330,171)) sensor.skip_frames(time=1000) while(True): sensor.snapshot().b_and("OK.bmp")
What do i missed please ?
ps: i can attached the bmp image due to invalid extension file...