ZED Camera not detected with Jetson TX2

Hello,

I am working on Jetson TX2 and currently I am facing some issues to get the camera up and running. Due to project restrictions, I am using CUDA 9.0 with Python 3.5, Jetpack 3.3 version. I installed ZED SDK 2.8.5 which matches the above specs.

Now when I install the ZED SDK and tried connecting to the TX2 board, it is not detected and also the firmware tab in the settings is disabled as well.

I am not sure if I can upgrade the ZED SDK and still have CUDA 9.0 and other required specs.

Can you guide me through this issue?

@Myzhar @linuxdev

Thanks & Best Regards
Girish

I won’t be able to answer, but I’m pretty sure ZED has available CUDA-10 compatible software as well. Is there a specific reason why you need CUDA 9 if the ZED itself has version 10 compatibility? JetPack 4.x (L4T R32.x) would provide CUDA 10.

Is this camera USB? If so, then something you would do (aside from installing software from the ZED site) is to monitor “dmesg --follow”, and show the logs which show up as a result of plugging in the USB cable.

1 Like

Reboot your jetson without ZED camera, then open a terminal and launch:

sudo dmesg --follow

and share what happens when you plug your USB ZED camera in.

# In my case using AGX Orin running R35.1 I get:
[14015.145969] usb 1-4.2.3: new high-speed USB device number 8 using tegra-xusb
[14015.253301] usb 1-4.2.3: New USB device found, idVendor=2b03, idProduct=f582, bcdDevice= 1.00
[14015.253310] usb 1-4.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[14015.253314] usb 1-4.2.3: Product: ZED
[14015.253318] usb 1-4.2.3: Manufacturer: Technologies, Inc.
[14015.291799] uvcvideo: Found UVC 1.10 device ZED (2b03:f582)
[14015.308767] input: ZED: ZED as /devices/platform/3610000.xhci/usb1/1-4/1-4.2/1-4.2.3/1-4.2.3:1.0/input/input9
[14015.308860] usbcore: registered new interface driver uvcvideo
[14015.308862] USB Video Class driver (1.1.1)

Also, if you know the video node number created for your ZED camera in /dev/videoX, you may also try to see what gives:

v4l2-ctl --device=/dev/videoX --list-formats-ext

Note that in my own case it won’t display all available modes, only 1344x376@15. Probably I have to update firmware from ZED SDK.

1 Like

Here is what I did for upgrading:

WIth Firefox, went to: https://download.stereolabs.com/zedsdk/4.0/l4t35.1/jetsons for my R35.1 install and downloaded
https://stereolabs.sfo2.cdn.digitaloceanspaces.com/zedsdk/4.0/ZED_SDK_Tegra_L4T35.2_v4.0.2.zstd.run

Then ran:

sudo apt update
sudo apt install zstd
chmod u+x ZED_SDK_Tegra_L4T35.1_v4.0.2.zstd.run
./ZED_SDK_Tegra_L4T35.1_v4.0.2.zstd.run 
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing 'ZED camera SDK by Stereolabs (Use 'sudo apt install zstd' if zstd is not found)'  100%  
L4T version 35.1 detected. OK
To continue you have to accept the EULA. Accept  [Y/n] ?Y
Installing...
Installation path: /usr/local/zed
Checking CUDA version...
OK: Found CUDA 11.4
Do you want to also install the static version of the ZED SDK (AI module will still require libsl_ai.so) [Y/n] ?n
Do you want to install the AI module (required for Object detection and Neural Depth, recommended) [Y/n] ?n
Do you want to enable maximum performance mode (recommended)? It provides optimal performance but increases power draw.  [Y/n] ?Y
Jetson AGX Orin detected
NV Power Mode: MAXN
0
Install samples (recommended) [Y/n] ?Y
Installation path: /usr/local/zed/samples/
Do you want to auto-install dependencies (recommended) ? following packet will be installed via the package manager : libjpeg-turbo8 libturbojpeg libusb-1.0-0 libusb-1.0-0-dev libopenblas-dev libarchive-dev libv4l-0 curl unzip zlib1g libpng-dev libturbojpeg0-dev python3-dev python3-pip python3-setuptools libglew-dev freeglut3-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5opengl5 libqt5svg5 [Y/n] ?Y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpng-dev is already the newest version (1.6.37-2).
libpng-dev set to manually installed.
libusb-1.0-0 is already the newest version (2:1.0.23-2build1).
libusb-1.0-0 set to manually installed.
libusb-1.0-0-dev is already the newest version (2:1.0.23-2build1).
libv4l-0 is already the newest version (1.18.0-2build1).
python3-dev is already the newest version (3.8.2-0ubuntu2).
libglew-dev is already the newest version (2.1.0-4).
libqt5svg5 is already the newest version (5.12.8-0ubuntu1).
libqt5svg5 set to manually installed.
qtchooser is already the newest version (66-2build1).
qtchooser set to manually installed.
curl is already the newest version (7.68.0-1ubuntu2.18).
libjpeg-turbo8 is already the newest version (2.0.3-0ubuntu1.20.04.3).
libjpeg-turbo8 set to manually installed.
python3-setuptools is already the newest version (45.2.0-1ubuntu0.1).
python3-setuptools set to manually installed.
unzip is already the newest version (6.0-25ubuntu1.1).
zlib1g is already the newest version (1:1.2.11.dfsg-2ubuntu1.5).
libopenblas-dev is already the newest version (0.3.8+ds-1ubuntu0.20.04.1).
libqt5opengl5 is already the newest version (5.12.8+dfsg-0ubuntu2.1).
libqt5opengl5 set to manually installed.
python3-pip is already the newest version (20.0.2-5ubuntu1.8).
qt5-qmake is already the newest version (5.12.8+dfsg-0ubuntu2.1).
qt5-qmake set to manually installed.
qtbase5-dev is already the newest version (5.12.8+dfsg-0ubuntu2.1).
qtbase5-dev-tools is already the newest version (5.12.8+dfsg-0ubuntu2.1).
qtbase5-dev-tools set to manually installed.
The following additional packages will be installed:
  freeglut3
