Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pretty return type for detect faces #978

Merged
merged 2 commits into from
Jan 27, 2024

Conversation

serengil
Copy link
Owner

Tickets

What has been done

With this PR, return type of Detector.detect_faces and its all inherited classes changed from List[Tuple[np.ndarray, List[float], float]] to List[DetectedFace] and DetectedFace class has detected image itself as numpy array, facial area region with x, y, w, h coordinates and face confidence score.

How to test

make lint && make test

@serengil serengil merged commit 35025cd into master Jan 27, 2024
4 checks passed
@serengil serengil deleted the feat-task-2701-return-obj-for-detectors branch January 27, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant