forked from Smorodov/Multitarget-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPedestrianDetector.h
More file actions
49 lines (40 loc) · 1011 Bytes
/
PedestrianDetector.h
File metadata and controls
49 lines (40 loc) · 1011 Bytes
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
47
48
49
#pragma once
#include "BaseDetector.h"
#include "pedestrians/c4-pedestrian-detector.h"
///
/// \brief The PedestrianDetector class
///
class PedestrianDetector final : public BaseDetector
{
public:
enum DetectorTypes
{
HOG,
C4
};
PedestrianDetector(const cv::UMat& gray);
PedestrianDetector(const cv::Mat& gray);
~PedestrianDetector(void) = default;
bool Init(const config_t& config) override;
void Detect(const cv::UMat& gray) override;
bool CanGrayProcessing() const override
{
return true;
}
private:
DetectorTypes m_detectorType = HOG;
///
/// \brief m_hog
/// HOG detector
///
cv::HOGDescriptor m_hog;
///
/// \brief m_scannerC4
/// C4 detector
///
DetectionScanner m_scannerC4;
static const int HUMAN_height = 108;
static const int HUMAN_width = 36;
static const int HUMAN_xdiv = 9;
static const int HUMAN_ydiv = 4;
};