Screen security method and electronic device using same

By using cameras and AI face recognition technology in electronic devices, the faces in front of the screen are detected and the display mode is adjusted, and the user inconvenience caused by limiting the visual angle in the prior art is solved, and the balance between information security and user experience is achieved.

CN120234840APending Publication Date: 2025-07-01GIGA BYTE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311866199.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

In the prior art, when preventing screen information leakage, the method of limiting the viewing angle reduces the freedom and comfort of the user to view the screen, resulting in inconvenience.

Method used

The camera of the electronic device captures the environment image in front of the screen, uses AI face recognition technology to detect whether a face is present, and adjusts the screen display mode according to the legality of the face, including reducing brightness, entering the locked screen or displaying preset images.

Benefits of technology

It achieves the effect of preventing screen information from being peeped by illegal users without affecting the user experience, and ensures information security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120234840A_ABST
    Figure CN120234840A_ABST
Patent Text Reader

Abstract

The invention discloses a screen secrecy method which is suitable for an electronic device. The method comprises the following steps: capturing an environment image in front of a screen of the electronic device; detecting whether a face exists in front of the screen according to the environment image; in response to the fact that the detected face belongs to an illegal face of an illegal user, adjusting the display picture of the screen; and in response to the fact that the detected face belongs to the legal face of the legal user, detecting whether one or more illegal faces belonging to illegal users exist in the environment image, and in response to the fact that the one or more illegal faces belonging to the illegal users exist in the environment image, judging whether the one or more illegal faces belong to the illegal users. And carrying out another adjustment operation or display prompt on the display picture of the screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a confidentiality method, and particularly to a screen confidentiality method and an electronic device using the method. Background Art

[0002] In the era of rapid development of modern technology, the demand for information confidentiality has gradually increased. When a user uses an electronic device to view private information in a public place, there is a need for anti-peeping. Generally speaking, in order to prevent the data in the display screen from being leaked, the traditional method is to attach an anti-peeping film with a polarization effect on the screen surface to limit the viewing angle, so as to prevent bystanders from using the side view to peep and cause the leakage of private information; another method is to directly control the viewing angle of the display screen to achieve the purpose of restricting the viewing angle.

[0003] However, using the above method of restricting the viewing angle greatly reduces the freedom and comfort of the user to view the screen, resulting in inconvenience in daily use. Summary of the Invention

[0004] Other objects and advantages of the present invention can be further understood from the technical features disclosed in the present invention.

[0005] To achieve one or part or all of the above objects or other objects, an embodiment of the present invention provides a screen confidentiality method applicable to an electronic device. The method includes: capturing an environmental image in front of the screen of the electronic device via a camera of the electronic device; detecting whether there is a human face in front of the screen according to the environmental image; in response to not detecting the human face in the environmental image, entering a first mode, including: in response to the idle time of the screen being greater than a first predetermined time, performing a first adjustment operation on the display screen of the screen. In addition, in response to detecting the human face in the environmental image, entering a second mode, including: in response to detecting that the human face belongs to an illegal face of an illegal user, performing a second adjustment operation on the display screen of the screen; and in response to detecting that the human face belongs to a legal face of a legal user, detecting whether there is one or more illegal faces belonging to an illegal user, wherein in response to detecting the one or more illegal faces belonging to an illegal user, performing a third adjustment operation or displaying a prompt on the display screen of the screen.

[0006] In an embodiment of the present invention, the first adjustment operation and the second adjustment operation include one of the following: reducing the screen brightness, entering a screen lock screen, and displaying a preset image.

[0007] In an embodiment of the present invention, the method further includes: in response to detecting that the distance between the illegal face and the screen is less than or equal to a predetermined value, controlling the screen to enter the screen lock screen; and in response to detecting that the distance between the illegal face and the screen is greater than the predetermined value, controlling the screen to reduce the screen brightness or display a preset image.

[0008] In an embodiment of the present invention, the method further includes: using ultrasonic technology, infrared technology or imaging technology to detect the distance between the illegal face and the screen; or judging the distance between the illegal face and the screen according to the sound volume of the human voice corresponding to the illegal face.

[0009] In an embodiment of the present invention, the third adjustment operation includes: displaying and marking the one or more illegal faces in the display screen.

