samples: use findFile() in T-API samples

This commit is contained in:
Alexander Alekhin
2018-11-11 13:26:24 +00:00
parent e8e2197032
commit 9ea8c775f8
6 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ int main(int argc, char** argv)
string image_file = args.get<string>("i");
if (!image_file.empty())
{
Mat image = imread(image_file);
Mat image = imread(samples::findFile(image_file));
if (image.empty())
{
cout << "error read image: " << image_file << endl;