-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathball_detector.h
More file actions
33 lines (24 loc) · 983 Bytes
/
ball_detector.h
File metadata and controls
33 lines (24 loc) · 983 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
#ifndef BALL_DETECTOR_H
#define BALL_DETECTOR_H
#include <cstdint>
#include <optional>
#include <vector>
#include <base_detector.h>
#include <object_hypothesis.h>
namespace htwk {
class BallDetector : protected BaseDetector {
public:
using BaseDetector::BaseDetector;
BallDetector(const BallDetector&) = delete;
BallDetector(const BallDetector&&) = delete;
BallDetector& operator=(const BallDetector&) = delete;
BallDetector& operator=(const BallDetector&&) = delete;
virtual ~BallDetector() = default;
// This can be empty when there was no ball in the image.
virtual const std::optional<ObjectHypothesis>& getBall() const = 0;
// This is used by the machine learning tools. This must not be used in the firmware!
virtual const std::vector<ObjectHypothesis>& getRatedBallHypotheses() const = 0;
virtual const std::vector<ObjectHypothesis>& getAllHypothesesWithProb() const = 0;
};
} // namespace htwk
#endif // BALL_DETECTOR_H