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
@@ -64,9 +64,9 @@ int main(int argc, char **argv)
parser.printMessage();
return 0;
}
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"));
bool useOpenCL = parser.has("opencl");
if (!parser.check())
{