mirror of
https://github.com/opencv/opencv.git
synced 2026-09-29 04:09:43 +03:00
Update Samples
This commit is contained in:
1 parent
9ef5373776
commit
f73395122c
72 files changed
+251
-271
No files matched your search
@@ -12,8 +12,8 @@ using std::endl;
|
||||
|
||||
int main( int argc, char* argv[] )
|
||||
{
|
||||
CommandLineParser parser( argc, argv, "{@input | ../data/box.png | input image}" );
|
||||
Mat src = imread( parser.get<String>( "@input" ), IMREAD_GRAYSCALE );
|
||||
CommandLineParser parser( argc, argv, "{@input | box.png | input image}" );
|
||||
Mat src = imread( samples::findFile( parser.get<String>( "@input" ) ), IMREAD_GRAYSCALE );
|
||||
if ( src.empty() )
|
||||
{
|
||||
cout << "Could not open or find the image!\n" << endl;
|
||||
|
||||
Reference in new issue
Block a user