DS 6.3 displays newline character \n in display_meta->text_params incorrectly

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU): GPU
• DeepStream Version: 6.3
• JetPack Version (valid for Jetson only): NA
• TensorRT Version: 8.5.3
• NVIDIA GPU Driver Version (valid for GPU only): 530.41.03
• Issue Type( questions, new requirements, bugs): bugs
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing): see below
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description): see below

Prior to version 6.3, including \n in display_meta->text_params allow multi-line text to be shown on screen. However, for version 6.3, \n is render incorrectly, instead of breaking text into multiple lines, an empty line is added instead.

Please modify deepstream-test1 as follow:

// from
offset = snprintf(txt_params->display_text + offset , MAX_DISPLAY_LEN, "Vehicle = %d ", vehicle_count);
// to
offset = snprintf(txt_params->display_text + offset , MAX_DISPLAY_LEN, "\nVehicle = %d ", vehicle_count);

without \n:

Screenshot from 2023-08-11 16-24-27

with \n:

Screenshot from 2023-08-14 18-01-04

This issue only happens in version 6.3, previous versions display the \n correctly.

We will analyze it as soon as possible. Also, you can set the mode to CPU mode as a workround.

g_object_set (G_OBJECT (nvosd), "process-mode", 0, NULL);
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.