当前位置:网站首页>Face_ Attendance statistics of recognition face recognition
Face_ Attendance statistics of recognition face recognition
2022-07-04 17:50:00 【Wu_ Candy】
The pre condition environment preparation is as follows :Pycharm+python3.6+sklearn+face_recognition+dlib
Step1:KNN Introduction to the algorithm
K Nearest neighbor (k-Nearest Neighbor,KNN) The core idea of classification algorithm is if a sample is in the feature space k The most similar ( That is, the closest in the feature space ) Most of the samples belong to a certain category , Then the sample also belongs to this category .KNN The algorithm can be used for multi classification ,KNN The algorithm can be used not only for classification , It can also be used for regression . By finding a sample of k The nearest neighbor , Assign the average value of the properties of these neighbors to the sample , As a predictor .
KNeighborsClassifier stay scikit-learn stay sklearn.neighbors In the bag .
KNeighborsClassifier It's easy to use , The three step :
1) establish KNeighborsClassifier object
2) call fit function
3) call predict Function to predict .
Step2: Look at the directory structure of the project as follows
Step3: Look at the training data
Step4: Look at the test data
Step5: Look at the attendance data calculated by the model
Open as shown in the following figure :
Step6: Two core py File parsing
KNN_Recognition_easy.py Statistics of attendance through the model py file .
KNN_Train_easy.py Model generation through training data py file . The code is as follows :
Program entrance :
call main()
Call down successively :
predict()
getvalueToKey()
strTotime()
prase_filename_date()
writeExcel()
边栏推荐
- 雨量预警广播自动化数据平台BWII 型广播预警监测仪
- Performance test of Gatling
- Introduction of time related knowledge in kernel
- High school physics: force, object and balance
- 解读数据安全治理能力评估框架2.0,第四批DSG评估征集中
- Firewall basic transparent mode deployment and dual machine hot standby
- 创业两年,一家小VC的自我反思
- Rainfall warning broadcast automatic data platform bwii broadcast warning monitor
- 为啥有些线上演唱会总是怪怪的?
- [HCIA continuous update] overview of WLAN workflow
猜你喜欢

To sort out messy header files, I use include what you use
![[HCIA continuous update] overview of WLAN workflow](/img/0a/b3986307589a9f7379fe1dd707b9f8.png)
[HCIA continuous update] overview of WLAN workflow

居家打工年入800多万,一共五份全职工作,他还有时间打游戏

La 18e Conférence internationale de l'IET sur le transport d'électricité en courant alternatif et en courant continu (acdc2022) s'est tenue avec succès en ligne.

Superscalar processor design yaoyongbin Chapter 7 register rename excerpt

超标量处理器设计 姚永斌 第5章 指令集体系 摘录

补能的争议路线:快充会走向大一统吗?

Wuzhicms code audit
![[test development] software testing - Basics](/img/43/514016f270574fe711e0e15b581022.png)
[test development] software testing - Basics

为啥有些线上演唱会总是怪怪的?
随机推荐
To sort out messy header files, I use include what you use
What is low code development?
VSCode修改缩进不成功,一保存就缩进四个空格
将Opencv绘制图片显示在MFC Picture Control控件上
解决el-input输入框.number数字输入问题,去掉type=“number“后面箭头问题也可以用这种方法代替
What grade does Anxin securities belong to? Is it safe to open an account
CANN算子:利用迭代器高效实现Tensor数据切割分块处理
解读数据安全治理能力评估框架2.0,第四批DSG评估征集中
With an annual income of more than 8 million, he has five full-time jobs. He still has time to play games
动态规划股票问题对比
简单易用的地图可视化
完美融入 Win11 风格,微软全新 OneDrive 客户端抢先看
Interpretation of data security governance capability evaluation framework 2.0, the fourth batch of DSG evaluation collection
R语言plotly可视化:plotly可视化互相重叠的直方图(historgram)、并在直方图的顶部边缘使用geom_rug函数添加边缘轴须图Marginal rug plots
上网成瘾改变大脑结构:语言功能受影响,让人话都说不利索
Heartless sword Chinese translation of Elizabeth Bishop's a skill
ARTS_20220628
Electronic pet dog - what is the internal structure?
Win32 API 访问路由的加密网页
VB cannot access database stocks