Skip to content

Commit 0d095ba

Browse files
committed
Reduce BlackScreenDetector default durations.
1 parent c44e398 commit 0d095ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SerialPrograms/Source/CommonFramework/Inference/BlackScreenDetector.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class BlackScreenWatcher : public DetectorToFinder<BlackScreenDetector>{
6666
double max_rgb_sum = 100,
6767
double max_stddev_sum = 10,
6868
FinderType finder_type = FinderType::PRESENT,
69-
std::chrono::milliseconds duration = std::chrono::milliseconds(250)
69+
std::chrono::milliseconds duration = std::chrono::milliseconds(100)
7070
)
7171
: DetectorToFinder("BlackScreenWatcher", finder_type, duration, color, box, max_rgb_sum, max_stddev_sum)
7272
{}
@@ -80,8 +80,8 @@ class BlackScreenOverWatcher : public VisualInferenceCallback{
8080
const ImageFloatBox& box = {0.1, 0.1, 0.8, 0.8},
8181
double max_rgb_sum = 100,
8282
double max_stddev_sum = 10,
83-
std::chrono::milliseconds hold_duration = std::chrono::milliseconds(250),
84-
std::chrono::milliseconds release_duration = std::chrono::milliseconds(250)
83+
std::chrono::milliseconds hold_duration = std::chrono::milliseconds(100),
84+
std::chrono::milliseconds release_duration = std::chrono::milliseconds(100)
8585
);
8686

8787
bool black_is_over(const ImageViewRGB32& frame);

0 commit comments

Comments
 (0)