
python
文章平均质量分 67
Jenkin_zhu
艺术编程者、文艺梦想家
展开
-
Python中常用的其它基本操作
#要用户手动输入数字或字符串 num = input( "please input the num\n" ) str = raw_input( "please input the str\n" )原创 2017-11-22 20:21:00 · 253 阅读 · 1 评论 -
Python中常用的图像处理操作
本文讲述在Python中对图像进行处理的常见操作(想不到吧,还有这种操作!),希望对大家有所帮助!首先,import cv2,import os,from PIL import Image,接下来让我们愉快地进行图像处理操作。 #读取图像 img = cv2.imread(os.path.join(im_dir, im_path + '.jpg')) #图像融合 img2 = img*0.原创 2017-06-30 14:50:20 · 938 阅读 · 0 评论