game.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:chainer-dqn 作者: dsanno 项目源码 文件源码
def detect_position(self):
        screen = ag.screenshot()
        for name, offset_x, offset_y in [('start', 288, 252), ('select_title', 28, 24)]:
            position = self.find_image(screen, self.images[name])
            if position != None:
                x, y = position
                x -= offset_x
                y -= offset_y
                self.set_position(x, y)
                return (x, y)
        return None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号