CN112231669A - Page display method and device based on facial recognition and electronic equipment - Google Patents

Page display method and device based on facial recognition and electronic equipment Download PDF

Info

Publication number
CN112231669A
CN112231669A CN202011025658.XA CN202011025658A CN112231669A CN 112231669 A CN112231669 A CN 112231669A CN 202011025658 A CN202011025658 A CN 202011025658A CN 112231669 A CN112231669 A CN 112231669A
Authority
CN
China
Prior art keywords
user
facial
image
head portrait
information
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
Application number
CN202011025658.XA
Other languages
Chinese (zh)
Inventor
陈博
郑盛麟
黎文杰
张嘉伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Qiyu Information and Technology Co Ltd
Original Assignee
Shanghai Qiyu Information and Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Qiyu Information and Technology Co Ltd filed Critical Shanghai Qiyu Information and Technology Co Ltd
Priority to CN202011025658.XA priority Critical patent/CN112231669A/en
Publication of CN112231669A publication Critical patent/CN112231669A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Health & Medical Sciences (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to the technical field of face recognition, in particular to a page display method and device based on face recognition and an electronic device, wherein the page display method and device comprises the following steps: carrying out face recognition on a user to obtain a face image; performing identity authentication on the user to acquire the user identity information; acquiring facial feature data through a facial feature recognition model; calculating first feature information of the user based on the facial feature data; substituting the facial image and the user identity information into an avatar generation model to generate a first drawing avatar; and displaying the first characteristic information of the user and the first drawing head portrait on a display page. The face information is obtained by calculating the face parameters of the user, and the painting style head portrait is generated by the head portrait generation model, so that the participation willingness of the user to activities is increased, and the activity of the user is improved.

Description

Page display method and device based on facial recognition and electronic equipment
Technical Field
The invention relates to the technical field of face recognition, in particular to a page display method and device based on face recognition and electronic equipment.
Background
Currently, a user may upload his avatar in a web application to identify the user with the avatar. In the prior art, the avatar of the user may be a real avatar consistent with the real image of the user, or may be a virtual avatar unrelated to the real image of the user. For example, the user may upload a photograph of himself as a real avatar, or the user may upload a cartoon caricature as a virtual avatar.
However, in the prior art, the cartoon as the head portrait cannot show more facial information about the user, and meanwhile, the interaction between the user and the platform is lacked, the interest of the user cannot be raised, and the user in such a state for a long time will affect the sense of existence of the user on the platform, thereby causing the reduction of the user traffic, which is not good for the platform.
Disclosure of Invention
The invention provides a page display method and device based on facial recognition and electronic equipment, which are used for increasing the participation willingness of a user to activities and improving the activity of the user.
An embodiment of the present specification provides a page display method based on facial recognition, including:
carrying out face recognition on a user to obtain a face image;
performing identity authentication on the user to acquire the user identity information;
acquiring facial feature data through a facial feature recognition model;
calculating first feature information of the user based on the facial feature data;
substituting the facial image and the user identity information into an avatar generation model to generate a first drawing avatar;
and displaying the first characteristic information of the user and the first drawing head portrait on a display page.
Preferably, the performing facial recognition on the user includes:
setting a preposed task, and responding to a first operation instruction of the user when the user finishes the preposed task;
acquiring the face image;
and identifying the facial image.
Preferably, the obtaining facial feature data through the facial feature recognition model includes:
sending the facial image to the facial feature recognition model;
receiving the facial feature data fed back by the facial feature recognition model.
Preferably, the calculating the first feature information of the user by the facial feature data includes:
reading the facial feature data;
calculating the first feature information from the facial feature data;
when the calculation is successful, the calculation result is the first characteristic information of the user;
and when the calculation is failed, the calculation result is that the first characteristic information of the user is preset information.
Preferably, the generating the first pictorial avatar includes:
when the facial feature recognition model successfully recognizes the facial image, generating the first drawing head portrait based on the facial recognition image and the user identity information;
and when the facial feature recognition model fails to recognize the facial image, the facial image of the user is collected again.
Preferably, the method further comprises the following steps: replacing the first drawing head portrait on the display page, comprising:
responding to a second operation instruction of the user;
receiving a local picture uploaded by the user or a user face image acquired by a camera;
carrying out identity verification on the local picture uploaded by the user or the user facial image collected by the camera through a facial feature recognition model;
generating a second drawing head portrait through the head portrait generation model;
and replacing the first drawing head portrait with the second drawing head portrait and displaying on the display page.
Preferably, when the size of the local picture exceeds a preset memory, the user is reminded that the size of the local picture exceeds a limit; when the local picture or the collected user image does not reach the preset identification degree, reminding the user to upload the local picture again or collect the user image again; and when the identity verification fails, reminding the user to upload the picture of the user again or collect the facial image of the user.
Preferably, the display page comprises an advantage comment and a list ranking list button, the advantage comment is two groups of entries extracted from prestored entries according to the user identity information, and the list ranking list button is used for viewing the color value ranking list and/or the advantage ranking list.
Preferably, the display page further includes a sharing component, and the sharing component is configured to share any one or more of the first feature information of the user, the cartoon head portrait, and the application two-dimensional code.
Preferably, the first operation instruction is an instruction to jump to an application home page, and the second operation instruction is an instruction to open a user local album or start a camera.
An embodiment of the present specification further provides a page display device based on facial recognition, including:
the image acquisition module is used for carrying out facial recognition on a user to acquire a facial image;
the identity authentication module is used for authenticating the identity of the user to acquire the identity information of the user;
the feature acquisition module acquires facial feature data through a facial feature recognition model;
a feature calculation module that calculates first feature information of the user based on the facial feature data;
the head portrait generating module substitutes the facial image and the user identity information into a head portrait generating model to generate a first drawing head portrait;
and the page display module displays the first characteristic information of the user and the first drawing head portrait on a display page.
Preferably, the performing facial recognition on the user includes:
setting a preposed task, and responding to a first operation instruction of the user when the user finishes the preposed task;
acquiring the face image;
and identifying the facial image.
Preferably, the obtaining facial feature data through the facial feature recognition model includes:
sending the facial image to the facial feature recognition model;
receiving the facial feature data fed back by the facial feature recognition model.
Preferably, the calculating the first feature information of the user by the facial feature data includes:
reading the facial feature data;
calculating the first feature information from the facial feature data;
when the calculation is successful, the calculation result is the first characteristic information of the user;
and when the calculation is failed, the calculation result is that the first characteristic information of the user is preset information.
Preferably, the generating the first pictorial avatar includes:
when the facial feature recognition model successfully recognizes the facial image, generating the first drawing head portrait based on the facial recognition image and the user identity information;
and when the facial feature recognition model fails to recognize the facial image, the facial image of the user is collected again.
Preferably, the method further comprises the following steps: replacing the first drawing head portrait on the display page, comprising:
responding to a second operation instruction of the user;
receiving a local picture uploaded by the user or a user face image acquired by a camera;
carrying out identity verification on the local picture uploaded by the user or the user facial image collected by the camera through a facial feature recognition model;
generating a second drawing head portrait through the head portrait generation model;
and replacing the first drawing head portrait with the second drawing head portrait and displaying on the display page.
Preferably, when the size of the local picture exceeds a preset memory, the user is reminded that the size of the local picture exceeds a limit; when the local picture or the collected user image does not reach the preset identification degree, reminding the user to upload the local picture again or collect the user image again; and when the identity authentication fails, reminding the user to upload the picture of the user again or collect the facial image of the user.
Preferably, the display page comprises an advantage comment and a list ranking list button, the advantage comment is two groups of entries extracted from prestored entries according to the user identity information, and the list ranking list button is used for viewing the color value ranking list and/or the advantage ranking list.
Preferably, the display page further includes a sharing component, and the sharing component is configured to share any one or more of the first feature information of the user, the cartoon head portrait, and the application two-dimensional code.
Preferably, the first operation instruction is an instruction to jump to an application home page, and the second operation instruction is an instruction to open a user local album or start a camera.
An electronic device, wherein the electronic device comprises:
a processor and a memory storing computer executable instructions that, when executed, cause the processor to perform the method of any of the above.
A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of the above.
The beneficial effects are that:
the face information is obtained by calculating the face parameters of the user, and the painting style head portrait is generated by the head portrait generation model, so that the participation willingness of the user to activities is increased, and the activity of the user is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic diagram illustrating a page display method based on facial recognition according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a page displaying apparatus based on facial recognition according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present specification.
Detailed Description
Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. The exemplary embodiments, however, may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. The same reference numerals denote the same or similar elements, components, or parts in the drawings, and thus their repetitive description will be omitted.
Features, structures, characteristics or other details described in a particular embodiment do not preclude the fact that the features, structures, characteristics or other details may be combined in a suitable manner in one or more other embodiments in accordance with the technical idea of the invention.
In describing particular embodiments, the present invention has been described with reference to features, structures, characteristics or other details that are within the purview of one skilled in the art to provide a thorough understanding of the embodiments. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific features, structures, characteristics, or other details.
The diagrams depicted in the figures are exemplary only, and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The term "and/or" and/or "includes all combinations of any one or more of the associated listed items.
Referring to fig. 1, a schematic diagram of a page display method based on facial recognition provided by an embodiment of the present specification includes:
s101: carrying out face recognition on a user to obtain a face image;
in the preferred embodiment of the invention, before the face recognition is carried out on the user, the user needs to finish the preposed task in advance, when the user does not finish the preposed task, the face recognition is finished in the application flow of the computer end, namely the preposed task is finished, and the credit line calculation is finished in the application flow of the mobile end, namely the preposed task is finished.
The mobile terminal or the computer terminal collects face information of a user through the camera, and identifies and processes the collected face information to obtain an identified face image.
S102: performing identity authentication on the user to acquire the user identity information;
in a preferred embodiment of the present invention, the identity of the user is authenticated through the acquired facial image, and the identity information of the user is read, so as to obtain the identity information of the user, wherein the identity information includes the age of the user, the gender of the user, and the like.
S103: acquiring facial feature data through a facial feature recognition model;
in a preferred embodiment of the present invention, the facial feature recognition model receives the acquired facial image of the user, trains a facial avatar to obtain facial feature data of the user, and acquires facial feature coordinate values related to facial features of the human face through a face + + open platform.
S104: calculating first feature information of the user based on the facial feature data;
in a preferred embodiment of the present invention, face information is calculated according to the facial feature data and facial feature coordinate values related to facial features of a human face, so as to obtain first feature information of the user, where the first feature information is face information of the user, and includes a color value, face superiority, and the like.
S105: substituting the facial image and the user identity information into an avatar generation model to generate a first drawing avatar;
in a preferred embodiment of the invention, the avatar generation model performs comprehensive training on the facial avatar of the user and the identity information of the user, and finally obtains the painting avatar based on the facial avatar of the user and the identity information of the user, and the generated painting avatar not only displays the facial features of the user, but also increases the interest of the user and the substitution sense of application.
S106: and displaying the first characteristic information of the user and the first drawing head portrait on a display page.
In a preferred embodiment of the present invention, the generated first feature information and the first painting head portrait are both displayed on the display page, and the user can check the percentage of nationwide users who have been defeated by the user and the positions of the nationwide leaderboards according to the first feature information.
Further, the performing facial recognition on the user includes:
setting a preposed task, and responding to a first operation instruction of the user when the user finishes the preposed task;
acquiring the face image;
and identifying the facial image.
Specifically, the preset task can be set to judge the identity authority of the user, the user can use the application program when the user finishes the preset task, the user finishes face recognition in the application flow of the computer end to finish the preset task when the user does not finish the preset task, and the user finishes credit limit calculation in the application flow of the mobile end to finish the preset task. After the user finishes the preposed task, the user has the right to enter a home page of the built-in application program, the user starts a measuring and calculating process by clicking a 'I also calculate' button, and the facial head portrait collection and identification are carried out on the user on the premise of acquiring the camera authority.
Further, the obtaining facial feature data through the facial feature recognition model includes:
sending the facial image to the facial feature recognition model;
receiving the facial feature data fed back by the facial feature recognition model.
Specifically, the acquired facial head image is sent to a facial feature recognition model, and the facial feature recognition model finally obtains facial feature data about the facial image by analyzing the facial image. Wherein the facial feature recognition model is obtained based on machine learning training.
Further, the calculating the first feature information of the user by the facial feature data includes:
reading the facial feature data;
calculating the first feature information from the facial feature data;
when the calculation is successful, the calculation result is the first characteristic information of the user;
and when the calculation is failed, the calculation result is that the first characteristic information of the user is preset information.
Specifically, first feature information of the user is calculated according to facial feature data of the user, and when the calculation is successful, the first feature information is a calculation result; when the calculation is failed, the first feature information of the user is a preset value, for example: the color value in the first feature information of the user is set to 80, and the superiority index is 8.0.
Further, the generating the first pictorial avatar includes:
when the facial feature recognition model successfully recognizes the facial image, generating the first drawing head portrait based on the facial recognition image and the user identity information;
and when the facial feature recognition model fails to recognize the facial image, the facial image of the user is collected again.
Specifically, when the facial feature recognition model successfully recognizes the facial image, the avatar generation model performs comprehensive training on the facial avatar of the user and the identity information of the user, and finally obtains a painting avatar based on the facial avatar of the user and the identity information of the user, wherein the generated painting avatar not only displays the facial features of the user, but also increases the interest of the user and the substituted sense of application; when the facial feature recognition model fails to recognize the facial image, the facial image of the user is collected again until the collected facial image can be recognized.
Further, still include: replacing the first drawing head portrait on the display page, comprising:
responding to a second operation instruction of the user;
receiving a local picture uploaded by the user or a user face image acquired by a camera;
carrying out identity verification on the local picture uploaded by the user or the user facial image collected by the camera through a facial feature recognition model;
generating a second drawing head portrait through the head portrait generation model;
and replacing the first drawing head portrait with the second drawing head portrait and displaying on the display page.
In a preferred embodiment of the present invention, the generated first painting head portrait is replaceable, when the user is not satisfied with the generated painting head portrait, the user can replace the head portrait button, the user collects the facial image of the user through the uploaded local picture or by turning on the camera, the facial feature recognition model performs the identity verification on the user according to the local picture uploaded by the user or the facial image of the user collected by the camera, and when the identity verification is successful, the head portrait generation model generates the second painting head portrait according to the local picture uploaded by the user or the facial image of the user collected by the camera.
Further, when the size of the local picture exceeds a preset memory, reminding a user that the size of the local picture exceeds a limit; when the local picture or the collected user image does not reach the preset identification degree, reminding the user to upload the local picture again or collect the user image again; and when the identity verification fails, reminding the user to upload the picture of the user again or collect the facial image of the user.
Specifically, the size of the uploaded local picture cannot exceed 2MB, and the definition of the uploaded local picture or the acquired user image is to be recognized.
Further, the display page comprises an advantage comment and a list ranking list button, the advantage comment is two groups of entries extracted from prestored entries according to the user identity information, and the list ranking list button is used for viewing the color value ranking list and/or the advantage ranking list.
Specifically, the display page comprises an advantage comment, a list ranking list button and the like besides displaying the generated head portrait, the face value and the ranking of the advantage index of the user in the whole country can be checked by clicking the list ranking list button, the advantage comment is a prestored entry, and the mobile terminal or the computer terminal randomly extracts two groups of entries from different age distribution entries as the advantage comment according to the age information of the user.
Furthermore, the display page further comprises a sharing component, and the sharing component is used for sharing any one or more of the first characteristic information of the user, the cartoon head portrait and the application program two-dimensional code.
Specifically, the display page further comprises a sharing component, and a user can share the first characteristic information, the head portrait of the cartoon, the two-dimensional code of the application program and the like of the user to other people by clicking different sharing modes.
Further, the first operation instruction is an instruction of jumping to an application home page, and the second operation instruction is an instruction of opening a user local album or starting a camera.
The face information is obtained by calculating the face parameters of the user, and the painting style head portrait is generated by the head portrait generation model, so that the participation willingness of the user to activities is increased, and the activity of the user is improved.
Fig. 2 is a schematic structural diagram of a page displaying apparatus based on facial recognition according to an embodiment of the present disclosure, including:
an image acquisition module 201, which performs facial recognition on a user to acquire a facial image;
in a preferred embodiment of the present invention, the image obtaining module 201 needs to complete the pre-task before performing facial recognition on the user, when the user does not complete the pre-task, completing the facial recognition in the application flow of the computer terminal is to complete the pre-task, and completing the credit line calculation in the application flow of the mobile terminal is to complete the pre-task.
The image acquisition module 201 acquires face information of a user through a camera, and identifies and processes the acquired face information to obtain an identified face image.
The identity authentication module 202 is used for performing identity authentication on the user to acquire the identity information of the user;
in a preferred embodiment of the present invention, the identity authentication module 202 authenticates the identity of the user through the obtained facial image, and reads the identity information of the user, so as to obtain the identity information of the user, where the identity information includes the age of the user, the gender of the user, and the like.
The feature acquisition module 203 acquires facial feature data through a facial feature recognition model;
in a preferred embodiment of the present invention, the facial feature recognition model in the feature obtaining module 203 receives the obtained facial image of the user, trains the facial head portrait to obtain facial feature data of the user, and obtains facial feature coordinate values related to facial features of the human face through a face + + open platform.
A feature calculation module 204 that calculates first feature information of the user based on the facial feature data;
in a preferred embodiment of the present invention, the feature calculating module 204 calculates the face information according to the facial feature data and facial feature coordinate values related to facial features of the human face, so as to obtain first feature information of the user, where the first feature information is the face information of the user, and includes a color value, a face dominance, and the like.
The head portrait generating module 205 substitutes the facial image and the user identity information into a head portrait generating model to generate a first drawing head portrait;
in a preferred embodiment of the present invention, the avatar generation module 205 performs comprehensive training on the facial avatar of the user and the identity information of the user, and finally obtains a painting avatar based on the facial avatar of the user and the identity information of the user, where the generated painting avatar not only displays the facial features of the user, but also increases the interest of the user and the sense of substitution of applications.
And a page display module 206 for displaying the first characteristic information of the user and the first drawing head portrait on a display page.
In a preferred embodiment of the present invention, the page displaying module 206 displays the generated first feature information and the first painting avatar on the display page, so that the user can check the percentage of nationwide users who have been defeated by the user and the position of the nationwide ranking list according to the first feature information.
Further, the performing facial recognition on the user includes:
setting a preposed task, and responding to a first operation instruction of the user when the user finishes the preposed task;
acquiring the face image;
and identifying the facial image.
Further, the obtaining facial feature data through the facial feature recognition model includes:
sending the facial image to the facial feature recognition model;
receiving the facial feature data fed back by the facial feature recognition model.
Further, the calculating the first feature information of the user by the facial feature data includes:
reading the facial feature data;
calculating the first feature information from the facial feature data;
when the calculation is successful, the calculation result is the first characteristic information of the user;
and when the calculation is failed, the calculation result is that the first characteristic information of the user is preset information.
Further, the generating the first pictorial avatar includes:
when the facial feature recognition model successfully recognizes the facial image, generating the first drawing head portrait based on the facial recognition image and the user identity information;
and when the facial feature recognition model fails to recognize the facial image, the facial image of the user is collected again.
Further, still include: replacing the first drawing head portrait on the display page, comprising:
responding to a second operation instruction of the user;
receiving a local picture uploaded by the user or a user face image acquired by a camera;
carrying out identity verification on the local picture uploaded by the user or the user facial image collected by the camera through a facial feature recognition model;
generating a second drawing head portrait through the head portrait generation model;
and replacing the first drawing head portrait with the second drawing head portrait and displaying on the display page.
Further, when the size of the local picture exceeds a preset memory, reminding a user that the size of the local picture exceeds a limit; when the local picture or the collected user image does not reach the preset identification degree, reminding the user to upload the local picture again or collect the user image again; and when the identity authentication fails, reminding the user to upload the picture of the user again or collect the facial image of the user.
Further, the display page comprises an advantage comment and a list ranking list button, the advantage comment is two groups of entries extracted from prestored entries according to the user identity information, and the list ranking list button is used for viewing the color value ranking list and/or the advantage ranking list.
Furthermore, the display page further comprises a sharing component, and the sharing component is used for sharing any one or more of the first characteristic information of the user, the cartoon head portrait and the application program two-dimensional code.
Further, the first operation instruction is an instruction of jumping to an application home page, and the second operation instruction is an instruction of opening a user local album or starting a camera.
The face information is obtained by calculating the face parameters of the user, and the painting style head portrait is generated by the head portrait generation model, so that the participation willingness of the user to activities is increased, and the activity of the user is improved.
Based on the same inventive concept, the embodiment of the specification further provides the electronic equipment.
In the following, embodiments of the electronic device of the present invention are described, which may be regarded as specific physical implementations for the above-described embodiments of the method and apparatus of the present invention. Details described in the embodiments of the electronic device of the invention should be considered supplementary to the embodiments of the method or apparatus described above; for details which are not disclosed in embodiments of the electronic device of the invention, reference may be made to the above-described embodiments of the method or the apparatus.
Fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present specification. An electronic device 300 according to this embodiment of the invention is described below with reference to fig. 3. The electronic device 300 shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 3, electronic device 300 is embodied in the form of a general purpose computing device. The components of electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one memory unit 320, a bus 330 connecting different device components (including the memory unit 320 and the processing unit 310), a display unit 340, and the like.
Wherein the storage unit stores program code executable by the processing unit 310 to cause the processing unit 310 to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned processing method section of the present specification. For example, the processing unit 310 may perform the steps as shown in fig. 1.
The storage unit 320 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)3201 and/or a cache storage unit 3202, and may further include a read only memory unit (ROM) 3203.
The storage unit 320 may also include a program/utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including, but not limited to: an operating device, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 330 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 300, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 300 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 350. Also, the electronic device 300 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 360. Network adapter 360 may communicate with other modules of electronic device 300 via bus 330. It should be appreciated that although not shown in FIG. 3, other hardware and/or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices, to name a few.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments of the present invention described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, or a network device, etc.) execute the above-mentioned method according to the present invention. The computer program, when executed by a data processing apparatus, enables the computer readable medium to implement the above-described method of the invention, namely: such as the method shown in fig. 1.
Fig. 4 is a schematic diagram of a computer-readable medium provided in an embodiment of the present disclosure.
A computer program implementing the method shown in fig. 1 may be stored on one or more computer readable media. The computer readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution apparatus, device, or apparatus. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components in embodiments in accordance with the invention may be implemented in practice using a general purpose data processing device such as a microprocessor or a Digital Signal Processor (DSP). The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
While the foregoing embodiments have described the objects, aspects and advantages of the present invention in further detail, it should be understood that the present invention is not inherently related to any particular computer, virtual machine or electronic device, and various general-purpose machines may be used to implement the present invention. The invention is not to be considered as limited to the specific embodiments thereof, but is to be understood as being modified in all respects, all changes and equivalents that come within the spirit and scope of the invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A page display method based on facial recognition is characterized by comprising the following steps:
carrying out face recognition on a user to obtain a face image;
performing identity authentication on the user to acquire the user identity information;
acquiring facial feature data through a facial feature recognition model;
calculating first feature information of the user based on the facial feature data;
substituting the facial image and the user identity information into an avatar generation model to generate a first drawing avatar;
and displaying the first characteristic information of the user and the first drawing head portrait on a display page.
2. The method for page presentation based on facial recognition according to claim 1, wherein the facial recognition of the user comprises:
setting a preposed task, and responding to a first operation instruction of the user when the user finishes the preposed task;
acquiring the face image;
and identifying the facial image.
3. The page presentation method based on facial recognition according to any one of claims 1-2, wherein the obtaining facial feature data through a facial feature recognition model comprises:
sending the facial image to the facial feature recognition model;
receiving the facial feature data fed back by the facial feature recognition model.
4. The page presentation method based on facial recognition according to any one of claims 1 to 3, wherein the calculating of the first feature information of the user by the facial feature data comprises:
reading the facial feature data;
calculating the first feature information from the facial feature data;
when the calculation is successful, the calculation result is the first characteristic information of the user;
and when the calculation is failed, the calculation result is that the first characteristic information of the user is preset information.
5. A method of facial recognition based page presentation according to any of claims 1 to 4, wherein said generating of said first pictorial avatar comprises:
when the facial feature recognition model successfully recognizes the facial image, generating the first drawing head portrait based on the facial recognition image and the user identity information;
and when the facial feature recognition model fails to recognize the facial image, the facial image of the user is collected again.
6. The page presentation method based on facial recognition according to any one of claims 1 to 5, further comprising: replacing the first drawing head portrait on the display page, comprising:
responding to a second operation instruction of the user;
receiving a local picture uploaded by the user or a user face image acquired by a camera;
carrying out identity verification on the local picture uploaded by the user or the user facial image collected by the camera through a facial feature recognition model;
generating a second drawing head portrait through the head portrait generation model;
and replacing the first drawing head portrait with the second drawing head portrait and displaying on the display page.
7. The page display method based on facial recognition, according to any one of claims 1 to 6, characterized in that when the size of the local picture exceeds a predetermined memory, the user is reminded that the size of the local picture exceeds a limit; when the local picture or the collected user image does not reach the preset identification degree, reminding the user to upload the local picture again or collect the user image again; and when the identity verification fails, reminding the user to upload the picture of the user again or collect the facial image of the user.
8. A page display device based on facial recognition is characterized by comprising:
the image acquisition module is used for carrying out facial recognition on a user to acquire a facial image;
the identity authentication module is used for authenticating the identity of the user to acquire the identity information of the user;
the feature acquisition module acquires facial feature data through a facial feature recognition model;
a feature calculation module that calculates first feature information of the user based on the facial feature data;
the head portrait generating module substitutes the facial image and the user identity information into a head portrait generating model to generate a first drawing head portrait;
and the page display module displays the first characteristic information of the user and the first drawing head portrait on a display page.
9. An electronic device, wherein the electronic device comprises:
a processor and a memory storing computer-executable instructions that, when executed, cause the processor to perform the method of any of claims 1-7.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-7.
CN202011025658.XA 2020-09-25 2020-09-25 Page display method and device based on facial recognition and electronic equipment Pending CN112231669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011025658.XA CN112231669A (en) 2020-09-25 2020-09-25 Page display method and device based on facial recognition and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011025658.XA CN112231669A (en) 2020-09-25 2020-09-25 Page display method and device based on facial recognition and electronic equipment

