Skip to content

Commit

Permalink
[Fix] Fixing more typo errors and spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioReyesSan committed Nov 20, 2024
1 parent c5b1ea8 commit 51b91ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ def get_aspect_ratio_pattern(self) -> float:
for j in range(self.rows - 1):
for i in range(self.cols - 1):
p = self.image_points[j, i]
pcol = self.image_points[j + 1, i]
prow = self.image_points[j, i + 1]
horizontal_distance = np.linalg.norm(p - prow)
vertical_distance = np.linalg.norm(p - pcol)
point_col = self.image_points[j + 1, i]
point_row = self.image_points[j, i + 1]
horizontal_distance = np.linalg.norm(p - point_row)
vertical_distance = np.linalg.norm(p - point_col)
aspect_ratio = aspect_ratio + (horizontal_distance / vertical_distance)
count += 1
aspect_ratio = aspect_ratio / ((self.rows - 1) * (self.cols - 1))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ def draw_indicators(self, painter: QPainter, display_size):
painter.drawRect(skew_indicator)

# ToDo: define percentage to change skew and pct size to change to green
thresold_to_be_green = 0.2
if self.board_size_percentage < thresold_to_be_green:
threshold_to_be_green = 0.2
if self.board_size_percentage < threshold_to_be_green:
pen_size_board = QPen(color_red)
brush_size_board = QBrush(color_red)
else:
Expand Down

0 comments on commit 51b91ce

Please sign in to comment.