Skip to content

"Bad Argument" problem with "OpenCVAnimOperator". #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ghost opened this issue Sep 25, 2021 · 1 comment
Open

"Bad Argument" problem with "OpenCVAnimOperator". #10

ghost opened this issue Sep 25, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 25, 2021

The error I get is as follows:
Python: Traceback (most recent call last):
File "E:\12 - PROYECTOS BLENDER\Profesor\Profesor02.blend\OpenCVAnimOperator.py", line 196, in modal
cv2.error: OpenCV(4.5.3) 👎 error: (-5:Bad argument) in function 'circle'

Overload resolution failed:

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

location: :-1

I have done everything that needed to be done, following a video on Youtube. And I keep getting this error

@joeVenner
Copy link
Owner

Hi Chema,

The aboce error is coming from providing to the CV2 circle function a non int data type as it accepts only int data type.

Try to look for this function in the line 198 and make sure its int(x) & int(y) same as the below :

cv2.circle(image, (int(x), int(y)), 2, (0, 255, 255), -1)

or just clone the last update from the github repo.

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant