This commit is contained in:
Vinayak Mehta
2019-05-27 22:18:23 +05:30
parent b2a8348f13
commit de3281c1b6
2 changed files with 12 additions and 0 deletions
+4
View File
@@ -287,6 +287,10 @@ class Stream(BaseParser):
hor_text = []
for region in self.table_regions:
x1, y1, x2, y2 = region.split(",")
x1 = float(x1)
y1 = float(y1)
x2 = float(x2)
y2 = float(y2)
region_text = text_in_bbox((x1, y2, x2, y1), self.horizontal_text)
hor_text.extend(region_text)
# find tables based on nurminen's detection algorithm