Get the serial number of a camera - Openni2 python

Viewed 1015

I'm using python3 and openni2.

When I open the communication with a camera (in this case I'm using an Orbbec Astra), is it possible to read the serial number of the camera?

This is how I open the communication:

    dev = openni2.Device.open_any()
    depth_stream = dev.create_depth_stream()
    depth_stream.start()
    depth_stream.set_video_mode(c_api.OniVideoMode(pixelFormat = c_api.OniPixelFormat.ONI_PIXEL_FORMAT_DEPTH_100_UM, resolutionX = 320, resolutionY = 240, fps = 30))

My goal is to find everytime the same camera even if I change the usb port and I've more orrbec connected.

Thank you

2 Answers
Related