CN110414476A - A kind of face identification method based on usb camera and webpage connector - Google Patents
A kind of face identification method based on usb camera and webpage connector Download PDFInfo
- Publication number
- CN110414476A CN110414476A CN201910727146.9A CN201910727146A CN110414476A CN 110414476 A CN110414476 A CN 110414476A CN 201910727146 A CN201910727146 A CN 201910727146A CN 110414476 A CN110414476 A CN 110414476A
- Authority
- CN
- China
- Prior art keywords
- face
- recognition
- unit
- plug
- webpage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/168—Feature extraction; Face representation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/172—Classification, e.g. identification
Abstract
The invention discloses a kind of face identification method based on usb camera and webpage connector, comprising the following steps: S1, the starting work for completing recognition of face plug-in unit;S2, recognition of face plug-in unit establish websocket server-side;S3, webpage establish long connection by websocket server-side and recognition of face plug-in unit;The face template data of storage are transferred to recognition of face plug-in unit by websocket server-side by S4, webpage;S5, recognition of face plug-in unit extract characteristic value to face template data after receiving face template data;S6, recognition of face plug-in unit carry out real-time face shooting by camera, and extract to the face characteristic value in shooting image;The face characteristic value shot in image is compared with the characteristic value in face template data for S7, recognition of face plug-in unit;S8, when comparison result is greater than preset threshold or is more than preset time, recognition of face plug-in unit will differentiate that result is transferred to webpage by websocket server-side, completion webpage face recognition operation.
Description
Technical field
The present invention relates to field of image processing more particularly to a kind of recognitions of face based on usb camera and webpage connector
Method.
Background technique
With the development of science and technology face recognition technology is increasingly widely applied among people's lives.People can
With using face recognition technology login authentication, unlock cell-phone lock, consumption and payment, gate inhibition's unlock with electronic transaction etc..Therefore, right
It is a kind of only to need connection camera that face recognition operation can be completed for the web station system widely based on browser architectures
Method be it is very easy, can bring great convenience to web station system.
Summary of the invention
Object of the present invention is in view of the above-mentioned problems, provide it is a kind of can directly be carried out on webpage recognition of face based on
The face identification method of usb camera and webpage connector.
To achieve the goals above, the technical scheme is that
A kind of face identification method based on usb camera and webpage connector, comprising the following steps:
S1, the starting work for completing recognition of face plug-in unit;
S2, recognition of face plug-in unit establish websocket server-side;
S3, webpage establish long connection by websocket server-side and recognition of face plug-in unit;
The face template data of storage are transferred to recognition of face plug-in unit by websocket server-side by S4, webpage;
S5, recognition of face plug-in unit extract characteristic value to face template data after receiving face template data;
S6, recognition of face plug-in unit carry out real-time face shooting by camera, and to the face characteristic value in shooting image
It extracts;
S7, recognition of face plug-in unit compare the face characteristic value shot in image with the characteristic value in face template data
It is right;
S8, when comparison result be greater than preset threshold or be more than preset time, recognition of face plug-in unit by differentiate result pass through
Websocket server-side is transferred to webpage, completes webpage face recognition operation.
Further, the step S1 the following steps are included:
S11, recognition of face plug-in unit is installed on computers;
S12, it is registered on recognition of face plug-in unit by URL Protocol;
S13, starting recognition of face plug-in unit;
Usb camera is opened after S14, the starting of recognition of face plug-in unit and carries out preview, completes the initialization of recognition of face plug-in unit.
Compared with prior art, the advantages and positive effects of the present invention are:
By the present invention in that being identified with webpage connector to face, improved in identification method, webpage is inserted
Part mainly uses the customized URL Protocol technology and websocket mechanics of communication of windows bottom;It can be applied to
Any browser on widows platform, and face recognition operation is carried out for any website or bs operation system, give web station system
Work in terms of upper recognition of face brings convenience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1 is frame construction drawing of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
As shown in Figure 1, the present invention prepares the face template data of target person object first, then pass through URL Protocol
Registration technology starts mounted recognition of face plug-in unit in generic web page, secondly by websocket standard technique to plug-in unit
Template data is transmitted, face plug-in unit saves template data and starts camera preview, and face carries out photo pickup before treating computer,
Then carry out Face datection, feature extraction and aspect ratio pair carried out to human face photo, available more accurately people and template
Similarity score obtains the differentiation of recognition of face as a result, returning by websocket general finally by preset threshold value
Logical webpage.
The specific steps are that:
1, recognition of face plug-in unit is installed;
2, plug-in unit is identified by URL Protocol registered face;
3, webpage prepares target person face template data;
4, webpage starts mounted recognition of face plug-in unit by a label of html;
5, the preview of usb camera is opened after plug-in unit starting, initialized recognition of face sdk (software package);
6, plug-in unit establishes websocket server-side;
7, webpage by websocket and has been turned on the long connection of plug-in unit foundation;
8, webpage is connected to plug-in unit by websocket and transmits template data;
9, plug-in unit harvests template data and extracts characteristic value to template data by face sdk;
10, plug-in unit is for camera data real-time perfoming Face datection, feature extraction;
11, plug-in unit continuously compares real-time live according to characteristic value and template according to characteristic value;
If 12, comparison result is greater than threshold value or is more than preset time, plug-in unit will differentiate that result passes through websocket connection
Webpage is returned to, face recognition process is completed.
Recognition of face plug-in unit is divided into js template (JavaScript template) and plug-in unit installation procedure two parts;Wherein js template
It is mainly used for starting plug-in unit and transmits the address picture url to be identified to plug-in unit or use the websocket standard skill in template
Art transmits actual picture data to plug-in unit;Plug-in unit installation procedure is easily installed face identification functions module, calling system camera,
Candid photograph realtime graphic is 1:1 with incoming parameter and compares from preview, and returns to recognition result.
By the present invention in that being identified with webpage connector to face, improved in identification method, webpage is inserted
Part mainly uses the customized URL Protocol technology and websocket mechanics of communication of windows bottom;It can be applied to
Any browser on widows platform, and face recognition operation is carried out for any website or bs operation system, give web station system
Work in terms of upper recognition of face brings convenience.
Claims (2)
1. a kind of face identification method based on usb camera and webpage connector, it is characterised in that: the following steps are included:
S1, the starting work for completing recognition of face plug-in unit;
S2, recognition of face plug-in unit establish websocket server-side;
S3, webpage establish long connection by websocket server-side and recognition of face plug-in unit;
The face template data of storage are transferred to recognition of face plug-in unit by websocket server-side by S4, webpage;
S5, recognition of face plug-in unit extract characteristic value to face template data after receiving face template data;
S6, recognition of face plug-in unit carry out real-time face shooting by camera, and carry out to the face characteristic value in shooting image
It extracts;
The face characteristic value shot in image is compared with the characteristic value in face template data for S7, recognition of face plug-in unit;
S8, when comparison result be greater than preset threshold or be more than preset time, recognition of face plug-in unit by differentiate result pass through
Websocket server-side is transferred to webpage, completes webpage face recognition operation.
2. the face identification method based on usb camera and webpage connector as described in claim 1, it is characterised in that: described
Step S1 the following steps are included:
S11, recognition of face plug-in unit is installed on computers;
S12, it is registered on recognition of face plug-in unit by URL Protocol;
S13, starting recognition of face plug-in unit;
Usb camera is opened after S14, the starting of recognition of face plug-in unit and carries out preview, completes the initialization of recognition of face plug-in unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910727146.9A CN110414476A (en) | 2019-08-07 | 2019-08-07 | A kind of face identification method based on usb camera and webpage connector |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910727146.9A CN110414476A (en) | 2019-08-07 | 2019-08-07 | A kind of face identification method based on usb camera and webpage connector |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110414476A true CN110414476A (en) | 2019-11-05 |
Family
ID=68366474
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910727146.9A Pending CN110414476A (en) | 2019-08-07 | 2019-08-07 | A kind of face identification method based on usb camera and webpage connector |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110414476A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112235536A (en) * | 2020-09-24 | 2021-01-15 | 苏州科达科技股份有限公司 | Method, system, device and readable storage medium for target display |
CN113032754A (en) * | 2019-12-09 | 2021-06-25 | 深圳云天励飞技术有限公司 | Face recognition method and device for webpage browser and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106375326A (en) * | 2016-09-12 | 2017-02-01 | 山西特信环宇信息技术有限公司 | Mobile phone two-way verification terminal and method |
CN108090419A (en) * | 2017-11-30 | 2018-05-29 | 安徽四创电子股份有限公司 | A kind of dynamic human face recognition methods based on WebSocket agreements |
CN109344655A (en) * | 2018-11-28 | 2019-02-15 | 深圳市酷开网络科技有限公司 | A kind of information acquisition method and system based on recognition of face |
-
2019
- 2019-08-07 CN CN201910727146.9A patent/CN110414476A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106375326A (en) * | 2016-09-12 | 2017-02-01 | 山西特信环宇信息技术有限公司 | Mobile phone two-way verification terminal and method |
CN108090419A (en) * | 2017-11-30 | 2018-05-29 | 安徽四创电子股份有限公司 | A kind of dynamic human face recognition methods based on WebSocket agreements |
CN109344655A (en) * | 2018-11-28 | 2019-02-15 | 深圳市酷开网络科技有限公司 | A kind of information acquisition method and system based on recognition of face |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113032754A (en) * | 2019-12-09 | 2021-06-25 | 深圳云天励飞技术有限公司 | Face recognition method and device for webpage browser and electronic equipment |
CN112235536A (en) * | 2020-09-24 | 2021-01-15 | 苏州科达科技股份有限公司 | Method, system, device and readable storage medium for target display |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190114467A1 (en) | Human face authentication method and apparatus, and storage medium | |
US10740636B2 (en) | Method, system and terminal for identity authentication, and computer readable storage medium | |
CN107818308A (en) | A kind of recognition of face intelligence comparison method, electronic installation and computer-readable recording medium | |
JP2007257221A (en) | Face recognition system | |
CN105681316A (en) | Identity verification method and device | |
CN105243370A (en) | Fingerprint identification method, fingerprint identification device and mobile terminal | |
WO2018192448A1 (en) | People-credentials comparison authentication method, system and camera | |
CN108108711B (en) | Face control method, electronic device and storage medium | |
CN110414476A (en) | A kind of face identification method based on usb camera and webpage connector | |
CN109684993B (en) | Face recognition method, system and equipment based on nostril information | |
CN204791017U (en) | Mobile terminal users authentication device based on many biological characteristics mode | |
WO2023202400A1 (en) | Training method and apparatus for segmentation model, and image recognition method and apparatus | |
CN111353364A (en) | Dynamic face identification method and device and electronic equipment | |
CN112330331A (en) | Identity verification method, device and equipment based on face recognition and storage medium | |
CN111582118A (en) | Face recognition method and device | |
CN109325333B (en) | Double-identification login and payment method and device | |
CN106600845A (en) | Method and device for retrieving captured card in self-service manner | |
CN106161030B (en) | Account registration verification request based on image identification and registration verification method and device | |
CN109492532A (en) | A kind of methods, devices and systems of image AI identification | |
CN112989299A (en) | Interactive identity recognition method, system, device and medium | |
CN104615992A (en) | Long-distance fingerprint dynamic authentication method | |
CN107493368B (en) | Unlocking method and related product | |
CN210199760U (en) | Benefit people's service inquiry printing device | |
KR100554171B1 (en) | Biometric authentication method and its system | |
CN112101479A (en) | Hair style identification method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191105 |