Retrieve users input from Plug-in GUI
AnsweredHi,
Hope you’re doing well!
I would like to retrieve the json string that is returned by the function “std::string Engine::manifestString() const;” and provides access to users input from the Plug-in GUI (Figure 1), and use the these parameters in “std::vector<IMetadataPacket*> DeviceAgent::cookSomeObjects() ” function.

Figure 1
Could you please help?
Thanks
-
Hello Riles,
which specific parameter do you want to use? All relevant parameters from GUI are saved in m_deviceAgentSettings structure and can be accessed from DeviceAgent::cookSomeObjects() ” function. Below is the example of how you can print the value of generateCars parameter:
std::vector<IMetadataPacket*> DeviceAgent::cookSomeObjects() { std::unique_lock<std::mutex> lock(m_objectGenerationMutex); std::vector<IMetadataPacket*> result; NX_PRINT << __func__ << " (): generate cars = " << m_deviceAgentSettings.generateCars; if (m_lastVideoFrameTimestampUs == 0) return result; if (m_frameTimestampUsQueue.empty()) return result; . . .
}0 -
Hi @...,
We have not heard back from you in a while, so we are going to assume your question has been answered and set this topic to 'Answered'.
0
Please sign in to leave a comment.
Comments
2 comments