Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming Camera from Jetson OrinNX #816

Open
Bonitodelcapo opened this issue Jan 30, 2025 · 1 comment
Open

Streaming Camera from Jetson OrinNX #816

Bonitodelcapo opened this issue Jan 30, 2025 · 1 comment

Comments

@Bonitodelcapo
Copy link

Describe what you want to implement and what the issue & the steps to reproduce it are:

I am having troubles getting the frames sent by a camera over the network using Multicast on 2 different machines. I adapted the provided C++ sample, confronted the #248 and #173 and also checked if there were bandwidth restrictions using the bandwidth manager.

****CONFIGURATION:

  • single camera a2A2590-22gcBAS
  • 1 Jetson machine Controller
  • 1 Ubuntu machine Monitor

WHAT I AM ABLE TO DO:

  • I am able to stream effortlessly on a single machine.
  • I can control and monitor the camera from the same machine.
  • I can open multiple instances of the monitor application on the same machine.
  • I can control the camera form the UBUNTU machine and monitor it from the JETSON machine.
  • I can open multiple monitoring instances on the JETSON machine (control host UBUNTU).

PROBLEMS:
When on the other hand i try to control the camera form the JETSON host and monitor it from the UBUNTU host i can't see the stream.
It seems to be related to the Jetson.

ERROR:

Traceback (most recent call last):
  File "/home/orin/dev/pick_and_place_with_dino_demo/backend/basler/multicast_monitor.py", line 82, in <module>
    start_monitor()
  File "/home/orin/dev/pick_and_place_with_dino_demo/backend/basler/multicast_monitor.py", line 60, in start_monitor
    image = converter.Convert(grab_result)
  File "/home/orin/micromamba/envs/ciao/lib/python3.10/site-packages/pypylon/pylon.py", line 7054, in Convert
    return _pylon.ImageFormatConverter_Convert(self, *args)
_genicam.InvalidArgumentException: Cannot convert image. The passed source image is invalid. : InvalidArgumentException thrown (file 'ImageFormatConverter.cpp', line 861)

Is your camera operational in Basler pylon viewer on your platform

Yes

Hardware setup used

Platform
Machine: aarch64
System: Linux
Distribution: Ubuntu 20.04 focal
Release: 5.10.104-tegra
Python: 3.8.10

Libraries
CUDA: 11.4.315
cuDNN: 8.6.0.166
TensorRT: 8.5.2.2
VPI: 2.2.7
Vulkan: 1.3.204
OpenCV: 4.5.4 with CUDA: NO

Serial Number: [sXX CLICK TO READ XXX]

Hardware
Model: NVIDIA Orin NX Developer Kit
699-level Part Number: 699-13767-0000-300 L.
P-Number: p3767-0000
Module: NVIDIA Jetson Orin NX (16GB ram)
SoC: tegra23x
CUDA Arch BIN: 8.7
Codename: P3768
L4T: 35.3.1
Jetpack: 5.1.1

Camera(s) used

a2A2590-22gcBAS

Runtime information:

pylon info: 8.0.0.10 64-Bit
----------------------------------------
pylon Setup info: 7.5.0.15658 
----------------------------------------
pylon Application info: 3.3.0.15479 64-Bit
----------------------------------------
pylon Viewer info: 7.5.0.15479 64-Bit
----------------------------------------
Host system infos:

CPU architecture: arm64
Kernel type: linux
Kernel version: 5.10.104-tegra
OS type: ubuntu
OS version: 20.04
Render Backend: OpenGL
----------------------------------------
Screen(s):

Screen 0 scale factor: 1
Screen 0 resolution: 1920x1080
----------------------------------------
Window(s):

"pylon Viewer 64-Bit" on screen 0
----------------------------------------
Host network infos:

Host network adapter dummy0:
    Name: dummy0
    MAC address: 8A:1D:4A:F0:93:FB

Host network adapter eth0:
    Name: eth0
    MAC address: 48:B0:2D:EA:D8:BD
    IP address: 10.147.68.165
    Subnet mask: 255.255.255.0

Host network adapter l4tbr0:
    Name: l4tbr0
    MAC address: 5A:4A:32:93:35:65

Host network adapter rndis0:
    Name: rndis0
    MAC address: 5A:4A:32:93:35:65

Host network adapter usb0:
    Name: usb0
    MAC address: 5A:4A:32:93:35:67

Host network adapter wlan0:
    Name: wlan0
    MAC address: 00:E0:4C:34:33:A2
    IP address: 192.168.80.51
    Subnet mask: 255.255.255.0

Host network adapter docker0:
    Name: docker0
    MAC address: 02:42:E3:58:4B:9F
    IP address: 172.17.0.1
    Subnet mask: 255.255.0.0

Host network adapter br-f5b137d15533:
    Name: br-f5b137d15533
    MAC address: 02:42:52:ED:13:4A
    IP address: 172.18.0.1
    Subnet mask: 255.255.0.0
----------------------------------------
Device infos:

GigE Vision device:
    Model name: a2A2590-22gcBAS
    Manufacturer name: Basler
    Serial number: 40500040
    MAC address: 00:30:53:36:47:81
    IP address: 10.147.68.151
    Subnet mask: 255.255.255.0
@Bonitodelcapo Bonitodelcapo changed the title Streaming camera to different host Streaming Camera from Jetson OrinNX Jan 30, 2025
@SMA2016a
Copy link
Collaborator

SMA2016a commented Feb 2, 2025

<_genicam.InvalidArgumentException: Cannot convert image. The passed source image is invalid. : InvalidArgumentException thrown (file 'ImageFormatConverter.cpp', line 861)>

It seems that the image received on the target PC is possibly damaged. Since this issue doesn't appear to be related to pypylon, I recommend contacting your local support team or camera distributor for further assistance with setting up your hardware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants