mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 18:56:53 +08:00
Removed results_character_details flag
This commit is contained in:
@@ -59,8 +59,6 @@ postprocess_confidence_skip_level = 80
|
|||||||
postprocess_min_characters = 4
|
postprocess_min_characters = 4
|
||||||
postprocess_max_characters = 8
|
postprocess_max_characters = 8
|
||||||
|
|
||||||
; Return detailed results for each character
|
|
||||||
results_character_details = 0
|
|
||||||
|
|
||||||
debug_general = 0
|
debug_general = 0
|
||||||
debug_timing = 0
|
debug_timing = 0
|
||||||
|
@@ -208,22 +208,19 @@ namespace alpr
|
|||||||
aplate.overall_confidence = ppResults[pp].totalscore;
|
aplate.overall_confidence = ppResults[pp].totalscore;
|
||||||
aplate.matches_template = ppResults[pp].matchesTemplate;
|
aplate.matches_template = ppResults[pp].matchesTemplate;
|
||||||
|
|
||||||
if (config->resultsCharacterDetails)
|
// Grab detailed results for each character
|
||||||
|
for (unsigned int c_idx = 0; c_idx < ppResults[pp].letter_details.size(); c_idx++)
|
||||||
{
|
{
|
||||||
// Grab detailed results for each character
|
AlprChar character_details;
|
||||||
for (unsigned int c_idx = 0; c_idx < ppResults[pp].letter_details.size(); c_idx++)
|
character_details.character = ppResults[pp].letter_details[c_idx].letter;
|
||||||
{
|
character_details.confidence = ppResults[pp].letter_details[c_idx].totalscore;
|
||||||
AlprChar character_details;
|
cv::Rect char_rect = pipeline_data.charRegions[ppResults[pp].letter_details[c_idx].charposition];
|
||||||
character_details.character = ppResults[pp].letter_details[c_idx].letter;
|
std::vector<AlprCoordinate> charpoints = getCharacterPoints(char_rect, charTransformMatrix );
|
||||||
character_details.confidence = ppResults[pp].letter_details[c_idx].totalscore;
|
for (int cpt = 0; cpt < 4; cpt++)
|
||||||
cv::Rect char_rect = pipeline_data.charRegions[ppResults[pp].letter_details[c_idx].charposition];
|
character_details.corners[cpt] = charpoints[cpt];
|
||||||
std::vector<AlprCoordinate> charpoints = getCharacterPoints(char_rect, charTransformMatrix );
|
aplate.character_details.push_back(character_details);
|
||||||
for (int cpt = 0; cpt < 4; cpt++)
|
|
||||||
character_details.corners[cpt] = charpoints[cpt];
|
|
||||||
aplate.character_details.push_back(character_details);
|
|
||||||
}
|
|
||||||
plateResult.topNPlates.push_back(aplate);
|
|
||||||
}
|
}
|
||||||
|
plateResult.topNPlates.push_back(aplate);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plateResult.topNPlates.size() > bestPlateIndex)
|
if (plateResult.topNPlates.size() > bestPlateIndex)
|
||||||
|
@@ -180,8 +180,6 @@ namespace alpr
|
|||||||
postProcessMinCharacters = getInt(ini, "", "postprocess_min_characters", 100);
|
postProcessMinCharacters = getInt(ini, "", "postprocess_min_characters", 100);
|
||||||
postProcessMaxCharacters = getInt(ini, "", "postprocess_max_characters", 100);
|
postProcessMaxCharacters = getInt(ini, "", "postprocess_max_characters", 100);
|
||||||
|
|
||||||
resultsCharacterDetails = getBoolean(ini,"", "results_character_details", false);
|
|
||||||
|
|
||||||
debugGeneral = getBoolean(ini, "", "debug_general", false);
|
debugGeneral = getBoolean(ini, "", "debug_general", false);
|
||||||
debugTiming = getBoolean(ini, "", "debug_timing", false);
|
debugTiming = getBoolean(ini, "", "debug_timing", false);
|
||||||
debugPrewarp = getBoolean(ini, "", "debug_prewarp", false);
|
debugPrewarp = getBoolean(ini, "", "debug_prewarp", false);
|
||||||
|
@@ -104,8 +104,6 @@ namespace alpr
|
|||||||
unsigned int postProcessMinCharacters;
|
unsigned int postProcessMinCharacters;
|
||||||
unsigned int postProcessMaxCharacters;
|
unsigned int postProcessMaxCharacters;
|
||||||
|
|
||||||
unsigned int resultsCharacterDetails;
|
|
||||||
|
|
||||||
bool debugGeneral;
|
bool debugGeneral;
|
||||||
bool debugTiming;
|
bool debugTiming;
|
||||||
bool debugPrewarp;
|
bool debugPrewarp;
|
||||||
|
Reference in New Issue
Block a user