Commit 2ab41912 authored by paul's avatar paul
Browse files

send isGerman

parent 925d2f4c
......@@ -169,9 +169,11 @@ void ofApp::update() {
bool detected = false;
if(prob >= minConfidence) {
displayLabel = labelsMap[argMax];
bool isGerman = (displayLabel.compare("german") == 0) ? true : false;
std::string cmd_args = resultTOString(labelsMap, outputVector);
cmd_args.append("selected=" + displayLabel);
std::string cmd = ofToDataPath("send_http.sh") + " " + cmd_args;
cmd_args.append("isGerman=" + std::to_string(isGerman));
std::string cmd = ofToDataPath("send_languages.sh") + " " + cmd_args;
ofLog() << cmd;
ofSystem(cmd);
ofxOscMessage message;
......
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