Tweaked debug output for scores

This commit is contained in:
Matt Hill
2015-07-23 18:29:39 -04:00
parent a1c76467b3
commit 9e5995d20a

View File

@@ -69,6 +69,8 @@ namespace alpr
float total = getTotal();
std::cout << "--------------------" << std::endl;
std::cout << "Total: " << total << std::endl;
for (unsigned int i = 0; i < weight_ids.size(); i++)
{
float percent_of_total = (scores[i] * weights[i]) / total * 100;
@@ -79,8 +81,7 @@ namespace alpr
" (" << percent_of_total << "% of total)" << std::endl;
}
std::cout << "Total: " << total << std::endl;
std::cout << "--------------------" << std::endl;
}
}