From ff6f944953ae5ee5ceaa359b8995c526105e7961 Mon Sep 17 00:00:00 2001 From: Sanjay Parajuli <41162183+xanjay@users.noreply.github.com> Date: Sun, 18 Aug 2019 20:40:14 +0545 Subject: [PATCH] Fixed Grid lines issues. 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. --- src/vanishing_point.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vanishing_point.py b/src/vanishing_point.py index ef41f43..985e573 100644 --- a/src/vanishing_point.py +++ b/src/vanishing_point.py @@ -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