Skip to content

Commit

Permalink
reduce threshold for detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Jul 10, 2024
1 parent 5e23415 commit fa57eeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/task/FarmWorldBossTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ def teleport(self, boss_name):
self.send_key('f2')
gray_book_boss = self.wait_until(
lambda: self.find_one('gray_book_boss', vertical_variance=1, horizontal_variance=0.05,
threshold=0.8, canny_lower=50,
threshold=0.7, canny_lower=50,
canny_higher=150) or self.find_one(
'gray_book_boss_highlight',
vertical_variance=1, horizontal_variance=0.05,
threshold=0.8,
threshold=0.7,
canny_lower=50,
canny_higher=150),
time_out=3)
Expand Down Expand Up @@ -95,7 +95,7 @@ def teleport(self, boss_name):
self.wait_click_feature('gray_custom_way_point', box=self.box_of_screen(0.62, 0.48, 0.70, 0.66),
raise_if_not_found=True,
use_gray_scale=True, threshold=0.75, time_out=2)
travel = self.wait_feature('fast_travel_custom', raise_if_not_found=True, use_gray_scale=True, threshold=0.8)
travel = self.wait_feature('fast_travel_custom', raise_if_not_found=True, use_gray_scale=True, threshold=0.75)
self.click_box(travel, relative_x=1.5)

def check_main(self):
Expand Down

0 comments on commit fa57eeb

Please sign in to comment.