Adding more than one Python-Postprocessor
In ProgressHi,
I’m trying to create more than one Python postprocessor. I’ve followed the steps outlined in this link:
https://github.com/scailable/nx-evs-2024-demo.
I created several postprocessors with different names and renamed the contents of each file to match their respective folders, as shown below:
However, when I build the UC2 postprocessor, it replaces the already installed UC1 postprocessor.
Could you please provide guidance on how to resolve this?
-
Hi, thank you for your question.
First off, this EVS demo was made a while ago, and the AI Manager has been updated since then. I'm not sure it will still work properly, but it might. Check out our integration SDK repo for the latest compatible examples:
https://github.com/scailable/sclbl-integration-sdkTo have multiple postprocessors at the same time, you will have to check a couple of things.
- Make sure each has a unique name in the CMakeLists.txt file, for example:
add_custom_target(example-1 ALL
and
add_custom_target(example-2 ALL
this will ensure that the binaries being built have separate names. - Create separate entries in the `external_postprocessors.json` file in the postprocessors folder, for example:
{
"externalPostprocessors": [
{
"Name":"Example-1",
"Command":"/opt/networkoptix-metavms/mediaserver/bin/plugins/nxai_plugin/nxai_manager/postprocessors/example-1",
"SocketPath":"/tmp/example-1.sock"
},
{
"Name":"Example-2",
"Command":"/opt/networkoptix-metavms/mediaserver/bin/plugins/nxai_plugin/nxai_manager/postprocessors/example-2",
"SocketPath":"/tmp/example-2.sock"
}
]
}Make sure the "Name", "Command" and "SocketPath" are unique, otherwise it will not work.
Make sure the "Command" is the same as the name you gave the example in the CMakeLists.txt
- Make sure each has a unique name in the CMakeLists.txt file, for example:
Please sign in to leave a comment.
Comments
1 comment