Raspberry Pi zero w2 arm 64 - Debian Bookworm
Other cameras work OK - but I have one camera that fails.
GStreamer - CRITICAL **:
Trying to dispose of element pipeline0, but it is paused instead of the null state. You need to explicity set elements to the null state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element.
[WARN:0@114,201] global ./module/video/src/cap_getstreamer.cap (1356) open Opencv | GStreamer warning: unable to start pipeline
code as follows:
import cv2
cam = cv2.VideoCapture(0)
while True:
ret, frame = cam.read()
cv2.imshow(‘Camera’, frame)
# Press 'q' to exit the loop
if cv2.waitKey(1) == ord('q'):
break
cam.release()
cv2.destroyAllWindows()