The following NEW packages will be installed:
  freeglut3 freeglut3-dev libarchive-dev libturbojpeg libturbojpeg0-dev
0 upgraded, 5 newly installed, 0 to remove and 5 not upgraded.
Need to get 946 kB of archives.
After this operation, 3 769 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 freeglut3 arm64 2.8.1-3 [65,0 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 freeglut3-dev arm64 2.8.1-3 [118 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libarchive-dev arm64 3.4.0-2ubuntu1.2 [475 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 libturbojpeg arm64 2.0.3-0ubuntu1.20.04.3 [136 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 libturbojpeg0-dev arm64 2.0.3-0ubuntu1.20.04.3 [152 kB]
Fetched 946 kB in 0s (3 680 kB/s)            
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package freeglut3:arm64.
(Reading database ... 285627 files and directories currently installed.)
Preparing to unpack .../freeglut3_2.8.1-3_arm64.deb ...
Unpacking freeglut3:arm64 (2.8.1-3) ...
Selecting previously unselected package freeglut3-dev:arm64.
Preparing to unpack .../freeglut3-dev_2.8.1-3_arm64.deb ...
Unpacking freeglut3-dev:arm64 (2.8.1-3) ...
Selecting previously unselected package libarchive-dev:arm64.
Preparing to unpack .../libarchive-dev_3.4.0-2ubuntu1.2_arm64.deb ...
Unpacking libarchive-dev:arm64 (3.4.0-2ubuntu1.2) ...
Selecting previously unselected package libturbojpeg:arm64.
Preparing to unpack .../libturbojpeg_2.0.3-0ubuntu1.20.04.3_arm64.deb ...
Unpacking libturbojpeg:arm64 (2.0.3-0ubuntu1.20.04.3) ...
Selecting previously unselected package libturbojpeg0-dev:arm64.
Preparing to unpack .../libturbojpeg0-dev_2.0.3-0ubuntu1.20.04.3_arm64.deb ...
Unpacking libturbojpeg0-dev:arm64 (2.0.3-0ubuntu1.20.04.3) ...
Setting up freeglut3:arm64 (2.8.1-3) ...
Setting up freeglut3-dev:arm64 (2.8.1-3) ...
Setting up libturbojpeg:arm64 (2.0.3-0ubuntu1.20.04.3) ...
Setting up libarchive-dev:arm64 (3.4.0-2ubuntu1.2) ...
Setting up libturbojpeg0-dev:arm64 (2.0.3-0ubuntu1.20.04.3) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Dependencies installation complete
Do you want to install the Python API (recommended) [Y/n] ?Y
Please specify your python executable: python3
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.17.4)
-> Downloading to '/tmp/selfgz6335'
Detected platform: 
	 linux_aarch64
	 Python 3.8
	 ZED SDK 4.0
-> Checking if https://download.stereolabs.com/zedsdk/4.0/whl/linux_aarch64/pyzed-4.0-cp38-cp38-linux_aarch64.whl exists and is available
-> Found ! Downloading python package into /tmp/selfgz6335/pyzed-4.0-cp38-cp38-linux_aarch64.whl
-> Installing necessary dependencies
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.34.2)
Collecting cython
  Downloading Cython-0.29.34-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl (1.8 MB)
     |████████████████████████████████| 1.8 MB 3.9 MB/s 
Installing collected packages: cython
  WARNING: The scripts cygdb, cython and cythonize are installed in '/home/nvidia/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed cython-0.29.34
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.17.4)
Processing ./pyzed-4.0-cp38-cp38-linux_aarch64.whl
Collecting numpy>=1.13
  Using cached numpy-1.24.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.0 MB)
