Opencv -照片讀取

Eddie Chen
1 min readMay 11, 2020

--

影像辨識第一章

注意需要將照片放在同一個資料夾才可以讀取的到

須照片的格式也需統一

import cv2 as cv
def read0():
src = cv.imread(“img.png”)
cv.imshow(“img”,src)
cv.waitKey(0)
cv.destroyAllWindows()
read0()

--

--

No responses yet