dushu.py 文件源码

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

项目:dust_repos 作者: taozhijiang 项目源码 文件源码
def img_contour_extra(im):
    # ?????
    kernel = cv2.getStructuringElement(cv2.MORPH_RECT,(13,7))
    bgmask = cv2.morphologyEx(im, cv2.MORPH_CLOSE, kernel)

    img_show_hook("??????", bgmask)

    # ??????
    # ??????????
    im2, contours, hierarchy = cv2.findContours(bgmask.copy(), cv2.RETR_EXTERNAL, #????
                                cv2.CHAIN_APPROX_SIMPLE)
    return contours
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号