Add MSMF HW Transform toggle

Potential fix for Windows 11 Video Preview issues.
This commit is contained in:
jjaldridge2009 2022-03-19 13:23:56 -04:00 committed by GitHub
parent 964efbe062
commit d02a1cc436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,5 @@
import os
os.environ["OPENCV_VIDEOIO_MSMF_ENABLE_HW_TRANSFORMS"] = "0"
import cv2
import heapq
import json
@ -674,4 +676,4 @@ class Application(tk.Frame):
root = tk.Tk()
app = Application(master=root)
app.mainloop()
app.mainloop()