📜  python opencv检查图像读取 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:21.521000             🧑  作者: Mango

代码示例1
import cv2 
import os.path

while not os.path.isfile("myImage.jpg"):
    #ignore if no such file is present.
    pass

img = cv2.imread("myImage.jpg", 0)

cv2.imwrite("result.jpg", img)