Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
1a6c2b37
Commit
1a6c2b37
authored
Dec 21, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13499 from alalek:issue_13498
parents
09d8bbb1
2f3e06ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
qrcode.cpp
modules/objdetect/src/qrcode.cpp
+7
-0
No files found.
modules/objdetect/src/qrcode.cpp
View file @
1a6c2b37
...
...
@@ -782,6 +782,9 @@ bool QRCodeDetector::detect(InputArray in, OutputArray points) const
Mat
inarr
=
in
.
getMat
();
CV_Assert
(
!
inarr
.
empty
());
CV_Assert
(
inarr
.
depth
()
==
CV_8U
);
if
(
inarr
.
cols
<=
20
||
inarr
.
rows
<=
20
)
return
false
;
// image data is not enough for providing reliable results
int
incn
=
inarr
.
channels
();
if
(
incn
==
3
||
incn
==
4
)
{
...
...
@@ -1070,6 +1073,8 @@ cv::String QRCodeDetector::decode(InputArray in, InputArray points,
Mat
inarr
=
in
.
getMat
();
CV_Assert
(
!
inarr
.
empty
());
CV_Assert
(
inarr
.
depth
()
==
CV_8U
);
if
(
inarr
.
cols
<=
20
||
inarr
.
rows
<=
20
)
return
cv
::
String
();
// image data is not enough for providing reliable results
int
incn
=
inarr
.
channels
();
if
(
incn
==
3
||
incn
==
4
)
...
...
@@ -1108,6 +1113,8 @@ cv::String QRCodeDetector::detectAndDecode(InputArray in,
Mat
inarr
=
in
.
getMat
();
CV_Assert
(
!
inarr
.
empty
());
CV_Assert
(
inarr
.
depth
()
==
CV_8U
);
if
(
inarr
.
cols
<=
20
||
inarr
.
rows
<=
20
)
return
cv
::
String
();
// image data is not enough for providing reliable results
int
incn
=
inarr
.
channels
();
if
(
incn
==
3
||
incn
==
4
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment