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
|
# Fetch the max frame height
|
||||||
max_height = config.getfloat("video", "max_height", fallback=0.0)
|
max_height = config.getfloat("video", "max_height", fallback=0.0)
|
||||||
|
|
||||||
# Get screen orientaion
|
# Get screen orientation
|
||||||
landscape = True
|
landscape = True
|
||||||
dsp = display.Display()
|
dsp = display.Display()
|
||||||
screen_width = dsp.screen().width_in_pixels
|
screen_width = dsp.screen().width_in_pixels
|
||||||
screen_height = dsp.screen().height_in_pixels
|
screen_height = dsp.screen().height_in_pixels
|
||||||
if screen_height > screen_width:
|
if screen_height > screen_width:
|
||||||
landscape = False
|
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:
|
if landscape:
|
||||||
height = video_capture.internal.get(cv2.CAP_PROP_FRAME_HEIGHT) or 1
|
height = video_capture.internal.get(cv2.CAP_PROP_FRAME_HEIGHT) or 1
|
||||||
else:
|
else:
|
||||||
|
|
@ -288,7 +288,7 @@ while True:
|
||||||
# Apply that factor to the frame
|
# Apply that factor to the frame
|
||||||
frame = cv2.resize(frame, None, fx=scaling_factor, fy=scaling_factor, interpolation=cv2.INTER_AREA)
|
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)
|
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)
|
# Alternate checking photo rotated clockwise and counter clockwise (since we don't know which side portrait is to)
|
||||||
if not landscape:
|
if not landscape:
|
||||||
if frames % 2 == 0:
|
if frames % 2 == 0:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue