计算机视觉
基于python的计算机视觉的简单整理,以后应该不会往视觉方向发展了,但是毕竟学了那么久,还是整理下基础知识吧
头发太多而被寺庙拒收
总要让自己强大起来,才能保护身边的人
展开
-
图片处理之色彩通道的合并和分离
文章目录程序结果程序#coding-utf-8#author:石金雨from PIL import Imageimport matplotlib.pyplot as pltimg=Image.open('psb.jpg') #打开图像gray=img.convert('L') #转换成灰度r,g,b=img.split() #分离三通道pic=Image.merge('...原创 2019-05-22 20:20:10 · 1761 阅读 · 0 评论 -
图片加密程序
文章目录程序结果程序#coding-utf-8#author:石金雨import base64def convert_image(): # Picture ==> base64 encode with open('psb.jpg', 'rb') as fin: image_data = fin.read() base64_data = base6...原创 2019-05-22 20:03:31 · 1157 阅读 · 0 评论 -
海归画画之老猪佩奇
文章目录代码结果代码#coding-utf-8#author:石金雨from turtle import*def nose(x,y):#鼻子 penup()#提起笔 goto(x,y)#定位 pendown()#落笔,开始画 setheading(-30)#将乌龟的方向设置为to_angle/为数字(0-东、90-北、180-西、270-南) b...原创 2019-05-22 19:47:02 · 275 阅读 · 0 评论 -
一个简单的人脸识别程序
文章目录程序结果程序#coding-utf-8#author:Shijinyuimport cv2face_patterns = cv2.CascadeClassifier(r'E:\anaconda\pkgs\opencv3-3.1.0-py35_0\Library\etc\haarcascades\haarcascade_frontalface_default.xml') #加载识别...原创 2019-05-22 19:34:09 · 4123 阅读 · 0 评论