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

Request to provide a service that can change the text offset at display render

Open YoungjaeDev opened this issue 2 years ago • 6 comments

Hello Text may cover the box when rendering as shown below Of course, I think I can reduce the size of the text, but I want to reduce the text offset while maintaining it There is a service related to this, but I wonder if I can't find it or not Thank you.

image

https://docs.nvidia.com/metropolis/deepstream/sdk-api/struct__NvOSD__TextParams.html

YoungjaeDev avatar Aug 04 '22 11:08 YoungjaeDev

@youngjae-avikus the service is not currently available, but this will be easy to add. I'll get to this when I'm back on DSL next week.

rjhowell44 avatar Aug 04 '22 15:08 rjhowell44

here's the proposed API

/**
 * @brief Creates a uniquely named "Customize Object Label" ODE Action that offsets 
 * an Object's label from the default location. 
 * @param[in] name unique name for the "Customize Object Label ODE Action. 
 * @param[in] offset_x horizontal offset from the default top left bounding box corner.
 * Use a negative value to move left, positive to move right  in units of pixels.
 * @param[in] offset_y vertical offset from the default top left bounding box corner. 
 * Use a negative value to move up, positive to move down in units of pixels.
 * @return DSL_RESULT_SUCCESS on success, one of DSL_RESULT_ODE_ACTION_RESULT otherwise.
 */
DslReturnType dsl_ode_action_label_offset_new(const wchar_t* name,  
    int offset_x, int offset_y);

rjhowell44 avatar Aug 14 '22 22:08 rjhowell44

@youngjae-avikus this work has been merged into the v0.26.alpha. See dsl_ode_action_label_offset_new

rjhowell44 avatar Aug 17 '22 18:08 rjhowell44

dsl_ode_action_label_offset_new seems to have a bug

YoungjaeDev avatar Sep 23 '22 11:09 YoungjaeDev

@youngjae-avikus can you provide more information including what values you are using for offset?

rjhowell44 avatar Sep 23 '22 14:09 rjhowell44

bug was fixed re: #851

rjhowell44 avatar Sep 28 '22 18:09 rjhowell44