OpenCV - problem with cv2.line() method

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?


  • 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 article.
  • do you want tutorials? visit

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?