[0010] In an embodiment of the present invention, the method further includes one or more of the following: obtaining the face features of the legitimate user by performing an image registration operation; and obtaining the voice features of the legitimate user by performing a voice registration operation.

[0011] In an embodiment of the present invention, the step of detecting whether there is a face in front of the screen includes: performing an AI face recognition operation on the captured environmental image at a predetermined time interval.

[0012] In an embodiment of the present invention, the AI face recognition operation includes: in response to recognizing a face, judging the features of the face: the features include at least one of pupil color, skin color, hair color, hairstyle, facial feature contour, and facial feature spacing. Wherein, the AI face recognition operation further includes: judging whether the face belongs to the legitimate user according to the features of the face.

[0013] In an embodiment of the present invention, the method further includes one or more of the following: in response to detecting an illegal face belonging to an illegal user, taking a photo or video of the illegal face via the camera; and sending a notification message to the terminal device of the legitimate user.

[0014] Another embodiment of the present invention provides an electronic device, comprising: a camera; a screen; and a processor. The processor is coupled to the camera and the screen. Wherein, the camera captures an environmental image in front of the screen, and wherein the processor detects whether there is a human face in front of the screen according to the environmental image. Wherein, in response to not detecting the human face in the environmental image, the processor enters a first mode, and wherein in the first mode, in response to the idle time of the screen being greater than a first predetermined time, the processor performs a first adjustment operation on the display screen of the screen. Wherein, in response to detecting the human face in the environmental image, the processor enters a second mode, and wherein in the second mode, in response to detecting that the human face belongs to an illegal face of an illegal user, the processor performs a second adjustment operation on the display screen of the screen. Wherein, in response to detecting that the human face belongs to a legal face of a legal user, the processor detects whether there is one or more illegal faces belonging to an illegal user. Wherein, in response to detecting the one or more illegal faces belonging to an illegal user, the processor performs a third adjustment operation on the display screen of the screen or displays a prompt.

[0015] In summary, the screen confidentiality method and the electronic device using the method provided by the embodiments of the present invention can periodically detect the environmental image in front of the screen, and control the electronic device by determining whether a human face is detected and determining whether the detected human face is a legal face or an illegal face, so as to perform different types of adjustment operations on the screen of the electronic device, thereby preventing the information displayed on the screen from being peeked by an illegal user and leaked. In this way, the information displayed on the screen can be protected. Description of the Drawings

[0016] Figure 1 is a block diagram of an electronic device illustrated according to an embodiment of the present invention;

[0017] Figure 2 is a flowchart of a screen confidentiality method illustrated according to an embodiment of the present invention;

[0018] Figure 3A is a schematic diagram of a first mode illustrated according to an embodiment of the present invention;

[0019] Figure 3B is a schematic diagram of a second mode illustrated according to another embodiment of the present invention;

[0020] Figure 3C is a schematic diagram of a second mode illustrated according to another embodiment of the present invention.

[0021] Figure 4A is a schematic diagram of a second mode illustrated according to an embodiment of the present invention;

[0022] Figure 4B It is a schematic diagram of the second mode shown according to another embodiment of the present invention;

[0023] Figure 4C It is a schematic diagram of the conversion from the second mode to the first mode shown according to another embodiment of the present invention;

[0024] Among them, the reference numerals:

[0025] 100: Electronic device;

[0026] 110: Processor;

[0027] 120: Communication circuit unit;

[0028] 130: Screen;

[0029] 140: Camera;

[0030] 150: Storage circuit unit;

[0031] 160: Memory;

[0032] S210, S220, S230, S240, S250, S260, S270, S280: Steps of the screen confidentiality method;

[0033] U31, U32, U41, U42: Users;

[0034] A31, A32, A41, A42: Viewing directions;

[0035] FOV: Field of view;

[0036] D32, D32’: Distances;

[0037] DTH: Predetermined value;

[0038] A130, A310, A410, A420: Arrows. Detailed implementation manners

[0039] Regarding the foregoing and other technical contents, features and effects of the present invention, they will be clearly presented in the following detailed description of a preferred embodiment with reference to the accompanying drawings.

[0040] The directional terms mentioned in the following embodiments, such as: up, down, left, right, front or back, etc., are only with reference to the directions in the accompanying drawings. Therefore, the directional terms used are for illustration and not for limiting the present invention.

