read_image.py 文件源码

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

项目:image_text_reader 作者: yardstick17 项目源码 文件源码
def contour_plot_on_text_in_image(inv_img):
    kernel = cv2.getStructuringElement(cv2.MORPH_CROSS, (5, 2))
    dilated = cv2.dilate(inv_img, kernel, iterations=7)  # dilate
    _, contours, hierarchy = cv2.findContours(
        dilated,
        cv2.RETR_EXTERNAL,
        cv2.CHAIN_APPROX_NONE)  # get contours
    return contours
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号