From bd8138e055dd9f5758e8ab31ec166159a486c805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=86=E2=9C=A0Sa=CD=A5b=CD=A3e=CD=ABr=F0=9F=91=91?= =?UTF-8?q?=E2=B0=80?= Date: Fri, 5 Dec 2025 19:05:31 +0800 Subject: [PATCH] add AlertEyeOverWatcher --- .../Inference/PokemonLZA_AlertEyeDetector.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/SerialPrograms/Source/PokemonLZA/Inference/PokemonLZA_AlertEyeDetector.h b/SerialPrograms/Source/PokemonLZA/Inference/PokemonLZA_AlertEyeDetector.h index b4f9ad7ab..a984c10b2 100644 --- a/SerialPrograms/Source/PokemonLZA/Inference/PokemonLZA_AlertEyeDetector.h +++ b/SerialPrograms/Source/PokemonLZA/Inference/PokemonLZA_AlertEyeDetector.h @@ -50,6 +50,17 @@ class AlertEyeWatcher : public DetectorToFinder{ {} }; +class AlertEyeOverWatcher : public DetectorToFinder{ +public: + AlertEyeOverWatcher( + Color color, + VideoOverlay* overlay, + std::chrono::milliseconds hold_duration = std::chrono::milliseconds(250) + ) + : DetectorToFinder("AlertEyeOverWatcher", FinderType::GONE, hold_duration, color, overlay) + {} +}; + class AlertEyeTracker final : public AlertEyeDetector, public VisualInferenceCallback{ public: AlertEyeTracker(Color color, VideoOverlay* overlay, WallDuration min_duration);