Ask Your Question

Revision history [back]

We do encounter the same issue. It seems to be only related with opencv 3.4.2.

CameraObject = cv.VideoCapture.release()

does not work. It does throw a type error

TypeError: descriptor 'release' of 'cv2.VideoCapture' object needs an argument

I changed it to

cv.VideoCapture.release(myCamObjectName)

which does execute but still the camera is not released. Only restarting the kernel does the job. However the camera is not locked, e. g. I can initialize the stream and capture frames when I rerun my scripts. It is also not related to the camera (or cam driver): We did try it on different laptops with different cameras (although only the built-in ones).