number of white pixels

General discussion about topics related to OpenMV.
pso
Posts: 6
Joined: Fri Sep 22, 2017 11:13 am

number of white pixels

Postby pso » Fri Jan 25, 2019 1:28 pm

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
Attachments
H1.jpg
H1.jpg (2.35 KiB) Viewed 126 times
User avatar
kwagyeman
Posts: 2798
Joined: Sun May 24, 2015 2:10 pm

Re: number of white pixels

Postby kwagyeman » Fri Jan 25, 2019 11:30 pm

blob.pixels()

There's a pixels method for the blob object that returns the number.
Nyamekye,

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 2 guests