Building Computer Vision Projects with OpenCV 4 and C++
by David Millan Escriva, Prateek Joshi, Vinicius G. Mendonca, Roy Shilkrot
Recognition mode
In the Recognition mode, a confidence meter is shown next to the preprocessed face, so the user knows how reliable the recognition is. If the confidence level is higher than the unknown threshold, it will draw a green rectangle around the recognized person to show the result easily. The user can add more faces for further training if they click on the Add Person button or one of the existing people, which causes the program to return to the Collection mode.
Now, we have obtained the recognized identity and the similarity with the reconstructed face, as mentioned earlier. To display the confidence meter, we know that the L2 similarity value is generally between 0 and 0.5 for high confidence, and between 0.5 and 1.0 for low ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access