crop_face #1
2
main.py
2
main.py
@ -19,7 +19,7 @@ def find_and_crop_face(data: np.ndarray) -> np.ndarray:
|
|||||||
face = max(face, key=len)
|
face = max(face, key=len)
|
||||||
(x, y, w, h) = face
|
(x, y, w, h) = face
|
||||||
s444409 marked this conversation as resolved
|
|||||||
face = data[y:y + h, x:x + w]
|
face = data[y:y + h, x:x + w]
|
||||||
return data
|
return face
|
||||||
|
|
||||||
|
|
||||||
def compare_with_anime_characters(data: np.ndarray) -> int:
|
def compare_with_anime_characters(data: np.ndarray) -> int:
|
||||||
|
Loading…
Reference in New Issue
Block a user
x, y, w, h = face