opencv_object_detection_analytics_plugin not work
AnsweredHi Nx team,
We are trying to replicate the steps for the opencv_object_detection_analytics_plugin project, defined in https://github.com/networkoptix/nx_open_integrations/blob/master/cpp/vms_server_plugins/opencv_object_detection_analytics_plugin/
The step1 and step2 projects works fine, but we have issue with the step3 project. Most likely related to opencv bindings, as we are seeing server log complaining about it.
2024-11-19 10:10:37.977 83404 INFO PluginManager(0x7f599c08f8a0): Considering to load Server plugin [/opt/networkoptix-metavms/mediaserver/bin/plugins/opencv_object_detection_analytics_plugin/libopencv_object_detection_analytics_plugin.so]
2024-11-19 10:10:37.978 83404 ERROR PluginManager(0x7f599c08f8a0): Failed loading Server Plugin [/opt/networkoptix-metavms/mediaserver/bin/plugins/opencv_object_detection_analytics_plugin/libopencv_object_detection_analytics_plugin.so] (): [cannotLoadLibrary]: Cannot load library /opt/networkoptix-metavms/mediaserver/bin/plugins/opencv_object_detection_analytics_plugin/libopencv_object_detection_analytics_plugin.so: (/opt/networkoptix-metavms/mediaserver/bin/plugins/opencv_object_detection_analytics_plugin/libopencv_object_detection_analytics_plugin.so: undefined symbol: _ZN2cv3dnn14dnn4_v202112203Net7forwardERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE)
we have checked the build prerequisites.
Cmake 3.22.1
Conan 1.65
MetaVMS / Metadata SDK: we tried the latest 6.0.1.39873 and 5.0.0.35744 (as described in readme)
Ubuntu 22.04, g++-9 compiler
Can you check if opencv_object_detection_analytics_plugin could support the latest MetaVMS/Metadata SDK 6.0.1.39873? the readme looks outdated.
Can you share detailed step about opencv compilation? It was somewhat automatically performed, not sure if there is any particular step to specify the build such that it works with the plugin project.
Thank you
Yunwen
-
Hi Yunwen Li,
Thanks for your question, but the readme and procedure confirms valid and perfectly work on all version of nx MetaVMS 6.0+.
I have just tested and confirmed.
The following is my environment:
Meta VMS 6.0.1 and 6.0.2 (both would work)
Linux ubuntu22-desktop 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Conan version 1.62.0
gcc version 12.3.0 (Ubuntu 12.3.0-1ubuntu1~22.04)
cmake version 3.28.3It looks like your environment does not fully follow all the recommended ones on the knowledge base and starter guide. I may suggest you check the document again and configure your system to follow the exact version to see if the issue still happened.
Thanks.
(Updated: attach a few screen captures.)
Please sign in to leave a comment.
Comments
2 comments