Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
dfa00e1a
Unverified
Commit
dfa00e1a
authored
Jun 19, 2020
by
dyning
Committed by
GitHub
Jun 19, 2020
Browse files
Merge pull request #233 from LDOUBLEV/fixocr
fix img shape not match when concat
parents
853a5866
d4b0bfd6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ppocr/data/det/dataset_traversal.py
ppocr/data/det/dataset_traversal.py
+2
-0
No files found.
ppocr/data/det/dataset_traversal.py
View file @
dfa00e1a
...
@@ -94,6 +94,8 @@ class EvalTestReader(object):
...
@@ -94,6 +94,8 @@ class EvalTestReader(object):
batch_outs
=
[]
batch_outs
=
[]
for
img_path
in
img_list
:
for
img_path
in
img_list
:
img
=
cv2
.
imread
(
img_path
)
img
=
cv2
.
imread
(
img_path
)
if
len
(
list
(
img
.
shape
))
==
2
or
img
.
shape
[
2
]
==
1
:
img
=
cv2
.
cvtColor
(
img
,
cv2
.
COLOR_GRAY2BGR
)
if
img
is
None
:
if
img
is
None
:
logger
.
info
(
"load image error:"
+
img_path
)
logger
.
info
(
"load image error:"
+
img_path
)
continue
continue
...
...
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