EdgeDetection.py 文件源码

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

项目:SummerProject_MacularDegenerationDetection 作者: WDongYuan 项目源码 文件源码
def ToGrayImage(path):
    image = cv2.imread(path)
    gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
    # cv2.imwrite('gray_image.jpg',gray_image)
    # cv2.imshow('color_image',image)
    # cv2.imshow('gray_image',gray_image)
    # cv2.waitKey(0)                 # Waits forever for user to press any key
    # cv2.destroyAllWindows()        # Closes displayed windows
    return gray_image
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号