- 博客(3)
- 收藏
- 关注
原创 python:用OpenCV做人脸识别时,haarcascade_frontalface_default.xml文件如何下载
最近在搞个人脸识别玩玩,在用到OpenCV的级联分类器时,需要用到一个文件:haarcascade_frontalface_default.xml,那该文件该如何下载呢?1.下载地址如下:https://github.com/opencv/opencv/tree/master/data/haarcascades2.找到haarcascade_frontalface_default.xml文...
2019-02-23 11:33:30 19408 30
原创 python中莫名奇妙出现的错误:TabError: inconsistent use of tabs and spaces in indentation
最近在写代码,发现有个地方一直报这个错误:TabError: inconsistent use of tabs and spaces in indentation,检查了很多遍,但是却不知是什么问题,最后,看到了一句话,才把错误解决:这一般是由于混用了tab键和4个空格键造成的,可以检查一下代码,要么全部使用tab,要么全部使用4个空格意思就是不能tab键和空格键混用,只能用其中的一种。...
2019-02-19 10:29:16 1831
原创 pyqt5:一个页面存在多个按钮,实现对各个按钮的拖动
一.对一个按钮进行拖动代码来自:https://www.jb51.net/article/138870.htmimport sysfrom PyQt5.QtWidgets import QPushButton, QWidget, QApplicationfrom PyQt5.QtCore import Qt, QMimeDatafrom PyQt5.QtGui import QDrag...
2019-02-17 18:58:44 2984
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人