Trying to create a camera class, and getting this error message Could not read image from camera

hello,

im trying to get get a camera working on my jetson nano, waveshare jetracer pro
using the B02 board,

heres my code:
#creating camera class

from jetcam.csi_camera import CSICamera
camera = CSICamera(width=224, height=224, capture_fps=65)

here is my full error output:

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_fps=65)

/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.

anybody got an idea how to fix this issue?

For Jetracer issue, suggest to get help from GitHub - NVIDIA-AI-IOT/jetracer: An autonomous AI racecar using NVIDIA Jetson Nano

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.