I’m currently going through the dlinano course and just got a new pi camera to test on my nano. I’m able to see that the camera is detected using the command,
!ls -ltrh /dev/video*
crw-rw----+ 1 root video 81, 0 Jul 21 16:12 /dev/video0
But when I run the line,
camera = CSICamera(width=224, height=224)
it freezes.
I tried releasing the camera using,
sudo systemctl restart nvargus-daemon and shutting down and restarting kernels. No results.
I tried running the script to read and display frames from a pi camera using opencv gstreamer from this [url]https://devtalk.nvidia.com/default/topic/1049269/jetson-nano-raspberry-pi-camera-not-working/[/url] and i get the following on the console and it freezes again,
============================================================================
0:00:00.098098414 10904 0x23a62190 FIXME default gstutils.c:3963:gst_pad_create_stream_id_internal:nvarguscamerasrc0:src Creating random stream-id, consider implementing a deterministic way of creating a stream-id
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3280 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: 1280 x 720 FR = 120.000005 fps Duration = 8333333 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 2
Output Stream W = 1920 H = 1080
seconds to Run = 0
Frame Rate = 29.999999
GST_ARGUS: PowerService: requested_clock_Hz=13608000
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
================================================================
I’m suspecting my camera itself to be faulty as many people who reported similar problems in the forums said replacing the camera fixed their issue. But I’d like to confirm if I’m doing it right before replacing the camera and want to try any fixes. Any help will be appreciated.