Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion 01-Introduction-and-Installation/cv2_read_image_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
start = cv2.getTickCount()

# 读入一张图片
img = cv2.imread('lena.jpg')
# You should use Flag here so that it will read colored or grey
img = cv2.imread('lena.jpg', 0)

# 停止计时
end = cv2.getTickCount()
Expand Down