From b93c8912cfc602b5584ab72d540f30233d9bc110 Mon Sep 17 00:00:00 2001 From: Mohit Raj Date: Sun, 27 Oct 2019 18:27:50 +0530 Subject: [PATCH] change Scale_percent to work properly --- src/res-change.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/res-change.py b/src/res-change.py index 5d147e7..e8896c0 100644 --- a/src/res-change.py +++ b/src/res-change.py @@ -21,7 +21,8 @@ def change_res(width, height): def rescale_frame(frame, percent=75): - scale_percent = 75 + # scale_percent = 75 # this will make it fix so if we change when call it will not change and alway 75 so we have to make it scale_percent=percent + scale_percent = percent width = int(frame.shape[1] * scale_percent / 100) height = int(frame.shape[0] * scale_percent / 100) dim = (width, height)