Commit 43628957 authored by Dan Wilcox's avatar Dan Wilcox
Browse files

ok, actually print confidence in percentage

parent 3f0d98e4
......@@ -100,7 +100,6 @@ void ofApp::setup() {
volHistory.assign(400, 0.0);
// print language labels we know
ofLogVerbose(PACKAGE) << "From src/Labels.h:";
ofLogVerbose(PACKAGE) << "----> detected languages";
for(const auto & label : labelsMap) {
ofLogVerbose(PACKAGE) << label.second;
......@@ -195,7 +194,7 @@ void ofApp::update() {
// look up label
ofLogVerbose(PACKAGE) << "label: " << labelsMap[argMax];
ofLogVerbose(PACKAGE) << "confidence: " << ofToString(prob, 2);
ofLogVerbose(PACKAGE) << "confidence: " << ofToString(prob * 100, 2);
ofLogVerbose(PACKAGE) << "============================";
// release the trigger signal and emit enable
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment