image areas analyse

Dear all,

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 :

import sensor, image

but the result is not an sensor image with only the desired area but an Black and white dotted image …
What do i missed please ?

ps: i can attached the bmp image due to invalid extension file…

Hi, use pgm for now there seems to be a bug in bmp code.

Hi, this bug has been fixed.