Emulator camera doesn't have plugins tab in camera settings?
AnsweredI use emulator camera in testcamera to test sample plugin but i cannot find the plugins tab in camera settings of emulator cam. Help!
-
Hi Steve,
are you referring to sample plugin from our metadata SDK or some third party plugin? There shouldn't be any issues with enabling sample plugin on testcamera.
1. Please make sure plugin is present in C:\Program Files\Network Optix\Nx Witness\MediaServer\plugins\ in case of Windows or in /opt/networkoptix/mediaserver/bin/plugin/ in case of Ubuntu.
2. Once you've confirmed plugin is placed in the correct directory, stop mediaserver process and set logLevel parameter to DEBUG. Here is the link to our support article explaning how to do this - https://support.networkoptix.com/hc/en-us/articles/8503187042455-How-to-Change-Software-Logging-Level-and-Get-Logs-.
3. Start mediaserver process, check camera settings tab and if the issue is still there send me mediaserver's log file.
-
Sorry for this late.
I built step 2 in this: https://github.com/networkoptix/nx_open_integrations/tree/master/cpp/vms_server_plugins/opencv_object_detection_analytics_plugin
and then copy it to plugins folder:
sudo cp libopencv_object_detection_analytics_plugin.so /opt/networkoptix-metavms/mediaserver/bin/plugins/
Active the emulator camera:
/opt/networkoptix-metavms/mediaserver/bin/testcamera -I 127.0.0.1 -S "files="M60-Junction23-hi.mkv"; secondary-files="M60-Junction23-lo.mkv""
And finally, I tried to add a plugin to the emulator camera but it didn't have the plugin tab in camera settings.
How can I add a plugin to the emulator camera?
-
Hello Steve Techs ,
Most probably, your plugin has not been loaded by the Server.
Please, search for the messages in the log_file.log file by the key phrase 'PluginManager' after Server restart. It would give details on what plugins were loaded and what were not.
-
Hello Steve Techs,
But there is no plugin tab in camera settings, how can I check whether the plugin was loaded or not sir?
You should check in Server log file.
1. Refer to the article to find out where Server logs are located
2. change to server log directory
3. Restart the Server
4. Search the log_file.log file for the "PlaginManager" messages. If a plugin is successfully loaded, you'll see something similar to this
2022-09-21 13:04:13.715 376410 INFO PluginManager(0x7fe398047980): Loaded Server Plugin [/opt/networkoptix/mediaserver/bin/plugins/opencv_object_detection_analytics_plugin/libopencv_object_detection_analytics_plugin.so] (main interface nx_sdk_analytics_IPlugin, sdk version "5.0.0 R11")
Please sign in to leave a comment.
Comments
7 comments