Skip to content

Commit

Permalink
Fixed Grid lines issues.
Browse files Browse the repository at this point in the history
Fixed Issue: Grid rows were treated as columns and columns were treated as rows due to which grids don't fill up whole image when image isn't square.
  • Loading branch information
xanjay authored Aug 18, 2019
1 parent ddffa17 commit ff6f944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vanishing_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def find_vanishing_point(img, grid_size, intersections):
max_intersections = 0
best_cell = (0.0, 0.0)

for i, j in itertools.product(range(grid_rows), range(grid_columns)):
for i, j in itertools.product(range(grid_columns),range(grid_rows)):
cell_left = i * grid_size
cell_right = (i + 1) * grid_size
cell_bottom = j * grid_size
Expand Down

0 comments on commit ff6f944

Please sign in to comment.