CN114547577A - Face authentication method and device and terminal equipment - Google Patents

Face authentication method and device and terminal equipment Download PDF

Info

Publication number
CN114547577A
CN114547577A CN202210183153.9A CN202210183153A CN114547577A CN 114547577 A CN114547577 A CN 114547577A CN 202210183153 A CN202210183153 A CN 202210183153A CN 114547577 A CN114547577 A CN 114547577A
Authority
CN
China
Prior art keywords
image data
effective area
face authentication
minimum effective
face
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
CN202210183153.9A
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.)
Spreadtrum Semiconductor Nanjing Co Ltd
Original Assignee
Spreadtrum Semiconductor Nanjing 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 Spreadtrum Semiconductor Nanjing Co Ltd filed Critical Spreadtrum Semiconductor Nanjing Co Ltd
Priority to CN202210183153.9A priority Critical patent/CN114547577A/en
Publication of CN114547577A publication Critical patent/CN114547577A/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
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)
  • Collating Specific Patterns (AREA)

Abstract

The invention provides a face authentication method, a face authentication device and terminal equipment. The method comprises the following steps: after receiving a face authentication request sent by a user, starting a camera and starting face authentication; carrying out face detection; when a face is detected, focusing a minimum effective area required for face authentication, and shooting; detecting whether the photographed image data exceeds the minimum effective area; if the image data shot by the camera exceeds the minimum effective area, carrying out privacy protection processing on the image data exceeding the minimum effective area, and providing the image data subjected to privacy processing to an application program for carrying out face authentication; and if the image data shot by the camera does not exceed the minimum effective area, directly providing the shot image data for an application program for performing face authentication. The invention can avoid unnecessary disclosure of personal privacy information.

Description

