Python識別圖片的清晰度

說一下,真實煎熬了一下午,爲了找Python 如何識別一張圖片的人臉清晰度,真實好心累啊。廢話很少說,進入主題。python import cv2 #導入cv2 def getImageVar(imgPath): image = cv2.imread(imgPath); img2gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
相關文章
相關標籤/搜索