Method and system for judging whether to start screen or not through face proportion, electronic equipment and storage medium

By introducing a face proportion judgment mechanism into the camera, the camera controls the camera to judge the face direction and proportion when recognizing a face, which solves the problem of inconvenient face recognition unlocking in the existing technology and improves the user experience.

CN119598432APending Publication Date: 2025-03-11TRULY OPTO ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411511874.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the prior art, once the camera recognizes a face, it will automatically unlock the screen, causing the user to unlock it without wanting to unlock it, causing inconvenience to the user.

Method used

By controlling the camera to lock the face and collect face images, receive and analyze the face images to output the face direction and face proportion, it is determined that the screen is unlocked when the face direction is correct and the face proportion is higher than the preset value, otherwise the screen will be locked and sleeped.

Benefits of technology

It avoids unlocking the phone directly every time the camera collects face images, improving the user experience and ensuring that the user unlocks the screen only when needed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119598432A_ABST
    Figure CN119598432A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a system for judging whether to start a screen or not through a face ratio, electronic equipment and a storage medium. The method comprises the following steps: controlling a camera to lock a face and collect a face image; receiving a face image collected by the camera, analyzing the face image, and outputting a face direction and a face ratio; judging a face direction and a face ratio, and unlocking the screen when the face direction is correct and the face ratio is higher than a preset value; and when the face direction is wrong or the face ratio is lower than a preset value, locking and sleeping the screen. According to the method, the face image is collected through the camera, and whether the face direction is correct and whether the face ratio is higher than the preset value are judged to correctly unlock the screen, so that the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of camera technology, and in particular to a method, system, electronic device and storage medium for determining whether to turn on a screen based on a face ratio. Background Art

[0002] With the widespread use of electronic devices such as mobile phones and tablets, users have higher requirements for the convenience of electronic devices. Electronic devices usually have the function of unlocking the screen by face recognition. When the face is facing the camera of the screen, the camera recognizes the user's face and unlocks the screen, which brings great convenience to the user. However, the camera will unlock the screen once it recognizes the face, and sometimes the user does not want to unlock the screen, so he needs to manually turn off the screen, which brings a bad experience to the user. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a method, system, electronic device and storage medium for determining whether to turn on the screen based on the proportion of the face.

[0004] The objective of the present invention is achieved through the following technical solutions:

[0005] In a first aspect, an embodiment of the present invention provides a method for determining whether to turn on the screen based on the face ratio, including:

[0006] Control the camera to lock the face and collect the face image;

[0007] Receive the face image captured by the camera, analyze the face image, and output the face direction and face ratio;

[0008] Determine the face direction and face ratio. When the face direction is correct and the face ratio is higher than the preset value, the screen is unlocked; when the face direction is incorrect or the face ratio is lower than the preset value, the screen is locked and put to sleep.

[0009] In one embodiment, controlling the camera to lock onto a face and collect a face image includes:

[0010] Control the camera to rotate and capture facial images;

[0011] Get face images and store them.

[0012] In one embodiment, the receiving a face image captured by a camera, analyzing the face image, and outputting a face direction and a face ratio value includes:

[0013] Recognize facial information and confirm that the facial information belongs to the correct user;

[0014] Output the face direction, calculate the ratio of the face to the screen and output it.

[0015] In one embodiment, the determining of the face direction and the face ratio value, when the face direction is correct and the face ratio value is higher than a preset value, unlocking the screen; when the face direction is wrong or the face ratio value is lower than a preset value, locking and putting the screen to sleep, includes:

[0016] If the face direction is judged to be positive, the face ratio value is judged;

[0017] If the face direction is determined to be non-positive, the screen will be locked and put to sleep.

[0018] In one implementation manner, if the direction of the face is determined to be positive, determining the face proportion value includes:

[0019] When the face ratio is higher than the preset value, the screen will be unlocked;

[0020] When the face ratio is lower than the preset value, the screen will be locked and put to sleep.

[0021] In one implementation manner, the face direction and the face ratio are determined, and when the face direction is correct and the face ratio is higher than a preset value, the screen is unlocked; when the face direction is wrong or the face ratio is lower than a preset value, the screen is locked and put to sleep, wherein:

[0022] The preset value is that the ratio of the face to the screen is 70%-100%.

[0023] In a second aspect, an embodiment of the present invention provides a system for determining whether to turn on the screen based on the face ratio, including:

