connection with multiple camera
See original GitHub issueI’m using two cameras for the experiment. I use pypylon to communicate with cameras and my laptop (MacOs 11.6).
With below code,
# list cameras connected with PC
# set the maximum number of devices
maxCamerasToUse = 2
# get transport layer and all attached devices
tl_factory = pylon.TlFactory.GetInstance()
devices = tl_factory.EnumerateDevices()
if len(devices) == 0:
raise pylon.RuntimeException("No camera connected")
else:
print(len(devices))
for device in devices:
print(device.GetFriendlyName()) # return readable name
print(device.GetFullName()) # return unique code
I check the connections of my cameras and it should print out two different cameras with their own SN name.
However, when I ran the code, occasionally I got duplicated two camera SN names or two different camera SN names (which is desirable).
# desirable case
2
acA1300_SN03 (21585923)
Basler acA1300-30gc#003053183303#169.254.4.51:3956
acA1300_SN01 (21566554)
Basler acA1300-30gc#00305317E75A#169.254.91.231:3956
# weird case
2
acA1300_SN01 (21566554)
Basler acA1300-30gc#00305317E75A#169.254.91.231:3956
acA1300_SN01 (21566554)
Basler acA1300-30gc#00305317E75A#169.254.91.231:3956
And even when I connected one camera and ran the code, I got following output.
2
acA1300_SN03 (21585923)
Basler acA1300-30gc#003053183303#169.254.4.51:3956
acA1300_SN03 (21585923)
Basler acA1300-30gc#003053183303#169.254.4.51:3956
It supposed to print out e.g.,
1
acA1300_SN03 (21585923)
Basler acA1300-30gc#003053183303#169.254.4.51:3956
Is there something wrong with my code or should I change the setup?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
How to Create a Multi-Camera Setup and Stream From ...
Creating a Virtual Camera Source · Go to the Sources subwindow on the main screen, then click on the + sign. · The...
Read more >Connecting Multiple Cameras to a PC or Mac
A Thunderbolt equipped laptop will allow you to connect an external capture device, such as an AJA IO 4K, or an AKiTiO Thunder...
Read more >Connecting multiple USB cameras to a computer
The easiest way to connect more cameras to your computer than the three-cameras-per-controller rule will allow, is simply to install more ...
Read more >What you need for a multi-camera streaming setup
When you connect your cameras into your computer individually without a switcher, your computer will view the inputs of the camera as separate ......
Read more >How to Set Up a Multi-Camera Live Streaming Webcast
To connect with your virtual audience, you need to know how to set up a multi-camera live-streaming webcast. A multi-camera live streaming ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Done. After I removed the libTL*, I got only one camera for each. Thanks. I will close the case
The cmdline would work in a homebrew python environment.
The python snippet in the one liner just outputs where pypylon is installed in your environment.
The issue isbon macos, that the current installer puts the same libraries under two names into the system. This résults in the the double enumeration. Just delete the ones libTl* with the version number in them