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:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user