-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
Update documentation #20957
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
Update documentation #20957
Conversation
Thanks for showing us how this kind of live demo works. When we were composing this tutorial, we just followed the writing format of |
@fengyuentau i am still working on the PR. i will ping you for final review. ( Thank you for a GREATE contribution ) |
2427f28
to
8fbb807
Compare
I wish to thank you sincerely for your demonstration and contribution on improving the writing format of document. |
@alalek @fengyuentau @crywang in my opinion, combining detection and recognition parts in only one sample will be fine. what is your opinions? |
I think combining two samples into one may confuse people who want to know how to use face detection separately. The original sample is simple enough to show people how to do so. Also, in my opinion, you should also compose a subsection for ## Usage
### FaceDetectorYN
Code
-----
Explanation
-----
### FaceRecognizerSF
Code
-----
Explanation
----- |
b3baf96
to
d33bb10
Compare
@fengyuentau i combined face_match functionality into face_detect just for presentation. if image1 and image2 parameters given then face matching will run. |
9941551
to
65f218d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contribution!
samples/dnn/face_detect.cpp
Outdated
for (int i = 0; i < faces.rows; i++) | ||
{ | ||
// Print results | ||
cout << "Face " << i | ||
<< ", top-left coordinates: (" << faces.at<float>(i, 0) << ", " << faces.at<float>(i, 1) << "), " | ||
<< "box width: " << faces.at<float>(i, 2) << ", box height: " << faces.at<float>(i, 3) << ", " | ||
<< "score: " << faces.at<float>(i, 14) << "\n"; | ||
<< "score: " << format("%.2f\n", faces.at<float>(i, 14)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format
please use cv::format()
to avoid issues with latest C++ and std::format
.
8aaa8bb
to
e725a4f
Compare
Updated .cpp sample. @sturkmen72 Please take a look and remove WIP prefix from PR's title. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done! Thank you 👍
Update documentation * Update DNN-based Face Detection And Recognition tutorial * samples(dnn/face): update face_detect.cpp * final changes Co-authored-by: Alexander Alekhin <alexander.a.alekhin@gmail.com>
additional documentation improvements relates #20935
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.