Skip to content

Commit

Permalink
change label filename
Browse files Browse the repository at this point in the history
change label filename
  • Loading branch information
Evezerest committed May 6, 2022
1 parent f1d0c8a commit b657a3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PPOCRLabel/PPOCRLabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2382,7 +2382,7 @@ def exportJSON(self):

# save dict
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

# save json
Expand Down
2 changes: 1 addition & 1 deletion PPOCRLabel/libs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def convert_token(html_list):
if 'rowspan' in col:
_, n = col.split('rowspan=')
token_list.append(" rowspan=\"{}\"".format(n))
token_list.append(">")
token_list.extend([">", "</td>"])
token_list.append("</tr>")
token_list.append("</tbody>")

Expand Down

0 comments on commit b657a3a

Please sign in to comment.