[0024] The camera acquisition and information storage module includes an acquisition unit and a storage unit, wherein the acquisition unit is used to control the camera to lock the face and acquire the face image, and the storage unit is used to store the face image;

[0025] The analysis and processing module includes an analysis unit and a first output unit, wherein the analysis unit is used to receive a face image captured by a camera and analyze the face image, and the first output unit is used to output a face direction and a face proportion value;

[0026] The judgment output module includes a judgment unit and a second output unit. The judgment unit is used to judge the face direction and the face ratio value. The second output unit is used to unlock the screen when the face direction is correct and the face ratio value is higher than a preset value; when the face direction is incorrect or the face ratio value is lower than a preset value, lock and put the screen to sleep.

[0027] In one embodiment, the camera acquisition and information storage module includes an acquisition unit and a storage unit, the acquisition unit is used to control the camera to lock the face and acquire the face image, and the storage unit is used to store the face image;

[0028] The analysis and processing module includes an analysis unit and a first output unit, wherein the analysis unit is used to receive a face image captured by a camera and analyze the face image, and the first output unit is used to output a face direction and a face proportion value;

[0029] The judgment output module includes a judgment unit and a second output unit. The judgment unit is used to judge the face direction and the face ratio value. The second output unit is used to unlock the screen when the face direction is correct and the face ratio value is higher than a preset value; when the face direction is incorrect or the face ratio value is lower than a preset value, lock and put the screen to sleep.

[0030] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a storage device, wherein an executable code is stored on the storage device, and when the executable code is executed by the processor, the processor executes a method as described above for determining whether to turn on the screen based on the proportion of a face.

[0031] In a fourth aspect, an embodiment of the present invention provides a storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor executes a method as described above for determining whether to turn on the screen based on the proportion of a face.

[0032] Compared with the prior art, the present invention has at least the following advantages:

[0033] A method for judging whether to turn on the screen based on the face ratio of the present invention controls the camera to lock the face and collect the face image; receives the face image collected by the camera, analyzes the face image, and outputs the face direction and the face ratio value; judges the face direction and the face ratio value, and when the face direction is correct and the face ratio value is higher than a preset value, unlocks the screen; when the face direction is wrong or the face ratio value is lower than a preset value, locks and puts the screen to sleep, so as to avoid directly unlocking the mobile phone every time the camera collects a face image, so as to improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0035] Figure 1 A flowchart of a method for determining whether to turn on the screen based on the face ratio provided by the present invention;

[0036] Figure 2A flowchart of step S10 in a method for determining whether to turn on the screen based on the face ratio provided by the present invention;

[0037] Figure 3 A flowchart of step S20 in a method for determining whether to turn on the screen based on the face ratio provided by the present invention;

[0038] Figure 4 A flowchart of step S30 in a method for determining whether to turn on the screen based on the face ratio provided by the present invention;

[0039] Figure 5 A flowchart of step S31 in a method for determining whether to turn on the screen based on the face ratio provided by the present invention;

[0040] Figure 6 A functional module diagram of a system for judging whether to turn on the screen based on the face ratio provided by the present invention;

[0041] Figure 7 A structural diagram of an electronic device provided by the present invention that determines whether to turn on the screen based on the proportion of the face. DETAILED DESCRIPTION

[0042] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thoroughly understood.

[0043] In a first aspect, the present invention provides a method for determining whether to turn on the screen based on the face ratio, referring to Figure 1 ,include:

[0044] S10, controlling the camera to lock the face and collect the face image;

[0045] S20, receiving a face image captured by a camera, analyzing the face image, and outputting a face direction and a face ratio value;

[0046] S30, judging the face direction and face ratio, when the face direction is correct and the face ratio is higher than a preset value, unlocking the screen; when the face direction is wrong or the face ratio is lower than a preset value, locking the screen and putting it to sleep.

[0047] It should be noted that the camera in this embodiment is set to a rotatable mode and can rotate along with the user to lock the face so as to capture the face image.

[0048] Reference Figure 2 In step S10: controlling the camera to lock the face and collect the face image, including:

[0049] S11, controlling the camera to rotate and capture a face image;

[0050] When the user's face is facing the screen, the camera rotates to face the face, captures the face, and obtains a face image.

[0051] S12, acquiring and storing a face image. The acquired face image is stored in a database to facilitate subsequent identification of the user.

