Electronic equipment eye protection method and device, electronic equipment and medium
Through face recognition technology, the control standard duration is calculated based on the user's age and eye status, and the time for users to use electronic devices is limited, which solves the problem that eye protection methods in the existing technology are not intelligent and humanized, and achieves more accurate and humanized eye protection management.
Patent Information
- Application Number
- CN202311122739.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-01
- Publication Date
- 2025-03-04
AI Technical Summary
The existing methods of eye protection for electronic devices are not intelligent and humanized enough, and the eye protection effect is limited.
Through face recognition technology, user characteristics are divided into two categories based on the user's age and eye status, corresponding coefficients are calculated, and the user's standard control time is determined to limit the user's use of electronic devices within this time.
Accurate eye protection management for different users is realized, and the usage time is dynamically adjusted according to the user's characteristics, improving the intelligence and humanization of eye protection effects.
Smart Images

Figure CN119559674A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to an electronic device eye protection method, device, electronic device and medium. Background Art
[0002] In recent years, electronic devices have developed faster and faster and become more and more intelligent, bringing great convenience to people's work, life and study. People are spending more and more time on electronic devices (such as smartphones), causing users to face the screen for a long time, causing visual fatigue and even vision loss.
[0003] Therefore, electronic devices generally have functions such as light adjustment and eye protection mode to help users reduce screen light stimulation. After turning on the eye protection mode, some electronic devices will make the screen light tend to be warm light or weaken the blue light to a certain extent, which can play a certain eye protection role; there is also a youth mode. After turning on the youth mode, the electronic device will remind the user after the user's online time reaches the preset time, reminding the user not to continue using the electronic device; however, the above processing methods are not accurate, flexible, and intelligent enough, and the eye protection effect is also limited.
[0004] Therefore, in order to make progress in eye protection effects and achieve more humane eye protection, the present application proposes a new eye protection method for electronic devices. Summary of the invention
[0005] The present application provides an electronic device eye protection method, device, electronic device and medium, which are used to solve the problem that the electronic device eye protection method in the prior art is not intelligent enough and not humane enough.
[0006] In a first aspect, the present application provides an eye protection method for an electronic device, comprising:
[0007] According to the user's facial information, the user's user features are divided into first-category features and second-category features, wherein the first-category features are features divided according to the user's age, and the second-category features are features divided according to the user's eye state;
[0008] Determine a first coefficient of the standard duration of user control based on the first type of features, and determine a second coefficient of the standard duration of user control based on the second type of features;
[0009] The standard control time of the user is confirmed based on the first coefficient and the second coefficient to restrict the user from using the electronic device within the standard control time.
[0010] In a possible implementation, determining the first coefficient of the standard user control duration according to the first type of features, and determining the second coefficient of the standard user control duration according to the second type of features, includes:
[0011] Determine the maximum value of the first coefficient according to the minimum age group in the first type of features, and determine the minimum value of the first coefficient according to the maximum age group in the first type of features, wherein the first type of features includes a plurality of age groups divided according to the age of the user;
[0012] If the second type of feature indicates that the user's eye state is wearing glasses, confirming that the second coefficient is 1;
[0013] If the second type of feature indicates that the user's eye state is not wearing glasses, then the second coefficient is confirmed to be 0.
[0014] In a possible implementation, determining the control standard duration of the user according to the first coefficient and the second coefficient includes:
[0015] Confirm the first base number, second base number and third base number of the standard duration of control;
[0016] Determining a first increment of the control standard duration according to the second base number and the first coefficient;
[0017] Determining a second increment of the control standard duration according to the third base number and the second coefficient;
[0018] The standard duration of control over the user is confirmed based on the first base, the first increment, and the second increment.
[0019] In a possible implementation, restricting the user from using the electronic device within the control standard time period includes:
[0020] When there is a control person in the control list, confirm whether the current user is a control person in the control list according to the face information of the current user;
[0021] If the current user is the control person, then obtain the control time of the current user;
[0022] If the control duration exceeds the control standard duration, the current user is deleted from the control list;
[0023] If the control time does not exceed the control standard time, the user is restricted from using the electronic device within the control standard time.
[0024] In a possible implementation, before confirming whether the current user is a controlled person in the control list based on the facial information of the current user, the method further includes:
[0025] According to the user's facial information, confirm the user's usage time of the electronic device and the user characteristics of the user, wherein the usage time is one of a continuous time within a preset period and a cumulative time within a preset period;
[0026] Confirm whether the user's usage time exceeds the preset time corresponding to the user characteristics of the user. If so, confirm that the user is marked as a control person and put into the control list.
[0027] In a possible implementation, before confirming whether the usage time of the user exceeds the preset time corresponding to the user feature of the user, the method further includes:
[0028] Determine a first preset duration of the user according to a first type of features in the user features, wherein the older the user is, the longer the corresponding preset duration;
[0029] Determine whether to reduce the duration based on the first preset duration according to the second type of features in the user features, and obtain a second preset duration;
[0030] The second preset time length is used as the preset time length corresponding to the user.
[0031] In a possible implementation, the confirming whether to reduce the duration based on the first preset duration and obtaining the second preset duration includes:
[0032] If the second type of feature indicates that the user's eye state is wearing glasses, confirming to reduce the duration based on the first preset duration, and obtaining a second preset duration;
[0033] If the second type of feature indicates that the user's eye state is not wearing glasses, confirm that the first preset time length is used as the second preset time length.
[0034] In a second aspect, the present application provides an electronic device eye protection device, comprising:
[0035] a classification module, configured to classify user features of the user into first-category features and second-category features according to the user's facial information, wherein the first-category features are features classified according to the user's age, and the second-category features are features classified according to the user's eye status;
[0036] A processing module, configured to determine a first coefficient of the standard duration of user control according to the first type of features, and to determine a second coefficient of the standard duration of user control according to the second type of features;
[0037] A confirmation module is used to confirm the control standard time length of the user according to the first coefficient and the second coefficient, so as to restrict the user from using the electronic device within the control standard time length.
[0038] In a third aspect, the present application provides an electronic device, including: at least one processor and a memory;
[0039] The memory stores computer-executable instructions;
[0040] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the electronic device eye protection method as described above.
[0041] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the electronic device eye protection method as described above.
[0042] The present application provides an electronic device eye protection method, device, electronic device and medium. According to the user's facial information, the user characteristics of the user are divided into a first category of characteristics and a second category of characteristics, wherein the first category of characteristics are characteristics divided according to the user's age, and the second category of characteristics are characteristics divided according to the user's eye status; a first coefficient of the standard control time of the user is confirmed according to the first category of characteristics, and a second coefficient of the standard control time of the user is confirmed according to the second category of characteristics; the standard control time of the user is confirmed according to the first coefficient and the second coefficient, so as to restrict the user from using the electronic device within the standard control time.
[0043] In the above method, the user's facial features are divided into two categories according to the user's age and the user's eye condition, and both are used as factors affecting the standard control time. The first type of features related to the user's age confirms the first coefficient, and the second type of features related to the user's eye condition confirms the second coefficient. The first coefficient and the second coefficient are used together to establish the standard control time, so that accurate standard control time confirmation can be achieved for different users, so that different management of different users can be achieved according to the standard control time, which is very user-friendly. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0045] Figure 1A schematic diagram of a scenario of eye protection for an electronic device provided in an embodiment of the present application;
[0046] Figure 2 A schematic diagram of a process for an electronic device eye protection method provided in an embodiment of the present application Figure 1 ;
[0047] Figure 3 A schematic diagram of a process for an electronic device eye protection method provided in an embodiment of the present application Figure 2 ;
[0048] Figure 4 A schematic diagram of a process for an electronic device eye protection method provided in an embodiment of the present application Figure 3 ;
[0049] Figure 5 A schematic diagram of a process for an electronic device eye protection method provided in an embodiment of the present application Figure 4 ;
[0050] Figure 6 A diagram of an eye protection device for an electronic device provided by an embodiment of the present invention;
[0051] Figure 7 A hardware schematic diagram of an electronic device eye protection device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] While electronic devices bring convenience to people, they also cause harm to people's health. Especially when teenagers become addicted to them, it is easy to cause vision loss and affect daily rest. And it's not just teenagers. Many adults are often unwilling to put down their electronic devices. They face the screens of electronic devices for a long time, which eventually causes damage to their eyes.
[0054] Therefore, in order to reduce the damage to eyesight caused by electronic devices, electronic devices have eye protection mode and youth mode for users to choose from, but these processing methods are not intelligent and humane enough.
[0055] Therefore, this application fully considers the characteristics of the user group, and adopts face recognition to extract features, sets different management and control standards according to different features, so that different users have appropriate management and control methods, thereby reducing or planning the use of electronic devices.
[0056] The following describes an implementation process of an electronic device eye protection method proposed in the present application in conjunction with the accompanying drawings and specific embodiments.
[0057] Figure 1 A schematic diagram of a scenario of eye protection for an electronic device provided in an embodiment of the present application. Figure 1 As shown, the system includes: an electronic device; wherein the electronic device includes a camera, and a corresponding functional module for controlling the user's use of the electronic device; the camera is used to obtain face information, and the user's consent is required before obtaining;
[0058] According to the user's age and the user's eye state, the user characteristics are divided into two categories, including a first category of characteristics related to age and a second category of characteristics related to eyes; the electronic device obtains face information through a camera, and the above user characteristics can be identified based on the face information; wherein, both age characteristics and eye state characteristics can be identified and classified by a pre-trained model, or the user can also enter the face information of himself and his family in advance and select the age group in the control mode of this application;
[0059] According to the first type of features, the first coefficient of the user's standard control time can be confirmed, and according to the second type of features, the second coefficient of the user's standard control time can be confirmed, and both the first coefficient and the second coefficient are positively correlated with the standard control time. For example, a basic time is first defined for the standard control time, and the values of the first coefficient and the second coefficient can extend the standard control time on the basis of the basic time, so that the electronic device can sleep for a longer period of time; or the first coefficient and the second coefficient may both be 0, then for the user, the standard control time is the basic time;
[0060] After confirming the standard control time for different users, subsequent electronic devices can restrict user usage according to the standard control time when the control mode of this application is turned on. For example, when the controlled user approaches the electronic device, a prompt window pops up, and the window can only be exited by the user entering the pre-set password, or other non-controlled personnel can exit the window when approaching the camera.
[0061] Figure 2 A schematic diagram of a process for an electronic device eye protection method provided in an embodiment of the present application Figure 1 .like Figure 2 As shown, the method includes:
[0062] S201. Classify user features of the user into first-category features and second-category features according to facial information of the user, wherein the first-category features are features classified according to the user's age, and the second-category features are features classified according to the user's eye status.
[0063] It is very important for minors to protect their eyes. Young users among minors may have relatively poor self-control and their eyes may be more fragile. Teenagers have a heavy workload and their eyes need to work for a long time at school, so they should pay attention to limiting the use of electronic devices to avoid putting more pressure on their eyes.
[0064] The restrictions on adults can be smaller than those on minors. In other words, the younger the age, the more they should be restricted from using electronic devices. Then, the user's age can be used as one of the characteristics for confirming the standard control time. People of different age groups also have different facial features, so facial recognition can be used to confirm people of different age groups.
[0065] In order to better distinguish different users and protect their eyes in a targeted manner, the user's eye condition is also taken into consideration. The worse the user's eye condition is, the longer the standard control time should be.
[0066] S202. Determine a first coefficient of the standard user control time length according to the first type of features, and determine a second coefficient of the standard user control time length according to the second type of features.
[0067] The user control standard duration may include a basic duration, and the first type of features and the second type of features are used to confirm whether to increase the duration on the basic duration; a first coefficient is determined based on the first type of features, and the first coefficient, as data related to the control standard duration, can be used to confirm whether to increase the duration on the basic duration, and specifically may be positively correlated with the user control standard duration, or, when the first coefficient is 0, it is irrelevant to the control standard duration;
[0068] Similarly, the second type of features related to the user's eye state, as data related to the standard control time, are positively correlated with the user's standard control time. Or, if the second coefficient corresponding to a user's eye state is 0, then it has nothing to do with the standard control time.
[0069] The specific process of confirming the control standard duration based on the first coefficient and the second coefficient:
[0070] For example, the maximum value of the first coefficient is determined based on the minimum age group in the first category of features, and the minimum value of the first coefficient is determined based on the maximum age group in the first category of features, wherein the first category of features includes multiple age groups divided according to the age of the user.
[0071] The first type of features is based on user age. They can be divided into multiple age groups according to the set age dividing line. User age can be divided into adults and minors, so the age dividing line between adults and minors can be used as a dividing line for dividing age groups. If you only need to distinguish between adults and minors, you can only divide them into two age groups. If you want to make a more detailed distinction based on the actual user group situation, you can make further divisions and confirm more age dividing lines. For example, among minors, they can be divided into teenagers, children and infants according to the size from large to small.
[0072] The control standard duration is a threshold for managing the user's usage duration. The longer the control standard duration is, the longer the user's corresponding usage duration can be. Therefore, the younger the age is, the larger the corresponding first coefficient is, and vice versa. That is, the first coefficient corresponding to the youngest age group is the largest, and the first coefficient corresponding to the oldest age group is the smallest. The value of the first coefficient can be between 0 and 1.
[0073] In other words, an age dividing line is identified among multiple age groups, and the first coefficient corresponding to users above the age dividing line is 0, and the first coefficient corresponding to users below the age dividing line is 1. For example, if the user is an adult or a teenager, the corresponding first coefficient is 0, and if the user is a child or a toddler, the corresponding first coefficient is 1.
[0074] If the second type of feature indicates that the user's eye state is wearing glasses, confirming that the second coefficient is 1;
[0075] If the second type of feature indicates that the user's eye state is not wearing glasses, then the second coefficient is confirmed to be 0.
[0076] The second type of feature is related to the user's eye status, which is used to indicate whether the user is wearing glasses. Since users who wear glasses have a greater risk of aggravating myopia, they should pay more attention to protecting their eyes. Therefore, the larger the second coefficient should be when the user wears glasses, the larger the second coefficient can be. The second coefficient can be set to 0, indicating that when the user wears glasses, the standard control time should be reduced, thereby reducing the user's usage time. If the user does not wear glasses, the standard control time may not be extended, and the second coefficient can be set to 1.
[0077] S203. Confirm a standard control time for the user based on the first coefficient and the second coefficient to restrict the user from using the electronic device within the standard control time.
[0078] In the above process of this embodiment, the relationship between the first coefficient and the second coefficient and the control standard time length is described; the size of the control standard time length can be determined according to the first coefficient and the second coefficient. The larger the first coefficient, the larger the control standard time length; the larger the second coefficient, the larger the control standard time length;
[0079] The specific process of calculating the control time based on the first coefficient and the second coefficient is:
[0080] For example, confirming the first base number, the second base number and the third base number of the control standard time length;
[0081] Determining a first increment of the control standard duration according to the second base number and the first coefficient;
[0082] Determining a second increment of the control standard duration according to the third base number and the second coefficient;
[0083] The standard duration of control over the user is confirmed based on the first base, the first increment, and the second increment.
[0084] The first base number is the base duration of the standard control duration, the second base number is the base number related to the first coefficient, and the third base number is the base number related to the second coefficient; the second base number is multiplied by the first coefficient to obtain the first increment of the standard control duration, and the third base number is multiplied by the second coefficient to obtain the second increment of the standard control duration; the first base number, the first increment, and the second increment are added to obtain the standard control duration of the user;
[0085] The standard control time T can be expressed as: T=T0+ax+by, where T0 is the first base, a is the second base, x is the first coefficient, b is the third base, and y is the second coefficient. In practical applications, the first base, the second base, and the third base can all be 5 minutes or 10 minutes. The first coefficient is 0 or 1 or other according to the first type of characteristics of the user, and the second coefficient is 0 or 1 according to the second type of characteristics of the user. Different standard control time lengths are confirmed for different user characteristics to achieve precise and flexible control.
[0086] In the embodiment of the present application, the user's facial features are divided into two categories according to the user's age and the user's eye condition, and both are used as factors affecting the standard control time. The first category of features related to the user's age confirms the first coefficient, and the second category of features related to the user's eye condition confirms the second coefficient. The first coefficient and the second coefficient are used together to establish the standard control time, so that accurate standard control time confirmation is achieved for different users, so that different management of different users can be achieved according to the standard control time, which is very user-friendly.
[0087] Figure 3 A schematic diagram of a process for an electronic device eye protection method provided in an embodiment of the present application Figure 2 .like Figure 3 As shown, the method includes:
[0088] S301. When there is a control person in the control list, confirm whether the current user is a control person in the control list based on the facial information of the current user.
[0089] Before using the control standard duration to restrict the use of electronic devices, a control list can be established and the controlled personnel can be stored in the control list. Then, when the electronic device recognizes that the user is a controlled person, the control standard duration corresponding to the controlled person can be used to restrict the controlled person;
[0090] The process of identifying whether the user is on the control list: obtain the facial information of the current user, search the facial information of the control personnel from the control list, and confirm whether the facial information of the current user matches the facial information of the control personnel. If they match, it is confirmed that the current user is a control personnel in the control list. If they do not match, it is confirmed that the current user is not a control personnel in the control list; if the current user is not a control personnel in the control list, the electronic device does not need to impose usage restrictions on the current user.
[0091] S302: If the current user is the control person, obtain the control time of the current user.
[0092] If the current user is a controlled person in the control list, then the current user needs to be controlled. Before the current user is identified this time, the current user may have been controlled for a period of time. In this case, the control time of the current user can be obtained and compared with the control standard time of the current user to confirm whether to continue the control;
[0093] Among them, the control duration is the cumulative time from the last time the current user entered the control list to the time the electronic device recognized the current user.
[0094] S303: If the control duration exceeds the control standard duration, the current user is deleted from the control list.
[0095] If the control time of the current user exceeds the standard control time, the current user will no longer be controlled, and the current user will be deleted from the control list, so that when the electronic device recognizes the current user, the usage restriction will not be activated; for example, the current user's control time is 11 minutes, if the corresponding standard control time is 10 minutes, then the electronic device can lift the usage restriction on the current user.
[0096] If all controlled persons in the control list are deleted, that is, the number of controlled persons in the control list is 0, then you can temporarily exit the control mode.
[0097] S304: If the control time does not exceed the control standard time, restricting the user from using the electronic device within the control standard time.
[0098] If the control time of the current user does not exceed the standard control time, the current user will continue to be controlled, and when the electronic device recognizes the current user, the usage restriction will be activated; for example, the current user's control time is 5 minutes, if the corresponding standard control time is 10 minutes, the electronic device will continue to impose usage restrictions.
[0099] In an embodiment of the present application, when it is confirmed that the current user is a controlled person in the control list, it is confirmed that the current user is subject to usage restrictions, and based on whether the control time of the current user reaches the control standard time, it is confirmed whether to continue to control the current user, so as to restrict the user from using the electronic device within an appropriate time and to resume use at an appropriate time.
[0100] Figure 4 A schematic diagram of a process for an electronic device eye protection method provided in an embodiment of the present application Figure 3 .like Figure 4 As shown, the method includes:
[0101] S401. Confirming the usage time of the electronic device by the user and the user characteristics of the user according to the user's facial information, wherein the usage time is one of a continuous time within a preset period and a cumulative time within a preset period.
[0102] The usage time is the time the user uses the electronic device within a unit time period. The unit time period can be set according to preference, for example, one day is a unit time period. The user characteristics obtained here are consistent with the user characteristics mentioned in the above embodiment, including the first category and the second category. The electronic device is pre-configured with different preset time lengths according to different user characteristics. The user characteristics are obtained here to match the pre-configured preset time lengths.
[0103] The usage duration can be selected as a continuous duration within a preset period of time, or as a cumulative duration within a preset period of time; the preset duration corresponding to the continuous duration can be set shorter than the preset duration corresponding to the cumulative duration, for example, the preset duration corresponding to the cumulative duration is a multiple (such as 3 times) of the preset duration corresponding to the continuous duration.
[0104] S402: confirm whether the usage time of the user exceeds the preset time corresponding to the user characteristics of the user. If so, confirm to mark the user as a control person and put him in the control list.
[0105] After obtaining the user's usage time and confirming the preset time matched according to the user's characteristics, confirm whether the usage time exceeds the preset time. If it exceeds, it means that the user has used the electronic device for too long and needs to be restricted. The user will be added to the control list accordingly; for example, the preset time corresponding to the user is 1 hour, and the user uses the electronic device continuously for more than 1 hour in a day, then the user will be placed on the control list; or the preset time corresponding to the user is 3 hours, and the user uses the electronic device for more than 3 hours in a day, then the user will be placed on the control list.
[0106] In an embodiment of the present application, different preset time lengths are matched to different users to confirm whether the user has exceeded the time limit for using the electronic device. If so, the user is placed on a control list for control. When the user (current user) obtained in real time by the electronic device is on the control list, corresponding processing can be performed, thereby distinguishing and controlling different users.
[0107] Figure 5 A schematic diagram of a process for an electronic device eye protection method provided in an embodiment of the present application Figure 4 .like Figure 5 As shown, the method includes:
[0108] S501. Determine a first preset duration of the user according to a first type of characteristics among the user characteristics, wherein the older the user is, the longer the corresponding preset duration.
[0109] The preset time can be determined by referring to the user characteristics; the preset time is a time threshold for limiting the user's use of the electronic device. The older the user is, the longer the user is allowed to use the electronic device, and the longer the corresponding preset time is; the first preset time can be divided according to age;
[0110] The preset duration, the first preset duration and the second preset duration all correspond to the usage duration. When confirming the continuous usage duration within the preset period, the first preset duration for different age groups may be as follows: 1 hour for adults, 45 minutes for teenagers, 30 minutes for children, and 15 minutes for toddlers; when confirming the cumulative usage duration within the preset period, the first preset duration for different age groups may be as follows: 3 hours for adults, 2 hours and 15 minutes for teenagers, 1 hour and 30 minutes for children, and 45 minutes for toddlers.
[0111] S502: Determine whether to reduce the duration based on the first preset duration according to the second type of features in the user features, and obtain a second preset duration.
[0112] Based on the first type of characteristics, according to the second type of characteristics of the user, determine whether to strengthen the restriction, that is, whether to reduce the first preset time, and whether to reduce or not, the second preset time is obtained;
[0113] Users wearing glasses should be more restricted than users not wearing glasses:
[0114] For example, if the second type of feature indicates that the user's eye state is wearing glasses, it is confirmed that the duration is reduced based on the first preset duration, and a second preset duration is obtained;
[0115] If the second type of feature indicates that the user's eye state is not wearing glasses, confirm that the first preset time length is used as the second preset time length.
[0116] For example, the second preset time length for a user wearing glasses may be two-thirds of the first preset time length, and the second preset time length for a user not wearing glasses may directly adopt the first preset time length.
[0117] S503: Use the second preset duration as the preset duration corresponding to the user.
[0118] After the value of the second preset time length is determined according to the above process, it is used as the preset time length for the corresponding user.
[0119] In the embodiment of the present application, the limit standard (preset duration) for user usage time is confirmed through the user characteristics of different users, and when the user exceeds the standard, the user is entered into the control list for control, so as to achieve precise control.
[0120] Figure 6 An electronic device eye protection device diagram provided by an embodiment of the present invention, such as Figure 6 As shown, the device includes: a classification module 601, a processing module 602 and a confirmation module 603;
[0121] The classification module 601 is used to classify the user features of the user into first-category features and second-category features according to the user's facial information, wherein the first-category features are features classified according to the user's age, and the second-category features are features classified according to the user's eye status.
[0122] The processing module 602 is used to determine the first coefficient of the standard user control time according to the first type of features, and to determine the second coefficient of the standard user control time according to the second type of features.
[0123] The processing module 602 is further configured to determine the maximum value of the first coefficient according to the minimum age group in the first type of features, and determine the minimum value of the first coefficient according to the maximum age group in the first type of features, wherein the first type of features includes a plurality of age groups divided according to the age of the user;
[0124] If the second type of feature indicates that the user's eye state is wearing glasses, confirming that the second coefficient is 1;
[0125] If the second type of feature indicates that the user's eye state is not wearing glasses, then the second coefficient is confirmed to be 0.
[0126] The confirmation module 603 is used to confirm the control standard time length of the user according to the first coefficient and the second coefficient, so as to restrict the user from using the electronic device within the control standard time length.
[0127] The confirmation module 603 is further used to confirm the first base number, the second base number and the third base number of the control standard time length;
[0128] Determining a first increment of the control standard duration according to the second base number and the first coefficient;
[0129] Determining a second increment of the control standard duration according to the third base number and the second coefficient;
[0130] The standard duration of control over the user is confirmed based on the first base, the first increment, and the second increment.
[0131] The present application also provides an electronic device, comprising: at least one processor and a memory;
[0132] The memory stores computer-executable instructions;
[0133] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs an eye protection method for an electronic device.
[0134] Figure 7 The hardware diagram of the electronic device eye protection device provided by the embodiment of the present invention. Figure 7 As shown, the electronic device eye protection device 70 provided in this embodiment includes: at least one processor 701 and a memory 702. The device 70 also includes a communication component 703. The processor 701, the memory 702 and the communication component 703 are connected via a bus 704.
[0135] In the specific implementation process, at least one processor 701 executes the computer execution instructions stored in the memory 702, so that at least one processor 701 executes the above electronic device eye protection method.
[0136] The specific implementation process of the processor 701 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0137] In the above Figure 7In the illustrated embodiment, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0138] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0139] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0140] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the electronic device eye protection method as described above is implemented.
[0141] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0142] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0143] The division of the units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, which may be electrical, mechanical or other forms.
[0144] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0145] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0146] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. An eye protection method for electronic equipment, characterized in that: include: According to the user's facial information, the user's user features are divided into first-category features and second-category features, wherein the first-category features are features divided according to the user's age, and the second-category features are features divided according to the user's eye state; Determine a first coefficient of the standard duration of user control based on the first type of features, and determine a second coefficient of the standard duration of user control based on the second type of features; The standard control time of the user is confirmed based on the first coefficient and the second coefficient to restrict the user from using the electronic device within the standard control time.
2. The method according to claim 1, characterized in that: The determining the first coefficient of the standard user control time length according to the first type of features, and the determining the second coefficient of the standard user control time length according to the second type of features, include: Determine the maximum value of the first coefficient according to the minimum age group in the first type of features, and determine the minimum value of the first coefficient according to the maximum age group in the first type of features, wherein the first type of features includes a plurality of age groups divided according to the age of the user; If the second type of feature indicates that the user's eye state is wearing glasses, confirming that the second coefficient is 1; If the second type of feature indicates that the user's eye state is not wearing glasses, then the second coefficient is confirmed to be 0.
3. The method according to claim 1, characterized in that: Determining the standard control time of the user according to the first coefficient and the second coefficient includes: Confirm the first base number, second base number and third base number of the standard duration of control; Determining a first increment of the control standard duration according to the second base number and the first coefficient; Determining a second increment of the control standard duration according to the third base number and the second coefficient; The standard duration of control over the user is confirmed based on the first base, the first increment, and the second increment.
4. The method according to claim 1, characterized in that The restricting the user from using the electronic device within the control standard time period includes: When there is a control person in the control list, confirm whether the current user is a control person in the control list according to the facial information of the current user; If the current user is the control person, then obtain the control time of the current user; If the control duration exceeds the control standard duration, the current user is deleted from the control list; If the control time does not exceed the control standard time, the user is restricted from using the electronic device within the control standard time.
5. The method according to claim 4, characterized in that Before confirming whether the current user is a control person in the control list based on the facial information of the current user, the method further includes: According to the user's facial information, confirm the user's usage time of the electronic device and the user characteristics of the user, wherein the usage time is one of a continuous time within a preset period and a cumulative time within a preset period; Confirm whether the user's usage time exceeds the preset time corresponding to the user characteristics of the user. If so, confirm that the user is marked as a control person and put into the control list.
6. The method according to claim 5, characterized in that Before confirming whether the usage time of the user exceeds the preset time corresponding to the user feature of the user, the method further includes: Determine a first preset duration of the user according to the first type of features in the user features, wherein the older the user is, the longer the corresponding preset duration is; Determine whether to reduce the duration based on the first preset duration according to the second type of features in the user features, and obtain a second preset duration; The second preset duration is used as the preset duration corresponding to the user.
7. The method according to claim 6, characterized in that The confirming whether to reduce the duration based on the first preset duration and obtaining the second preset duration includes: If the second type of feature indicates that the user's eye state is wearing glasses, confirming to reduce the duration based on the first preset duration, and obtaining a second preset duration; If the second type of feature indicates that the user's eye state is not wearing glasses, confirm that the first preset time length is used as the second preset time length.
8. An eye protection device for electronic equipment, characterized in that: include: a classification module, configured to classify user features of the user into first-category features and second-category features according to the user's facial information, wherein the first-category features are features classified according to the user's age, and the second-category features are features classified according to the user's eye status; A processing module, configured to determine a first coefficient of the standard duration of user control according to the first type of features, and to determine a second coefficient of the standard duration of user control according to the second type of features; A confirmation module is used to confirm the standard control time of the user based on the first coefficient and the second coefficient, so as to restrict the user from using the electronic device within the standard control time.
9. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the electronic device eye protection method as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the electronic device eye protection method as described in any one of claims 1 to 7 are implemented.