当前位置:网站首页>To develop AI face comparison, how to output multiple faces with comparative similarity?
To develop AI face comparison, how to output multiple faces with comparative similarity?
2022-06-23 21:37:00 【Tsingsee green rhino video】
The function of face recognition has been studied for some time , The main form we need to implement is to compare the recognized face with the face in the face database , Then the face with the highest similarity is selected by the system for matching . therefore , If we pass in a contrast face , Will find the closest face from the registration and return it .
After our discussion , We now need to modify the recognition and comparison mechanism , Need to pass in a picture , Find multiple faces from registered faces ( At present, it is 4 Zhang ) The face comparison map returns , Instead of a face with the highest similarity .
Entrance method of face comparison interface :
Incoming face detection interface ( Will you recognize the face ), And face comparison interface :
The face comparison interface will return the following parameters: : Registered name 、 Similarity and success ; Among them, similarity detection needs to see how to realize , For modification . The following method is used for face registration , There is also a return value of similarity .
face_recognition.compare_faces(self.known_face_encodings, face_encoding, tolerance=tolerance)
The following implementation will return a similarity value :
Find all the ways , Then it's easier to modify the code . Returns a similarity , Then define a variable to return the value of multiple or four pictures and similarity . So the changes are as follows :
Such changes , The interface returns four face recognition images with the highest similarity .
边栏推荐
- Aiot application innovation competition - get better code completion and jump experience with clion
- 小程序ssl证书过期是什么原因导致的?小程序ssl证书到期了怎么解决?
- Global and Chinese market of fly killers 2022-2028: Research Report on technology, participants, trends, market size and share
- Open source C # WPF control library --newbeecoder UI usage guide (III)
- There is a 1GB difference between truncatememory and removememory
- JS how to get the current local date
- Global and Chinese market of American football catch gloves 2022-2028: Research Report on technology, participants, trends, market size and share
- Coding website hosting migration Tencent cloud cloud development webify
- [JS 100 examples of reverse] anti climbing practice platform for net Luozhe question 5: console anti debugging
- 【5分钟玩转Lighthouse】快速使用长安链
猜你喜欢

Minimisé lorsque Outlook est allumé + éteint

个税怎么算?你知道吗

Four aspects of PMO Department value assessment

Embedded development: embedded foundation -- the difference between restart and reset

Data visualization: summer without watermelon is not summer

Outlook开机自启+关闭时最小化

Outlook開機自啟+關閉時最小化

Simple code and design concept of "back to top"

Steps for formulating the project PMO strategic plan

New SQL syntax quick manual!
随机推荐
Authentication can be as simple as this - use the API gateway to protect your API security
我在深圳,到哪里开户比较好?在线开户安全么?
大一女生废话编程爆火!懂不懂编程的看完都拴Q了
Phpkf CMS 3.00 beta y6 remote code execution
Nodejs operation state keeping technology cookies and sessions
Teach you to turn the web page into Exe file (super simple)
Thinking about distributed system consensus
Explain the rainbow ingress universal domain name resolution mechanism
What can RFID fixed assets management system bring to enterprises?
ES6 promise detailed sewing Red Treasure Book Introduction to ES6 standard
New SQL syntax quick manual!
Aiot application innovation competition - get better code completion and jump experience with clion
Freshman girls' nonsense programming is popular! Those who understand programming are tied with Q after reading
The printed picture is dark. It will make you clear in seconds
数字电路概述
How to evaluate performance optimization? Covering too much knowledge?
High quality "climbing hand" of course, you have to climb a "high quality" wallpaper
Coding website hosting migration Tencent cloud cloud development webify
Cloud database smooth disassembly scheme
How to batch generate UPC-A codes