JetsonHacksNano / CSI-Camera

Simple example of using a CSI-Camera (like the Raspberry Pi Version 2 camera) with the NVIDIA Jetson Developer Kit
Other
810 stars 288 forks source link

[BUG] Unable to open both cameras #57

Closed dleporis closed 1 year ago

dleporis commented 1 year ago

Describe the issue I am getting the following when running $ python3 dual_camera.py:

Error: Unable to open both cameras

What version of L4T/JetPack System info (I got it using JetsonUtilities https://jetsonhacks.com/2017/08/28/quick-tip-which-version-of-l4t-is-running-nvidia-jetson-development-kit/) command $ python jetsonInfo.py: NVIDIA NVIDIA Jetson Nano Developer Kit L4T 32.7.2 [ JetPack 4.6.2 ] Ubuntu 18.04.6 LTS Kernel Version: 4.9.253-tegra CUDA NOT_INSTALLED CUDA Architecture: 5.3 OpenCV version: NOT_INSTALLED OpenCV Cuda: NO CUDNN: NOT_INSTALLED TensorRT: NOT_INSTALLED Vision Works: NOT_INSTALLED VPI: NOT_INSTALLED Vulcan: 1.2.70

What version of OpenCV 4.6.0

I got this by running:

$ python3
>>> import cv2
>>> print(cv2.__version__)

(Strange that JetsonUtilities didn't recognise it being installed)

Python Version 3.6.9

To Reproduce Run: $ cd CSI-Camera-master $ python3 dual_camera.py

Expected behavior I expected that feeds from both MIPI CSI cameras will show up on the monitor at the same time, and run until I press ^C

Additional context Cameras used: 2x https://www.arducam.com/product/arducam-high-quality-camera-for-jetson-nano-and-xavier-nx-12mp-m12-mount/ Jetson Nano board: https://www.seeedstudio.com/Jetson-10-1-H0-p-5335.html?utm_source=mailchimp&utm_medium=edm&utm_campaign=bazaar_0519&ct=t()&mc_cid=e0ef290b3f&mc_eid=827d545b53

dleporis commented 1 year ago

Solved by installing OpenCV 3.3.1 using https://gist.github.com/luke-han/55047815e0dc2c446f5e184d9d0201cc#file-install_opencv_3-3-sh