Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1e69914

Browse files
committed
Commit
1 parent 77d160c commit 1e69914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎ch04-图片/4.matplotlib.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import cv2
33
from matplotlib import pyplot as plt
44

5-
img = cv2.imread('messi5.jpg', 0)
5+
img = cv2.imread('data/messi5.jpg', 0)
66
plt.imshow(img, cmap='gray', interpolation='bicubic')
77
# 彩色图像使用 OpenCV 加载时是 BGR 模式。但是 Matplotlib 是 RGB 模式。所以彩色图像如果已经被OpenCV 读取, 它将不会被 Matplotlib 正 确显示。
88

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /