mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 10:46:51 +08:00
Tweaked debug output for scores
This commit is contained in:
@@ -69,18 +69,19 @@ 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;
|
||||||
|
|
||||||
std::cout << " - " << std::setw(longest_weight_id + 1) << std::left << weight_ids[i] <<
|
std::cout << " - " << std::setw(longest_weight_id + 1) << std::left << weight_ids[i] <<
|
||||||
" Weighted Score: " << std::setw(10) << std::left << (scores[i] * weights[i]) <<
|
" Weighted Score: " << std::setw(10) << std::left << (scores[i] * weights[i]) <<
|
||||||
" Orig Score: " << std::setw(10) << std::left << scores[i] <<
|
" Orig Score: " << std::setw(10) << std::left << scores[i] <<
|
||||||
" (" << 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