-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Expand file tree
/
Copy pathssd_detector.hpp
More file actions
31 lines (25 loc) · 891 Bytes
/
ssd_detector.hpp
File metadata and controls
31 lines (25 loc) · 891 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
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Tencent is pleased to support the open source community by making WeChat QRCode available.
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
#ifndef __DETECTOR_SSD_DETECTOR_HPP_
#define __DETECTOR_SSD_DETECTOR_HPP_
#include <stdio.h>
#include "opencv2/dnn.hpp"
#include "opencv2/imgproc.hpp"
namespace cv {
namespace wechat_qrcode {
class SSDDetector {
public:
SSDDetector(){};
~SSDDetector(){};
int init(const std::string& onnx_path);
std::vector<Mat> forward(Mat img, const int target_width, const int target_height);
private:
dnn::Net net_;
};
} // namespace wechat_qrcode
} // namespace cv
#endif // __DETECTOR_SSD_DETECTOR_HPP_