11 #include <nx/sdk/uuid.h> 12 #include <nx/sdk/analytics/rect.h> 15 namespace vms_server_plugins {
18 namespace object_streamer {
25 std::map<std::string, std::string> attributes;
26 int frameNumberToGenerateObject = 0;
27 int64_t timestampUs = -1;
32 objectStreamIsNotAValidJson,
33 objectStreamIsNotAJsonArray,
34 objectItemIsNotAJsonObject,
38 frameNumberIsNotANumber,
39 boundingBoxIsNotAJsonObject,
45 attributesFieldIsNotAJsonObject,
46 attributeValueIsNotAString,
47 timestampIsNotANumber,
52 std::set<Issue> errors;
53 std::set<Issue> warnings;
58 std::map<int, std::vector<Object>> objectsByFrameNumber;
59 std::set<std::string> objectTypeIds;
62 StreamInfo parseObjectStreamFile(
const std::string& filePath,
Issues* outIssues);
64 bool parseCommonFields(
69 bool parseBoundingBox(
76 std::map<std::string, std::string>* outAttributes,
81 int64_t* outTimestamp,
84 std::string issueToString(Issue issue);
Definition: stream_parser.h:56
Definition: stream_parser.h:50
Definition: apple_utils.h:6
Definition: stream_parser.h:20