CSI-Camera icon indicating copy to clipboard operation
CSI-Camera copied to clipboard

Issues Following Tutorial w/ Jetpack 6.2 Installed

Open AaronSif opened this issue 9 months ago • 1 comments

I am running Jetpack 6.2 and I am having some issues following these tutorials, most likely because my software is a later version. I am following the tutorial on Github along with the YouTube video supplement. After some time I am now able to get my camera to launch a few different ways. I had to declare my I/O pin configuration which doesn't seem to be an issue for people who are running an older version of Jetpack. I only mention the I/O pins incase someone else is having the same issue.

I am able to launch the camera using the bottom example code in the "To test the camera:" section. If I run gst-launch-1.0 nvarguscamerasrc sensor_id=0 ! nvoverlaysink I will get the response below.

nano1@nano1-desktop:~/CSI-Camera$ gst-launch-1.0 nvarguscamerasrc sensor_id=0 ! nvoverlaysink WARNING: erroneous pipeline: no element "nvoverlaysink"

The problem I'm having now is that when I run the scripts in the "Samples" section all I get are errors.

Can you explain what the errors I'm receiving below are caused by? I have tried to modify the .py code to match the second section of code in the test section but haven't had any luck.

nano1@nano1-desktop:~/CSI-Camera$ python simple_camera.py nvarguscamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)30/1 ! nvvidconv flip-method=0 ! video/x-raw, width=(int)960, height=(int)540, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink Error: Unable to open camera

nano1@nano1-desktop:~/CSI-Camera$ python face_detect.py Unable to open camera

I can provide more examples of code that seems to work if it would be helpful.

AaronSif avatar Feb 15 '25 01:02 AaronSif

If it is helpful, i have Python 3.10.12 and Linux 36.4.3 installed.

AaronSif avatar Feb 15 '25 01:02 AaronSif