Skip to content

Commit db07ccf

Browse files
authored
Create blog28-face-01.py
1 parent 7cbe247 commit db07ccf

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# -*- coding:utf-8 -*-
2+
import cv2
3+
4+
#读取图片
5+
img = cv2.imread("yxz.png")
6+
7+
#显示图像
8+
cv2.imshow("Demo", img)
9+
10+
#等待显示
11+
cv2.waitKey(0)
12+
cv2.destroyAllWindows()
13+
14+
#写入图像
15+
cv2.imwrite("yxz-test.png", img)

0 commit comments

Comments
 (0)