[0041] In addition, please refer to Figure 1, in one embodiment, the electronic device 100 includes: a processor 110, a communication circuit unit 120, a screen 130, a camera 140, a storage circuit unit 150, and a memory 160. The processor 110 is electrically connected to the communication circuit unit 120, the screen 130, the camera 140, the storage circuit unit 150, and the memory 160 respectively, and is used to control / manage the overall operation of the electronic device 100. The electronic device 100 is, for example, a personal computer, a laptop computer, an e-Reader, a tablet computer, a smart electronic device (such as a mobile phone, a smart watch), etc.

[0042] The processor 110 can be a microprogrammed control unit, a central processing unit (CPU), a programmable microprocessor, an application specific integrated circuit (ASIC), a programmable logic device (PLD), or other similar devices.

[0043] The communication circuit unit 120 is used to establish a network connection / communication link to transmit or receive data through wireless or wired communication means. In this embodiment, the communication circuit may have at least one of a wireless communication circuit and a wired communication circuit, and supports one or a combination of a global system for mobile communication (GSM) system, a wireless fidelity (WiFi) system, and Bluetooth communication technology, and is not limited thereto. The communication circuit unit 120 can transmit notification information to other electronic devices (such as the terminal devices of legal users or administrators) according to the instructions of the processor 110.

[0044] In this embodiment, the screen 130 is used to display images. In one embodiment, the screen 130 is one of the input / output units. The input / output unit includes an input device and an output device. The input device is, for example, a microphone, a touchpad, a touch panel, a physical button, etc., which is used for the user to input data or control the functions that the user wants to operate. The output device is, for example, the screen 130 (which is used to display images according to the received video data), a speaker (which can be used to receive audio data to emit sound effects), etc. The screen is, for example, an LCD panel, an LED panel, an AMOLED panel, etc., and is used to display various information and control interfaces of the electronic device 100. In one embodiment, the input / output unit may include a touch screen. The touch screen is used to display various information and control interfaces of an interactive flat panel display, such as a display enabling interface and a display of pairing progress and status. In one embodiment, the microphone in the input / output unit is used to receive the ambient sound around the electronic device 100 and generate a corresponding sound signal to the processor 110.

[0045] In this embodiment, the camera 140 is used to capture the ambient image around the electronic device 100. In particular, it is more used to capture the ambient image in the space in front of the screen 130. The number of cameras 140 is not limited to one. In addition, the camera 140 may have a variety of lenses, such as a short lens, a long lens, a wide-angle lens, etc. In addition, in another embodiment, the camera 140 may also be replaced by other sensing devices for capturing sensing data in front of the screen (such as the distance between a face in an image and the screen). The sensing devices include an infrared camera, an ultrasonic sensor, a thermal imager, a thermometer and hygrometer, etc. In another embodiment, the camera 140 and other sensing devices may also exist at the same time. The sensing devices can also be used to detect the distance between a face in the ambient image and the screen, or sense physiological information such as the height and weight of a human body in the space in front of the screen. In one embodiment, the sensed physiological information such as the height and weight of a human body can be cross-referenced with the physiological information of a legitimate user in the established file, so as to verify whether the human body in front of the screen is a legitimate user. In one embodiment, the camera 140 or the sensing device may also be electrically connected to the electronic device 100 in an external connection manner.

[0046] In this embodiment, the storage circuit unit 150 can store or read data under the instruction and control of the processor 110. The storage circuit unit 150 is further used to store the instructions or data executed by the processor 110. In one embodiment, the storage circuit unit 150 further has a database for storing various types of data. The database is, for example: a face database for storing the face features and face images of multiple legitimate users; a voice database for storing the voice features and voice information of multiple legitimate users; a user database for storing the personal information of multiple legitimate users; a model database for storing the AI face recognition model, etc. The storage circuit unit 150 is, for example, any type of hard disk drive (HDD), non-volatile memory (such as SSD or flash memory).

[0047] In this embodiment, the memory 160 is, for example, dynamic random access memory (DRAM), static random access memory (SRAM), etc. The memory 160 is used to temporarily store various data processed by the processor 110.

[0048] Please refer to Figure 2 , in step S210, an environmental image in front of the screen of the electronic device 100 is captured by the camera 140 of the electronic device 100.

