1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

samples: use findFile() in dnn

This commit is contained in:
Alexander Alekhin
2018-11-11 13:18:09 +00:00
parent c4c31f5bba
commit e8e2197032
9 changed files with 19 additions and 15 deletions
+3 -3
View File
@@ -66,9 +66,9 @@ int main(int argc, char **argv)
"{ t threshold | 0.1 | threshold or confidence value for the heatmap }"
);
String modelTxt = parser.get<string>("proto");
String modelBin = parser.get<string>("model");
String imageFile = parser.get<String>("image");
String modelTxt = samples::findFile(parser.get<string>("proto"));
String modelBin = samples::findFile(parser.get<string>("model"));
String imageFile = samples::findFile(parser.get<String>("image"));
int W_in = parser.get<int>("width");
int H_in = parser.get<int>("height");
float thresh = parser.get<float>("threshold");