Correct info about returned types for extract_faces

This commit is contained in:
Dries Verachtert 2024-02-25 10:21:26 +01:00
parent 5c420c53bb
commit 7e14fc875d
2 changed files with 6 additions and 2 deletions

View File

@ -458,7 +458,9 @@ def extract_faces(
- "face" (np.ndarray): The detected face as a NumPy array.
- "facial_area" (List[float]): The detected face's regions represented as a list of floats.
- "facial_area" (Dict[str, Any]): The detected face's regions as a dictionary containing:
- keys 'x', 'y', 'w', 'h' with int values
- keys 'left_eye', 'right_eye' with a tuple of 2 ints as values
- "confidence" (float): The confidence score associated with the detected face.
"""

View File

@ -66,7 +66,9 @@ def extract_faces(
- "face" (np.ndarray): The detected face as a NumPy array.
- "facial_area" (List[float]): The detected face's regions represented as a list of floats.
- "facial_area" (Dict[str, Any]): The detected face's regions as a dictionary containing:
- keys 'x', 'y', 'w', 'h' with int values
- keys 'left_eye', 'right_eye' with a tuple of 2 ints as values
- "confidence" (float): The confidence score associated with the detected face.
"""