自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(36)
  • 资源 (1)
  • 收藏
  • 关注

原创 MTCNN+FaceNet保姆级指南

1.论文出处1.MTCNN:Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Networks论文原文????:2.FaceNet: A Unified Embedding for Face Recognition and Clustering论文原文????:2.简介2.1 MTCNNMTCNN(Multi-task convolutional neural network) 是一种用于人脸检

2021-08-06 22:28:21 2647

原创 形象展示QImage里面的几种RGB Format

Format_RGB32Format_RGB666Format_RGB555Format_RGB888普通视觉效果

2021-05-31 19:18:46 1034

转载 mysql笔记

4.15db = MySQLdb.connect(host="www.gyyx.com",user="user",passwd="xxx",db="mysql" )connect()的参数列表如下:host,连接的数据库服务器主机名,默认为本地主机(localhost)。user,连接数据库的用户名,默认为当前用户。passwd,连接密码,没有默认值。db,连接的数据库名,没有默认值。...

2021-04-15 14:54:30 191

原创 PyQt5_Qt Designer_widget box简介

widget boxlayout 布局vertical layout竖直布局horizontal layout水平布局grid layout栅格布局form layout表格布局spacer间隔部件horizontal spacer水平间隔部件vertical spacer竖直间隔部件button按钮push button按压按钮tool button工具按钮radio button单选按钮check box多选框command li

2021-04-09 13:12:35 3622

原创 python:cv2.putText用法

OpenCV官方文档:To put texts in images, you need specify following things.Text data that you want to writePosition coordinates of where you want put it (i.e. bottom-left corner where data starts).Font type (Check cv.putText() docs for supported fonts)Font

2021-03-25 14:27:00 6269

原创 time.time(),time.localtime(),time.asctime():python中三种表示现在时间的方法

