未验证 提交 68926d59 编写于 作者: A Alexander Smorkalov 提交者: GitHub

Merge pull request #23377 from LaurentBerger:findsample

use findFile in opengl.cpp sample
......@@ -50,12 +50,12 @@ int main(int argc, char* argv[])
if (argc < 2)
{
cout << "Usage: " << argv[0] << " image" << endl;
filename = "../data/lena.jpg";
filename = "lena.jpg";
}
else
filename = argv[1];
Mat img = imread(filename);
Mat img = imread(samples::findFile(filename));
if (img.empty())
{
cerr << "Can't open image " << filename << endl;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册