MediaX v1.1.2 [7554dd3]
Video streaming for military vehicles
Loading...
Searching...
No Matches
tracked_object.h
1#ifndef CVTRACK_TRACKED_OBJECT_H_
2#define CVTRACK_TRACKED_OBJECT_H_
3
4#include <cstdint>
5
6namespace cvtrack
7{
8
9 // Represents a 2D bounding box.
11 {
12 int x, y, width, height;
13 };
14
15 // Represents a tracked object.
17 {
18 public:
19 TrackedObject(uint64_t id, const BoundingBox &box) : id_(id), box_(box) {}
20
21 uint64_t id() const { return id_; }
22 const BoundingBox &box() const { return box_; }
23 void set_box(const BoundingBox &box) { box_ = box; }
24
25 private:
26 uint64_t id_;
27 BoundingBox box_;
28 };
29
30} // namespace cvtrack
31
32#endif // CVTRACK_TRACKED_OBJECT_H_
Definition tracked_object.h:17
Definition tracked_object.h:11