[0049] Next, in step S220, the processor 110 detects whether there is a face in front of the screen according to the environmental image. In one embodiment, the processor 110 performs AI face recognition operations on the captured environmental image at a predetermined time interval. The predetermined time interval is, for example, 5 seconds or other seconds, and the present invention is not limited thereto. The AI face recognition operations include: the processor 110 recognizes whether there is a face in the environmental image according to the executed AI face recognition model. In addition, in another embodiment, the AI face recognition operations further include: in response to recognizing a face, judging the features of the face, and the features include at least one of pupil color, skin color, hair color, hairstyle, facial feature contour, and facial feature spacing.

[0050] In one embodiment, the AI face recognition operations further include: judging whether the face belongs to the legitimate user according to the at least one feature of the face. In addition, in response to recognizing a face, the processor 110 can further recognize whether the face is looking at the screen, the viewing direction of the face, and the distance between the face and the screen.

[0051] In one embodiment, the information of a legitimate user can be obtained via a variety of registration operations. For example, by performing an image registration operation to obtain the facial features of the legitimate user; and by performing a voice registration operation to obtain the voice features of the legitimate user. In another embodiment, the processor 110 can set different facial types for different types of legitimate users according to one or more features such as eye color, skin color, hair color, hair type, hairstyle, profile, and ethnicity of the legitimate user that are preset in advance, without having to go through a registration process to obtain facial features or voice features to identify the legitimate user.

[0052] It is worth mentioning that, in one embodiment, the processor 110 can simultaneously confirm that the face in front of the screen belongs to a legitimate face of a legitimate user based on the received environmental image and environmental sound. In other words, when the detected facial features match the facial features of the registered legitimate user and the voice features of the human voice in the detected environmental sound match the voice features of the registered legitimate user, the processor 110 will determine that the face in front of the screen is a legitimate face.

[0053] In response to not detecting a face in front of the screen, the processor 110 controls the electronic device 100 to enter the first mode (S230); in response to detecting a face in front of the screen, the processor 110 controls the electronic device 100 to enter the second mode (S250).

[0054] After entering the first mode, in step S240, in response to the idle time of the screen being greater than a first predetermined time, the processor 110 performs a first adjustment operation on the display screen of the screen. Then, the process returns to step S220 to continue detecting whether there is a face in front of the screen.

[0055] Specifically, the first mode can also be referred to as a confidentiality mode. When the legitimate user of the electronic device 100 is not in front of the screen, the processor 110 controls the electronic device 100 to enter the confidentiality mode to prevent the information displayed on the screen from being leaked due to being peeked at. When in the confidentiality mode, if the idle time is greater than the first predetermined time, the processor 110 will determine that the electronic device 100 has a high risk of information leakage and perform a first adjustment operation on the display screen of the screen.

[0056] On the other hand, after entering the second mode, in step S260, in response to detecting that the face belongs to an illegal face of an illegal user, a second adjustment operation is performed on the display screen of the screen.

[0057] In this embodiment, the first adjustment operation and the second adjustment operation include one of the following: reducing the screen brightness, entering the screen lock screen (or logging out the operating system), and displaying a preset image. In one embodiment, displaying a preset image includes displaying a default picture file, video file, or executing a default application.

[0058] It is worth mentioning that after performing the above adjustment operations, when a legitimate face is determined to appear, the processor 110 can restore the state of the electronic device / display screen before performing the above adjustment operations. For example, restore the screen brightness and return to the display screen before adjustment.

[0059] In one embodiment, the processor 110 further determines the distance between the face in the environmental image and the screen based on the obtained sensing data. For example, ultrasonic technology, infrared technology, or imaging technology can be used to obtain corresponding sensing data to detect the distance between the illegal face and the screen. Also, for example, in one embodiment, the processor 110 can determine the distance between the illegal face and the screen according to the sound volume of the human voice corresponding to the illegal face received.

[0060] Then, the processor can determine the threat level of the illegal user according to the detected distance between the illegal face and the screen, and control the electronic device 100 to perform different types of adjustment operations according to different threat levels. When the threat level is greater than a certain degree, more strict and confidential adjustment operations are performed. In one embodiment, in response to detecting that the distance between the illegal face and the screen is less than or equal to a predetermined value, the processor 110 determines that the threat level of the illegal user is high, and further controls the electronic device 100 to perform strict adjustment operations, such as one or more of the following operations: controlling the screen to enter the screen lock screen, logging out the operating system, controlling the electronic device 100 to shut down or go into sleep mode, and performing a confidential deletion operation on specific privacy information. In addition, in response to detecting that the distance between the illegal face and the screen is greater than the predetermined value, the processor 110 determines that the threat level of the illegal user is not high, and controls the electronic device 100 to perform less strict adjustment operations, such as controlling the screen to reduce the screen brightness or display a preset image.

