From 8b5a9de5b7a365ea1ae6b588060f5411933b89f0 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 19 Oct 2020 14:46:46 +0800 Subject: [PATCH] bugfix --- kivyblocks/kivycamera.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kivyblocks/kivycamera.py b/kivyblocks/kivycamera.py index e42b2e5..07dfcbe 100644 --- a/kivyblocks/kivycamera.py +++ b/kivyblocks/kivycamera.py @@ -8,7 +8,8 @@ import cv2 facefilepath=os.path.dirname(cv2.__file__) facepattern = '%s/%s' % (facefilepath, \ - 'data/haarcascade/haarcascade_frontalface_default.xml') + 'data/haarcascade_frontalface_default.xml') + def set_res(cap, x,y): cap.set(cv2.CAP_PROP_FRAME_WIDTH, int(x)) cap.set(cv2.CAP_PROP_FRAME_HEIGHT, int(y))