使用Vision SDK时,出现can not find the element factory : mxpi_xxxpostprocessor报错

问题现象

使用Vision SDK时,出现“can not find the element factory : mxpi_xxxpostprocessor”。

“/mxVision-{version}/opensource/bin”路径下执行./gst-inspect-1.0 mxpi_xxxpostprocessor(插件名) 检查插件,发现插件能够正常加载,但运行时仍然报同样的错误信息。

原因分析

Gstreamer的历史缓存没有清除。

解决方案

  1. 确认环境已安装python3.9
  2. 执行rm ~/.cache/gstreamer-1.0/registry.{arch}.bin(其中{arch}根据实际运行环境选择“x86_64”或者“aarch64”)来清除Gstreamer的历史缓存,再运行程序即可。