Rid7 / Table-OCR

Recognize tables from images and restore them into word.
GNU General Public License v3.0
269 stars 70 forks source link

about tables #5

Open cqray1990 opened 4 years ago

cqray1990 commented 4 years ago

i don't know why you process the rois region like this:

sort_table = sorted(rois, key=lambda i: i[1][3]) tables = [sort_table[0]]

for i in sort_table[1:]:
    count = 0
    for j in tables:
        if j[1][1] < i[1][1] + 10 and i[1][1] - 10 < j[1][1] + j[1][3]:
            continue
        else:
            count += 1
    if count == len(tables):
        tables.append(i)