[0061] In addition, after entering the second mode, in step S270, in response to detecting that the face belongs to the legitimate face of a legitimate user, the processor 110 detects whether there is one or more illegal faces belonging to an illegal user in front of the screen.

[0062] In response to detecting that there is one or more illegal faces belonging to an illegal user in front of the screen, in step S280, the processor 110 performs a third adjustment operation on the display screen of the screen or displays a prompt.

[0063] Conversely, in response to detecting that there are no one or more illegal faces belonging to an illegal user in front of the screen, the processor 110 continues to detect whether there are one or more illegal faces belonging to an illegal user in front of the screen (S270).

[0064] Specifically, the second mode can also be referred to as an anti-peeping mode. The main scenario it targets is: when an illegal user is using the electronic device 100 while a legal user is using it, the illegal user detects whether there is a peeper beside or behind the legal user by detecting faces in the environmental image, and then performs corresponding operations. In one embodiment, the third adjustment operation performed after detecting an illegal face includes: displaying and marking the one or more illegal faces in the display screen. That is to say, when a legal user is using the electronic device 100 and the processor 110 detects an illegal face, the electronic device 100 displays the environmental image in front of the screen (this environmental image includes the detected illegal face) in the current display screen of the screen, and specifically marks the detected illegal face in the environmental image. In this way, the legal user using the electronic device 100 can directly know that there is currently a peeper. In another embodiment, when a legal user is using the electronic device 100 and the processor 110 detects an illegal face, the processor 110 can display a prompt message in the current display screen or emit a prompt sound to inform the legal user that there is currently a peeper.

[0065] It is worth mentioning that in one embodiment, in response to detecting an illegal face belonging to an illegal user, the processor 110 takes a photo or video of the illegal face via the camera 140; and sends a notification message to the terminal device of the legal user. For example, when the legal user is not in front of the electronic device 100 and a peeper is detected, the processor 110 can actively control the camera 140 to take pictures of the illegal user. In addition, while performing the corresponding adjustment operations, the processor 110 can further send a notification message to the terminal device of the legal user (such as, other portable electronic devices or email of the legal user).

[0066] The following is an example to illustrate the first mode according to Figures 3A to 3C to illustrate the first mode.

[0067] Please refer to Figure 3A, in this embodiment, it is assumed that a camera 140 is installed on the screen 130 of the electronic device 100, which captures an environmental image of the space in front of the screen 130 (as shown by arrow A130) with a field of view FOV. Assume there are users U31 and U32 in front of the screen, where the viewing direction A31 of user U31 faces right and the viewing direction A32 of user U32 faces right. Only user U32 will appear in the environmental image, but the face of user U32 in the environmental image does not face the screen 130. In this example, the processor 110 determines that there is no human face and no illegal face of an illegal user (in this embodiment, the processor 110 only regards a complete face facing the screen as a human face). Then, the processor 110 controls the electronic device 100 to enter the first mode (S230).

[0068] Please refer to Figure 3B , in this embodiment, assume that the viewing direction A32 of user U32 faces the screen and user U32 is not a legal user. In this example, the processor 110 determines that there is a human face and enters the second mode (S250). In addition, the processor 110 detects that this human face belongs to an illegal face of an illegal user (determines that user U32 is a peeping tom) and controls the electronic device 100 to perform a second adjustment operation on the display screen of the screen 130 (S260). It should be noted that since the processor 110 recognizes that the distance D32 between the illegal face and the screen 130 is greater than the predetermined value DTH, the processor 110 determines that the threat level of the illegal user is relatively low and only reduces the brightness of the display screen of the screen 130.

[0069] Please refer to Figure 3C , in this embodiment, continuing Figure 3B the example, assume that user U32 moves towards the electronic device 100 (as shown by arrow A310). In this example, since the processor 110 recognizes that the distance D32' between the illegal face and the screen 130 is less than the predetermined value DTH, the processor 110 determines that the threat level of the illegal user is relatively high and controls the electronic device 100 to enter the screen lock screen.

