jkirsons / FacialMotionCapture_v2

133 stars 57 forks source link

Overload resolution failed #4

Open veyaar opened 3 years ago

veyaar commented 3 years ago

Please help me with this

cd "C:\Program Files\Blender Foundation\Blender 2.83\2.83\python\bin"

Traceback (most recent call last): File "C:\Users\Admin\Downloads\Vincent (3).blend\OpenCVAnimOperator.py", line 196, in modal cv2.error: OpenCV(4.5.2) 👎 error: (-5:Bad argument) in function 'circle'

Screenshot 2021-05-14 173727:

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

khlorghaal commented 3 years ago

seems like L42 fm is in a bad state, try checking that the model is loaded properly

barckley75 commented 3 years ago

Please help me with this

cd "C:\Program Files\Blender Foundation\Blender 2.83\2.83\python\bin"

Traceback (most recent call last): File "C:\Users\Admin\Downloads\Vincent (3).blend\OpenCVAnimOperator.py", line 196, in modal cv2.error: OpenCV(4.5.2) 👎 error: (-5:Bad argument) in function 'circle'

Screenshot 2021-05-14 173727:

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 the same error. Did you find a solution?

barckley75 commented 3 years ago

For sure it is not the right way to fix the problem, however this is a working away around the problem:

Change this line

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

with this line

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

Basically, x and y are floats and for some problem that I didn't understand, floats number stops the program using cv2.circle(). Making them integer fix the problem.

krma0n3 commented 3 years ago

thank you, worked for me

alirezaAI commented 3 years ago

For sure it is not the right way to fix the problem, however this is a working away around the problem:

Change this line

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

with this line

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

Basically, x and y are floats and for some problem that I didn't understand, floats number stops the program using cv2.circle(). Making them integer fix the problem.

thank you very much it worked for me as well! :)

NEnhbileg commented 2 years ago

omg thank u so much