deepstream-services-library
deepstream-services-library copied to clipboard
Refactor CSI Source constructor to generate a unique/incremental sensor_id for each source.
The current implementation fixes the sensor-id to 1. Therefore, only once CSI camera can be used. The constructor will be updated to generate the unique sensor-id
. Rules are as follows.
A unique sensor-id is assigned to each CSI Source on creation, starting with 0, then 1, and so on. The default setting can be overridden by calling dsl_source_decode_uri_set
(new service). The call will fail if the given sensor-id is not unique. If a source is deleted, the sensor-id will be re-assigned to a new CSI Source if one is created.
Merged into v0.26.alpha