size_detector.py 文件源码

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

项目:gaps 作者: nemanja-m 项目源码 文件源码
def _filter_image(self, image):
        _, thresh = cv2.threshold(image, 200, 255, cv2.THRESH_BINARY)
        opened = cv2.morphologyEx(thresh, cv2.MORPH_OPEN, (5, 5), iterations=3)

        return cv2.bitwise_not(opened)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号