mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-19 09:51:19 +02:00
fixed typos found by sider bot
This commit is contained in:
parent
1937af51b7
commit
069bd5eed9
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue