代码 import cv2 as cv import numpy as np src = cv.imread('./bird.jpg', cv.IMREAD_GRAYSCALE) cv.imshow('input', src)