CN111583600B - Apparatus for preventing myopia and computer readable storage medium - Google Patents

Apparatus for preventing myopia and computer readable storage medium Download PDF

Info

Publication number
CN111583600B
CN111583600B CN202010284447.1A CN202010284447A CN111583600B CN 111583600 B CN111583600 B CN 111583600B CN 202010284447 A CN202010284447 A CN 202010284447A CN 111583600 B CN111583600 B CN 111583600B
Authority
CN
China
Prior art keywords
determining
target
time length
information
duration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010284447.1A
Other languages
Chinese (zh)
Other versions
CN111583600A (en
Inventor
樊起飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Triangle Technology Co ltd
Original Assignee
Shenzhen Triangle Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Triangle Technology Co ltd filed Critical Shenzhen Triangle Technology Co ltd
Priority to CN202010284447.1A priority Critical patent/CN111583600B/en
Publication of CN111583600A publication Critical patent/CN111583600A/en
Application granted granted Critical
Publication of CN111583600B publication Critical patent/CN111583600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/182Level alarms, e.g. alarms responsive to variables exceeding a threshold
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B7/00Signalling systems according to more than one of groups G08B3/00 - G08B6/00; Personal calling systems according to more than one of groups G08B3/00 - G08B6/00
    • G08B7/06Signalling systems according to more than one of groups G08B3/00 - G08B6/00; Personal calling systems according to more than one of groups G08B3/00 - G08B6/00 using electric transmission, e.g. involving audible and visible signalling through the use of sound and light sources

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method, a device, equipment and a computer readable storage medium for preventing myopia, wherein the method for preventing myopia comprises the following steps: acquiring current light intensity information of target equipment, distance information between a user and the target equipment and current action information of the user; determining target duration based on current light intensity information, distance information and action information; detecting the use time of the target equipment used by the user, determining whether the use time is longer than the target time, and if the use time is longer than the target time, generating prompt information. According to the method and the device, the target duration is determined, and when the use duration is longer than the target duration, the prompt message is generated. The target duration is generated by the current light intensity information, the distance information and the action information, so that the influence of various factors on the vision of people in the current use state is accurately reflected, the timely reminding of the people facing a screen with higher brightness for a long time and a short distance is realized, and the effective prevention of the problems of strabismus, myopia and the like is facilitated.

Description

Apparatus for preventing myopia and computer readable storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to an apparatus for preventing myopia and a computer-readable storage medium.
Background
With the rapid development of network technology and technology, most people now have their own high-technology electronic products such as smart phones, computers, tablet computers, and the like. People can inquire information, shop on the internet, study and entertain at any time through the electronic product, and enjoy the benefits brought by the modernization as much as possible. However, the problem also follows, because people inevitably need to face the screen of the electronic product in learning, work and entertainment, and often face the screen with higher brightness from the ground for a long time, the people are not only likely to face a lower head, but also likely to cause the health degree of people to be reduced, especially teenagers, often face the electronic screen with higher brightness from a short distance for a long time in a bad posture, the eyes are likely to be overused, and further the vision problems such as strabismus, myopia and the like occur.
Disclosure of Invention
The invention mainly aims to provide equipment for preventing myopia and a computer readable storage medium, and aims to solve the technical problem that in the prior art, the damage to the vision of a user is reduced only by adjusting the light intensity of a screen, and the consideration factor is single, so that the effect is little.
In order to achieve the above object, an embodiment of the present invention provides a method for preventing myopia, including the following steps:
acquiring current light intensity information of target equipment, distance information between a user and the target equipment and current action information of the user;
determining target duration based on the current light intensity information, the distance information and the action information;
detecting the use time of the target equipment used by the user, determining whether the use time is longer than the target time, and if the use time is longer than the target time, generating prompt information.
Preferably, the step of determining the target duration based on the current light intensity information, the distance information, and the motion information includes:
determining a first initial time length according to the current light intensity information;
determining a second initial time length according to the distance information;
determining a third initial time length according to the action information;
and determining a target time length based on the first initial time length, the second initial time length and the third initial time length.
Preferably, the step of determining a first initial duration according to the current light intensity information includes:
acquiring type information of target equipment, and determining initial light intensity information corresponding to the type information;
comparing the initial light intensity information with the current light intensity information, and determining a proportional relationship between the initial light intensity information and the current light intensity information;
and determining a first initial time length based on the proportional relation.
Preferably, the step of determining a target duration based on the first initial duration, the second initial duration and the third initial duration comprises:
determining the time length with the minimum value in the first initial time length, the second initial time length and the third initial time length as a main time length;
determining an adjustment coefficient according to the other two time lengths except the main time length in the first initial time length, the second initial time length and the third initial time length;
and calculating the main time length and the adjusting coefficient to determine a target time length.
Preferably, if the duration of use is greater than the target duration, the step of generating the prompt message includes:
if the service time length is longer than the target time length, determining a time length value of the service time length which is longer than the target time length;
if the time length value is smaller than a preset threshold value, generating first-level prompt information;
and if the duration value is greater than or equal to a preset threshold value, generating secondary prompt information.
Preferably, the step of acquiring current light intensity information of the target device, distance information between the user and the target device, and current action information of the user includes:
detecting whether an electronic device exists;
if the electronic equipment is detected to exist, determining the number of the electronic equipment;
if the number of the electronic equipment is one, determining the electronic equipment as target equipment;
and if the number of the electronic devices is multiple, determining the target device according to the distance between the user and the multiple electronic devices.
Preferably, if the number of the electronic devices is multiple, the step of determining the target device according to the distance between the user and the multiple electronic devices includes:
if the number of the detected electronic devices is multiple, respectively detecting the distances between the electronic devices and the electronic devices;
and determining the minimum distance in the distances between the user and the electronic equipment, and determining the electronic equipment corresponding to the minimum distance as the target equipment.
To achieve the above object, the present invention also provides a myopia prevention apparatus, including:
the acquisition module is used for acquiring current light intensity information of the target equipment, distance information between a user and the target equipment and current action information of the user;
the determining module is used for determining the target duration based on the current light intensity information, the distance information and the action information;
and the generating module is used for detecting the use time of the target equipment used by the user, determining whether the use time is longer than the target time, and generating prompt information if the use time is longer than the target time.
Further, to achieve the above object, the present invention also provides a device for preventing myopia, including a memory, a processor and a program for preventing myopia stored in the memory and executable on the processor, wherein the program for preventing myopia realizes the steps of the method for preventing myopia when executed by the processor.
Further, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a program for preventing myopia, which when executed by a processor, performs the steps of the method for preventing myopia described above.
The embodiment of the invention provides equipment and a computer readable storage medium for preventing myopia, wherein the method for preventing myopia comprises the following steps: acquiring current light intensity information of target equipment, distance information between a user and the target equipment and current action information of the user; determining target duration based on the current light intensity information, the distance information and the action information; detecting the use time of the target equipment used by the user, determining whether the use time is longer than the target time, and if the use time is longer than the target time, generating prompt information. According to the method and the device, the target duration representing the maximum value of the optimal use time is determined according to the current light intensity information of the target device, the distance information between the user and the target device and the current action information of the user, and when the use duration is longer than the target duration, prompt information is generated to provide corresponding suggestions and warnings for the user. The target duration is combined with the current light intensity information, the distance information and the action information, so that the influence of various factors on the vision of people in the current use state is accurately reflected, the frequent long-time and short-distance timely reminding of the people facing to the screen with higher brightness is realized, the excessive eye use of people is avoided, and the effective prevention of the problems of strabismus, myopia and the like is facilitated.
Drawings
FIG. 1 is a schematic flow chart of a hardware operating environment according to an embodiment of the method for preventing myopia;
FIG. 2 is a schematic flow chart of a first embodiment of the method for preventing myopia according to the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of the method for preventing myopia according to the present invention;
FIG. 4 is a schematic flow chart of a third embodiment of the method for preventing myopia according to the present invention;
FIG. 5 is a functional block diagram of a preferred embodiment of the device for preventing myopia according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides equipment and a computer readable storage medium for preventing myopia, wherein the method for preventing myopia comprises the following steps: acquiring current light intensity information of target equipment, distance information between a user and the target equipment and current action information of the user; determining target duration based on the current light intensity information, the distance information and the action information; detecting the use time of the target equipment used by the user, determining whether the use time is longer than the target time, and if the use time is longer than the target time, generating prompt information. According to the method and the device, the target duration representing the maximum value of the optimal use time is determined according to the current light intensity information of the target device, the distance information between the user and the target device and the current action information of the user, and when the use duration is longer than the target duration, prompt information is generated to provide corresponding suggestions and warnings for the user. The target duration is combined with the current light intensity information, the distance information and the action information, so that the influence of various factors on the vision of people in the current use state is accurately reflected, the frequent long-time and short-distance timely reminding of the people facing to the screen with higher brightness is realized, the excessive eye use of people is avoided, and the effective prevention of the problems of strabismus, myopia and the like is facilitated.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a myopia prevention apparatus in a hardware operating environment according to an embodiment of the present invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The myopia prevention device can be a PC, and can also be a mobile terminal device such as a tablet computer and a portable computer.
As shown in fig. 1, the apparatus for preventing myopia may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the apparatus for preventing myopia shown in figure 1 does not constitute a limitation of the apparatus for preventing myopia and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include an operating system, a network communication module, a user interface module, and a program for preventing myopia therein.
In the device shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke a myopia prevention program stored in the memory 1005 and perform the following operations:
acquiring current light intensity information of target equipment, distance information between a user and the target equipment and current action information of the user;
determining target duration based on the current light intensity information, the distance information and the action information;
detecting the use time of the target equipment used by the user, determining whether the use time is longer than the target time, and if the use time is longer than the target time, generating prompt information.
Further, the step of determining the target duration based on the current light intensity information, the distance information, and the motion information includes:
determining a first initial time length according to the current light intensity information;
determining a second initial time length according to the distance information;
determining a third initial time length according to the action information;
and determining a target time length based on the first initial time length, the second initial time length and the third initial time length.
Further, the step of determining the first initial duration according to the current light intensity information includes:
acquiring type information of target equipment, and determining initial light intensity information corresponding to the type information;
comparing the initial light intensity information with the current light intensity information, and determining a proportional relationship between the initial light intensity information and the current light intensity information;
and determining a first initial time length based on the proportional relation.
Further, the step of determining a target duration based on the first initial duration, the second initial duration, and the third initial duration includes:
determining the time length with the minimum value in the first initial time length, the second initial time length and the third initial time length as a main time length;
determining an adjustment coefficient according to the other two time lengths except the main time length in the first initial time length, the second initial time length and the third initial time length;
and calculating the main time length and the adjusting coefficient to determine a target time length.
Further, if the duration of use is greater than the target duration, the step of generating a prompt message includes:
if the service time length is longer than the target time length, determining a time length value of the service time length which is longer than the target time length;
if the time length value is smaller than a preset threshold value, generating first-level prompt information;
and if the duration value is greater than or equal to a preset threshold value, generating secondary prompt information.
Further, before the step of obtaining the current light intensity information of the target device, the distance information between the user and the target device, and the current action information of the user, the processor 1001 may be configured to call a program stored in the memory 1005 for preventing myopia, and perform the following operations:
detecting whether an electronic device exists;
if the electronic equipment exists, determining the number of the electronic equipment;
if the number of the electronic equipment is one, determining the electronic equipment as target equipment;
and if the number of the electronic devices is multiple, determining the target device according to the distance between the user and the multiple electronic devices.
Further, if the number of the electronic devices is multiple, the step of determining the target device according to the distance between the user and the multiple electronic devices includes:
if the number of the detected electronic devices is multiple, respectively detecting the distances between the electronic devices and the electronic devices;
and determining the minimum distance in the distances between the user and the electronic equipment, and determining the electronic equipment corresponding to the minimum distance as the target equipment.
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 2, a first embodiment of the present invention provides a flowchart of a method for preventing myopia. In this embodiment, the method of preventing myopia comprises the steps of:
step S10, acquiring current light intensity information of the target device, distance information between the user and the target device and current action information of the user;
the method for preventing myopia in this embodiment is applied to a system including a light sensor, a distance sensor, a camera, a 9-axis gyroscope sensor, a PCBA (Printed Circuit Board) motherboard, and a spectacle frame. The camera is used for detecting whether electronic equipment with a screen and the number of the electronic equipment exist in a visual field range of the camera, wherein the electronic equipment with the screen can be but is not limited to a mobile phone, a tablet computer, a television and the like, the light sensor is used for detecting the light intensity emitted by the screen of the equipment currently used by a user, the distance sensor is used for detecting the distance between the user and the equipment, the 9-axis gyroscope sensor is used for detecting the current action of the user, the PCBA mainboard is used for processing, calculating and analyzing data, and the glasses support is at least used as a carrier of the sensors, the camera and the PCBA mainboard.
Further, when the user uses the electronic equipment with the screen, the system calls the camera to shoot images in the visual field range, and identifies the type of the equipment currently used by the user according to the shot images. Further, the system calls a light sensor to detect light intensity information sent by a screen of the device currently used by the user, calls a distance sensor to detect distance information between the user and the device currently used, and calls a 9-axis gyroscope sensor to detect current action information of the user. For example: when a user lies on a bed to play a mobile phone, the system recognizes that the electronic equipment currently used by the user is the mobile phone by calling the camera, detects the light intensity emitted by the mobile phone used by the user by calling the light sensor, simultaneously calls the distance sensor to detect the distance between the user and the mobile phone, and calls the 9-axis gyroscope sensor to detect the gesture of the user currently playing the mobile phone.
Step S20, determining a target duration based on the current light intensity information, the distance information and the action information;
further, the system determines the target duration representing the maximum value of the optimal time for the user to use the current equipment according to the light intensity information sent by the screen of the current equipment used by the user, the distance information between the user and the current equipment used by the user and the current action information of the user. Specifically, the system determines a first initial duration by comparing current light intensity information with initial light intensity information of the electronic device; determining a second initial duration by comparing the distance information with recommended distance information of the electronic equipment; and determining a third initial time length by comparing the action information with the recommended action information. Further, the system calls the PCBA mainboard to calculate according to the first initial time, the second initial time and the third initial time and in combination with an adjustment coefficient determined by the light intensity information, the distance information and the action information, and determines the target time.
Step S30, detecting the use duration of the target device used by the user, determining whether the use duration is longer than the target duration, and if the use duration is longer than the target duration, generating a prompt message.
Furthermore, the system is also provided with a timing module for counting the time length of the user using the equipment, a vibration module for emitting vibration and a voice module for emitting voice prompt. Furthermore, the system detects the use duration of the current equipment used by the user through the timing module, acquires the target duration calculated and analyzed by the PCBA mainboard, and determines whether the use duration of the current equipment used by the user is greater than the target duration or not by calculating and analyzing the use duration of the current equipment used by the user and the target duration. Further, when the service life is longer than the target life, the system generates prompt information corresponding to the numerical value according to the numerical value that the service life is longer than the target life.
Further, if the duration of use is greater than the target duration, the step of generating the prompt message includes:
step S31, if the duration is longer than the target duration, determining a duration value of the duration longer than the target duration;
step S32, if the duration value is less than a preset threshold value, generating first-level prompt information;
and step S33, if the duration value is greater than or equal to a preset threshold value, generating secondary prompt information.
Further, when the fact that the service time of the current equipment used by the user is longer than the target time calculated and analyzed by the PCBA mainboard is determined, the fact that the vision and even the body health of the user are damaged when the user continues to use the electronic equipment is represented, the system generates corresponding prompt information according to the numerical value size relation between the service time and the target time, wherein the generated prompt information has at least two types, one type is vibration information, the vibration information is sent out by the glasses support through calling the vibration module, and the user is prompted that the service time of the current equipment exceeds the optimal time; the other is to generate voice reminding information, and the voice module sends out voice information to remind the user that the service time of the current equipment exceeds the optimal time, and the user is recommended to have a rest or perform outdoor activities so as to relieve eye fatigue and move bones and muscles. The prompt message can be divided into a plurality of levels, preferably two levels in the embodiment, but not limited to two levels, the intensity of the vibration message sent by the prompt message with different levels is different from the intensity of the voice prompt message, and the higher the level is, the higher the intensity of the prompt message is. The prompt messages with different forms and different levels are provided for the user, the user is reminded that the time for using the equipment is too long, and the user is advised to pause to use the equipment, so that the myopia problem caused by continuous use of the equipment by the user is prevented. Specifically, the system calculates a duration value when the use duration is longer than the target duration, if the duration value is smaller than a preset threshold value, it is indicated that the vision of the user is damaged when the electronic equipment is used under the current duration, and the system automatically generates first-level prompt information to remind the user of having a rest; if the time length value is larger than the preset threshold value, the fact that the vision of the user is greatly damaged when the electronic equipment is used under the current time length is indicated, the system automatically generates second-level prompt information, uses and warns the user, and reminds the user to move.
The embodiment provides a device and a computer readable storage medium for preventing myopia, wherein the method for preventing myopia comprises the following steps: acquiring current light intensity information of target equipment, distance information between a user and the target equipment and current action information of the user; determining target duration based on the current light intensity information, the distance information and the action information; detecting the use time of the target equipment used by the user, determining whether the use time is longer than the target time, and if the use time is longer than the target time, generating prompt information. According to the method and the device, the target duration representing the maximum value of the optimal use time is determined according to the current light intensity information of the target device, the distance information between the user and the target device and the current action information of the user, and when the use duration is longer than the target duration, prompt information is generated to provide corresponding suggestions and warnings for the user. The target duration is combined with the current light intensity information, the distance information and the action information, so that the influence of various factors on the vision of people in the current use state is accurately reflected, the frequent long-time and short-distance timely reminding of the people facing to the screen with higher brightness is realized, the excessive eye use of people is avoided, and the effective prevention of the problems of strabismus, myopia and the like is facilitated.
Further, referring to fig. 3, a second embodiment of the method for preventing myopia according to the present invention is proposed based on the first embodiment of the method for preventing myopia according to the present invention, wherein in the second embodiment, the step of determining the target duration based on the current light intensity information, the distance information, and the motion information comprises:
step S21, determining a first initial duration according to the current light intensity information;
step S22, determining a second initial time length according to the distance information;
step S23, determining a third initial time length according to the action information;
step S24, determining a target duration based on the first initial duration, the second initial duration, and the third initial duration.
Further, since different light intensities have different effects on the vision of the user, the optimal time for using the electronic device under different light intensities is different. Understandably, the light intensity of the electronic equipment is in inverse proportion to the optimal use time under a certain limit, and the stronger the light intensity is, the shorter the optimal use time is; the weaker the light intensity, the longer the optimum time. Further, the system compares the light intensity information sent by the screen of the device currently used by the user with the initial light intensity representing the default light intensity of the electronic device, and determines the first initial duration according to the proportional relation between the light intensity and the optimal duration. Further, since the influence of using the electronic device at different distances on the eyesight of the user is different, the optimal time for using the electronic device at different distances is different, and understandably, the distance for using the electronic device and the optimal use time are in a proportional relationship under a certain limit, and the longer the distance for using the electronic device is, the longer the optimal use time is; the closer the distance to use the electronic device, the shorter the optimum time. Further, the system compares the distance information of the user and the current used equipment with recommended distance information representing the optimal use distance of the electronic equipment, and determines a second initial time length according to the proportional relation between the distance of the used electronic equipment and the optimal use time length; the user uses the electronic equipment with different actions and has different influences on the eyesight of the user, so that the optimal time for the user to use the electronic equipment under different actions is different, the larger the difference between the current action of the user and the recommended action is, the shorter the corresponding optimal use time length is, and the smaller the difference between the current action of the user and the recommended action is, the longer the corresponding optimal use time length is. Further, the system compares the current action information of the user with recommended action information representing the optimal use posture of the electronic equipment, and determines a third initial duration according to the corresponding relation between the current action information of the user and the recommended action information. It can be understood that, when the user uses the electronic device, the current light intensity, the current distance, and the current action all affect the eyesight of the user, where the current light intensity affects the eyesight of the user most, and then the current distance, and the minimum is the current action. Further, the system determines the time length with the minimum value in the first initial time length, the second initial time length and the third initial time length, and determines the adjustment coefficient according to the rest two time lengths so as to balance the use time length according to a plurality of factors influencing the eyesight of the user. Further, the system determines the target time length through calculation and analysis of the PCBA mainboard according to the first initial time length, the second initial time length and the third initial time length and by combining the adjustment coefficient. Further, the step of determining the first initial duration according to the current light intensity information includes:
step S211, obtaining type information of the target equipment, and determining initial light intensity information corresponding to the type information;
step S212, comparing the initial light intensity information with the current light intensity information, and determining a proportional relationship between the initial light intensity information and the current light intensity information;
step S213, determining a first initial duration based on the proportional relationship.
Further, the system acquires type information of the target device, acquires default light intensity information of a screen corresponding to the type of the target device, and determines the default light intensity information as initial light intensity information. Further, the system compares current light intensity information, which is detected by the light sensor and is sent by a screen of the device currently used by the user, with the initial intensity information, determines a proportional relation between the initial light intensity information and the current light intensity information, and determines a first initial duration according to the proportional relation. Specifically, under the condition that the initial light intensity is fixed, the stronger the current light intensity is, the shorter the first initial duration is; the weaker the current light intensity is, the longer the first initial period is. For example, when the initial light intensity of the device used by the user is 50, the mobile phone can be used for 2 hours, and if the light intensity of the device currently used by the user is 100, it indicates that the brightness of the device currently used by the user is high, and the damage to the vision of the user is high due to long-time use, so that the use time is shortened to 1 hour; if the light intensity of the device currently used by the user is 40, the brightness of the device currently used by the user is low, and the visual damage of the user is low when the device is used at the brightness, so that the use time is prolonged to 2.2 hours.
Further, the step of determining a target duration based on the first initial duration, the second initial duration, and the third initial duration includes:
step S241, determining a minimum duration among the first initial duration, the second initial duration, and the third initial duration as a main duration;
step S242, determining an adjustment coefficient according to two other durations except the main duration in the first initial duration, the second initial duration, and the third initial duration;
and step S243, calculating the main time length and the adjusting coefficient, and determining a target time length.
Further, the system compares the numerical values of the first initial duration, the second initial duration and the third initial duration, and determines the duration with the minimum numerical value as the main duration. Further, the system determines an adjustment coefficient for balancing the main time length according to the other two time lengths except the main time length in the first initial time length, the second initial time length and the third initial time length, and specifically, determines the adjustment coefficient by taking a ratio of the time length with a large influence on the vision of the user to the time length with a small influence on the vision of the user in the two time lengths. Further, the system calculates the main time length and the adjustment coefficient according to the PCBA mainboard, and determines the target time length representing the maximum value of the optimal time for the user to use the equipment. For example, when a user uses a mobile phone, if the first initial duration is 1 hour, the second initial duration is 1.5 hours, the third initial duration is 1.2 hours, and the adjustment coefficient is 1.2, the first initial duration is used as the main duration, and the adjustment coefficient is combined to perform calculation, so that the obtained target duration is 1.2 hours; if the first initial duration is 1.2 hours, the second initial duration is 1 hour, the third initial duration is 1.5 hours, and the adjustment coefficient is 0.8, the first initial duration is taken as the main duration, and the adjustment coefficient is combined for calculation, so that the obtained target duration is 0.8 hours.
According to the embodiment, a plurality of initial durations representing the most suitable duration in each state are obtained according to the current light intensity information, the distance information and the action information, the main duration and the adjustment coefficient are obtained according to the initial durations, the target duration is accurately calculated through the PCBA mainboard, the target duration representing the maximum value of the most suitable duration of the equipment used by a user is accurately calculated, the user is timely reminded, the user is prevented from excessively using the equipment, and the beneficial effect of preventing myopia is achieved.
Further, referring to fig. 4, a third embodiment of the method for preventing myopia according to the present invention is proposed based on the first embodiment or the second embodiment of the method for preventing myopia according to the present invention, wherein the step of obtaining the current light intensity information of the target device, the distance information between the user and the target device, and the current action information of the user includes:
step S40, detecting whether an electronic device exists;
step S50, if the electronic equipment exists, determining the number of the electronic equipment;
step S60, if the number of the electronic devices is one, determining the electronic device as a target device;
step S70, if the number of the electronic devices is multiple, determining a target device according to the distance between the user and the multiple electronic devices.
Further, the system calls a camera to shoot images in the visual field range of the camera, and detects whether electronic equipment with a screen, such as a mobile phone, a computer, a tablet computer and the like, exists in the images shot by the camera. Further, if the electronic equipment exists in the image shot by the detection camera, the system further detects the number of the electronic equipment in the image. Further, if the detected image is detected to have only one electronic device, the system determines the detected electronic device as the target device; and if the detected image shot by the camera has a plurality of electronic devices, determining the target device according to the distances between the user and the electronic devices.
Further, if the number of the devices is multiple, the step of determining the target device according to the distance between the user and the multiple electronic devices includes:
step S71, if the number of the detected electronic devices is multiple, detecting distances to the multiple electronic devices respectively;
step S72, determining a minimum distance among distances between the user and the plurality of electronic devices, and determining an electronic device corresponding to the minimum distance as a target device.
Furthermore, a distance measurement algorithm for measuring distance is further arranged in the system, and the distance detection between the camera and the object to be detected is realized by combining the distance measurement algorithm and the camera. It will be appreciated that there may be multiple electronic devices within the user's field of view, and therefore the electronic device closest to the user should ideally be selected as the electronic device most detrimental to the user's vision. Further, when the system determines that a plurality of electronic devices exist in an image shot by the camera, distances between the user and the plurality of electronic devices are respectively measured by calling the camera and a distance measurement algorithm. Further, after the distance measurement with the plurality of electronic devices is completed, the system calculates and compares the plurality of distances, determines the electronic device corresponding to the distance with the minimum value, and takes the electronic device as the target device. For example, when a user uses a mobile phone in a place where people are more than one, and other people are playing the mobile phone, a plurality of electronic devices exist in an image shot by a camera, and at this time, it is necessary to determine the electronic device closest to the user, that is, the mobile phone used by the user, as the electronic device most harmful to the eyesight of the user.
In the embodiment, whether the electronic equipment exists in the visual field of the user and the number of the electronic equipment exists are detected, and the electronic equipment closest to the user is determined to be the target equipment. By determining the target equipment, the situation that equipment used by other people is mistakenly considered as the user to use the electronic equipment is avoided, the light intensity of the current equipment used by the user is accurately detected, the distance between the user and the current equipment used by the user is accurately detected, the optimal time for using the current equipment is calculated according to the light intensity of the current equipment used by the user and the distance between the user and the current equipment used by the user in combination with the current action of the user, the electronic equipment is prevented from being used by the user under the conditions of high light intensity, short distance and bad posture for a long time due to the fact that the user does not pay attention to the time, and the eyesight health of the user is prevented.
Furthermore, the invention also provides a device for preventing myopia.
Referring to fig. 5, fig. 5 is a functional block diagram of a first embodiment of the apparatus for preventing myopia according to the present invention.
The device for preventing myopia comprises:
the acquisition module 10 is configured to acquire current light intensity information of a target device, distance information between a user and the target device, and current action information of the user;
a determining module 20, configured to determine a target duration based on the current light intensity information, the distance information, and the action information;
the generating module 30 is configured to detect a usage duration of the target device used by the user, determine whether the usage duration is longer than the target duration, and generate a prompt message if the usage duration is longer than the target duration.
Further, the obtaining module 10 includes:
a first detection unit for detecting whether an electronic device exists;
the device comprises a first determining unit, a second determining unit and a judging unit, wherein the first determining unit is used for determining the number of electronic equipment if the electronic equipment exists;
a second determining unit, configured to determine the electronic device as a target device if the number of the electronic devices is one;
and the third determining unit is used for determining the target equipment according to the distance between the user and the electronic equipment if the number of the electronic equipment is multiple.
Further, the obtaining module 10 further includes:
the second detection unit is used for respectively detecting the distances between a user and the electronic equipment if the number of the detected electronic equipment is multiple;
and the fourth determining unit is used for determining the minimum distance in the distances between the user and the electronic equipment and determining the electronic equipment corresponding to the minimum distance as the target equipment.
Further, the determining module 20 includes:
a fifth determining unit, configured to determine a first initial duration according to the current light intensity information;
a sixth determining unit, configured to determine a second initial duration according to the distance information;
a seventh determining unit, configured to determine a third initial duration according to the action information;
an eighth determining unit, configured to determine a target duration based on the first initial duration, the second initial duration, and the third initial duration.
Further, the determining module 20 further includes:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring type information of target equipment and determining initial light intensity information corresponding to the type information;
the comparison unit is used for comparing the initial light intensity information with the current light intensity information and determining the proportional relation between the initial light intensity information and the current light intensity information;
a ninth determining unit, configured to determine the first initial duration based on the proportional relationship.
Further, the determining module 20 further includes:
a tenth determining unit, configured to determine, as a main time length, a time length with a smallest value among the first initial time length, the second initial time length, and the third initial time length;
an eleventh determining unit, configured to determine an adjustment coefficient according to two other durations, except the main duration, of the first initial duration, the second initial duration, and the third initial duration;
and the twelfth determining unit is used for calculating the main time length and the adjusting coefficient and determining the target time length.
Further, the generating module 30 includes:
a thirteenth determining unit, configured to determine, if the duration of use is greater than the target duration, a duration value that the duration of use is greater than the target duration;
the first generation unit is used for generating first-level prompt information if the duration value is smaller than a preset threshold value;
and the second generation unit is used for generating secondary prompt information if the duration value is greater than or equal to a preset threshold value.
Furthermore, the present invention also provides a computer readable storage medium, on which a program for preventing myopia is stored, and when the program for preventing myopia is executed by a processor, the steps of the embodiments of the method for preventing myopia are implemented.
In the embodiments of the apparatus and the computer-readable storage medium for preventing myopia according to the present invention, all technical features of the embodiments of the method for preventing myopia are included, and the description and explanation contents are substantially the same as those of the embodiments of the method for preventing myopia, and thus, no further description is given here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. With this understanding in mind, the technical solutions of the present invention may be embodied in the form of a software product stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) for executing the methods according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An apparatus for preventing myopia, the apparatus comprising a memory, a processor, and a myopia prevention program stored on the memory and executable on the processor, the myopia prevention program when executed by the processor implementing the steps of a method of preventing myopia, the method comprising:
acquiring current light intensity information of target equipment, distance information between a user and the target equipment and current action information of the user;
determining target duration based on the current light intensity information, the distance information and the action information;
detecting the use duration of the target equipment used by a user, determining whether the use duration is longer than the target duration, and if the use duration is longer than the target duration, generating prompt information;
wherein the step of determining the target duration based on the current light intensity information, the distance information, and the motion information includes:
determining a first initial time length according to the current light intensity information;
determining a second initial time length according to the distance information;
determining a third initial time length according to the action information;
determining a target duration based on the first initial duration, the second initial duration and the third initial duration;
wherein the step of determining a target duration based on the first initial duration, the second initial duration, and the third initial duration comprises:
determining the time length with the minimum value in the first initial time length, the second initial time length and the third initial time length as a main time length;
determining an adjustment coefficient according to the other two time lengths except the main time length in the first initial time length, the second initial time length and the third initial time length;
and calculating the main time length and the adjusting coefficient to determine a target time length.
2. The apparatus for preventing myopia according to claim 1, wherein the step of determining the first initial duration based on the current light intensity information comprises:
acquiring type information of target equipment, and determining initial light intensity information corresponding to the type information;
comparing the initial light intensity information with the current light intensity information, and determining a proportional relationship between the initial light intensity information and the current light intensity information;
and determining a first initial time length based on the proportional relation.
3. The apparatus for preventing myopia according to claim 1, wherein the step of generating a prompt if the usage period is greater than the target period comprises:
if the service time length is longer than the target time length, determining a time length value of the service time length which is longer than the target time length;
if the time length value is smaller than a preset threshold value, generating first-level prompt information;
and if the duration value is greater than or equal to a preset threshold value, generating secondary prompt information.
4. The apparatus for preventing myopia according to any of claims 1-3, wherein the step of obtaining current light intensity information of the target device, distance information of the user from the target device, and current motion information of the user is preceded by:
detecting whether an electronic device exists;
if the electronic equipment exists, determining the number of the electronic equipment;
if the number of the electronic equipment is one, determining the electronic equipment as target equipment;
and if the number of the electronic devices is multiple, determining the target device according to the distance between the user and the multiple devices.
5. The apparatus for preventing myopia according to claim 4, wherein if the number of the electronic devices is plural, the step of determining the target device according to the distance between the user and the plural electronic devices comprises:
if the number of the detected electronic devices is multiple, respectively detecting the distances between a user and the multiple electronic devices;
and determining the minimum distance in the distances between the user and the electronic equipment, and determining the electronic equipment corresponding to the minimum distance as the target equipment.
6. A computer-readable storage medium, having stored thereon a program for preventing myopia, which when executed by a processor, performs the steps of a method for preventing myopia, the method comprising:
acquiring current light intensity information of target equipment, distance information between a user and the target equipment and current action information of the user;
determining target duration based on the current light intensity information, the distance information and the action information;
detecting the use duration of the target equipment used by a user, determining whether the use duration is longer than the target duration, and if the use duration is longer than the target duration, generating prompt information;
wherein the step of determining the target duration based on the current light intensity information, the distance information, and the motion information includes:
determining a first initial time length according to the current light intensity information;
determining a second initial time length according to the distance information;
determining a third initial time length according to the action information;
determining a target duration based on the first initial duration, the second initial duration and the third initial duration;
wherein the step of determining a target duration based on the first initial duration, the second initial duration, and the third initial duration comprises:
determining the time length with the minimum value in the first initial time length, the second initial time length and the third initial time length as a main time length;
determining an adjustment coefficient according to the other two time lengths except the main time length in the first initial time length, the second initial time length and the third initial time length;
and calculating the main time length and the adjusting coefficient to determine a target time length.
7. The computer-readable storage medium of claim 6, wherein the step of determining a first initial duration based on the current light intensity information comprises:
acquiring type information of target equipment, and determining initial light intensity information corresponding to the type information;
comparing the initial light intensity information with the current light intensity information, and determining a proportional relationship between the initial light intensity information and the current light intensity information;
and determining a first initial time length based on the proportional relation.
8. The computer-readable storage medium of claim 6, wherein the step of generating a prompt message if the usage duration is greater than the target duration comprises:
if the service time length is longer than the target time length, determining a time length value of the service time length which is longer than the target time length;
if the time length value is smaller than a preset threshold value, generating first-level prompt information;
and if the duration value is greater than or equal to a preset threshold value, generating secondary prompt information.
9. The computer-readable storage medium of any one of claims 6-8, wherein the step of obtaining current light intensity information for the target device, distance information for the user from the target device, and current action information for the user is preceded by:
detecting whether an electronic device exists;
if the electronic equipment exists, determining the number of the electronic equipment;
if the number of the electronic equipment is one, determining the electronic equipment as target equipment;
and if the number of the electronic devices is multiple, determining the target device according to the distance between the user and the multiple devices.
10. The computer-readable storage medium of claim 9, wherein if the number of the electronic devices is multiple, the step of determining the target device according to the distance between the user and the multiple electronic devices comprises:
if the number of the detected electronic devices is multiple, respectively detecting the distances between a user and the multiple electronic devices;
and determining the minimum distance in the distances between the user and the electronic equipment, and determining the electronic equipment corresponding to the minimum distance as the target equipment.
CN202010284447.1A 2020-04-10 2020-04-10 Apparatus for preventing myopia and computer readable storage medium Active CN111583600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010284447.1A CN111583600B (en) 2020-04-10 2020-04-10 Apparatus for preventing myopia and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010284447.1A CN111583600B (en) 2020-04-10 2020-04-10 Apparatus for preventing myopia and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111583600A CN111583600A (en) 2020-08-25
CN111583600B true CN111583600B (en) 2021-07-20

