Runtime errors when running the human pose estimation application

We need go back to Post#10 - Runtime errors when running the human pose estimation application - #10 by mjuric1 , where you run into the OSD error - “libnvosd (603):(ERROR) : Out of bound radius”. This is a DeepStream OSD bug which the OSD lib libnvds_osd.so targets to fix, but this lib is not correct since it’s based on CUDA 11, so for now., to avoid the OSD error , could use below temporary change.
NVIDIA is in holiday this week, we will update the OSD lib after holiday.

--- a/deepstream_pose_estimation_app.cpp
+++ b/deepstream_pose_estimation_app.cpp
@@ -95,6 +95,14 @@ create_display_meta(Vec2D<int> &objects, Vec3D<float> &normalized_peaks, NvDsFra
         auto &peak = normalized_peaks[j][k];
         int x = peak[1] * MUXER_OUTPUT_WIDTH;
         int y = peak[0] * MUXER_OUTPUT_HEIGHT;
+       if ((x > (1920 - 8)) || (y > (1080 - 8))) {
+                printf("x = %d, y = %d\n", x, y);
+                continue;
+        }
+       if ((x < 8) || (y < 8)) {
+               printf("x = %d, y = %d\n", x, y);
+                continue;
+       }
         if (dmeta->num_circles == MAX_ELEMENTS_IN_DISPLAY_META)
         {
1 Like