nx_metadata_sdk 1.0 Metadata SDK

object_track_info.h
1 // Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
2
3 #pragma once
4
5 #include <vector>
6 #include <nx/sdk/ptr.h>
7 #include <nx/sdk/helpers/ref_countable.h>
8
9 #include <nx/sdk/analytics/i_object_track_info.h>
10
11 namespace nx {
12 namespace sdk {
13 namespace analytics {
14
15 class ObjectTrackInfo: public RefCountable<IObjectTrackInfo>
16 {
17 public:
18 void setTrack(IList<ITimestampedObjectMetadata>* track);
19 void setBestShotVideoFrame(IUncompressedVideoFrame* bestShotVideoFrame);
20 void setBestShotObjectMetadata(ITimestampedObjectMetadata* bestShotObjectMetadata);
21 void setBestShotImageData(std::vector<char> bestShotImageData);
22 void setBestShotImageDataFormat(std::string bestShotImageDataFormat);
23 void setBestShotImage(
24 std::vector<char> bestShotImageData,
25 std::string bestShotImageDataFormat);
26
27 virtual const char* bestShotImageData() const override;
28 virtual int bestShotImageDataSize() const override;
29 virtual const char* bestShotImageDataFormat() const override;
30
31 protected:
32 virtual IList<ITimestampedObjectMetadata>* getTrack() const override;
33 virtual IUncompressedVideoFrame* getBestShotVideoFrame() const override;
34 virtual ITimestampedObjectMetadata* getBestShotObjectMetadata() const override;
35 private:
36 Ptr<IList<ITimestampedObjectMetadata>> m_track;
37 Ptr<IUncompressedVideoFrame> m_bestShotVideoFrame;
38 Ptr<ITimestampedObjectMetadata> m_bestShotObjectMetadata;
39
40 std::vector<char> m_bestShotImageData;
41 std::string m_bestShotImageDataFormat;
42 };
43
44 } // namespace analytics
45 } // namespace sdk
46 } // namespace nx
nx::sdk::Ptr
Definition: ptr.h:18
nx
Definition: apple_utils.h:6
nx::sdk::analytics::ITimestampedObjectMetadata
Definition: i_timestamped_object_metadata.h:11
nx::sdk::analytics::ObjectTrackInfo
Definition: object_track_info.h:15
nx::sdk::analytics::IUncompressedVideoFrame
Definition: i_uncompressed_video_frame.h:73
nx::sdk::IList
Definition: i_list.h:9
nx::sdk::RefCountable
Definition: ref_countable.h:84