# TypeError: contours is not a numpy array, neither a scalar

**URL:** <https://forum.opencv.org/t/typeerror-contours-is-not-a-numpy-array-neither-a-scalar/3069>\
**Category:** Python\
**Created:** [April 30, 2021, 3:23pm UTC](https://forum.opencv.org/t/typeerror-contours-is-not-a-numpy-array-neither-a-scalar/3069 "2021-04-30T15:23:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![banuteja029](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@banuteja029](https://forum.opencv.org/u/banuteja029)\
**Post date:** [April 30, 2021, 3:23pm UTC](https://forum.opencv.org/t/typeerror-contours-is-not-a-numpy-array-neither-a-scalar/3069/1 "2021-04-30T15:23:50Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/opencv/original/2X/1/1c59a03354b04b6938f13f81bc5ce210596d2e1e.png)

how to resolve this error please help me  
thank you

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [April 30, 2021, 3:32pm UTC](https://forum.opencv.org/t/typeerror-contours-is-not-a-numpy-array-neither-a-scalar/3069/2 "2021-04-30T15:32:43Z")

</div>

please kindly replace the screenshot with TEXT, so ppl can try your code, it can be indexed, etc, thank you.

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [April 30, 2021, 5:49pm UTC](https://forum.opencv.org/t/typeerror-contours-is-not-a-numpy-array-neither-a-scalar/3069/3 "2021-04-30T17:49:10Z")

</div>

use the OpenCV docs and look up the call signature of the python variant of `findContours`

```auto
print(contours)
print(type(contours))

```
