Skip to content

Commit 1803133

Browse files
authored
Update OpenCVAnimOperator.py
fixing error: (-5:Bad argument) in function 'circle'
1 parent ce4b780 commit 1803133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenCVAnimOperator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def modal(self, context, event):
195195

196196
# draw face markers
197197
for (x, y) in shape:
198-
cv2.circle(image, (x, y), 2, (0, 255, 255), -1)
198+
cv2.circle(image, (int(x), int(y)), 2, (0, 255, 255), -1)
199199

200200
# draw detected face
201201
for (x,y,w,h) in faces:

0 commit comments

Comments
 (0)