How to use pullMetadataPackets
AnsweredHi.
I'm implementing a Plugin for metadata(i.e. Box, object etc...).
We will be using "pullMetadataPackets". But We can be not understand "pullMetadataPackets".
1. pullMetadataPackets is RTSP metadata right?
2. If "pullMetadataPackets" is RTSP's metadata, how can I get the data? (i.e. metadataPackets->data?)
3. If "pullMetadataPackets" is not RTSP metadata, should we receive AI analysis data through socket communication or ONVIF? (AI analysis data is metadata analyzed by the IP camera.)
I don't know if you can understand the intent of my question. We tried to understand the articles below, but could not find an answer to the above question. Any hints on the above question would be appreciated.
https://support.networkoptix.com/hc/en-us/articles/360057026994-Plugin-Control-Flow
https://support.networkoptix.com/hc/en-us/community/posts/360043971033-Bounding-boxes-are-not-visible-working-for-custom-meta-data-packets
-
Hello,
The pullMetadataPackets() is a virtual method the ConsumingDeviceAgent class.
The method should be implemented in a plugin by a developer.
This method is called by the Server. Here is a quotation from the documentation for the Metadata SDK. See the docs folder.
/**
* Override to send the newly constructed metadata packets to Server - add the packets to the
* provided list. Called after pushVideoFrame() to retrieve any metadata packets available to
* the moment (not necessarily referring to that frame). As an alternative, send metadata to
* Server by calling pushMetadataPacket() instead of implementing this method.
*/
virtual bool pullMetadataPackets(std::vector<IMetadataPacket*>* metadataPackets);1. pullMetadataPackets is RTSP metadata right?
No, it's not. It's not a data, it's a method to be implemented in a plugin by a developer.
2. If "pullMetadataPackets" is RTSP's metadata, how can I get the data? (i.e. metadataPackets->data?)
pullMetadataPackets() is not a RTSP metadata. It's a method. This method should generate metadata and populate an array (a vector) of instances of the IMetadataPacket* class with that metadata.
3. If "pullMetadataPackets" is not RTSP metadata, should we receive AI analysis data through socket communication or ONVIF? (AI analysis data is metadata analyzed by the IP camera.)
The pullMetadataPackets() is not a metadata, it's a method to be implemented in a plugin by a developer.
I'm afraid I don't understand your question. Could you please give more details on your objective? What are you trying to achieve? What is the expected result?
0 -
Hi. Thanks for the reply.
We misunderstood "pullMetadataPackets" and SDK.
We are understanding "pullMetadataPackets" as a callback function from the SDK. And I decided to redesign the implementation direction by checking the above answers and SDK.
Thanks for the reply.
0
Please sign in to leave a comment.
Comments
2 comments