stub_analytics_plugin  1.6
Network Optix Video Analytics SDK
objects_metadata_packet.h
1 #pragma once
2 
3 #include <nx/sdk/common.h>
4 
5 #include "iterable_metadata_packet.h"
6 
7 namespace nx {
8 namespace sdk {
9 namespace analytics {
10 
14 struct Rect
15 {
16  Rect() {}
17 
18  Rect(float x, float y, float width, float height):
19  x(x), y(y), width(width), height(height)
20  {
21  }
22 
26  float x = 0;
27 
31  float y = 0;
32 
37  float width = 0;
38 
43  float height = 0;
44 };
45 
50 static const nxpl::NX_GUID IID_Object
51  = {{0x0f, 0xf4, 0xa4, 0x6f, 0xfd, 0x08, 0x4f, 0x4a, 0x97, 0x88, 0x16, 0xa0, 0x8c, 0xd6, 0x4a, 0x29}};
52 
56 class Object: public MetadataItem
57 {
58 public:
63  virtual nxpl::NX_GUID id() const = 0;
64 
68  virtual const char* objectSubType() const = 0;
69 
73  virtual const IAttribute* attribute(int index) const = 0;
74 
78  virtual int attributeCount() const = 0;
79 
83  virtual const char* auxilaryData() const = 0;
84 
88  virtual Rect boundingBox() const = 0;
89 };
90 
95 static const nxpl::NX_GUID IID_ObjectsMetadataPacket
96  = {{0x89, 0x89, 0xa1, 0x84, 0x72, 0x09, 0x4c, 0xde, 0xbb, 0x46, 0x09, 0xc1, 0x23, 0x2e, 0x31, 0x85}};
97 
102 {
103 public:
108  virtual Object* nextItem() = 0;
109 };
110 
111 } // namespace analytics
112 } // namespace sdk
113 } // namespace nx
virtual const char * objectSubType() const =0
(e.g. vehicle type: truck, car, etc)
float x
Definition: objects_metadata_packet.h:26
virtual nxpl::NX_GUID id() const =0
id of detected object. If the object (e.g. particular person) is detected on multiple frames this par...
float width
Definition: objects_metadata_packet.h:37
Definition: iterable_metadata_packet.h:22
float y
Definition: objects_metadata_packet.h:31
GUID of plugin interface.
Definition: plugin_api.h:21
virtual const IAttribute * attribute(int index) const =0
attributes array of object attributes (e.g. age, color).
Definition: common.h:55
virtual const char * auxilaryData() const =0
auxilaryData user side data in json format. Null terminated UTF-8 string.
float height
Definition: objects_metadata_packet.h:43
virtual Rect boundingBox() const =0
boundingBox bounding box of detected object.
Definition: objects_metadata_packet.h:56
Definition: debug.cpp:14
Definition: objects_metadata_packet.h:101
Definition: metadata_item.h:20
virtual int attributeCount() const =0
attributeCount count of attributes
Definition: objects_metadata_packet.h:14