-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathClassifierDetector.h
More file actions
34 lines (23 loc) · 935 Bytes
/
Copy pathClassifierDetector.h
File metadata and controls
34 lines (23 loc) · 935 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
// SPDX-FileCopyrightText: (C) 2022 user4223 and (other) contributors to ticket-decoder <https://github.com/user4223/ticket-decoder>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include "lib/detector/api/include/Detector.h"
#include "lib/infrastructure/include/ContextFwd.h"
#include "lib/infrastructure/include/Logger.h"
#include <opencv2/core.hpp>
#include <memory>
namespace detector::detail
{
class ClassifierDetector : public api::Detector
{
infrastructure::Logger logger;
struct Internal;
std::shared_ptr<Internal> internal; // by intention a shared_ptr 2 allow forward declared type here
public:
ClassifierDetector(infrastructure::Context &context, api::DetectorOptions options);
virtual bool isOperational() const override;
api::Result detect(cv::Mat const &image) override;
std::string getName() const override;
api::DetectorType getType() const override;
};
}