Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Hertz-Lab
Research
Intelligent Museum
Language Identifier
Commits
2ab41912
Commit
2ab41912
authored
Nov 17, 2021
by
paul
Browse files
send isGerman
parent
925d2f4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/data/send_
http
.sh
→
bin/data/send_
languages
.sh
View file @
2ab41912
File moved
src/ofApp.cpp
View file @
2ab41912
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment