# Shape and color detaction

**URL:** <https://forums.openmv.io/t/shape-and-color-detaction/7082>\
**Category:** OpenMV Boards\
**Created:** [April 30, 2022, 5:56pm UTC](https://forums.openmv.io/t/shape-and-color-detaction/7082 "2022-04-30T17:56:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sobhan](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@sobhan](https://forums.openmv.io/u/sobhan)\
**Post date:** [April 30, 2022, 5:56pm UTC](https://forums.openmv.io/t/shape-and-color-detaction/7082/1 "2022-04-30T17:56:21Z")

</div>

Hi, How can I detect a black rectangle in an image that also has a black circle?

---

<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:** [May 1, 2022, 2:21am UTC](https://forums.openmv.io/t/shape-and-color-detaction/7082/2 "2022-05-01T02:21:03Z")

</div>

Are they on top of each other?

---

<div class="post-metadata">

**Author:** ![sobhan](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@sobhan](https://forums.openmv.io/u/sobhan)\
**Post date:** [May 1, 2022, 4:22am UTC](https://forums.openmv.io/t/shape-and-color-detaction/7082/4 "2022-05-01T04:22:04Z")

</div>

Not quite, we have to find a black rectangle on a white field, there are a few black and silver balls on that white field that we have nothing to do with black balls

---

<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:** [May 1, 2022, 7:21pm UTC](https://forums.openmv.io/t/shape-and-color-detaction/7082/5 "2022-05-01T19:21:55Z")

</div>

You can use color tracking to do this. Please try out the feature.

---

<div class="post-metadata">

**Author:** ![sobhan](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@sobhan](https://forums.openmv.io/u/sobhan)\
**Post date:** [May 2, 2022, 5:35am UTC](https://forums.openmv.io/t/shape-and-color-detaction/7082/6 "2022-05-02T05:35:18Z")

</div>

but How we can filter the object by their shape after finding them with color tracking?

---

<div class="post-metadata">

**Author:** ![oramafanis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/oramafanis/32/1783_2.png) [@oramafanis](https://forums.openmv.io/u/oramafanis)\
**Post date:** [May 2, 2022, 11:16am UTC](https://forums.openmv.io/t/shape-and-color-detaction/7082/7 "2022-05-02T11:16:52Z")

</div>

Please read the docs about blob library… you can do this really easy with `blob.` `roundness` ()
