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

No USB cameras found in python process (Pylon viewer works) #773

Open
Bonitodelcapo opened this issue Aug 27, 2024 · 1 comment
Open

No USB cameras found in python process (Pylon viewer works) #773

Bonitodelcapo opened this issue Aug 27, 2024 · 1 comment

Comments

@Bonitodelcapo
Copy link

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

I would just like to be able to connect to the camera.

This is the python file

from pypylon import pylon

# List all connected devices
available_cameras = pylon.TlFactory.GetInstance().EnumerateDevices()

if not available_cameras:
    raise RuntimeError("No cameras found.")

print("Available cameras:")
for i, camera_info in enumerate(available_cameras):
    print(f"[{i}] - {camera_info.GetFriendlyName()}")

# Select the first available camera (you can modify this if you have multiple cameras)
camera = pylon.InstantCamera(pylon.TlFactory.GetInstance().CreateDevice(available_cameras[0]))

# Open the camera
camera.Open()

# Display camera model name
print("Camera opened:", camera.GetDeviceInfo().GetModelName())

i checked that udev rules are modified for usb cameras as described in the installation process.

Is your camera operational in Basler pylon viewer on your platform

Yes

Hardware setup & camera model(s) used

Camera: Basler acA4024-29uc
Pylon: 7.4.0
Pypylon: 2.3.0
OS: Ubuntu 20.04
Hardware: Jetson Orin NX 16GB
python: 3.8.10

2m USB cable directly connected (no HUB)

Runtime information:

python: 3.8.10 (default, Jul 29 2024, 17:02:10) 
[GCC 9.4.0]
platform: linux/aarch64/5.10.104-tegra
pypylon: 2.3.0+pylon7.4.0 / 7.4.0.38864

No containerized application
@SMA2016a
Copy link
Collaborator

SMA2016a commented Sep 6, 2024

would you test your script with sudo?

why do you use pypylon 2.3.0? you may update to latest version that matches python 3.8

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