[0052] Reference Figure 3 In step S20, a face image captured by a camera is received, the face image is analyzed, and a face direction and a face ratio value are output, including:

[0053] S21, identifying facial information and determining that the facial information is of a correct user; this step is to determine that the facial image captured by the camera is a facial recognition user in order to proceed to the next step of operation.

[0054] S22, output the face direction, calculate the ratio of the face to the screen and output it. The face direction in the face image captured by the camera may not be positive. This step is to analyze the face direction to ensure that the face direction is positive, so as to determine the face ratio. The face ratio is obtained by calculating the ratio of the face to the screen.

[0055] Reference Figure 4 In step S30, the face direction and the face ratio are determined. When the face direction is correct and the face ratio is higher than a preset value, the screen is unlocked; when the face direction is wrong or the face ratio is lower than a preset value, the screen is locked and put to sleep, including:

[0056] S31. If the face direction is determined to be positive, then the face ratio value is determined. When the face direction in the face image captured by the camera is positive, the subsequent determination of the face ratio value is meaningful, so as to ensure that the user wants to unlock the screen at this time.

[0057] Reference Figure 5 In step S31, if the face direction is determined to be positive, the face ratio is determined, including:

[0058] S311. When the face ratio is higher than a preset value, the screen is unlocked; wherein the preset value is that the face ratio to the screen ratio is 70%-100%. When the face ratio is higher than the preset value, it can be seen that most of the face is within the acquisition range of the camera. In this case, the screen is unlocked to speed up the wake-up of the device and improve the user experience.

[0059] S312: When the face ratio is lower than a preset value, the screen is locked and the screen is put into sleep mode. When the face ratio is lower than a preset value, that is, the face is not mostly within the camera's acquisition range, the user does not necessarily need to unlock the screen, so the screen is locked and the screen is put into sleep mode.

[0060] S32: If the face direction is determined to be non-positive, the screen is locked and put into sleep mode. When the face direction in the face image captured by the camera is non-positive, it means that the user does not want to unlock the phone, so the screen is locked and put into sleep mode to reduce the power consumption of the device.

[0061] Second, refer to Figure 6 An embodiment of the present invention provides a system for determining whether to turn on the screen based on the face ratio, including:

[0062] The camera acquisition and information storage module 10 is used to control the camera to lock the face and acquire the face image;

[0063] The analysis and processing module 20 is used to receive the face image captured by the camera, analyze the face image, and output the face direction and face ratio value;

[0064] The judgment output module 30 is used to judge the face direction and the face ratio. When the face direction is correct and the face ratio is higher than the preset value, the screen is unlocked; when the face direction is wrong or the face ratio is lower than the preset value, the screen is locked and put to sleep.

[0065] Specifically, the camera acquisition and information storage module 10 includes an acquisition unit 11 and a storage unit 12, wherein the acquisition unit 11 is used to control the camera to lock the face and acquire the face image, and the storage unit 12 is used to store the face image;

[0066] The analysis and processing module 20 includes an analysis unit 21 and a first output unit 22, wherein the analysis unit 21 is used to receive a face image captured by a camera and analyze the face image, and the first output unit 22 is used to output a face direction and a face ratio value;

[0067] The judgment output module 30 includes a judgment unit 31 and a second output unit 32. The judgment unit 31 is used to judge the face direction and the face ratio value. The second output unit 32 is used to unlock the screen when the face direction is correct and the face ratio value is higher than a preset value; when the face direction is incorrect or the face ratio value is lower than a preset value, the screen is locked and put to sleep.

[0068] Thirdly, refer to Figure 7 An embodiment of the present invention provides an electronic device 100, including a processor 110 and a storage 120, on which executable code is stored. When the executable code is executed by the processor, the processor executes a method as described above for determining whether to turn on the screen based on the proportion of a face.

[0069] The processor may be composed of a single packaged integrated circuit or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips. The processor is the control core (Control Unit) of an electronic device, which uses various interfaces and lines to connect the various components of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing programs or modules stored in the memory, and calling data stored in the memory.

[0070] Among them, the memory may include various types of storage units, such as system memory, read-only memory (ROM) and permanent storage devices. Among them, ROM can store static data or instructions required by the processor or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. For example, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. For another example, the permanent storage device may be a removable storage device (such as a floppy disk, an optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory may include any combination of computer-readable storage media, including various types of semiconductor storage chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, mini SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0071] A storage medium stores executable code thereon. When the executable code is executed by a processor of an electronic device, the processor executes a method as described above for determining whether to turn on the screen based on the proportion of a face.

