return correction
This commit is contained in:
parent
58d2f6f83c
commit
d28b8dbec4
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
|
||||||
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