[置顶] python opencv 读图程序


import numpy as np
import cv2

def show():
    fn = 'd:/3.jpg'
    img = cv2.imread(fn) 
    cv2.imshow('src', img)
    cv2.namedWindow('src')
    
    
show()
while True:
        ch = cv2.waitKey()
        if ch == 27:
            break
效果图:

[置顶] python opencv 读图程序_第1张图片


你可能感兴趣的:(python,图片,opencv,numpy)