Can't parse 'center'. Sequence item with index 0 has a wrong type

  • Python
  • OpenCV

You may see

Can't parse 'center'. Sequence item with index 0 has a wrong type
error: (-5:Bad argument) in function 'circle'
Overload resolution failed:

Why it happens

  • A drawing point has decimals.

How to fix it

  1. Use int(x), int(y).
  2. Use // instead of / for halves.

It worked if: The circle is drawn.

Seen in a real run (some lines are close variants of it). Produced with Python 3.13 and OpenCV 5.1 on Windows.

Didn't help? Search another error or ask us.