main.py 文件源码

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

项目:frc-livescore 作者: andrewda 项目源码 文件源码
def getTopBar(self, img):
        template_width = self.TEMPLATE_TOP.shape[1]
        img_width = img.shape[1]
        template = imutils.resize(self.TEMPLATE_TOP,
                                  width=int(template_width/1280.0*img_width))
        top_left, bottom_right = self.matchTemplate(img, template)

        located = img[top_left[1]:bottom_right[1], top_left[0]:bottom_right[0]]
        h, w = located.shape[:2]

        return located[:, int(w*0.125):int(w*0.5)]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号