Open cqray1990 opened 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)
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]]