自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(0)
  • 资源 (6)
  • 收藏
  • 关注

空空如也

shape_predictor_81_face_landmarks.dat

dlib人脸特征库分类器,81个点 包含使用代码,通过摄像头识别人脸 import cv2 import dlib from skimage import io import numpy as np # 使用特征提取器get_frontal_face_detector detector = dlib.get_frontal_face_detector() # dlib的68点模型,使用作者训练好的特征预测器 predictor = dlib.shape_predictor("shape_predictor_81_face_landmarks.dat") cap=cv2.VideoCapture(0) while True: ret,img=cap.read() dets = detector(img, 1) for k, d in enumerate(dets): print("第", k+1, "个人脸d的坐标:", "left:", d.left(), "right:", d.right(), "top:", d.top(), "bottom:", d.bottom()) width = d.right() - d.left() heigth = d.bottom() - d.top() print('人脸面积为:',(width*heigth)) # 利用预测器预测 #shape = predictor(img, d) cv2.rectangle(img,(d.left(),d.top()),(d.right(),d.bottom()),(0,255,0),1) shape = predictor(img, d) landmarks = np.matrix([[p.x, p.y] for p in shape.parts()]) for num in range(shape.num_parts): cv2.circle(img, (shape.parts()[num].x, shape.parts()[num].y), 3, (0,255,0), -1) #cv2.putText(img, str(i), (shape.part(i).x, shape.part(i).y), cv2.FONT_HERSHEY_SIMPLEX, 0.5, (255, 255, 255)) cv2.imshow("img",img) if cv2.waitKey(1) & 0xFF == ord('q'): break

2019-05-15

轮播广告.html

简单 易用的图片轮播 是做为学习轮播效果的好例子 ,可以在此基本上完善

2012-11-26

css hack div 布局

css 浏览器兼容性div 布局 收集了大量css浏览器兼容性代码

2010-12-11

flex(eclipse)开发配置手册

flex(eclipse)开发配置手册

2010-10-11

java读取word

找了好久的包,里面包含WordExtractor

2010-04-07

MYQQ(C#实现的)

MyqQ 这是我在学校学完C#做的,有什么Bug请见谅,必竟是初学生吗!所有的是MS 的sql server2005 +VS2005

2009-03-08

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除