A Python instructional video shows a simple example of cv2.VideoCapture(0) working, but on my PC it fails to open the camera and run. Here's the code:
import cv2
video = cv2.VideoCapture(0)
video.release()
The error message is here:
[ WARN:0@5.031] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (539) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback