6/14/2023 0 Comments Logitch 4kand Inside your while loop you add: while True:įinally I want to note that 30 fps worked best for me (better than 24 fps) and that the max available resolution from the camera is NOT 3840 x 2160 pixel but 4096 x 2160, how cool is that? So do not bother with Opencv if this does not work first.Īditionally for those just starting out: the code snippit above goes before your opencv while loop. My experience is that high resolutions will only show as options here, if your cable and usb port support it. I had the camera in my dock first, and only 1080p worked.Ī good check is the windows 10 built in camera tool. fourcc = cv2.VideoWriter_fourcc('M','J','P','G')Ĭap.open(cameraNumber + 1 + cv2.CAP_DSHOW)īut for anyone troubleshooting this in the future, I also want to add that you need a good USB cable and preferably direct access to a usb 3.0 port. After some troubleshooting of my own, I found that solution worked for me.
0 Comments
Leave a Reply. |