Face authentication method and device and terminal equipment
Technical Field
The invention relates to the technical field of face recognition, in particular to a face authentication method, a face authentication device and terminal equipment.
Background
At present, intelligent terminal equipment is gradually popularized, equipment functions are continuously enriched, equipment capacity is continuously improved, and the intelligent terminal equipment greatly facilitates daily life of people. With the continuous development and improvement of intelligent equipment with biological identification functions such as face identification, fingerprint identification, iris identification and the like, various protection means are provided for equipment safety. In view of the reduction of the risk of disease transmission, contactless identity authentication is more widely required. The camera on the intelligent equipment is utilized, and the face recognition technology is adopted for identity authentication, so that the method becomes a convenient, rapid and widely-adopted mode gradually.
In a scene of identity authentication through face recognition, for example, when a user uses applications such as a mobile phone bank and a health code, and when the user opens the applications to perform face recognition, the intelligent device firstly starts the camera and displays a face acquisition area on a screen; a user focuses a face into a face acquisition area on a screen through movement, and performs corresponding action according to screen prompt to perform biopsy; the part outside the face acquisition area is not displayed on the screen, so that the user can intuitively think that the intelligent equipment only acquires the image data in the face acquisition area. In practice, however, the smart device may capture all image data within the range of the camera. Thereby causing unnecessary disclosure of private information to the user without the knowledge of the user.
Disclosure of Invention
The face authentication method, the face authentication device and the terminal equipment can avoid unnecessary leakage of personal privacy information.
In a first aspect, the present invention provides a face authentication method, including:
after receiving a face authentication request sent by a user, starting a camera and starting face authentication;
carrying out face detection;
when a face is detected, focusing a minimum effective area required for face authentication, and shooting;
detecting whether the photographed image data exceeds the minimum effective area;
if the image data shot by the camera exceeds the minimum effective area, carrying out privacy protection processing on the image data exceeding the minimum effective area, and providing the image data subjected to privacy processing to an application program for carrying out face authentication;
and if the image data shot by the camera does not exceed the minimum effective area, directly providing the shot image data for an application program for performing face authentication.
Optionally, before the performing the face detection, the method further includes:
and carrying out privacy protection processing on image data viewed by the camera, wherein the privacy protection processing comprises blurring, shading, clipping or replacing.
Optionally, the privacy protecting processing on the image data beyond the minimum effective area includes:
blurring, blocking, cropping or replacing the image data beyond the minimum effective area.
Optionally, the focusing a minimum effective area required for face authentication includes:
the face features of a person are identified through a face identification algorithm, the focusing point of the camera is automatically adjusted, the view finding range is enlarged or reduced, and the focusing is carried out to the minimum effective area required by face authentication.
In a second aspect, the present invention provides a face authentication apparatus, comprising:
the starting unit is used for starting the camera and starting the face authentication after receiving a face authentication request sent by a user;
the first detection unit is used for detecting human faces;
the focusing and shooting unit is used for focusing the minimum effective area required by face authentication and shooting when the face is detected;
a second detection unit configured to detect whether the captured image data exceeds the minimum effective area;
the first processing unit is used for carrying out privacy protection processing on the image data exceeding the minimum effective area when the image data shot by the camera exceeds the minimum effective area;
and the sending unit is used for providing the image data subjected to privacy processing by the first processing unit to an application program for face authentication when the image data shot by the camera exceeds the minimum effective area, or directly providing the shot image data to the application program for face authentication when the image data shot by the camera does not exceed the minimum effective area.
Optionally, the apparatus further comprises:
and the second processing unit is used for carrying out privacy protection processing on the image data framed by the camera before the first detection unit carries out face detection, and the privacy protection processing comprises blurring, shielding, cutting or replacing.
Optionally, the first processing unit is further configured to perform blurring, blocking, clipping, or replacing on the image data exceeding the minimum effective area.
Optionally, the focusing and shooting unit is further configured to identify facial features of a person through a face recognition algorithm, automatically adjust a focus point of the camera, enlarge or reduce a viewing range, and focus to a minimum effective area required for face authentication.
In a third aspect, the present invention provides a terminal device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above-described face authentication method.
In a fourth aspect, the present invention provides a chip, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above-described face authentication method.
In a fifth aspect, the present invention provides a chip module, which includes the above chip.
In a sixth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions, when executed by a processor, implement the above-mentioned face authentication method.
According to the face authentication method, the face authentication device and the terminal equipment, when face data are collected, privacy protection processing is carried out on collected image data which exceed the minimum effective area required by face authentication, the image data uploaded to a third-party application program from the terminal equipment are guaranteed to be the minimum effective data, and unnecessary personal privacy information of a user is prevented from being leaked.
Drawings
FIG. 1 is a flow chart of a face authentication method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a face authentication method according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a face authentication device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a face authentication device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a face authentication method, which is applied to terminal equipment and comprises the following steps:
and S11, after receiving a face authentication request sent by a user, starting the camera and starting face authentication.
S12, carrying out face detection;
s13, when a face is detected, focusing a minimum effective area required by face authentication, and shooting;
s14, detecting whether the shot image data exceeds the minimum effective area;
s15, if the image data shot by the camera exceeds the minimum effective area, carrying out privacy protection processing on the image data exceeding the minimum effective area, and providing the image data subjected to privacy processing to an application program for carrying out face authentication;
and S16, if the image data shot by the camera does not exceed the minimum effective area, directly providing the shot image data to an application program for face authentication.
According to the face authentication method provided by the embodiment of the invention, when face data are collected, the collected image data exceeding the minimum effective area required by face authentication are subjected to privacy protection processing, so that the image data uploaded to a third-party application program from terminal equipment are ensured to be minimum effective data, and unnecessary personal privacy information of a user is prevented from being leaked.
The following describes the face authentication method in detail with reference to specific embodiments.
As shown in fig. 2, the face authentication method provided in this embodiment includes:
and S21, after receiving a face authentication request sent by a user, starting the camera and starting face authentication.
And S22, performing privacy protection processing on the image data framed by the camera.
Since the image data viewed by the camera may be provided to the application program performing the face authentication, in order to protect the privacy of the user, privacy protection processing including blurring, blocking, cropping, or replacing may be performed on the image data viewed by the camera.
The camera is opened, before face data acquisition, face recognition is carried out on framing frame data of the camera through an AI technology, automatic focusing is carried out on the camera, the focus of an image is focused in the face range of a person, and manual adjustment of a user is avoided. When the camera is started, necessary information acquisition areas are covered as much as possible, and unnecessary information leakage is avoided.
S23, detecting human faces, and executing the step S24 when the human faces are detected; otherwise, execution continues with step S23.
Since the face is focused itself, rather than just displaying the avatar in front of the lens, the risk of acquiring raw data is controlled.
And S24, focusing the minimum effective area required by face authentication and shooting.
Specifically, the facial features of a person can be identified through a face recognition algorithm, the focus point of the camera is automatically adjusted, the view finding range is enlarged or reduced, key data information required by face authentication is focused to the minimum effective area and shot, and corresponding data are provided to a third-party application program after image data are basically stable.
Furthermore, in order to better collect the face authentication information, a universal face data model can be established in advance, and when the face is focused through the camera, intelligent positioning and adjustment are carried out based on the face data models, so that the effectiveness of the collected face information data is ensured.
S25, detecting whether the image data shot by the camera exceeds the minimum effective area, if so, executing a step S26; otherwise, step S27 is executed.
Wherein the minimum effective area covers facial feature information points required for face authentication.
S26, the privacy-preserving process is performed on the image data exceeding the minimum effective area, and then step S27 is executed.
Specifically, the shot face image data is analyzed, and the image data exceeding the minimum effective area is subjected to blurring, blocking, clipping or replacing, so that the image data of the third-party application program is prevented from containing unnecessary data information.
S27, the captured image data is supplied to the application program for face authentication.
Therefore, the image data subjected to privacy protection processing can be obtained and then provided for the third-party application program to perform subsequent face authentication processing such as extraction of the feature points of the human face, so that the image data uploaded to the third-party application program from the terminal device can be guaranteed to be minimum effective data, and unnecessary personal privacy information of the user is prevented from being leaked.
According to the face authentication method provided by the embodiment of the invention, before face detection is carried out, privacy protection processing is carried out on image data framed by the camera, so that leakage of personal privacy information of a user is avoided; when the face data is collected, the collected image data exceeding the minimum effective area required by face authentication is subjected to privacy protection processing, the image data uploaded to a third-party application program from the terminal equipment is guaranteed to be the minimum effective data, and unnecessary personal privacy information of a user is prevented from being leaked.
An embodiment of the present invention further provides a face authentication device, where the face authentication device is located in a terminal device, as shown in fig. 3, and the face authentication device includes:
the starting unit 11 is used for starting the camera and starting the face authentication after receiving a face authentication request sent by a user;
a first detection unit 12 for performing face detection;
a focusing and shooting unit 13, configured to focus a minimum effective area required for face authentication and shoot when a face is detected;
a second detection unit 14 for detecting whether the captured image data exceeds the minimum effective area;
a first processing unit 15, configured to perform privacy protection processing on image data that exceeds the minimum effective area when the image data captured by the camera exceeds the minimum effective area;
a sending unit 16, configured to provide the image data subjected to the privacy processing by the first processing unit 15 to an application program performing face authentication when the image data captured by the camera exceeds the minimum effective area, or directly provide the captured image data to the application program performing face authentication when the image data captured by the camera does not exceed the minimum effective area.
According to the face authentication device provided by the embodiment of the invention, when face data are collected, the collected image data exceeding the minimum effective area required by face authentication are subjected to privacy protection processing, so that the image data uploaded to a third-party application program from terminal equipment are ensured to be minimum effective data, and unnecessary personal privacy information of a user is prevented from being leaked.
Optionally, as shown in fig. 4, the apparatus further includes:
and a second processing unit 17, configured to perform privacy protection processing on the image data viewed by the camera before the first detecting unit 12 performs face detection, where the privacy protection processing includes blurring, blocking, clipping, or replacing.
Optionally, the first processing unit 15 is further configured to perform blurring, blocking, cropping, or replacing on the image data that exceeds the minimum effective area.
Optionally, the focusing and shooting unit 13 is further configured to identify facial features of a person through a face recognition algorithm, automatically adjust a focus point of the camera, enlarge or reduce a viewing range, and focus to a minimum effective area required for face authentication.
The apparatus of this embodiment may be configured to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
An embodiment of the present invention further provides a terminal device, where the terminal device includes:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above-described face authentication method.
An embodiment of the present invention further provides a chip, where the chip includes:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the above-described face authentication method.
The embodiment of the invention also provides a chip module which comprises the chip.
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer instructions, when executed by a processor, implement the above-mentioned face authentication method.
It will be understood by those skilled in the art that all or part of the processes of the embodiments of the methods described above may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A face authentication method, the method comprising:
after receiving a face authentication request sent by a user, starting a camera and starting face authentication;
carrying out face detection;
when the face is detected, focusing the minimum effective area required by face authentication, and shooting;
detecting whether the photographed image data exceeds the minimum effective area;
if the image data shot by the camera exceeds the minimum effective area, carrying out privacy protection processing on the image data exceeding the minimum effective area, and providing the image data subjected to privacy processing to an application program for carrying out face authentication;
and if the image data shot by the camera does not exceed the minimum effective area, directly providing the shot image data for an application program for performing face authentication.
2. The method of claim 1, wherein prior to said performing face detection, the method further comprises:
and carrying out privacy protection processing on image data viewed by the camera, wherein the privacy protection processing comprises blurring, shading, clipping or replacing.
3. The method according to claim 1 or 2, wherein the privacy-preserving processing of the image data beyond the minimum effective area comprises:
blurring, blocking, cropping or replacing the image data beyond the minimum effective area.
4. The method according to any one of claims 1 to 3, wherein focusing the minimum effective area required for face authentication comprises:
the face features of a person are identified through a face identification algorithm, the focusing point of the camera is automatically adjusted, the view finding range is enlarged or reduced, and the focusing is carried out to the minimum effective area required by face authentication.
5. A face authentication apparatus, characterized in that the apparatus comprises:
the starting unit is used for starting the camera and starting the face authentication after receiving a face authentication request sent by a user;
the first detection unit is used for detecting human faces;
the focusing and shooting unit is used for focusing the minimum effective area required by face authentication and shooting when the face is detected;
a second detection unit configured to detect whether the captured image data exceeds the minimum effective area;
the first processing unit is used for carrying out privacy protection processing on the image data exceeding the minimum effective area when the image data shot by the camera exceeds the minimum effective area;
and the sending unit is used for providing the image data subjected to privacy processing by the first processing unit to an application program for face authentication when the image data shot by the camera exceeds the minimum effective area, or directly providing the shot image data to the application program for face authentication when the image data shot by the camera does not exceed the minimum effective area.
6. The apparatus of claim 5, further comprising:
and the second processing unit is used for carrying out privacy protection processing on the image data framed by the camera before the first detection unit carries out face detection, and the privacy protection processing comprises blurring, shielding, cutting or replacing.
7. The apparatus according to claim 5 or 6, wherein the first processing unit is further configured to blur, block, crop, or replace image data that exceeds the minimum effective area.
8. The device according to any one of claims 5 to 7, wherein the focusing and photographing unit is further configured to identify facial features of a person through a face recognition algorithm, automatically adjust a focus point of the camera, and enlarge or reduce a viewing range to focus to a minimum effective area required for face authentication.
9. A terminal device, characterized in that the terminal device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 4.
10. A chip, wherein the chip comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 4.
11. A chip module, characterized in that it comprises a chip according to claim 10.
12. A computer readable storage medium, wherein the computer readable storage medium stores computer instructions which, when executed by a processor, implement the method of any one of claims 1 to 4.
CN202210183153.9A 2022-02-25 2022-02-25 Face authentication method and device and terminal equipment Pending CN114547577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210183153.9A CN114547577A (en) 2022-02-25 2022-02-25 Face authentication method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210183153.9A CN114547577A (en) 2022-02-25 2022-02-25 Face authentication method and device and terminal equipment

