basler

Basler bip2 640c camera pylon connection


I want to use opencv to process images from Balser Bip2 640c camera using the pylon sdk. I have tried the sdk example to connect to the camera but I cannot find the camera. Is that a special sdk for these old cameras?

I have tried to print the available camera name but nothing work

from pypylon import pylon
tl_factory = pylon.TlFactory.GetInstance()
devices = tl_factory.EnumerateDevices()
for device in devices:
    print(device.GetFriendlyName())

Solution

  • Pylon SDK is not the way to go with old BIP2 cameras. These are RSTP-based compressed stream IP cameras and there are several steps to access them:

    On OpenCV's end, there are methods to directly connect to stream, given camera stream's url (like here). Just browse SO for more information under tag [opencv].

    Hope it helps.