[0070] The following will give an example to illustrate the second mode according to Figures 4A to 4C this.

[0071] Please refer to Figure 4A , in this embodiment, similar to Figures 3A to 3CFor example, assume that a camera 140 is installed on the screen 130 of the electronic device 100, which captures an environmental image of the space in front of the screen 130 (as shown by arrow A130) with a field of view FOV. In addition, assume that there are users U41 and U42 in front of the screen, where the viewing direction A41 of user U41 faces the screen and the viewing direction A42 of user U42 faces right. Only user U41 will appear in the environmental image. In this example, the processor 110 determines that a human face exists and controls the electronic device 100 to enter the second mode (S250).

[0072] Next, in response to detecting that the face belonging to user U41 is an illegal face, the processor 110 performs a second adjustment operation on the display screen of the screen 130 (S260); in response to detecting that the face belonging to user U41 is a legal face, the processor 110 further detects whether there is an illegal face in front of the screen (S270).

[0073] Please refer to Figure 4B , continuing Figure 4A For example, assume that the processor 110 determines that user U41 is a legal user. In addition, assume that user U42 changes from the original position to move towards the electronic device 100 (as shown by arrow A410), and the viewing direction A42 of user U42 faces the screen 130. In this example, the processor 110 controls the electronic device 100 to perform a third adjustment operation or display a prompt on the display screen of the screen 130.

[0074] Please refer to Figure 4C , continuing Figure 4A For example, assume that the processor 110 determines that user U41 is a legal user. In addition, assume that user U41 changes from the original position to leave the electronic device 100 (as shown by arrow A420), and the viewing direction A41 of user U41 does not face the screen 130. In this example, since the processor 110 determines through the captured environmental image that there is no human face in the environmental image, the processor 110 can control the electronic device 100 to enter the first mode from the original second mode.

[0075] In summary, the screen privacy protection method provided by the embodiments of the present invention and the electronic device using the method can regularly detect the environmental image in front of the screen, and control the electronic device by determining whether a human face is detected and determining whether the detected human face is a legal face or an illegal face, so as to perform different types of adjustment operations on the screen of the electronic device, thereby preventing the information displayed on the screen from being peeked by an illegal user and leaked. In this way, the information displayed on the screen can be protected.

[0076] The above are only the preferred embodiments of the present invention, and the scope of implementation of the present invention cannot be limited thereby. That is, all simple equivalent changes and modifications made in accordance with the scope of the patent application of the present invention and the content of the invention description still fall within the scope covered by the patent of the present invention. In addition, any embodiment or scope of the patent application of the present invention does not have to achieve all the purposes, advantages or features disclosed in the present invention. In addition, the abstract part and the title are only used to assist in the search of patent documents and are not used to limit the scope of rights of the present invention. In addition, the terms "first", "second", etc. mentioned in this specification or the scope of the patent application are only used to name elements or distinguish different embodiments or scopes, and are not used to limit the upper or lower limits of the number of components.

Claims

1. A screen confidentiality method, applicable to an electronic device, characterized in that, The method includes: capturing an environmental image in front of the screen of the electronic device via the camera of the electronic device; detecting whether there is a human face in front of the screen according to the environmental image; in response to not detecting the human face in the environmental image, entering a first mode, including: in response to the idle time of the screen being greater than a first predetermined time, performing a first adjustment operation on the display screen of the screen; and in response to detecting the human face in the environmental image, entering a second mode, including: in response to detecting that the human face belongs to an illegal face of an illegal user, performing a second adjustment operation on the display screen of the screen; and in response to detecting that the human face belongs to a legal face of a legal user, detecting whether there is one or more illegal faces belonging to illegal users, wherein in response to detecting the one or more illegal faces belonging to illegal users, performing a third adjustment operation on the display screen of the screen or displaying a prompt.

2. The screen confidentiality method according to claim 1, wherein The first adjustment operation and the second adjustment operation include one of the following: reducing the screen brightness, entering the screen lock screen, and displaying a preset image.

3. The screen confidentiality method according to claim 2, wherein, The method further includes: in response to detecting that the distance between the illegal face and the screen is less than or equal to a predetermined value, controlling the screen to enter the screen lock screen; and in response to detecting that the distance between the illegal face and the screen is greater than the predetermined value, controlling the screen to reduce the screen brightness or display a preset image.

