예제 #1
0
 def match(self, img, context):
     win = utils.match_binary(img, self.WIN_RECT, 250, 255, self.WIN)
     lose = utils.match_binary(img, self.LOSE_RECT, 250, 255, self.LOSE)
     return win and lose
예제 #2
0
 def match(self, img, context):
     return utils.match_binary(img, self.FRAME_RECT, 90, 255, self.FRAME)