Hi, I’m having a strange issue using the Logitech C270 Webcam in the L4T-ML container.
When I type:
!ls -ltrh /dev/video*
I am getting the output
crw-rw---- 1 root video 81, 0 Apr 12 06:44 /dev/video0
I tried running this camera using OpenCV but it just turns on for a second then shuts off and resets the whole kernel.
The code I used:
import numpy as np
import cv2
cap = cv2.VideoCapture(“/dev/video0”)
while True:
ret, frame = cap.read()
cv2.imshow(‘frame’,frame)
if cv2.waitKey(1) & 0xFF == ord(‘q’):
break
cap.release()
cv2.destroyAllWindows()
What could be the issue?