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
7cce85cc
"...git@developer.sourcefind.cn:dcuai/dlexamples.git" did not exist on "a32ffa95a400f8cc67c07d5b4788f82b670f351d"
Commit
7cce85cc
authored
Dec 09, 2020
by
LDOUBLEV
Browse files
fix conflicts
parent
e7ad27c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ppocr/postprocess/db_postprocess.py
ppocr/postprocess/db_postprocess.py
+2
-2
No files found.
ppocr/postprocess/db_postprocess.py
View file @
7cce85cc
...
@@ -140,7 +140,7 @@ class DBPostProcess(object):
...
@@ -140,7 +140,7 @@ class DBPostProcess(object):
boxes_batch
=
[]
boxes_batch
=
[]
for
batch_index
in
range
(
pred
.
shape
[
0
]):
for
batch_index
in
range
(
pred
.
shape
[
0
]):
height
,
width
=
shape_list
[
batch_index
]
src_h
,
src_w
,
ratio_h
,
ratio_w
=
shape_list
[
batch_index
]
if
self
.
dilation_kernel
is
not
None
:
if
self
.
dilation_kernel
is
not
None
:
mask
=
cv2
.
dilate
(
mask
=
cv2
.
dilate
(
np
.
array
(
segmentation
[
batch_index
]).
astype
(
np
.
uint8
),
np
.
array
(
segmentation
[
batch_index
]).
astype
(
np
.
uint8
),
...
@@ -148,7 +148,7 @@ class DBPostProcess(object):
...
@@ -148,7 +148,7 @@ class DBPostProcess(object):
else
:
else
:
mask
=
segmentation
[
batch_index
]
mask
=
segmentation
[
batch_index
]
boxes
,
scores
=
self
.
boxes_from_bitmap
(
pred
[
batch_index
],
mask
,
boxes
,
scores
=
self
.
boxes_from_bitmap
(
pred
[
batch_index
],
mask
,
width
,
height
)
src_w
,
src_h
)
boxes_batch
.
append
({
'points'
:
boxes
})
boxes_batch
.
append
({
'points'
:
boxes
})
return
boxes_batch
return
boxes_batch
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