Added function to determine if a given pattern name (e.g., "mo") is valid

This commit is contained in:
Matt Hill
2015-03-17 23:11:24 -04:00
parent bb497f011f
commit c1243e8dc1
2 changed files with 7 additions and 0 deletions

View File

@@ -298,6 +298,11 @@ namespace alpr
cout << "PostProcess Analysis Complete: " << bestChars << " -- MATCH: " << matchesTemplate << endl; cout << "PostProcess Analysis Complete: " << bestChars << " -- MATCH: " << matchesTemplate << endl;
} }
bool PostProcess::regionIsValid(std::string templateregion)
{
return rules.find(templateregion) != rules.end();
}
float PostProcess::calculateMaxConfidenceScore() float PostProcess::calculateMaxConfidenceScore()
{ {
// Take the best score for each char position and average it. // Take the best score for each char position and average it.

View File

@@ -86,6 +86,8 @@ namespace alpr
const std::vector<PPResult> getResults(); const std::vector<PPResult> getResults();
bool regionIsValid(std::string templateregion);
private: private:
Config* config; Config* config;
//void getTopN(); //void getTopN();