# OpenCV - problem with cv2.line() method

**URL:** <https://forum.opencv.org/t/opencv-problem-with-cv2-line-method/10639>\
**Category:** Python\
**Tags:** programming\
**Created:** [October 22, 2022, 2:46pm UTC](https://forum.opencv.org/t/opencv-problem-with-cv2-line-method/10639 "2022-10-22T14:46:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wits992](https://avatars.discourse-cdn.com/v4/letter/w/3da27b/32.png) [@wits992](https://forum.opencv.org/u/wits992)\
**Post date:** [October 22, 2022, 2:46pm UTC](https://forum.opencv.org/t/opencv-problem-with-cv2-line-method/10639/1 "2022-10-22T14:46:06Z")

</div>

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

Hello! I’m working in OpenCV on ESP32 CAM and I’m trying to draw a line between the circle and the contours of a random object that will be identified on the camera. When I was running the code, I saw this error. Could you help me?

---

<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:** [October 22, 2022, 6:43pm UTC](https://forum.opencv.org/t/opencv-problem-with-cv2-line-method/10639/2 "2022-10-22T18:43:35Z")

</div>

welcome.

- please replace the screenshot with the text it contains. screenshots are not debuggable and also not searchable.
- we don’t support ESP32 here. if your problem doesn’t depend on it, strip that part. please review the [MRE](https://stackoverflow.com/help/minimal-reproducible-example) article.
- do you want tutorials? visit [https://docs.opencv.org/](https://docs.opencv.org/)

what are your thoughts on that error message? what is it trying to tell you?

in what ways did you debug your code?

do you think you’re giving the `line()` the correct arguments? do you think `line()` can draw an entire contour?
