Open sheikhartin opened 2 years ago
It's a late response, but maybe can help future readers. This is due to OpenCV version. With OpenCV > 4.X.X coordinate argument for function cv.rectangle must be tuple of integer. So in utils.py enclose them in int(). For example in line 115 it becomes:
c1, c2 = (int(box[0]), int(box[1])), (int(box[2]), int(box[3]))
# draw bounding box
cv2.rectangle(img, c1, c2, color, thickness=tl)
I wanted to try FaceLib with the emotion detector from my webcam, but I got an error after a few seconds when a frame opens!
Code (from the README file):
Error message: