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()

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response