mirror of
https://github.com/serengil/deepface.git
synced 2025-06-08 20:45:22 +00:00
Merge pull request #1040 from DriesVerachtert/fix_typing_documentation
Correct info about returned types for the extract_faces method
This commit is contained in:
commit
3ebcc82c17
@ -458,7 +458,9 @@ def extract_faces(
|
|||||||
|
|
||||||
- "face" (np.ndarray): The detected face as a NumPy array.
|
- "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.
|
- "confidence" (float): The confidence score associated with the detected face.
|
||||||
"""
|
"""
|
||||||
|
@ -66,7 +66,9 @@ def extract_faces(
|
|||||||
|
|
||||||
- "face" (np.ndarray): The detected face as a NumPy array.
|
- "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.
|
- "confidence" (float): The confidence score associated with the detected face.
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user