-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathSquareDetector.h
More file actions
36 lines (25 loc) · 972 Bytes
/
SquareDetector.h
File metadata and controls
36 lines (25 loc) · 972 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
// 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/DebugController.h"
#include "lib/infrastructure/include/Logger.h"
#include <opencv2/core.hpp>
#include <memory>
#include <vector>
namespace detector::detail
{
class SquareDetector : public api::Detector
{
infrastructure::Logger logger;
infrastructure::DebugController &debugController;
api::DetectorOptions options;
public:
SquareDetector(infrastructure::Context &context, api::DetectorOptions options);
bool isOperational() const override { return true; }
api::Result detect(cv::Mat const &image) override;
std::string getName() const override;
api::DetectorType getType() const override;
};
}