-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
refactor face detection and recognition #21565
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
Conversation
this commit is proposal implementation high level api for face detection and recognition.
This error occurs in OpenCV 5.x, but not occurs in OpenCV 4.x.
|
It is fixed by #21607 . |
This is not correct. There is the same problem in 4.x. |
Thanks, I understood it. |
@fengyuentau yunet-202202.onnx requere to fix input size to 120x160? |
Yes for ONNX and no for OpenCV DNN. OpenCV DNN does not support ONNX models of dynamic input shape, but it runs the graph on the actual input shape. |
@fengyuentau Thanks, I have updated the model, but the test fails. If you notice anything, please give a comment. |
@fengyuentau In the 5.x/HEAD, |
I tested the latest 5.x and the unit tests of
opencv/modules/objdetect/test/test_face.cpp Line 181 in aa50552
|
@fengyuentau Sorry, It was my mistake and misunderstanding. I have solved this problem. Thanks, |
@alalek @fengyuentau All tests are now green. Please review it. |
This pull request is proposal implementation of high level api for face detection and recognition.
Please see #20874 for this proposal deteal.
cv::dnn::FaceDetectionModel_YN
) and recognition (cv::dnn::FaceRecognitionModel_SF
) to high level api extended fromcv::dnn::Model
.cv::dnn::FaceDetectionModel_SSD
).cv::FaceDetectorYN
style.(Separate results to bounding box, confidence, and landmark.)
cv::FaceDetectorYN
andcv::FaceRecognizerSF
from objdetect module.(Note: I think the CI for iOS will pass once this task is complete.)
Users can use face detection and recognition in the following samples with this proposal.
It is as easy to use with unified usability as the other high level apis.
What do you think this proposal? Thanks,
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.