Skip to content

Commit a59badc

Browse files
EriczklmMysticial
authored andcommitted
Added non-template constructor
Non-template constructor added to DetectorToFinder to resolve lookup when instatiating it with more arguments
1 parent 5b80f0c commit a59badc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

SerialPrograms/Source/CommonTools/VisualDetector.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ class DetectorToFinder : public Detector, public VisualInferenceCallback{
4444
CONSISTENT, // process_frame() returns true when detected consecutively or not detected consecutively
4545
};
4646

47+
DetectorToFinder(
48+
std::string label,
49+
std::chrono::milliseconds duration
50+
)
51+
: Detector()
52+
, VisualInferenceCallback(std::move(label))
53+
, m_duration(duration)
54+
, m_finder_type(FinderType::PRESENT)
55+
{}
56+
57+
4758
template <class... Args>
4859
DetectorToFinder(
4960
std::string label,

SerialPrograms/Source/PokemonLZA/Inference/PokemonLZA_ButtonDetector.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#ifndef PokemonAutomation_PokemonLZA_ButtonDetector_H
88
#define PokemonAutomation_PokemonLZA_ButtonDetector_H
99

10+
#include <optional>
1011
#include "CommonFramework/VideoPipeline/VideoOverlayScopes.h"
1112
#include "CommonTools/ImageMatch/WaterfillTemplateMatcher.h"
1213
#include "CommonTools/VisualDetector.h"

0 commit comments

Comments
 (0)