Browse Source

Update 'README.md'

天问 1 year ago
parent
commit
4712dcbebe
1 changed files with 9 additions and 0 deletions
  1. 9 0
      README.md

+ 9 - 0
README.md

@@ -1,2 +1,11 @@
 # imageio
 
+## Usage
+
+```
+import imageio
+im = imageio.imread('imageio:astronaut.png')
+print(im.shape)  # im 是一个 NumPy 数组 (512, 512, 3)
+imageio.imwrite('astronaut-gray.jpg', im[:, :, 0])
+
+```