Qengineering / Jetson-Nano-Ubuntu-20-image

Jetson Nano with Ubuntu 20.04 image
https://qengineering.eu/install-ubuntu-20.04-on-jetson-nano.html
BSD 3-Clause "New" or "Revised" License
742 stars 76 forks source link

camera Raspberry Pi v2 8MP (Sony IMX219) #102

Open Rodolfoloc opened 1 week ago

Rodolfoloc commented 1 week ago

Hello! I am using the image from this repository on the Jetson Nano. I have an application that requires a camera. I am using a Raspberry Pi v2 camera 8MP (Sony IMX219 sensor). It works fine with Python2, but nothing works with Python3. The GStreamer is disabled in Python3. Could you assist me with this? Thank you!

Qengineering commented 1 week ago

Can you give me some more info? How did you use the camera with Python2? With OpenCV? Do you have a small code snippet? How do you know that's disabled int Python3?

Rodolfoloc commented 1 week ago

Can you give me some more info? How did you use the camera with Python2? With OpenCV? Do you have a small code snippet? Response: Used how in https://github.com/jetsonhacksnano/CSI-Camera, file "simple_camera.py".

How do you know that's disabled int Python3? Response: Running the command print(cv2.getBuildInformation()) is displays: avresample: NO GStreamer: NO libv4l/v4l2: NO

Qengineering commented 1 week ago

I'm afraid you're OpenCV isn't healthy anymore. When you downloaded the image, the correct version of OpenCV can be found on the image. There is no need to install OpenCV afterwards. When you do, chances are that you corrupt the installation. Here is a screen dump of the original getBuildInformation(). Screenshot from 2024-11-16 09-56-55

Please check you're installation. If you have only one or two projects on the Nano, consider re-flashing.

Rodolfoloc commented 1 week ago

Re-flashing solved the problem. Thanks!