Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions OpenCVAnimOperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ def modal(self, context, event):

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

# draw detected face
for (x,y,w,h) in faces:
cv2.rectangle(image,(x,y),(x+w,y+h),(255,0,0),1)
cv2.rectangle(image,(x, y),(x+w,y+h),(255,0,0),1)

# Show camera image in a window
cv2.imshow("Output", image)
Expand Down