[0072] The present invention provides a method for judging whether to turn on the screen by using the face ratio, which comprises controlling a camera to lock the face and collect a face image; receiving the face image collected by the camera, analyzing the face image, and outputting the face direction and the face ratio value; judging the face direction and the face ratio value, and unlocking the screen when the face direction is correct and the face ratio value is higher than a preset value; and locking and putting the screen to sleep when the face direction is wrong or the face ratio value is lower than a preset value, so as to avoid directly unlocking the mobile phone every time the camera collects a face image, so as to improve the user experience.

[0073] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for determining whether to turn on the screen based on the face ratio, characterized in that: include: Control the camera to lock the face and collect the face image; Receive the face image captured by the camera, analyze the face image, and output the face direction and face ratio; Determine the face direction and face ratio. When the face direction is correct and the face ratio is higher than the preset value, the screen is unlocked; when the face direction is wrong or the face ratio is lower than the preset value, the screen is locked and put to sleep.

2. The method for determining whether to turn on the screen based on the face ratio according to claim 1, characterized in that: The controlling camera to lock onto a face and collect a face image includes: Control the camera to rotate and capture facial images; Get face images and store them.

3. The method for determining whether to turn on the screen based on the face ratio according to claim 2, characterized in that: The receiving face image captured by the camera, analyzing the face image, and outputting the face direction and face proportion value include: Recognize facial information and confirm that the facial information belongs to the correct user; Output the face direction, calculate the ratio of the face to the screen and output it.

4. The method for determining whether to turn on the screen based on the face ratio according to claim 3, characterized in that: The face direction and face ratio are determined, and when the face direction is correct and the face ratio is higher than a preset value, the screen is unlocked; When the face orientation is wrong or the face ratio is lower than the preset value, the screen is locked and put to sleep, including: If the face direction is judged to be positive, the face ratio value is judged; If the face direction is determined to be non-positive, the screen will be locked and put to sleep.

5. The method for determining whether to turn on the screen based on the face ratio according to claim 4, characterized in that: If the face direction is determined to be positive, then determining the face ratio value includes: When the face ratio is higher than the preset value, the screen will be unlocked; When the face ratio is lower than the preset value, the screen will be locked and put to sleep.

6. The method for determining whether to turn on the screen based on the face ratio according to claim 5, characterized in that: The face direction and face ratio are determined. When the face direction is correct and the face ratio is higher than a preset value, the screen is unlocked; when the face direction is wrong or the face ratio is lower than a preset value, the screen is locked and put to sleep, wherein: The preset value is that the ratio of the face to the screen is 70%-100%.

7. A system for determining whether to turn on the screen based on the face ratio, characterized in that: include: The camera acquisition and information storage module is used to control the camera to lock the face and acquire the face image; The analysis and processing module receives the face image captured by the camera, analyzes the face image, and outputs the face direction and face ratio value; The judgment output module judges the face direction and face ratio. When the face direction is correct and the face ratio is higher than the preset value, the screen is unlocked; when the face direction is wrong or the face ratio is lower than the preset value, the screen is locked and put to sleep.

8. The system for determining whether to turn on the screen based on the face ratio according to claim 7, characterized in that: include: The camera acquisition and information storage module includes an acquisition unit and a storage unit, wherein the acquisition unit is used to control the camera to lock the face and acquire the face image, and the storage unit is used to store the face image; The analysis and processing module includes an analysis unit and a first output unit, wherein the analysis unit is used to receive a face image captured by a camera and analyze the face image, and the first output unit is used to output a face direction and a face proportion value; The judgment output module includes a judgment unit and a second output unit. The judgment unit is used to judge the face direction and the face ratio value. The second output unit is used to unlock the screen when the face direction is correct and the face ratio value is higher than a preset value; when the face direction is incorrect or the face ratio value is lower than a preset value, lock and put the screen to sleep.

9. An electronic device, characterized in that: include: A processor and a storage device, wherein an executable code is stored on the storage device, and when the executable code is executed by the processor, the processor is caused to execute the method according to any one of claims 1 to 6.

10. A storage medium, characterized in that: An executable code is stored thereon, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described in any one of claims 1-6.