AravisProject / aravis

A vision library for genicam based cameras
GNU Lesser General Public License v2.1
868 stars 326 forks source link

Implement arv_camera_get_id() #741

Open mlorgan opened 1 year ago

mlorgan commented 1 year ago

Describe the bug arv_camera_get_device_id() return null

To Reproduce run arv-roi-test but no KO reported in /fake/camera-api test

Expected behavior arv_camera_get_device_id() should return same as arv_get_device_id()

Camera description:

Platform description:

EmmanuelP commented 1 year ago

Hi,

It is a bit confusing, but arv_camera_get_device_id() is not supposed to return the same thing as arv_device_get_id().

arv_camera_get_device_id() returns the content of the DeviceID feature string, while arv_device_get_id() returns a unique identifier built from the manufacturer, model and serial number of the device.

I guess we could add a arv_camera_get_id() that would return the Aravis built Id.

eudoxos commented 11 months ago

I am just in the need of this, but fail to see arv_device_get_id — tehere arv_get_device_id (by index). Can this information be retrieved from within ArvDevice*?