From 15166a40f00d4aace28d00a6bd0d26f0e45af450 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 1 Nov 2026 20:52:19 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=20fix:=20move=20global=20os.enviro?= =?UTF-8?q?n=20modification=20to=20main=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michal-Fularz <3768498+Michal-Fularz@users.noreply.github.com> --- image_processing_course/sw_s01e10.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/image_processing_course/sw_s01e10.py b/image_processing_course/sw_s01e10.py index 73704f6..931c5cf 100644 --- a/image_processing_course/sw_s01e10.py +++ b/image_processing_course/sw_s01e10.py @@ -1,8 +1,6 @@ # solution for very slow application start when opening camera # more details: https://github.com/opencv/opencv/issues/17687 import os -os.environ['OPENCV_VIDEOIO_MSMF_ENABLE_HW_TRANSFORMS'] = '0' - import cv2 import numpy as np @@ -67,5 +65,6 @@ def empty(_): if __name__ == '__main__': + os.environ.setdefault('OPENCV_VIDEOIO_MSMF_ENABLE_HW_TRANSFORMS', '0') print('Hello lab 10!') ex_1()