Collecting cython>=0.28
  Using cached Cython-0.29.34-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl (1.8 MB)
Installing collected packages: numpy, cython, pyzed
  WARNING: The scripts f2py, f2py3 and f2py3.8 are installed in '/home/nvidia/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts cygdb, cython and cythonize are installed in '/home/nvidia/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed cython-0.29.34 numpy-1.24.3 pyzed-4.0
Done
  To install it later or on a different environment run : 
 python -m pip install --ignore-installed /tmp/selfgz6335/pyzed-4.0-cp38-cp38-linux_aarch64.whl
The ZED Python API was installed for 'python3', when using conda environement or virtualenv, the ZED Python API may need to be resetup to be available (using 'python /usr/local/zed/get_python_api.py')
Created symlink /etc/systemd/system/multi-user.target.wants/zed_x_daemon.service → /etc/systemd/system/zed_x_daemon.service.

For GMSL support, please navigate to /usr/local/zed/drivers where you will find compatible drivers and installation instructions.

Please note that installing the 'libv4l-dev' apt package at any point on jetson will break the hardware encoding/decoding support

ZED SDK installation complete !

Then launch:

/usr/local/zed/tools/ZED_Diagnostic

#or
/usr/local/zed/tools/ZED_Explorer

In my case, after that plugging the ZED camera into another USB connector helped:

v4l2-ctl --device=/dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'YUYV' (YUYV 4:2:2)
		Size: Discrete 2560x720
			Interval: Discrete 0.017s (60.000 fps)
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 1344x376
			Interval: Discrete 0.010s (100.000 fps)
			Interval: Discrete 0.017s (60.000 fps)
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 3840x1080
			Interval: Discrete 0.033s (30.000 fps)
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 4416x1242
			Interval: Discrete 0.067s (15.000 fps)
1 Like

Hey @Honey_Patouceul

Thanks for the support, I shall try this method and get back to the discussion.

But one simple query, does USB port 2.0 and 3.0 for ZED make any difference? and I think TX2 has 2.0 port. Correct me if I am wrong.

Yes, USB2 may only be able to achieve 1344x376@15. Better try full size TX2 USB connector alone (not through a USB2 hub). What gives ?

lsusb -tv

Hey @Honey_Patouceul @linuxdev
When I am installing the ZED SDK 2.8.5 I am getting some openCV dependency issues.
Setting up python-numpy (1:1.11.0-1ubuntu1) …
/var/lib/dpkg/info/python-numpy.postinst: 6: /var/lib/dpkg/info/python-numpy.postinst: pycompile: not found
dpkg: error processing package python-numpy (–configure):
subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of python-opencv:
python-opencv depends on python-numpy-abi9; however:
Package python-numpy-abi9 is not installed.
Package python-numpy which provides python-numpy-abi9 is not configured yet.
python-opencv depends on python-numpy (>= 1:1.6.1); however:
Package python-numpy is not configured yet.

dpkg: error processing package python-opencv (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up python-pkg-resources (20.7.0-1) …
/var/lib/dpkg/info/python-pkg-resources.postinst: 6: /var/lib/dpkg/info/python-pkg-resources.postinst: pycompile: not found
dpkg: error processing package python-pkg-resources (–configure):
subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of python-py:
python-py depends on python-pkg-resources; however:
Package python-pkg-resources is not configured yet.

dpkg: error processing package python-py (–configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of python-pytest:
python-pytest depends on python-pkg-resources; however:
Package python-pkg-resources is not configured yet.
python-pytest depends on python-py (>= 1.4.29); however:
Package python-py is not configured yet.

dpkg: error processing package python-pytest (–configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
python-numpy
python-opencv
python-pkg-resources
python-py
python-pytest
E: Sub-process /usr/bin/dpkg returned an error code (1)
Do you want to enable the max perf mode (recommended for optimal performances) [Y/n] ?y
Created symlink from /etc/systemd/system/multi-user.target.wants/jetson_clocks.service to /etc/systemd/system/jetson_clocks.service.
Install samples (recommended) [Y/n] ?y
Installation path: /usr/local/zed/sample/
ZED SDK installation complete !

This seems to be the error, Can you help me here?

I’m pretty much useless for Python administration, so I can’t really help with that. I do see it is basically a version issue though. Are you still working with CUDA 9 and JetPack 3.3? Going to CUDA 10 and JetPack 4.x would be a huge leap forward in terms of compatibility, and I’m pretty sure the ZED camera can work with JetPack 4.x (L4T R32.x).

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