time.time():返回现在的时间(从1970年初算起)time.localtime():另一种表示格式:time.struct_time(…)time.asctime():另一种表示格式:Sun Mar 21 10:05:16 2021import timetim = time.time()localtim = time.localtime(tim)asctim = time.asctime(localtim)print(tim)print(localtim)print(asctim

2021-03-21 10:15:20 2354

原创 python:<built-in function time>解决

原因:调用time.time()的时候没写()。

2021-03-21 09:56:11 2038 2

原创 os.path.getctime():返回文件创建的时间;time.ctime():转换时间格式

os.path.getctime:返回文件创建时间(从1970年1月1日算起)import os import timecv = "D:\\cv"tim = os.path.getctime(cv)print(tim)可以看到现在返回的时间是从1970算起的import osimport timecv = "D:\\cv"tim = os.path.getctime(cv)tim = time.ctime(tim)print(tim)只需要用time.ctime()就可以将

2021-03-20 11:41:34 6080 1

原创 for i in range()三例

range(4):从0到4,不包含4,即0,1,2,3range(1,4):从1到4,不包含4,即1,2,3range(1,4,2):从1到4,步长为2,即1,3

2021-03-20 09:56:49 1244

原创 os.listdir()

os.listdir:返回指定的文件夹里的文件和文件夹的名字的列表import osimport syspath = "D:\cv"dirs = os.listdir(path)for file in dirs:​ print(file)

2021-03-19 22:33:01 152

原创 dlib库安装

致谢首先,感谢这位大佬问题自己最开始用pip install dlib,但是一直都安不上解决下载下来,然后本地安装就成功了测试一下前置条件:1.已经安装了vs; 2.pip install cmake; 3.pip install boost

2021-03-12 23:55:15 383

原创 人脸识别的活体检测

身份伪造身份伪造:照片人脸攻击、视频人脸攻击、三维人脸模型攻击等活体检测方法1.分析人脸旋转时的面部光流分析法2.傅里叶频谱与纹理分析法3.动态纹理分析法上述方法对光照条件依赖较大,可考虑以下两种方法的复合使用:1.环境背景分析:系统初始化的时候保存摄像头的图像作为背景图像,与人脸检测的背景比较。2.眨眼检测:顾名思义。...

2021-03-07 05:56:40 493

翻译 OpenCV-Python官方文档中文翻译20:Image Pyramids

Image PyramidsGoalIn this chapter,We will learn about Image PyramidsWe will use Image pyramids to create a new fruit, “Orapple”We will see these functions: cv.pyrUp(), cv.pyrDown()关于图像金字塔使用图像金字塔创建一个新的水果"Orapple"函数 cv.pyrUp(),cv.pyrDown()TheoryN

2021-02-26 00:44:19 302

翻译 OpenCV-Python官方文档中文翻译19:Canny Edge Detection

Canny Edge DetectionGoalIn this chapter, we will learn aboutConcept of Canny edge detectionOpenCV functions for that : cv.Canny()Canny边缘检测的概念函数:cv.Canny()TheoryCanny Edge Detection is a popular edge detection algorithm. It was developed by John F

2021-02-25 19:55:51 368

翻译 OpenCV-Python官方文档中文翻译18:Image Gradients图像梯度

Image GradientsGoalIn this chapter, we will learn to:Find Image gradients, edges etcWe will see following functions : cv.Sobel(), cv.Scharr(), cv.Laplacian() etc找到图像梯度,边缘等等函数:cv.Sobel(),cv.Scharr(),cv.Laplacian()等等TheoryOpenCV provides three type

2021-02-25 14:37:08 213

翻译 OpenCV-Python官方文档中文翻译17:Morphological Transformations形态变换

Morphological TransformationsGoalIn this chapter,We will learn different morphological operations like Erosion, Dilation, Opening, Closing etc.We will see different functions like : cv.erode(), cv.dilate(), cv.morphologyEx() etc.学习不同的形态学操作,例如腐蚀,膨胀,开运

2021-02-24 22:42:06 249

翻译 OpenCV-Python官方文档中文翻译16:Smoothing images 平滑图像

Smoothing ImagesGoalsLearn to:Blur images with various low pass filtersApply custom-made filters to images (2D convolution)学习:用各种低通滤波器处理模糊图像应用定制滤波器处理图像(2D卷积)2D Convolution ( Image Filtering )As in one-dimensional signals, images also can be fi

2021-02-24 20:38:13 279

翻译 OpenCV-Python官方文档中文翻译15:Image Thresholding图像阈值

Image ThresholdingGoalIn this tutorial, you will learn simple thresholding, adaptive thresholding and Otsu’s thresholding.You will learn the functions cv.threshold and cv.adaptiveThreshold.在这个教程,你将学习简单阈值,自适应阈值,大津阈值。你将学习函数 cv.threshold,cv.adaptiveThre

2021-02-23 16:58:18 443

翻译 OpenCV-Python官方文档中文翻译14:geometric transformations to images图像几何变换

GoalsLearn to apply different geometric transformations to images, like translation, rotation, affine transformation etc.You will see these functions: cv.getPerspectiveTransform学习将不同的变换应用到图片上,像平移,旋转,仿射变换等。你将看到这些函数:cv.getPerspectiveTransformTransform

2021-02-20 15:41:59 329

翻译 OpenCV-Python官方文档中文翻译13:Changing Colorspaces改变色彩空间

Changing ColorspacesGoalIn this tutorial, you will learn how to convert images from one color-space to another, like BGR ↔ Gray, BGR ↔ HSV, etc.In addition to that, we will create an application to extract a colored object in a videoYou will learn the

2021-02-16 20:39:00 213

翻译 OpenCV-Python官方文档中文翻译12:Performance Measurement and Improvement Techniques性能评估和提高技术

Performance Measurement and Improvement TechniquesGoalIn image processing, since you are dealing with a large number of operations per second, it is mandatory that your code is not only providing the correct solution, but that it is also providing it in

2021-02-16 18:35:52 233

翻译 OpenCV-Python官方文档中文翻译11:Arithmetic Operations on Images图片的算术操作

Arithmetic Operations on ImagesGoalLearn several arithmetic operations on images, like addition, subtraction, bitwise operations, and etc.Learn these functions: cv.add(), cv.addWeighted(), etc.学习图片的几种算术运算,比如加法,减法,按位运算等等。学习这些函数:cv.add(),cv.addWeighted

2021-02-16 14:53:31 217

翻译 OpenCV-Python官方文档中文翻译10:Basic Operations on Images图片的基本操作

Basic Operations on ImagesGoalLearn to:Access pixel values and modify themAccess image propertiesSet a Region of Interest (ROI)Split and merge imagesAlmost all the operations in this section are mainly related to Numpy rather than OpenCV. A good k

2021-02-16 12:14:04 166

翻译 OpenCV-Python官方文档中文翻译9:Trackbar as the Color Palette跟踪条作为调色板

Trackbar as the Color PaletteGoalLearn to bind trackbar to OpenCV windowsYou will learn these functions : cv.getTrackbarPos(), cv.createTrackbar() etc.学习如何将跟踪条与OpenCV窗口绑定你将学习这些功能: cv.getTrackbarPos(), cv.createTrackbar() 等等Code DemoHere we will cr

2021-02-15 18:53:03 203

翻译 OpenCV-Python官方文档中文翻译8:Mouse as a Paint-Brush鼠标作为画笔

Mouse as a Paint-BrushGoalLearn to handle mouse events in OpenCVYou will learn these functions : cv.setMouseCallback()学习如何在OpenCV中处理鼠标事件你将学习这些函数: cv.setMouseCallback()Simple DemoHere, we create a simple application which draws a circle on an image

2021-02-15 12:52:13 171

翻译 OpenCV-Python官方文档中文翻译7:Drawing Functions in OpenCV OpenCV中的绘图功能

Drawing Functions in OpenCVGoalLearn to draw different geometric shapes with OpenCVYou will learn these functions : cv.line(), cv.circle() , cv.rectangle(), cv.ellipse(), cv.putText() etc.学习用OpenCV画不同的几何图形你将学习这些功能: cv.line(), cv.circle() , cv.rectang

2021-02-14 01:24:03 167

翻译 OpenCV-Python官方文档中文翻译6:Getting Started with Videos从视频开始

Getting Started with VideosGoalLearn to read video, display video, and save video.#学习读取视频,展示视频,保存视频。Learn to capture video from a camera and display it.#学会从照相机捕捉视频,并展示。You will learn these functions : cv.VideoCapture(), cv.VideoWriter()#你将学习这些功能:cv.Vi

2021-02-12 21:52:57 1624

翻译 OpenCV-Python官方文档中文翻译5:Getting Started with Images图像入门

Getting Started with ImagesWarningThis tutorial can contain obsolete information.警告:该教程可能包含已淘汰的信息。GoalIn this tutorial you will learn how to:Read an image from file (using cv::imread)Display an image in an OpenCV window (using cv::imshow)Write

2021-02-10 00:44:16 236

翻译 OpenCV-Python官方文档中文翻译4:Install OpenCV-Python in Ubuntu在Ubuntu安装OpenCV-Python

Install OpenCV-Python in UbuntuGoalsIn this tutorial We will learn to setup OpenCV-Python in Ubuntu System. Below steps are tested for Ubuntu 16.04 and 18.04 (both 64-bit).OpenCV-Python can be installed in Ubuntu in two ways:Install from pre-built bin

2021-02-09 23:21:41 467

翻译 OpenCV-Python官方文档中文翻译3:Install OpenCV-Python in Fedora在Fedora上安装OpenCV-Python

Install OpenCV-Python in FedoraGoalsIn this tutorialWe will learn to setup OpenCV-Python in your Fedora system. Below steps are tested for Fedora 18 (64-bit) and Fedora 19 (32-bit).在此教程我们将学习如何在Fedora系统安装OpenCV-Python。以下步骤测试于64位的Fedora18和32位的Fedora1

2021-02-08 00:45:25 286

翻译 OpenCV-Python官方文档中文翻译2:Install OpenCV-Python in Windows在Windows安装OpenCV-Python

Install OpenCV-Python in WindowsGoalsIn this tutorialWe will learn to setup OpenCV-Python in your Windows system.Below steps are tested in a Windows 7-64 bit machine with Visual Studio 2010 and Visual Studio 2012. The screenshots shows VS2012.在这个教程

2021-02-07 19:52:00 355

翻译 OpenCV-Python官方文档中文翻译1:Introduction to OpenCV-Python Tutorials

Introduction to OpenCV-Python TutorialsOpenCVOpenCV was started at Intel in 1999 by Gary Bradsky, and the first release came out in 2000. Vadim Pisarevsky joined Gary Bradsky to manage Intel’s Russian software OpenCV team. In 2005, OpenCV was used on Sta

2021-02-07 13:27:47 488

原创 Spyder字体大小调节+背景更换

Spyder版本:4.1.2笔记本为matebook13,屏幕只有13英寸。。。看了一下网上大家写的,发现调节的位置有些不一样,可能是版本问题。字体大小tools->preferences->Appearance->Fonts背景tools->preferences->Appearance->Syntax highlighting theme->Spyder Dark(背景选择)minemine...

2021-02-04 17:12:46 3526 1

原创 Typora更换主题

下载主题去Typora的官网下载需要的主题:https://theme.typora.io/以下面为例点击homepage,进入后再点击Download ZIP,就把主题的压缩包下下来了设置主题将安装包解压缩在Typora里打开偏好设置(或者直接ctrl+逗号),外观->主题->打开主题文件夹将解压的文件夹里除了readme的所有文件夹复制过去。再重启Typora就OK了。...

2021-02-04 14:14:25 230 1

原创 pyqt5按钮大小自适应解决方法

问题描述学习pyqt5时,发现将窗口放大后按钮和图片还是原来的大小,就想解决如何使按钮和图片也随着窗口大小的变化而变化。关键:栅格布局用layout里的栅格布局,可以很好地实现部件大小随窗口大小的自适应变化。效果图如下:follow me以下面三个按钮和两个文本为例将上面两个用鼠标框在一起,右键点击布局里的栅格布局。再将下面三个框在一起选择栅格布局。再其余空白处选择栅格布局,整个界面就都是栅格布局了。总结上面的例子相当于是有两层结构的:第一层是上面两个方块一起组成的栅

2021-02-03 21:16:37 4252 1

原创 进化算法:拯救大龟乔治

进化论十九世纪,达尔文在加拉帕戈斯群岛观察象龟时发现,在不同的岛屿环境下,象龟的形态也不同。在高地岛的湿润环境下,象龟体积更大,有着半球形的龟壳和短脖子,而在低地岛的干燥环境下,象龟体积更小,有着马鞍形状的龟壳和长脖子。这些差异引发了达尔文的思考,也为日后进化论的诞生做了铺垫。下图为四种象龟,可以看出性状各有不同。平塔岛象龟:孤独乔治圣克里斯托巴尔岛象龟加拉帕戈斯·唐福斯托象龟圣克鲁兹岛象龟EAs如今进化论已经成为了学界的共识,不仅仅局限于生物领域,其他领域的科学家也从中获得了

2021-01-31 23:55:39 324

dlib-19.17.99-cp37-cp37m-win_amd64.zip

dlib本地安装:dlib-19.17.99-cp37-cp37m-win_amd64.whl

2021-03-13

空空如也

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

TA关注的人

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