4. The screen confidentiality method according to claim 3, characterized in that The method further includes: using ultrasonic technology, infrared technology, or imaging technology to detect the distance between the illegal face and the screen; or judging the distance between the illegal face and the screen according to the sound volume of the human voice corresponding to the illegal face.

5. The screen confidentiality method according to claim 1, wherein The third adjustment operation includes: displaying and marking the one or more illegal faces in the display screen.

6. The screen confidentiality method according to claim 1, characterized in that, The method further includes one or more of the following: performing an image registration operation to obtain the face feature of the legal user; and performing a voice registration operation to obtain the voice feature of the legal user.

7. The screen confidentiality method according to claim 1, wherein The step of detecting whether there is the human face in front of the screen includes: performing an AI face recognition operation on the captured environmental image at a predetermined time interval.

8. The screen confidentiality method according to claim 7, wherein The AI face recognition operation includes: in response to recognizing a human face, judging the features of the human face, the features including at least one of pupil color, skin color, hair color, hairstyle, facial feature contour, and facial feature spacing, wherein the AI face recognition operation further includes: judging whether the human face belongs to the legal user according to the features of the human face.

9. The screen confidentiality method according to claim 1, wherein The method further includes one or more of the following: in response to detecting an illegal face belonging to an illegal user, taking a photo or video of the illegal face via the camera; and sending a notification message to the terminal device of the legal user.

10. An electronic device, characterized in that, including: a camera; a screen; and a processor, coupled to the camera and the screen, wherein the camera captures an environmental image in front of the screen, wherein the processor detects whether there is a human face in front of the screen according to the environmental image, Wherein, in response to not detecting the face in the environmental image, the processor enters a first mode, and in the first mode, in response to the idle time of the screen being greater than a first predetermined time, the processor performs a first adjustment operation on the display screen of the screen; wherein, in response to detecting the face in the environmental image, the processor enters a second mode, and in the second mode, in response to detecting that the face belongs to an illegal face of an illegal user, the processor performs a second adjustment operation on the display screen of the screen; wherein, in response to detecting that the face belongs to a legal face of a legal user, the processor detects whether there is one or more illegal faces belonging to an illegal user, and in response to detecting the one or more illegal faces belonging to an illegal user, the processor performs a third adjustment operation on the display screen of the screen or displays a prompt.

11. The electronic device according to claim 10, wherein The first adjustment operation and the second adjustment operation include one of the following: reducing the screen brightness, entering the screen lock screen, and displaying a preset image.

12. The electronic device according to claim 11, wherein In response to detecting that the distance between the illegal face and the screen is less than or equal to a predetermined value, the processor controls the screen to enter the screen lock screen; In response to detecting that the distance between the illegal face and the screen is greater than the predetermined value, the processor controls the screen to reduce the screen brightness or display a preset image.

13. The electronic device according to claim 12, wherein The processor uses ultrasonic technology, infrared technology, or imaging technology to detect the distance between the illegal face and the screen; or The processor determines the distance between the illegal face and the screen according to the sound volume of the human voice corresponding to the illegal face.

14. The electronic device according to claim 10, wherein In the third adjustment operation, the processor displays and marks the one or more illegal faces in the display screen.

15. The electronic device according to claim 10, characterized in that, The processor performs one of the following operations: obtaining the face feature of the legal user by performing an image registration operation; and obtaining the voice feature of the legal user by performing a voice registration operation.

16. The electronic device according to claim 10, wherein In the operation of detecting whether there is a face in front of the screen, the processor performs an AI face recognition operation on the captured environmental image at a predetermined time interval.

17. The electronic device according to claim 16, wherein, The AI face recognition operation includes: in response to recognizing a face, the processor determines the features of the face, and the features include at least one of pupil color, skin color, hair color, hairstyle, facial feature contour, and facial feature spacing; wherein, in the operation of detecting whether there is a face in front of the screen, the processor determines whether the face belongs to the legal user according to the features of the face.

18. The electronic device according to claim 10, wherein The processor further performs at least one of the following operations: in response to detecting an illegal face belonging to an illegal user, taking a photo or video of the illegal face via the camera; and sending a notification message to the terminal device of the legal user.