We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71f9680 commit 08a8e10Copy full SHA for 08a8e10
1 file changed
scripts/measure/prep_display_image.py
@@ -128,12 +128,12 @@ def display(
128
if image_res[0] < 0:
129
new_height = image_res[1]
130
ratio = new_height / float(image_width)
131
- image_res[0] = int(ratio * image_width)
+ image_res = (int(ratio * image_width), new_height)
132
133
elif image_res[1] < 0:
134
new_width = image_res[0]
135
ratio = new_width / float(image_height)
136
- image_res[1] = int(ratio * image_height)
+ image_res = (new_width, int(ratio * image_height))
137
138
# set image within screen
139
img_og = cv2.resize(img_og, image_res, interpolation=interpolation)
0 commit comments