11 #include <nx/sdk/analytics/rect.h> 12 #include <nx/sdk/uuid.h> 15 namespace vms_server_plugins {
18 namespace object_streamer {
30 std::string trackIdRef;
32 std::map<std::string, std::string> attributes;
33 int frameNumberToGenerateObject = 0;
34 int64_t timestampUs = -1;
35 EntryType entryType = EntryType::regular;
36 std::string imageSource;
41 objectStreamIsNotAValidJson,
42 objectStreamIsNotAJsonArray,
43 objectItemIsNotAJsonObject,
47 frameNumberIsNotANumber,
48 boundingBoxIsNotAJsonObject,
54 attributesFieldIsNotAJsonObject,
55 attributeValueIsNotAString,
56 timestampIsNotANumber,
57 objectEntryTypeIsNotAString,
58 objectEntryTypeIsUnknown,
59 imageSourceIsNotAString,
64 std::set<Issue> errors;
65 std::set<Issue> warnings;
70 std::map<int, std::vector<Object>> objectsByFrameNumber;
71 std::set<std::string> objectTypeIds;
74 StreamInfo parseObjectStreamFile(
const std::string& filePath,
Issues* issues);
81 bool parseCommonFields(
86 bool parseBoundingBox(
93 std::map<std::string, std::string>* outAttributes,
98 int64_t* outTimestamp,
101 bool parseImageSource(
103 std::string* outImageSource,
106 std::string issueToString(Issue issue);
Definition: stream_parser.h:68
Definition: stream_parser.h:62
Definition: apple_utils.h:6
Definition: stream_parser.h:20