
opencv
wyx100
热爱生活,喜欢编程,结交朋友
展开
-
AttributeError: module 'cv2.face' has no attribute 'createEigenFaceRecognizer' 解决办法
报错AttributeError: module 'cv2.face' has no attribute 'createEigenFaceRecognizer'原因:1.版本问题,目前使用版本cv2.face中createEigenFaceRecognizer更名或移除解决:请查看对应版本的说明文档,使用对应版本或属性名。2.未安装opencv_contrib,所以mo...原创 2017-11-10 12:50:58 · 8224 阅读 · 4 评论 -
python+opencv+PIL,在图片和视频中写入中文(汉字)
效果代码#!/usr/bin/env python# -*- coding: utf-8 -*-from PIL import Image, ImageDraw, ImageFontimport cv2import numpy as np# cv2读取图片img = cv2.imread('shishi.jpg') # 名称不能有汉字cv2img = cv2.cvtColor(i...原创 2018-05-22 21:28:39 · 15707 阅读 · 11 评论 -
人脸检测和识别(中文标记)完整项目源代码(基于深度学习+python3.6+dlib+PIL+CNN+(tensorflow、keras)10分钟实现 区分欢乐颂中人物详细图文教程和完整项目代码)
转载请注明:https://blog.youkuaiyun.com/wyx100/article/details/80428424效果展示未完待续。。。环境配置win7sp1python 3.6.3dlib 19.7.0 tensorflow 1.3.0rc0keras ...原创 2018-05-24 00:09:43 · 15521 阅读 · 22 评论 -
图像旋转任意角度不缺失,缺失背景指定颜色填充(python+opencv)图文教程和完整项目代码
效果展示代码import cv2from math import *import numpy as np# 顺时针旋转angle角度,缺失背景白色(255, 255, 255)填充def rotate_bound_white_bg(image, angle): # grab the dimensions of the image and then determine the ...原创 2018-06-01 18:59:28 · 11796 阅读 · 3 评论 -
Python: 'int' object is not subscriptable error 问题解决
报错Python: 'int' object is not subscriptable error报错语句s_x = center[0] - v_x[0] * (width / 2) - v_y[0] * (height / 2) # Python: 'int' object is not subscriptable 传入center是空值,报错原因传入center是空值,报错解决办法 ce...原创 2018-06-01 19:44:00 · 25588 阅读 · 0 评论