From 069bd5eed9c520b9679a3403dc8119fa573fcb62 Mon Sep 17 00:00:00 2001 From: Matan Arnon Date: Fri, 31 Dec 2021 16:08:39 +0200 Subject: [PATCH] fixed typos found by sider bot --- howdy/src/compare.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/howdy/src/compare.py b/howdy/src/compare.py index 9acdec5..5ca1c50 100644 --- a/howdy/src/compare.py +++ b/howdy/src/compare.py @@ -195,14 +195,14 @@ del lock # Fetch the max frame height max_height = config.getfloat("video", "max_height", fallback=0.0) -# Get screen orientaion +# Get screen orientation landscape = True dsp = display.Display() screen_width = dsp.screen().width_in_pixels screen_height = dsp.screen().height_in_pixels if screen_height > screen_width: landscape = False -# Get the height of the image (which would be the width if screen is portait oriented) +# Get the height of the image (which would be the width if screen is portrait oriented) if landscape: height = video_capture.internal.get(cv2.CAP_PROP_FRAME_HEIGHT) or 1 else: @@ -288,7 +288,7 @@ while True: # Apply that factor to the frame frame = cv2.resize(frame, None, fx=scaling_factor, fy=scaling_factor, interpolation=cv2.INTER_AREA) gsframe = cv2.resize(gsframe, None, fx=scaling_factor, fy=scaling_factor, interpolation=cv2.INTER_AREA) - # If orientaion is portrait + # If orientation is portrait # Alternate checking photo rotated clockwise and counter clockwise (since we don't know which side portrait is to) if not landscape: if frames % 2 == 0: