# Question  for threshold in document

**URL:** https://forums.openmv.io/t/question-for-threshold-in-document/205
**Category:** OpenMV Boards
**Created:** [February 20, 2017, 9:25am UTC](https://forums.openmv.io/t/question-for-threshold-in-document/205 "2017-02-20T09:25:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dionysus1234](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@dionysus1234](https://forums.openmv.io/u/dionysus1234)
#### Post date: [February 20, 2017, 9:25am UTC](https://forums.openmv.io/t/question-for-threshold-in-document/205/1 "2017-02-20T09:25:28Z")

</div>

I read a piece of writing in the document of "image.find\_blobs"function:"_thresholds must be a list of tuples [(lo, hi), (lo, hi), …, (lo, hi)] defining the ranges of color you want to track. You may pass up to 16 threshold tuples in one image.find\_blobs call._ ",here “16” is an error? i am confused!

---

<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: [February 20, 2017, 4:59pm UTC](https://forums.openmv.io/t/question-for-threshold-in-document/205/2 "2017-02-20T16:59:12Z")

</div>

Each threshold tuple is 6 values for RGB565 and 2 values for GRAYSCALE. You can then have a list of up to 16 thresholds to segment the image by. Find blobs will then return a list of blobs which includes blobs from all passed thresholds.

E.g.

threshold0 = [125, 125, 125, 125, 125, 125]  
threshold1 = [130, 130, 130, 130, 130, 130]  
…  
threshold15 = [230, 230, 230, 230, 230, 230]

list\_of\_thresholds = [threshold0, threshold1, …, threshold15]

find\_blobs(list\_of\_thresholds)

---

<div class="post-metadata">

### Author: ![dionysus1234](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@dionysus1234](https://forums.openmv.io/u/dionysus1234)
#### Post date: [February 21, 2017, 12:43am UTC](https://forums.openmv.io/t/question-for-threshold-in-document/205/3 "2017-02-21T00:43:04Z")

</div>

Thanks! Gotcha that!  
I notice that there is a new function “image.finc\_blobs”,but i can’t find any definition information in the doc,could you please tell me the prototype of this function?  
Thanks again!

Dionysus

---

<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: [February 21, 2017, 2:21am UTC](https://forums.openmv.io/t/question-for-threshold-in-document/205/4 "2017-02-21T02:21:21Z")

</div>

That would be an error. There’s only a find\_blobs function. Where’s that error?

---

<div class="post-metadata">

### Author: ![dionysus1234](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@dionysus1234](https://forums.openmv.io/u/dionysus1234)
#### Post date: [February 21, 2017, 2:37am UTC](https://forums.openmv.io/t/question-for-threshold-in-document/205/5 "2017-02-21T02:37:20Z")

</div>

Thanks for your reply  
I found this error at [image — machine vision — MicroPython 1.15 documentation](http://docs.openmv.io/library/omv.image.html#id3)!
