11 #include <nx/sdk/uuid.h> 12 #include <nx/sdk/analytics/rect.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,
61 std::set<Issue> errors;
62 std::set<Issue> warnings;
67 std::map<int, std::vector<Object>> objectsByFrameNumber;
68 std::set<std::string> objectTypeIds;
71 StreamInfo parseObjectStreamFile(
const std::string& filePath,
Issues* outIssues);
73 bool parseCommonFields(
78 bool parseBoundingBox(
85 std::map<std::string, std::string>* outAttributes,
90 int64_t* outTimestamp,
93 bool parseImageSource(
95 std::string* outImageSource,
98 std::string issueToString(Issue issue);
Definition: stream_parser.h:65
Definition: stream_parser.h:59
Definition: apple_utils.h:6
Definition: stream_parser.h:20