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
12eb07cc
Commit
12eb07cc
authored
Apr 28, 2022
by
Leif
Browse files
Fix a bug of PPOCRLabel
Fix a bug of PPOCRLabel
parent
aa59fca5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
PPOCRLabel/PPOCRLabel.py
PPOCRLabel/PPOCRLabel.py
+1
-1
No files found.
PPOCRLabel/PPOCRLabel.py
View file @
12eb07cc
...
@@ -1733,7 +1733,7 @@ class MainWindow(QMainWindow):
...
@@ -1733,7 +1733,7 @@ class MainWindow(QMainWindow):
width
,
height
=
self
.
image
.
width
(),
self
.
image
.
height
()
width
,
height
=
self
.
image
.
width
(),
self
.
image
.
height
()
for
shape
in
self
.
canvas
.
lockedShapes
:
for
shape
in
self
.
canvas
.
lockedShapes
:
box
=
[[
int
(
p
[
0
]
*
width
),
int
(
p
[
1
]
*
height
)]
for
p
in
shape
[
'ratio'
]]
box
=
[[
int
(
p
[
0
]
*
width
),
int
(
p
[
1
]
*
height
)]
for
p
in
shape
[
'ratio'
]]
assert
len
(
box
)
==
4
#
assert len(box) == 4
result
=
[(
shape
[
'transcription'
],
1
)]
result
=
[(
shape
[
'transcription'
],
1
)]
result
.
insert
(
0
,
box
)
result
.
insert
(
0
,
box
)
self
.
result_dic_locked
.
append
(
result
)
self
.
result_dic_locked
.
append
(
result
)
...
...
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