-
Notifications
You must be signed in to change notification settings - Fork 1
/
beebit.h
46 lines (32 loc) · 938 Bytes
/
beebit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include "tracking/trackable_object.h"
#include "util/types.h"
#include <opencv2/opencv.hpp>
#include <opencv2/dnn.hpp>
#include <memory>
#include <string>
namespace beebit {
struct TrackerConfiguration;
class CentroidTracker;
class BeeNet;
class PeopleCounterImpl;
class PeopleCounter
{
public:
PeopleCounter(int cameraIndex, DetectionCallback callback);
~PeopleCounter();
// Begin the people counting operation
void begin();
// Set the line to count people walking past. Normalized in screen co-ordinates.
void setCountLine(float startx, float starty, float endx, float endy);
void setCountLine(const cv::Point2f &start, const cv::Point2f &end);
void enableCountLine();
void disableCountLine();
void setDebugWindow(bool debug);
private:
TrackerConfiguration *m_config;
std::unique_ptr<PeopleCounterImpl> m_impl;
int m_cameraIndex;
bool m_debug;
};
}