frame.py 文件源码

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

项目:SharkCV 作者: hammerhead226 项目源码 文件源码
def contours(self):
        if self._contours is None:
            self._contours = []
            try:
                contours, hierarchy = cv2.findContours(self.ndarray, cv2.RETR_TREE, cv2.CHAIN_APPROX_TC89_KCOS)
                for contour in contours:
                    self._contours.append(sharkcv.Contour(contour))
            except:
                pass
        return self._contours

    # Filter contours by any sharkcv.Contour property
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号