# number of white pixels

**URL:** <https://forums.openmv.io/t/number-of-white-pixels/1110>\
**Category:** OpenMV Boards\
**Created:** [January 25, 2019, 6:28pm UTC](https://forums.openmv.io/t/number-of-white-pixels/1110 "2019-01-25T18:28:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pso](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@pso](https://forums.openmv.io/u/pso)\
**Post date:** [January 25, 2019, 6:28pm UTC](https://forums.openmv.io/t/number-of-white-pixels/1110/1 "2019-01-25T18:28:17Z")

</div>

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  
 ![H1.jpg](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/1X/f7649542ae847db114e7b8a773ceac4e4d105a75.jpeg)

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [January 26, 2019, 4:30am UTC](https://forums.openmv.io/t/number-of-white-pixels/1110/2 "2019-01-26T04:30:12Z")

</div>

blob.pixels()

There’s a pixels method for the blob object that returns the number.
