Using opencv4.7.0 cap.open(0) to open the camera is slow

There is note in doc now

Microsoft Media Foundation backend tries to use hardware accelerated transformations if possible. Environment flag “OPENCV_VIDEOIO_MSMF_ENABLE_HW_TRANSFORMS” set to 0 disables it and may improve initialization time. More details: MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS attribute (Mfreadwrite.h) - Win32 apps | Microsoft Learn

1 Like