Family

ID=72111564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010284447.1A Active CN111583600B (en) 2020-04-10 2020-04-10 Apparatus for preventing myopia and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111583600B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002279410A (en) * 2001-03-22 2002-09-27 Nissan Motor Co Ltd Detector for dozing
WO2012160830A1 (en) * 2011-05-26 2012-11-29 パナソニック株式会社 Sleepiness-estimating device and sleepiness-estimating method
CN103516875A (en) * 2012-06-25 2014-01-15 百度在线网络技术(北京)有限公司 Method for remising user of mobile terminal and mobile terminal
CN104376832A (en) * 2013-08-12 2015-02-25 联想(北京)有限公司 Color temperature regulating method and electronic device
CN105278692A (en) * 2015-12-03 2016-01-27 中山市读书郎电子有限公司 Eyesight protecting system of tablet personal computer
CN105577945A (en) * 2016-03-11 2016-05-11 厦门美图移动科技有限公司 Eyesight protection control method and device and mobile terminal
CN106293059A (en) * 2016-07-21 2017-01-04 广东欧珀移动通信有限公司 Control method and control device
CN106502710A (en) * 2016-11-22 2017-03-15 何晓川 A kind of eye protection method and apparatus
CN107343100A (en) * 2017-06-30 2017-11-10 广东欧珀移动通信有限公司 Information cuing method, device, storage medium and electronic equipment
US20180078445A1 (en) * 2016-09-21 2018-03-22 International Business Machines Corporation Visual health maintenance and improvement
CN107993604A (en) * 2017-11-28 2018-05-04 珠海格力电器股份有限公司 Display screen adjusting method and device
CN108984140A (en) * 2018-06-28 2018-12-11 联想(北京)有限公司 A kind of display control method and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002279410A (en) * 2001-03-22 2002-09-27 Nissan Motor Co Ltd Detector for dozing
WO2012160830A1 (en) * 2011-05-26 2012-11-29 パナソニック株式会社 Sleepiness-estimating device and sleepiness-estimating method
CN103516875A (en) * 2012-06-25 2014-01-15 百度在线网络技术(北京)有限公司 Method for remising user of mobile terminal and mobile terminal
CN104376832A (en) * 2013-08-12 2015-02-25 联想(北京)有限公司 Color temperature regulating method and electronic device
CN105278692A (en) * 2015-12-03 2016-01-27 中山市读书郎电子有限公司 Eyesight protecting system of tablet personal computer
CN105577945A (en) * 2016-03-11 2016-05-11 厦门美图移动科技有限公司 Eyesight protection control method and device and mobile terminal
CN106293059A (en) * 2016-07-21 2017-01-04 广东欧珀移动通信有限公司 Control method and control device
US20180078445A1 (en) * 2016-09-21 2018-03-22 International Business Machines Corporation Visual health maintenance and improvement
CN106502710A (en) * 2016-11-22 2017-03-15 何晓川 A kind of eye protection method and apparatus
CN107343100A (en) * 2017-06-30 2017-11-10 广东欧珀移动通信有限公司 Information cuing method, device, storage medium and electronic equipment
CN107993604A (en) * 2017-11-28 2018-05-04 珠海格力电器股份有限公司 Display screen adjusting method and device
CN108984140A (en) * 2018-06-28 2018-12-11 联想(北京)有限公司 A kind of display control method and system

