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

C++ Face Recognition demo #3685

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>
ivan-vikhrev and Wovchena authored Feb 22, 2023
commit aa75fe4e398ed2bde55fb072d64f132ee7402b6f
18 changes: 9 additions & 9 deletions demos/face_recognition_demo/cpp/main.cpp
Original file line number Diff line number Diff line change
@@ -119,10 +119,10 @@ void parse(int argc, char *argv[]) {
std::cout << "\t[ -h] " << h_msg
<< "\n\t[--help] print help on all arguments"
<< "\n\t[ -i <INPUT>] " << i_msg
<< "\n\t -mfd <MODEL FILE> " << mfd_msg
<< "\n\t[-mlm <MODEL FILE>] " << mlm_msg
<< "\n\t[-mreid <MODEL FILE>] " << mreid_msg
<< "\n\t[-mas <MODEL FILE>] " << mas_msg
<< "\n\t --mfd <MODEL FILE> " << mfd_msg
<< "\n\t[--mlm <MODEL FILE>] " << mlm_msg
<< "\n\t[--mreid <MODEL FILE>] " << mreid_msg
<< "\n\t[--mas <MODEL FILE>] " << mas_msg
<< "\n\t[ -t_fd <NUMBER>] " << tfd_msg
<< "\n\t[ --input_shape <STRING>] " << input_shape_msg
<< "\n\t[ -t_reid <NUMBER>] " << treid_msg
@@ -131,10 +131,10 @@ void parse(int argc, char *argv[]) {
<< "\n\t[-fg <GALLERY PATH>] " << fg_msg
<< "\n\t[--allow_grow] ([--noallow_grow]) " << ag_msg
<< "\n\t[--crop_gallery] ([--nocrop_gallery]) " << cg_msg
<< "\n\t[ -dfd <DEVICE>] " << dfd_msg
<< "\n\t[ -dlm <DEVICE>] " << dlm_msg
<< "\n\t[ -dreid <DEVICE>] " << dreid_msg
<< "\n\t[ -das <DEVICE>] " << das_msg
<< "\n\t[--dfd <DEVICE>] " << dfd_msg
<< "\n\t[--dlm <DEVICE>] " << dlm_msg
<< "\n\t[--dreid <DEVICE>] " << dreid_msg
<< "\n\t[--das <DEVICE>] " << das_msg
<< "\n\t[--lim <NUMBER>] " << lim_msg
<< "\n\t[ -o <OUTPUT>] " << o_msg
<< "\n\t[--loop] " << loop_msg
@@ -174,7 +174,7 @@ cv::Size getInputSize(const std::string& input_shape) {
std::string getLabelForFace(const Result& result) {
std::string faceLabel = result.label;
if (!result.real) {
faceLabel = "Fake";
faceLabel = "Spoof";
}
return faceLabel;
}