当前位置:网站首页>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()
边栏推荐
- Electronic pet dog - what is the internal structure?
- The top half and bottom half of the interrupt are introduced and the implementation method (tasklet and work queue)
- Ks007 realizes personal blog system based on JSP
- Oppo Xiaobu launched Obert, a large pre training model, and promoted to the top of kgclue
- 90后开始攒钱植发,又一个IPO来了
- Perfectly integrated into win11 style, Microsoft's new onedrive client is the first to see
- How to test MDM products
- 上网成瘾改变大脑结构:语言功能受影响,让人话都说不利索
- Superscalar processor design yaoyongbin Chapter 6 instruction decoding excerpt
- [HCIA continuous update] WLAN overview and basic concepts
猜你喜欢

超标量处理器设计 姚永斌 第6章 指令解码 摘录

Offline and open source version of notation -- comprehensive evaluation of note taking software anytype

DataKit——真正的统一可观测性 Agent

How to choose one plus 10 pro and iPhone 13?
![[unity ugui] scrollrect dynamically scales the grid size and automatically locates the middle grid](/img/0d/a8f4424add7785375741bac4f0b802.png)
[unity ugui] scrollrect dynamically scales the grid size and automatically locates the middle grid

离线、开源版的 Notion—— 笔记软件Anytype 综合评测

我写了一份初学者的学习实践教程!

斑马识别成狗,AI犯错的原因被斯坦福找到了丨开源

To sort out messy header files, I use include what you use

To sort out messy header files, I use include what you use
随机推荐
明星开店,退,退,退
Great Wall Securities security does not open a securities account
防火墙基础透明模式部署和双机热备
如何进行MDM的产品测试
超大规模数仓集群在大型商业银行的落地实践
缓存穿透、缓存击穿、缓存雪崩分别是什么
To sort out messy header files, I use include what you use
【HCIA持续更新】网络管理与运维
码农版隐秘的角落:作为开发者最讨厌的5件
整理混乱的头文件,我用include what you use
Datakit -- the real unified observability agent
Flask 轻量web框架
Face_recognition人脸识别之考勤统计
使用3DMAX制作一枚手雷
What is low code development?
Introduction of time related knowledge in kernel
开发者,MySQL专栏完更,助你轻松从安装到入门进阶
Is it safe for Great Wall Securities to open an account? How to open a securities account
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.
Internet addiction changes brain structure: language function is affected, making people unable to speak neatly