Skip to content

Commit 89c046c

Browse files
naussikaGin890
authored andcommitted
add AlertEyeOverWatcher
1 parent 78b199f commit 89c046c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

SerialPrograms/Source/PokemonLZA/Inference/PokemonLZA_AlertEyeDetector.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ class AlertEyeWatcher : public DetectorToFinder<AlertEyeDetector>{
5050
{}
5151
};
5252

53+
class AlertEyeOverWatcher : public DetectorToFinder<AlertEyeDetector>{
54+
public:
55+
AlertEyeOverWatcher(
56+
Color color,
57+
VideoOverlay* overlay,
58+
std::chrono::milliseconds hold_duration = std::chrono::milliseconds(250)
59+
)
60+
: DetectorToFinder("AlertEyeOverWatcher", FinderType::GONE, hold_duration, color, overlay)
61+
{}
62+
};
63+
5364
class AlertEyeTracker final : public AlertEyeDetector, public VisualInferenceCallback{
5465
public:
5566
AlertEyeTracker(Color color, VideoOverlay* overlay, WallDuration min_duration);

0 commit comments

Comments
 (0)