python
yyc_ssasd
erp供应链
展开
-
CULane数据集处理,可用于后续车道线检测
CULane数据集处理,将标注点显示到图片上,用于后期Fast-CNN检测以下是源码# -*- coding: utf-8 -*-"""Created on Fri Jan 15 17:22:54 2021@author: yuyanchuan"""import osimport cv2import numpy as npfrom time import sleepbasedir=r'D:\BaiduNetdiskDownload\CULane'def get_laneDa原创 2021-01-16 13:20:55 · 3211 阅读 · 6 评论 -
玩转dlib-增加白眉毛处理
经常用美颜相机什么的,可以给自己增加许多挂饰,感觉很新奇。自从学习了dlib,就发现原来dlib也支持这种处理这种处理需要在提取68个特征点的基础上进行再次处理。我这次增加的处理是把自己的黑眉毛变成了白眉毛,下次白眉大侠再演的话,可以找我给他们编辑,不用再把眉毛染白了# -*- coding: utf-8 -*-"""Created on Thu Jan 14 21:56:08 2021@author: yuyanchuan利用dlib增加白眉毛处理眉毛的特征点是18.19.20.21原创 2021-01-14 22:36:08 · 168 阅读 · 0 评论 -
dlib读取68个人脸特征点
可以读取到人脸上的68个特征点,可以利用这些特征点做点有意思的事# -*- coding: utf-8 -*-"""Created on Thu Jan 14 16:49:37 2021@author: yuyanchuan"""import dlibimport cv2import ospredictor_path='shape_predictor_68_face_landmarks.dat'detector=dlib.get_frontal_face_detector().原创 2021-01-14 21:55:38 · 465 阅读 · 0 评论 -
使用dlib detector.run检测人脸-踩坑
使用detector.run()来检测人脸,但是有的时候准确率不是很高,可以看出来,有些裤子或者背景图像都被认为是人脸了代码:# -*- coding: utf-8 -*-"""Created on Thu Jan 14 15:57:54 2021"""import dlibimport cv2detector=dlib.get_frontal_face_detector()cap=cv2.VideoCapture(0)while True: # ret,frame=原创 2021-01-14 17:49:31 · 847 阅读 · 0 评论 -
根据dlib脸部特征查找人脸位置
dlib的人脸特征数据shape_predictor_5_face_landmarks.dat已经可以满足普通的人脸特征提取了# -*- coding: utf-8 -*-"""Created on Thu Jan 14 14:54:23 2021@author: """import dlibimport cv2import ospredictor_path='shape_predictor_5_face_landmarks.dat'detector=dlib.get_fron原创 2021-01-14 15:32:49 · 386 阅读 · 0 评论 -
dlib物品追踪
dlib物品追踪dlib真是一个宝藏库,有很多实例可以让我们学着玩。其中就有一个物体追踪功能,下面是官方给提供的例子#!/usr/bin/python# The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt## This example shows how to use the correlation_tracker from the dlib Python# libra原创 2021-01-14 14:26:34 · 175 阅读 · 0 评论 -
使用kears进行手势识别-踩坑
使用kears进行CNN手势识别这种手势图片第一次使用简单CNN识别,准确率只有50%,无论修改参数,还是用resnet残差网络学习准确率还是上不去可以看到到5次的时候,准确率和Loss已经不变化了,找了好几天也不知道是什么问题。下面是验证代码# -*- coding: utf-8 -*-"""Created on Tue Jan 12 14:44:47 2021@author: yuyanchuan"""import osimport pandas as pdimport原创 2021-01-14 10:12:11 · 534 阅读 · 0 评论 -
opencv+python人脸检测
使用opencv特征项进行人脸检测,非常简单,如果使用python会更加简单蓝色的为识别的人脸,绿色的是图片中心区域,用于后期树莓派驱动摄像头对焦以下为代码# -*- coding: utf-8 -*-"""Spyder EditorThis is a temporary script file."""import cv2cap=cv2.VideoCapture(0)while(True): if not cap.isOpened(): print('连接不到摄原创 2021-01-09 11:31:16 · 126 阅读 · 2 评论 -
OpenCV识别蓝色
使用openCV识别蓝色# -*- coding: utf-8 -*-"""Created on Thu Sep 3 13:51:46 2020"""import numpy as npimport cv2# 读取摄像头cap=cv2.VideoCapture(0)while(1): # 获取摄像头图片 _,frame=cap.read() # 转换图片为hsv hsv=cv2.cvtColor(frame,cv2.COLOR_BGR2HSV原创 2020-09-08 22:17:16 · 1489 阅读 · 0 评论