当前位置:网站首页>54: Chapter 5: develop admin management services: 7: face warehousing process; Face login process; The browser turns on the video debugging mode (so that the camera can also be turned on in the case o
54: Chapter 5: develop admin management services: 7: face warehousing process; Face login process; The browser turns on the video debugging mode (so that the camera can also be turned on in the case o
2022-07-28 02:08:00 【Small withered forest】
explain :
(1) The content of this blog : Introduce the face warehousing process , Face login process ; Face warehousing process ;Chrome Turn on video debugging mode , So that in the case of the insecure domain name of this machine , You can also turn on the camera ;
Catalog
One : Face warehousing process , Face login process ;
Two :Chrome Turn on video debugging mode ;
One : Face warehousing process , Face login process ;
Before face login , First of all, face storage ;
(1) First , When creating an administrator account , Check " Face login ";
(2) Click on " Get face " after , It can capture the dynamic picture of human face in the picture , Get face data ;( Actually , What you get is a human face Base64 The data of )
(3) then , When adding a new administrator , It will judge whether there is face data ;
● If there is no face , Will use the previous we in 【51: The fifth chapter : Development admin management service :4: Development 【 newly added admin account number , Interface 】;】 Logic written in ;
● If there's a face , Need to do a face storage operation ( namely , Put the face Base64 data , Save to MongoDB Of GridFS in ); After saving it , You'll get FaceId; then ,FaceId Along with other information , To the back-end logic , To create a new administrator account ;
(4) After that , The administrator account we created this time , Then you can use your face to log in ;
(1) When the administrator logs in , To use face login ; You need to check " Login with face ";
(2) Click to log in , Will get face data ; And carry face data to the back end ( That is, the face captured at this time Base64 The data of , Take it to the back );
(3) then , A verification will be done on the back end : In fact, it is to use 【 stay (2) Face data captured in 】 and 【 Before, when the face was stored , Save in MongoDB Of GridFS Face data in 】 Compare and match ;
● This match is a similarity match ; such as , We can set it in the background ; such as , We can set , As long as two faces are similar >=90%, Think of it as OK;
(4) If the face verification is successful , Direct login success ; If the check fails , You can return to the login page , Let users try again ;
Two :Chrome Turn on video debugging mode ;
(1) In the course , Using an older browser , The mistake it reported was :
……………………………………………………
(2) And my browser is the latest version ; I'm checking " Face login " when , What's wrong : 【TypeError: Cannot read properties of undefined (reading 'getUserMedia')】;
● You can refer to 【 solve “TypeError: Cannot read properties of undefined (reading ‘xxx‘)“】;
● The wrong logic should be :【 Because our domain name is right and wrong https Of , That is, unsafe 】→【 therefore , Front-end getUserMedia() This method cannot work 】→【 therefore , Call the camera , The logic of obtaining face avatars , Just G 了 】;
……………………………………………………
(3) Solutions :
● Strategy 1: Set the local domain name , Change it to https;
● Strategy 2: In Google browser 【chrome://flags/#unsafely-treat-insecure-origin-as-secure】 in , Set the following :
………………………………………………
(4) effect ;
● Make sure you PC The camera is OK Of , And it's unlock The state of ;
● In addition admin Administrator account , yes OK Of ;
● stay admin The administrator logs in there , It's also OK Of ;
……………………………………………………
(5) Statement :
● Every time we restart the computer , All in accordance with (3) Strategy in , Reset ;
● In the production environment , When we deploy the project , The domain name of the project will be set to https; therefore , In the actual production environment , There is no problem here ;
边栏推荐
- ros2 launch文件常用模块
- They are all talking about Devops. Do you really understand it?
- WMS you don't know
- 你所不知道的WMS
- GBase 8c 事务ID和快照
- BGP federal experiment
- A happy old age
- Five basic data structures of redis
- Thinking about some things
- 53:第五章:开发admin管理服务:6:开发【admin管理员退出登录,接口】;(一个点:我们想要修改一个采用了某种编码方式的值时,新的值最好也按照这种编码方式编码后,再去修改;)
猜你喜欢

Talk to ye Yanxiu, an atlassian certification expert: where should Chinese users go when atlassian products enter the post server era?

IT这个岗位,人才缺口百万,薪资水涨船高,上不封顶

Flex开发网页实例web端

每条你收藏的资讯背后,都离不开TA

UE4 unreal ndisplay plug-in easy to use three fold screen details

Enterprise operation and maintenance practice - using aliyun container image service to pull and build images of overseas GCR and quay warehouses

53:第五章:开发admin管理服务:6:开发【admin管理员退出登录,接口】;(一个点:我们想要修改一个采用了某种编码方式的值时,新的值最好也按照这种编码方式编码后,再去修改;)

Solution of digital commerce cloud supply chain centralized purchase management system: centralized purchase system management mode, digital control of enterprise materials

A lock faster than read-write lock. Don't get to know it quickly

网易云仿写
随机推荐
Real time data warehouse: meituan's real-time data warehouse construction practice
Vxe table/grid cell grouping and merging
Enterprise operation and maintenance practice - using aliyun container image service to pull and build images of overseas GCR and quay warehouses
How to evaluate the effectiveness of R & D personnel? Software Engineer reports help you see everyone's contribution
Gbase 8C backup control function (I)
Vxe Table/Grid 单元格分组合并
GBase 8c 事务ID和快照(一)
【面试:并发篇28:volatile】有序性
软件测试面试题:测试计划工作的目的是什么?测试计划工作的内容都包括什么?其中哪些是最重要的?
开源飞控(PX4、ardupilot)
LeetCode高频题128. 最长连续序列,经常被互联网大厂面试考到
自定义类型:结构体,枚举,联合
LeetCode第 83 场双周赛
Talk to ye Yanxiu, an atlassian certification expert: where should Chinese users go when atlassian products enter the post server era?
Use of classes in typescript
Gbase 8C backup control function (IV)
Likeshop takeout ordering system [100% open source, no encryption]
HyperMesh circular array - plug in
go 学习01
Flex开发网页实例web端









