Skip to content

Commit a184766

Browse files
authored
Update blog06-image02.py
1 parent ab451d8 commit a184766

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

blog06-resize/blog06-image02.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#读取图片
66
src = cv2.imread('scenery.png')
77
rows, cols = src.shape[:2]
8-
print rows, cols
8+
print(rows, cols)
99

1010
#图像缩放 dsize(列,行)
1111
result = cv2.resize(src, (int(cols*0.6), int(rows*1.2)))

0 commit comments

Comments
 (0)