image areas analyse

Discussion related to "under the hood" OpenMV topics.
User avatar
chrisPyres66
Posts: 138
Joined: Mon Jul 16, 2018 9:22 am
Location: France

image areas analyse

Postby chrisPyres66 » Thu Jun 06, 2019 12:12 pm

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 :

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")
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...
User avatar
iabdalkader
Posts: 1088
Joined: Sun May 24, 2015 3:53 pm

Re: image areas analyse

Postby iabdalkader » Thu Jun 06, 2019 12:58 pm

Hi, use pgm for now there seems to be a bug in bmp code.
User avatar
iabdalkader
Posts: 1088
Joined: Sun May 24, 2015 3:53 pm

Re: image areas analyse

Postby iabdalkader » Sun Sep 08, 2019 8:03 pm

Hi, this bug has been fixed.

Return to “Technical Discussion”

Who is online

Users browsing this forum: MSN [Bot] and 6 guests