Publications (1)

Publication Number Publication Date
CN114547577A true CN114547577A (en) 2022-05-27

Family

ID=81679228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210183153.9A Pending CN114547577A (en) 2022-02-25 2022-02-25 Face authentication method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN114547577A (en)

Similar Documents

Publication Publication Date Title
CN108197586B (en) Face recognition method and device
EP2548154B1 (en) Object detection and recognition under out of focus conditions
JP4274233B2 (en) Imaging apparatus, image processing apparatus, image processing method therefor, and program causing computer to execute the method
US9930525B2 (en) Method and system for eyeprint recognition unlocking based on environment-filtering frames
US8243159B2 (en) Image capturing device, image processing device, image analysis method for the image capturing device and the image processing device, and program for facial attribute detection
KR20100058280A (en) Method and apparatus for taking images using portable terminal
WO2012036669A1 (en) Smile detection systems and methods
CN104378545A (en) Photographing processing method and system
JP4544026B2 (en) Imaging device, portable terminal
CN109255282B (en) Biological identification method, device and system
JP4421151B2 (en) Digital camera imaging device
WO2020015149A1 (en) Wrinkle detection method and electronic device
CN111476808B (en) Iris image definition evaluation method and device
CN111583273A (en) Readable storage medium, display device and image processing method thereof
CN110365897B (en) Image correction method and device, electronic equipment and computer readable storage medium
CN113225451B (en) Image processing method and device and electronic equipment
CN108259769B (en) Image processing method, image processing device, storage medium and electronic equipment
CN114547577A (en) Face authentication method and device and terminal equipment
CN113591526A (en) Face living body detection method, device, equipment and computer readable storage medium
CN110991356A (en) Mobile phone playback living attack identification method based on screen edge
WO2017157435A1 (en) A method and system for visual privacy protection for mobile and wearable devices
CN111507131A (en) Living body detection method and apparatus, electronic device, and storage medium
US20190057271A1 (en) Image processing method, photographing device and storage medium
JP2016092513A (en) Image acquisition device, shake reduction method and program
CN107872622A (en) Close-range imaging method and mobile 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