projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a08eac4
)
Fix squares sample failure when a single file passed
author
Alex Kalmuk
<alexkalmuk@gmail.com>
Tue, 27 Apr 2021 08:06:10 +0000
(11:06 +0300)
committer
Alex Kalmuk
<alexkalmuk@gmail.com>
Wed, 28 Apr 2021 06:36:04 +0000
(09:36 +0300)
samples/cpp/squares.cpp
patch
|
blob
|
history
diff --git
a/samples/cpp/squares.cpp
b/samples/cpp/squares.cpp
index 042a716f90ccaa69f34b21f06e1256d3c9219567..2ea824decd884387341b347806d45ecc300f4784 100644
(file)
--- a/
samples/cpp/squares.cpp
+++ b/
samples/cpp/squares.cpp
@@
-123,14
+123,14
@@
static void findSquares( const Mat& image, vector<vector<Point> >& squares )
int main(int argc, char** argv)
{
-
static
const char* names[] = { "pic1.png", "pic2.png", "pic3.png",
+ const char* names[] = { "pic1.png", "pic2.png", "pic3.png",
"pic4.png", "pic5.png", "pic6.png", 0 };
help(argv[0]);
if( argc > 1)
{
names[0] = argv[1];
- names[1] =
"0"
;
+ names[1] =
0
;
}
for( int i = 0; names[i] != 0; i++ )