当前位置:网站首页>Opencv 17 face recognition
Opencv 17 face recognition
2022-06-13 02:30:00 【An unforgettable squirrel】
This routine uses namespaces using OpenCvSharp.Face;
The namespace is in sharp3 and sharp4 All versions exist
The program operation logic is as follows :
1、 Read the directory and all the files , And complete the group marking of files according to the directory .
The directory name is the group tag
var groupId = int.Parse(dir.Name.Replace("s", string.Empty)) - 1;
2、 Create a face recognition model and start training
var model = FisherFaceRecognizer.Create();
model.Train(images.Select(x => x.Image), images.Select(x => x.ImageGroupId));
among x => x.Image Belong to Lambda expression , It can be simply considered as linq Inquire about from in select Simplification of
3、 call Predict Face recognition
var predictedGroupId = model.Predict(testSample.Image);
complete .
边栏推荐
- Think about the possibility of attacking secure memory through mmu/tlb/cache
- About the fact that I gave up the course of "Guyue private room course ROS manipulator development from introduction to actual combat" halfway
- [reading papers] visual convolution zfnet
- Configuring virtual private network FRR for Huawei equipment
- SQL server deletes all tables and all stored procedures in the database
- Flow chart of interrupt process
- Leetcode 926. Flip string to monotonically increasing [prefix and]
- Laptop touch pad operation
- 智能安全配电装置如何减少电气火灾事故的发生?
- Redis multiple servers share one
猜你喜欢

Port mapping between two computers on different LANs (anydesk)

Thinking back from the eight queens' question
![[reading papers] comparison of deeplobv1-v3 series, brief review](/img/80/714b8e5b2ad31b0a1a0b8320a3c714.jpg)
[reading papers] comparison of deeplobv1-v3 series, brief review

Solution of depth learning for 3D anisotropic images
![[pytorch] kaggle large image dataset data analysis + visualization](/img/b0/7b8aff44d6bedd7ca2c705f13a8556.jpg)
[pytorch] kaggle large image dataset data analysis + visualization

Mean Value Coordinates

Jump model between mirrors

Huffman tree and its application

Paipai loan parent company Xinye quarterly report diagram: revenue of RMB 2.4 billion, net profit of RMB 530million, a year-on-year decrease of 10%

Barrykay electronics rushes to the scientific innovation board: it is planned to raise 360million yuan. Mr. and Mrs. Wang Binhua are the major shareholders
随机推荐
Think about the possibility of attacking secure memory through mmu/tlb/cache
Sensor: MQ-5 gas module measures the gas value (code attached at the bottom)
Leetcode 93 recovery IP address
redis
Leetcode 473. 火柴拼正方形 [暴力+剪枝]
About the fact that I gave up the course of "Guyue private room course ROS manipulator development from introduction to actual combat" halfway
speech production model
Basic exercises of test questions letter graphics ※
Paper reading - group normalization
智能安全配电装置如何减少电气火灾事故的发生?
Uniapp preview function
Leetcode daily question - 890 Find and replace mode
[pytorch] kaggle image classification competition arcface + bounding box code learning
[reading papers] deep learning face representation from predicting 10000 classes. deepID
Armv8-m learning notes - getting started
Is space time attention all you need for video understanding?
[reading papers] deepface: closing the gap to human level performance in face verification. Deep learning starts with the face
C # illustrated tutorial (Fourth Edition) chapter7-7.2 accessing inherited members
What are the differences in cache/tlb?
Priority queue with dynamically changing priority