Skip to content

Commit

Permalink
fix bugs: no table detected
Browse files Browse the repository at this point in the history
  • Loading branch information
jayllfpt committed Dec 2, 2024
1 parent b5a6419 commit e939e87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def load_requirements(filename='requirements.txt'):

setup(
name="table2html",
version="1.4.0",
version="1.4.1",
author="TraiPPN",
license='Apache License 2.0',
author_email="phamphungoctraivl@gmail.com",
Expand Down
10 changes: 6 additions & 4 deletions table2html/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ def __init__(

def TableDetect(self, image):
tables = self.table_detector(image)
return [
{
if len(tables):
return [
{
"table_bbox": table,
}
for table in tables
]
for table in tables
]
return []

def StructureDetect(self, table_image):
# Detect rows and columns
Expand Down

0 comments on commit e939e87

Please sign in to comment.