PerceMon
datastream.hpp
1
16#pragma once
17
18#ifndef __PERCEMON_STREAM_HH__
19#define __PERCEMON_STREAM_HH__
20
21#include <map>
22#include <string>
23
24namespace percemon::datastream {
25
26// TODO: Euclidean Distance between boxes
27// TODO: Lat and Lon distances between boxes.
28
38 size_t xmin;
39 size_t xmax;
40 size_t ymin;
41 size_t ymax;
42};
43
44struct Object {
45 int object_class;
46 double probability;
47 BoundingBox bbox;
48};
49
50struct Frame {
54 double timestamp; // TODO: should I use std::chrono?
58 size_t frame_num;
59
63 // TODO: Should this be doubles?
64 size_t size_x, size_y;
65
66 std::map<std::string, Object> objects;
67};
68
69} // namespace percemon::datastream
70
71#endif /* end of include guard: __PERCEMON_STREAM_HH__ */
Definition: datastream.hpp:37
Definition: datastream.hpp:50
double timestamp
Definition: datastream.hpp:54
size_t size_x
Definition: datastream.hpp:64
size_t frame_num
Definition: datastream.hpp:58
Definition: datastream.hpp:44