11 #include <nx/sdk/analytics/rect.h> 12 #include <nx/sdk/uuid.h> 15 namespace vms_server_plugins {
18 namespace object_streamer {
20 std::string readFileToString(
const std::string& filePath);
32 std::string trackIdRef;
34 std::map<std::string, std::string> attributes;
35 int frameNumberToGenerateObject = 0;
36 int64_t timestampUs = -1;
37 EntryType entryType = EntryType::regular;
38 std::string imageSource;
43 objectStreamIsNotAValidJson,
44 objectStreamIsNotAJsonArray,
45 objectItemIsNotAJsonObject,
49 frameNumberIsNotANumber,
50 boundingBoxIsNotAJsonObject,
56 attributesFieldIsNotAJsonObject,
57 attributeValueIsNotAString,
58 timestampIsNotANumber,
59 objectEntryTypeIsNotAString,
60 objectEntryTypeIsUnknown,
61 imageSourceIsNotAString,
66 std::set<Issue> errors;
67 std::set<Issue> warnings;
72 std::map<int, std::vector<Object>> objectsByFrameNumber;
73 std::set<std::string> objectTypeIds;
76 StreamInfo parseObjectStreamFile(
const std::string& filePath,
Issues* issues);
83 bool parseCommonFields(
88 bool parseBoundingBox(
95 std::map<std::string, std::string>* outAttributes,
100 int64_t* outTimestamp,
103 bool parseImageSource(
105 std::string* outImageSource,
108 std::string issueToString(Issue issue);
Definition: stream_parser.h:70
Definition: stream_parser.h:64
Definition: apple_utils.h:6
Definition: stream_parser.h:22