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
1f3ca7a5
Unverified
Commit
1f3ca7a5
authored
May 06, 2022
by
whjdark
Committed by
GitHub
May 06, 2022
Browse files
Merge pull request #2 from Evezerest/table2
change label filename
parents
2838ac70
994e3d9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
PPOCRLabel/PPOCRLabel.py
PPOCRLabel/PPOCRLabel.py
+1
-1
PPOCRLabel/libs/utils.py
PPOCRLabel/libs/utils.py
+1
-1
No files found.
PPOCRLabel/PPOCRLabel.py
View file @
1f3ca7a5
...
@@ -2382,7 +2382,7 @@ class MainWindow(QMainWindow):
...
@@ -2382,7 +2382,7 @@ class MainWindow(QMainWindow):
# save dict
# save dict
html
=
{
'structure'
:
{
'tokens'
:
token_list
},
'cell'
:
cells
}
html
=
{
'structure'
:
{
'tokens'
:
token_list
},
'cell'
:
cells
}
json_results
.
append
({
'filename'
:
filename
,
'split'
:
split
,
'imgid'
:
imgid
,
'html'
:
html
})
json_results
.
append
({
'filename'
:
os
.
path
.
basename
(
image_path
)
,
'split'
:
split
,
'imgid'
:
imgid
,
'html'
:
html
})
imgid
+=
1
imgid
+=
1
# save json
# save json
...
...
PPOCRLabel/libs/utils.py
View file @
1f3ca7a5
...
@@ -225,7 +225,7 @@ def convert_token(html_list):
...
@@ -225,7 +225,7 @@ def convert_token(html_list):
if
'rowspan'
in
col
:
if
'rowspan'
in
col
:
_
,
n
=
col
.
split
(
'rowspan='
)
_
,
n
=
col
.
split
(
'rowspan='
)
token_list
.
append
(
" rowspan=
\"
{}
\"
"
.
format
(
n
))
token_list
.
append
(
" rowspan=
\"
{}
\"
"
.
format
(
n
))
token_list
.
app
end
(
">"
)
token_list
.
ext
end
(
[
">"
,
"</td>"
]
)
token_list
.
append
(
"</tr>"
)
token_list
.
append
(
"</tr>"
)
token_list
.
append
(
"</tbody>"
)
token_list
.
append
(
"</tbody>"
)
...
...
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