Cameras not working

After upgrading my jetpacj, the two camras connected to the integrated camera ports are not working anymore.

When opening jupyter and verifying the cameras working it will not go past section 2 in the csi_camera.ipynb


RuntimeError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/jetcam-0.0.0-py3.6.egg/jetcam/csi_camera.py in init(self, *args, **kwargs)
23 if not re:
—> 24 raise RuntimeError(‘Could not read image from camera.’)
25 except:

RuntimeError: Could not read image from camera.

During handling of the above exception, another exception occurred:

RuntimeError Traceback (most recent call last)
in
1 from jetcam.csi_camera import CSICamera
2
----> 3 camera = CSICamera(width=224, height=224, capture_device=0) # confirm the capture_device number

/usr/local/lib/python3.6/dist-packages/jetcam-0.0.0-py3.6.egg/jetcam/csi_camera.py in init(self, *args, **kwargs)
25 except:
26 raise RuntimeError(
—> 27 ‘Could not initialize camera. Please see error trace.’)
28
29 atexit.register(self.cap.release)

RuntimeError: Could not initialize camera. Please see error trace.

Hello,

Welcome to the NVIDIA Developer forums! Your topic looks Jetson-related.

Let me know what product you are using, and I will move this over for better visibility.

Cheers,
Tom

Hi Tom,

Yes, that is correct, I have a Jetson nano 4GB Developer kit

Thanks

Regards
Marius

hello masaeth,

may I know which Jetpack release version you’re working with?
please refer to Approaches for Validating and Testing the V4L2 Driver to check your camera sensor, especially the V4L2 IOCTL approach to verify basic functionality.

Hi,

I have R32 version

Here is a print screen of the error i am getting in jupyter when going through one of the first turtorials:

I have tested both cameras with this command, so i know they are working (id 0 and 1):
gst-launch-1.0 nvarguscamerasrc sensor-id=0 !

hello masaeth,

that’s an issue with your python code, please check you’ve assigned sensor supported format correctly, such as resolution, format types…etc