-
Notifications
You must be signed in to change notification settings - Fork 40
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
Detection #85
base: master
Are you sure you want to change the base?
Detection #85
Conversation
src/detection.cpp
Outdated
} else { | ||
std::cerr << "Failed to create detector with name '" << name << "'" | ||
<< std::endl; | ||
return nullptr; |
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.
Здесь можно бросить исключение и наверху его отловить.
src/detection.cpp
Outdated
return false; | ||
} else { | ||
return true; | ||
} |
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.
return detector.load(model_file_path);
src/detection.cpp
Outdated
if (detector.empty()) { | ||
std::cout << "Detector is not loaded" << std::endl; | ||
return; | ||
} |
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.
Можно бросить исключение.
Не получается распознать логотип университета на изображении