解决Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_osd.so‘
使用deepstream docker 复现 deepstream_pose_estimation中的报错Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_osd.so’: libcudart.so.10.2: cannot open shared object file: No
·
使用deepstream docker 复现 deepstream_pose_estimation中的报错
Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_osd.so’: libcudart.so.10.2: cannot open shared object file: No such file or directory
解决方法:
1、$DEEPSTREAM_DIR/libs 恢复源代码操作步骤2中的libnvds_osd.so
(做好备份很重要)
2、在deepstream_pose_estimation.cpp中加入下列代码
--- 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)
{
3、rm -rf 之前的make文件,再重新make
运行成功
参考: Runtime errors when running the human pose estimation application
更多推荐
已为社区贡献1条内容
所有评论(0)