deepstream-services-library icon indicating copy to clipboard operation
deepstream-services-library copied to clipboard

Implement new dsl_ode_trigger_infer_confidence_max_get/set services.

Open rjhowell44 opened this issue 2 years ago • 1 comments

New services to set a maximum inference confidence filter for all triggers - similar/opposite of the current minimum inference confidence service.

/**
 * @brief Gets the current maximum confidence setting for the ODE Trigger
 * A value of 0.0 (default) indicates the maximum confidence criteria is disabled
 * @param[in] name unique name of the ODE Trigger to query
 * @param[out] max_confidence current maximum confidence criteria
 * @return DSL_RESULT_SUCCESS on successful query, DSL_RESULT_ODE_TRIGGER_RESULT otherwise.
 */
DslReturnType dsl_ode_trigger_infer_confidence_max_get(const wchar_t* name, 
    float* max_confidence);

/**
 * @brief Sets the maximum confidence setting for the ODE Trigger.
 * Setting the value of 0.0 indicates the maximum confidence criteria is disabled
 * Note: the confidence level is only checked with the reported value is > 0.0
 * @param[in] name unique name of the ODE Trigger to update
 * @param[in] max_confidence maximum confidence to trigger an ODE occurrence
 * @return DSL_RESULT_SUCCESS on successful query, DSL_RESULT_ODE_TRIGGER_RESULT otherwise.
 */
DslReturnType dsl_ode_trigger_infer_confidence_max_set(const wchar_t* name, 
    float max_confidence);

rjhowell44 avatar Sep 09 '22 22:09 rjhowell44

Merged into v0.26.alpha

rjhowell44 avatar Sep 27 '22 00:09 rjhowell44