Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Yes I understand I did as shown in your code but still have a new error : error (-215) scn == 3 ||scn==4 in function cv: cvtColor Commented May 16, 2018 at 9:49
  • @Jack I've updated the answer. the problem happens when you call the get_circle function for second time. you should convert your image to GBR. Commented May 16, 2018 at 10:07
  • Still the same error. I don't get it. Could you paste your entire code so I can try it ? Thanks Commented May 16, 2018 at 10:55