Skip to content

Commit

Permalink
Relax LetsGoKillDetector thresholds for more capture card support
Browse files Browse the repository at this point in the history
  • Loading branch information
NympheaR authored Aug 25, 2024
1 parent 7810986 commit 085839a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ bool is_kill_icon(

// extract_box_reference(image, object).save("test.png");

if (object.width() < 20 || object.height() < 20){
if (object.width() < 18 || object.height() < 18){
// cout << "too small: " << object.width() << endl;
return false;
}
Expand Down Expand Up @@ -133,7 +133,7 @@ bool LetsGoKillDetector::detect(const ImageViewRGB32& screen) const{
WaterfillObject object;
while (iter->find_next(object, false)){
double aspect_ratio = object.aspect_ratio();
if (aspect_ratio < 1.5 || aspect_ratio > 2.5){
if (aspect_ratio < 1.5 || aspect_ratio > 2.7){
continue;
}
// cout << object.area << endl;
Expand Down

0 comments on commit 085839a

Please sign in to comment.