mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 01:12:47 +08:00
Added function to determine if a given pattern name (e.g., "mo") is valid
This commit is contained in:
@@ -298,6 +298,11 @@ namespace alpr
|
||||
cout << "PostProcess Analysis Complete: " << bestChars << " -- MATCH: " << matchesTemplate << endl;
|
||||
}
|
||||
|
||||
bool PostProcess::regionIsValid(std::string templateregion)
|
||||
{
|
||||
return rules.find(templateregion) != rules.end();
|
||||
}
|
||||
|
||||
float PostProcess::calculateMaxConfidenceScore()
|
||||
{
|
||||
// Take the best score for each char position and average it.
|
||||
|
@@ -86,6 +86,8 @@ namespace alpr
|
||||
|
||||
const std::vector<PPResult> getResults();
|
||||
|
||||
bool regionIsValid(std::string templateregion);
|
||||
|
||||
private:
|
||||
Config* config;
|
||||
//void getTopN();
|
||||
|
Reference in New Issue
Block a user