最終更新:2020-06-04 (木) 14:23:05 (1394d)
face_utils.rect_to_bb
Top / face_utils.rect_to_bb
メモ
# convert dlib's rectangle to a OpenCV-style bounding box # [i.e., (x, y, w, h)], then draw the face bounding box (x, y, w, h) = face_utils.rect_to_bb(rect) cv2.rectangle(image, (x, y), (x + w, y + h), (0, 255, 0), 2)