![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
opencv
eclipSYcn
helloworld
展开
-
openCV3 cv2.putText()
找了很多cv2.putText,总提示TypeError:an integer is requiredTypeError:integer argument expected, got float只有这个好使 openCV 3.2 cv2.putText(img, txt, (int(x),int(y)), fontFace, fontSize, fontColor, fontThickness)原创 2017-12-13 16:01:48 · 3663 阅读 · 0 评论 -
Python opencv添加圣诞帽,不需要微信官方
圣诞帽,命名为hat.png,注意是png文件 person code:import cv2from PIL import ImagepersonPath = './xyjy.jpg'hatPath = './hat.png'personImg = cv2.imread(personPath)face_haar = cv2.CascadeClassifier("./haarcasca原创 2017-12-25 23:52:48 · 1166 阅读 · 1 评论 -
人脸识别face recognition
0 简介人脸识别大致分为如下三个部分:人脸检测 face detection人脸对齐 face alignment人脸识别 face recognition,包括: face verification:两张图片相似程度。face identification: 在图片库中检索与当前图片相似度最高的图片。1 人脸检测face detection通常认为是在图片中找到人原创 2017-10-29 21:56:13 · 8122 阅读 · 0 评论 -
opencv 代替caffe.io.load_image
self.net.blobs['data'].reshape(1, 3, self.image_resize, self.image_resize)#image = caffe.io.load_image(image_file)image = cv2.imread(image_file)image = cv2.resize(image, (300,300))img = np.zeros((1原创 2018-01-19 18:01:31 · 887 阅读 · 0 评论