当前位置:网站首页>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()
边栏推荐
- Developers, MySQL column finish, help you easily from installation to entry
- NFT流动性市场安全问题频发—NFT交易平台Quixotic被黑事件分析
- leetcode:421. The maximum XOR value of two numbers in the array
- Device interface analysis of the adapter of I2C subsystem (I2C dev.c file analysis)
- 完美融入 Win11 风格,微软全新 OneDrive 客户端抢先看
- What if Kaili can't input Chinese???
- Talk about seven ways to realize asynchronous programming
- Introduction of time related knowledge in kernel
- Recast of recastnavigation
- MVC mode and three-tier architecture
猜你喜欢
上市公司改名,科学还是玄学?
什么是低代码开发?
【Hot100】32. 最长有效括号
Load test practice of pingcode performance test
To sort out messy header files, I use include what you use
Zhijieyun - meta universe comprehensive solution service provider
Rainfall warning broadcast automatic data platform bwii broadcast warning monitor
利用win10计划任务程序定时自动运行jar包
Detectron2 installation method
What if Kaili can't input Chinese???
随机推荐
7 RSA Cryptosystem
R language plot visualization: plot visualization of multiple variable violin plot in R with plot
CocosCreator事件派發使用
图像检索(image retrieval)
斑马识别成狗,AI犯错的原因被斯坦福找到了丨开源
如何进行MDM的产品测试
高中物理:力、物体和平衡
使用3DMAX制作一枚手雷
超标量处理器设计 姚永斌 第6章 指令解码 摘录
Datakit -- the real unified observability agent
超标量处理器设计 姚永斌 第5章 指令集体系 摘录
【华为HCIA持续更新】SDN与FVC
Pytoch deep learning environment construction
解决el-input输入框.number数字输入问题,去掉type=“number“后面箭头问题也可以用这种方法代替
Hidden corners of coder Edition: five things that developers hate most
利用win10计划任务程序定时自动运行jar包
ARTS_20220628
R language plot visualization: plot visualizes overlapping histograms and uses geom at the top edge of the histogram_ The rug function adds marginal rug plots
leetcode:421. The maximum XOR value of two numbers in the array
Blood spitting finishing nanny level series tutorial - play Fiddler bag grabbing tutorial (2) - first meet fiddler, let you have a rational understanding