Also Published As

Publication number Publication date
CN111583600A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
US9508005B2 (en) Method for warning a user about a distance between user' s eyes and a screen
CN104767888B (en) A kind of screen luminance adjustment method and device
CN103700229B (en) Reminding method and electronic equipment
CN109191802B (en) Method, device, system and storage medium for eyesight protection prompt
CN104137118A (en) Enhanced face recognition in video
EP4137038A1 (en) Reliability of gaze tracking data for left and right eye
CN107563325B (en) Method and device for testing fatigue degree and terminal equipment
CN110969981A (en) Screen display parameter adjusting method and electronic equipment
CN108618747A (en) Eyesight test method and intelligent terminal
CN112229507A (en) Ambient light detection method and device, storage medium and mobile terminal
CN109683703A (en) A kind of display control method, terminal and computer readable storage medium
CN110610768B (en) Eye use behavior monitoring method and server
CN111580665B (en) Method and device for predicting fixation point, mobile terminal and storage medium
CN115100728A (en) Method, apparatus, storage medium and program product for detecting visual acuity status
CN110099371A (en) It is a kind of to use eye data monitoring method and eye-care system
CN111583600B (en) Apparatus for preventing myopia and computer readable storage medium
CN107704397B (en) Application program testing method and device and electronic equipment
CN112130326B (en) Method and device for improving eye protection performance of VR glasses
CN111610886A (en) Method and device for adjusting brightness of touch screen and computer readable storage medium
US10915617B2 (en) Image processing apparatus, image processing method, and recording medium
CN107111982B (en) Image display method and device
CN111221410B (en) Method for transmitting eyeball tracking information, head-mounted display and computer device
CN106982389B (en) Video type identification method and device
CN112506338B (en) Full-vision-based equipment control method, device and equipment
CN111522440B (en) Screen display control method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant