Skip to content

Commit

Permalink
fix: Fix bug in boundary cells
Browse files Browse the repository at this point in the history
  • Loading branch information
shahrukhqasim committed Nov 20, 2017
1 parent 49abb5a commit 975caeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/table_detect/prepare_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ def dump_doc(self, all_tokens, all_tokens_rects, spatial_features, file_name):
token_rect['x'] + token_rect['width'] / 2)]

left_rect = all_tokens_rects[int(neighbor_graph[i, 0])]
right_rect = all_tokens_rects[int(neighbor_graph[i, 1])]
top_rect = all_tokens_rects[int(neighbor_graph[i, 2])]
top_rect = all_tokens_rects[int(neighbor_graph[i, 1])]
right_rect = all_tokens_rects[int(neighbor_graph[i, 2])]
bottom_rect = all_tokens_rects[int(neighbor_graph[i, 3])]

if index == 0:
Expand Down

0 comments on commit 975caeb

Please sign in to comment.