Search found 6 matches

by pso
Fri Jan 25, 2019 1:28 pm
Forum: General Topics
Topic: number of white pixels
Replies: 1
Views: 2289

number of white pixels

Hi,

I have a binary image and I would like to know the number of white pixel in a blob.

What is a quickly method ?

Thank you
by pso
Tue Jan 15, 2019 2:55 am
Forum: Technical Discussion
Topic: How can I find minimum area rectangle in binary image?
Replies: 21
Views: 11298

Re: How can I find minimum area rectangle in binary image?

Yes it seems to be the last firmware : 3.2.0.
by pso
Mon Jan 14, 2019 8:11 am
Forum: Technical Discussion
Topic: How can I find minimum area rectangle in binary image?
Replies: 21
Views: 11298

Re: How can I find minimum area rectangle in binary image?

At the 1st draw.line, I can see this error message :

attribute errors : 'blob' object has no attribute 'corners'
by pso
Mon Jan 14, 2019 7:08 am
Forum: Technical Discussion
Topic: How can I find minimum area rectangle in binary image?
Replies: 21
Views: 11298

Re: How can I find minimum area rectangle in binary image?

Hi,

I would like to use this function with sensor.set_pixformat(sensor.GRAYSCALE)

Have you a solution ?

thank you
by pso
Thu Jan 10, 2019 1:06 pm
Forum: General Topics
Topic: store an image on sd card
Replies: 1
Views: 1926

store an image on sd card

Hi,

I would like to store a .jpeg image on sdcard using img.save.

img.save(path,roi,50)

Which is the syntax of path ?

Thk you
by pso
Fri Sep 22, 2017 11:32 am
Forum: Project Discussion
Topic: change in value of pixel after binarization
Replies: 1
Views: 1628

change in value of pixel after binarization

Hi, I have binarized an image. And now, I would like to know the number of pixel per line value change. Is there existing a function to do it ? For example : 1 line of my image is : (0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255,255,255) There are 3 changes I hope to be understandable ...

Go to advanced search