Publications (1)

Publication Number Publication Date
CN112231669A true CN112231669A (en) 2021-01-15

Family

ID=74108658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011025658.XA Pending CN112231669A (en) 2020-09-25 2020-09-25 Page display method and device based on facial recognition and electronic equipment

Country Status (1)

Country Link
CN (1) CN112231669A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113657247A (en) * 2021-08-13 2021-11-16 深圳市商汤科技有限公司 Man-machine interaction method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446772A (en) * 2018-09-03 2019-03-08 平安国际融资租赁有限公司 Accrediting amount calculation method, device, computer equipment and storage medium
CN109993807A (en) * 2019-02-21 2019-07-09 百度在线网络技术(北京)有限公司 Head portrait generation method, device and storage medium
CN110414205A (en) * 2019-07-31 2019-11-05 中国工商银行股份有限公司 For generating method, apparatus, electronic equipment and the medium of user's portrait
CN111179055A (en) * 2019-12-20 2020-05-19 北京淇瑀信息科技有限公司 Credit limit adjusting method and device and electronic equipment
CN111507834A (en) * 2020-06-30 2020-08-07 浙江网商银行股份有限公司 Credit limit processing method and device and user resource processing method and device
CN111627086A (en) * 2020-06-03 2020-09-04 上海商汤智能科技有限公司 Head portrait display method and device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446772A (en) * 2018-09-03 2019-03-08 平安国际融资租赁有限公司 Accrediting amount calculation method, device, computer equipment and storage medium
CN109993807A (en) * 2019-02-21 2019-07-09 百度在线网络技术(北京)有限公司 Head portrait generation method, device and storage medium
CN110414205A (en) * 2019-07-31 2019-11-05 中国工商银行股份有限公司 For generating method, apparatus, electronic equipment and the medium of user's portrait
CN111179055A (en) * 2019-12-20 2020-05-19 北京淇瑀信息科技有限公司 Credit limit adjusting method and device and electronic equipment
CN111627086A (en) * 2020-06-03 2020-09-04 上海商汤智能科技有限公司 Head portrait display method and device, computer equipment and storage medium
CN111507834A (en) * 2020-06-30 2020-08-07 浙江网商银行股份有限公司 Credit limit processing method and device and user resource processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨光瑶: "《手机支付与信用 省钱、赚钱、提额与个人贷款》" *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113657247A (en) * 2021-08-13 2021-11-16 深圳市商汤科技有限公司 Man-machine interaction method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US20180308107A1 (en) Living-body detection based anti-cheating online research method, device and system
CN108804884B (en) Identity authentication method, identity authentication device and computer storage medium
CN108322832B (en) Comment method and device and electronic equipment
CN106127552B (en) Virtual scene display method, device and system
CN112560605B (en) Interaction method, device, terminal, server and storage medium
CN109240786B (en) Theme changing method and electronic equipment
CN110472099A (en) Interdynamic video generation method and device, storage medium
CN106815744A (en) A kind of e-sourcing distribution method, equipment and system
CN106530377B (en) Method and apparatus for manipulating three-dimensional animated characters
CN113873286A (en) Live broadcast method and system based on artificial intelligence
CN104486306B (en) Identity authentication method is carried out based on finger hand vein recognition and cloud service
CN112231669A (en) Page display method and device based on facial recognition and electronic equipment
CN110633677A (en) Face recognition method and device
CN112866577B (en) Image processing method and device, computer readable medium and electronic equipment
CN112016077B (en) Page information acquisition method and device based on sliding track simulation and electronic equipment
CN111090849A (en) Memory, verification code implementation method, device and equipment
CN106390458B (en) Webpage game on-hook method, server, mobile terminal and browser client
CN107992825B (en) Face recognition method and system based on augmented reality
CN115906028A (en) User identity verification method and device and self-service terminal
CN113840177B (en) Live interaction method and device, storage medium and electronic equipment
JP2020052505A (en) Health condition determination system, health condition determination device, server, health condition determination method and program
CN114049130A (en) Virtual resource generation and acquisition method and device, electronic equipment and storage medium
CN115379269A (en) Live broadcast interaction method of virtual image, computing equipment and storage medium
CN112948629B (en) Content distribution method, device, electronic equipment and computer storage medium
CN111324878A (en) Identity verification method and device based on face recognition, storage medium and terminal

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

Application publication date: 20210115

RJ01 Rejection of invention patent application after publication