mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 13:37:11 +08:00
Tweaked debug output for scores
This commit is contained in:
@@ -69,6 +69,8 @@ namespace alpr
|
|||||||
|
|
||||||
float total = getTotal();
|
float total = getTotal();
|
||||||
|
|
||||||
|
std::cout << "--------------------" << std::endl;
|
||||||
|
std::cout << "Total: " << total << std::endl;
|
||||||
for (unsigned int i = 0; i < weight_ids.size(); i++)
|
for (unsigned int i = 0; i < weight_ids.size(); i++)
|
||||||
{
|
{
|
||||||
float percent_of_total = (scores[i] * weights[i]) / total * 100;
|
float percent_of_total = (scores[i] * weights[i]) / total * 100;
|
||||||
@@ -79,8 +81,7 @@ namespace alpr
|
|||||||
" (" << percent_of_total << "% of total)" << std::endl;
|
" (" << percent_of_total << "% of total)" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::cout << "--------------------" << std::endl;
|
||||||
std::cout << "Total: " << total << std::endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user