Control method for light acting on eyes and electronic equipment
By integrating light sources, camera units and proximity sensors in medical equipment that uses light on the eyes, the user's interpupillary distance information is obtained and verified to ensure that the light source output mode matches the user, thus solving the safety risks and treatment effects caused by different users using mixed devices. This reduces the problem of degradation and improves device security and user experience.
Patent Information
- Application Number
- CN202311786316.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2024-09-03
AI Technical Summary
In medical equipment that uses light on the eyes, it is necessary to prevent different users from mixing the same equipment for treatment to ensure treatment effectiveness and safety. In particular, different users’ interpupillary distance information and treatment parameters may lead to inconsistent light entering the eye power. There are security risks.
By integrating the light source, camera unit and proximity sensor in the electronic device, the user's identity information and interpupillary distance information are obtained to determine whether the preset threshold is met. If so, the light output is turned on and the light is guided to the user's eyes to ensure that the light source output mode is consistent with the user's eyes. User matching to avoid usage that does not correspond to users.
It effectively avoids the risk of different users mixing devices, ensures that the light emitted by the light source enters the correct user's eyes, improves the safety and user experience of the device, and ensures the stability of the treatment effect.
Smart Images

Figure CN118576908A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical equipment, and in particular to a control method for light acting on eyes and an electronic device. Background Art
[0002] Applying light to the eyes can achieve a variety of visual rehabilitation purposes. For example, red light of a specific wavelength can be used to irradiate the center, periphery, and periorbital area of the fundus to treat myopia, delay and control myopia progression, relieve visual fatigue, and improve naked eye vision.
[0003] During the treatment process, it is necessary to determine whether the user is the same before and after the treatment. Mixing different users during the treatment process may lead to a decrease in the treatment effect, and even different treatment parameters of different users may cause different light entering the eye, which may lead to safety risks. Therefore, it is necessary to avoid the possibility of different treatment users using the same device for treatment.
[0004] Therefore, there is an urgent need for a mechanism that can identify and verify user identities to avoid mixed use of devices, which can not only meet the current market needs but also improve the product experience. Summary of the invention
[0005] The embodiments of the present invention provide a control method and an electronic device for applying light to the eyes. The control method verifies the identity of the user before controlling the light source to output light. The method has a mechanism to avoid mixed treatments, prevents the light emitted by the light source from entering the eyes of the non-corresponding user, ensures the safety of the electronic device, and improves the user experience.
[0006] According to one aspect of the present invention, a control method for light acting on eyes is provided, which is applied to an electronic device, wherein the electronic device has a light source, a camera unit, and a proximity sensor, and when a user is using the electronic device, the light emitted by the light source is guided to the user's eyes, and the control method comprises:
[0007] Acquire first identity information, where the first identity information is acquired by a user inputting into the electronic device;
[0008] determining whether first historical information is included according to the first identity information, where the first historical information is historically stored by the electronic device and includes historical pupil distance information of the user;
[0009] If it contains:
[0010] Acquire a first position signal, where the first position signal is generated by the proximity sensor when a user approaches the electronic device;
[0011] determining a first execution instruction according to the first position signal, wherein the first execution instruction instructs the camera unit to acquire first eye information, wherein the first eye information is current first pupil distance information of the user;
[0012] Determining whether a first condition is met according to the historical pupil distance information and the first pupil distance information, wherein the first condition is that a comparison between the first pupil distance information and the historical pupil distance information meets a first expected threshold;
[0013] If the condition is satisfied, a second execution instruction is determined, wherein the second execution instruction instructs the light source to output light and direct the light to the user's eyes, and the first pupil distance information is overwritten with the historical pupil distance information and stored;
[0014] The light source operates in a state of outputting light until the operation ends.
[0015] Optionally, before the step of acquiring the first position signal, the method further includes:
[0016] Obtaining a first gear adjustment signal;
[0017] A third execution instruction is determined according to the first gear adjustment signal, wherein the third execution instruction indicates that the light output by the light source has a peak power and a working state matching the first identity information, wherein the working state includes guiding light to one or both eyes of the user.
[0018] Optionally, after the second execution instruction instructs the light source to output light and direct it to the user's eyes, and the first pupil distance information is overwritten with the historical pupil distance information and stored, the method further includes:
[0019] Acquire the second eye information in real time, where the second eye information is the current eye state of the user, including one or any combination of the second pupil distance information, the eye-opening state, the eye-closing state, and the pupil size;
[0020] Determine whether to continue executing the second execution instruction according to the second eye information.
[0021] Optionally, the step of determining whether to continue executing the second execution instruction according to the second eye information includes:
[0022] Determine whether the second pupil distance information and the first pupil distance information meet a second condition, where the second condition is that a comparison between the second pupil distance information and the first pupil distance information meets a second expected threshold;
[0023] determining whether the pupil size satisfies a third desired threshold;
[0024] If the second expected threshold or the third expected threshold is not met, or the user is in a state of closing eyes, stopping the execution of the second execution instruction;
[0025] If the second expected threshold and the third expected threshold are met and the user is in an eyes-open state, the second execution instruction continues to be executed.
[0026] Optionally, after the second execution instruction instructs the light source to output light and direct it to the user's eyes, and the first pupil distance information is overwritten with the historical pupil distance information and stored, the method further includes:
[0027] Acquire a second position signal, where the second position signal is generated by the proximity sensor when the user moves away from the electronic device;
[0028] A third execution instruction is determined according to the second position signal, wherein the third execution instruction instructs the light source to execute a second output mode, wherein the second output mode includes reducing or shutting down the power of the light source.
[0029] Optionally, after the third execution instruction instructs the light source to execute a second output mode, wherein the second output mode includes a step of reducing or turning off the power of the light source, the control method further includes:
[0030] Continue to execute all steps after obtaining the first position signal.
[0031] Optionally, after the third execution instruction instructs the light source to execute a second output mode, wherein the second output mode includes a step of reducing or turning off the power of the light source, the control method further includes:
[0032] Determine the duration of the second output mode, and when the duration exceeds a preset value, determine a fourth execution instruction, wherein the fourth execution instruction instructs the electronic device to shut down.
[0033] Optionally, after the step of judging whether a first condition is satisfied according to the historical pupil distance information and the first pupil distance information, wherein the first condition is a first expected threshold for comparing the first pupil distance information with the historical pupil distance information, the method further includes:
[0034] If the first expected threshold is not met, a fifth execution instruction is determined, and the fifth execution instruction instructs the electronic device to output alarm information.
[0035] Optionally, after the step of the light source operating in the light output state until the operation ends, the step further includes:
[0036] The user's second pupil distance information is obtained, where the second pupil distance information is the pupil distance information obtained after the light source ends operation, and the second pupil distance information is overwritten with the historical pupil distance information and stored.
[0037] According to another aspect of the present invention, an electronic device is provided, the electronic device having a light source, a camera unit and a proximity sensor, and when a user is using the electronic device, light emitted by the light source is guided to the user's eyes, and the electronic device further includes:
[0038] A first identity information acquisition unit, configured to acquire first identity information, wherein the first identity information is acquired by a user inputting into the electronic device;
[0039] a first historical information determining unit, connected to the first identity information acquiring unit, and configured to determine whether first historical information is contained according to the first identity information, the first historical information being historically stored by the electronic device and including historical pupil distance information of the user;
[0040] a first position signal determining unit, connected to the proximity sensor, and configured to obtain a first position signal, wherein the first position signal is generated by the proximity sensor when a user approaches the electronic device;
[0041] a first execution instruction determining unit, connected to the first position signal determining unit, and configured to determine a first execution instruction according to the first position signal, wherein the first execution instruction instructs the camera unit to obtain first eye information, wherein the first eye information is current first pupil distance information of the user;
[0042] A first condition judgment unit, configured to judge whether a first condition is satisfied according to the first pupil distance information and the historical pupil distance information, wherein the first condition is that a comparison between the first pupil distance information and the historical pupil distance information satisfies a first expected threshold;
[0043] a second execution instruction determination unit, connected to the light source, and configured to determine a second execution instruction when the first condition is met, wherein the second execution instruction instructs the light source to output light and guide the light to the user's eyes, and to overwrite the first pupil distance information with the historical pupil distance information and store the information;
[0044] The light source operation unit is used to control the light source to operate in a light output state until the operation ends.
[0045] Optionally, it also includes:
[0046] A first gear adjustment signal acquisition unit, used to acquire a first gear adjustment signal;
[0047] A third execution instruction determination unit is used to determine a third execution instruction according to the first gear signal, wherein the third execution instruction indicates that the light output by the light source has a peak power and a working state matching the first identity information, and the working state includes guiding light to one or both eyes of the user.
[0048] Optionally, it also includes:
[0049] The second eye information acquisition unit is used to acquire the second eye information, where the second eye information is the current eye state of the user, including one or a combination of the second pupil distance information, the eye-opening state, the eye-closing state and the pupil size;
[0050] The second execution instruction determination unit is further used to determine whether to execute the second execution instruction according to the second eye information.
[0051] Optionally, the second execution instruction determining unit further includes:
[0052] A second condition judgment unit, configured to judge whether the second pupil distance information and the first pupil distance information satisfy a second condition, wherein the second condition is that a comparison between the second pupil distance information and the first pupil distance information satisfies a second expected threshold;
[0053] A third condition judgment unit, used to determine whether the pupil size meets a third expected threshold;
[0054] When the second condition judgment unit determines that the second condition judgment unit is negative or the third condition judgment unit determines that the second condition judgment unit is negative, or the user is in a closed-eye state, the second execution instruction determination unit stops executing the second execution instruction;
[0055] When the second condition determination unit determines as yes and the third condition determination unit determines as yes, and the user is in the eyes-open state, the second execution instruction determination unit continues to execute the second execution instruction.
[0056] Optionally, it also includes:
[0057] a second position signal determining unit, connected to the proximity sensor, and configured to obtain a second position signal, wherein the second position signal is generated by the proximity sensor when the user is away from the electronic device;
[0058] A third execution instruction determination unit is connected to the second position signal determination unit and the light source, and is used to determine a third execution instruction according to the second position signal, wherein the third execution instruction instructs the light source to execute a second output mode, and the second output mode includes reducing or shutting down the power of the light source.
[0059] Optionally, after the third execution instruction determination unit executes the third execution instruction, the first position signal determination unit, the first execution instruction determination unit, the first condition judgment unit, the second execution instruction determination unit and the light source operation unit perform the next operation.
[0060] Optionally, it also includes:
[0061] The second output mode duration determination unit is used to determine the duration of the second output mode, and when the duration exceeds a preset value, determine a fourth execution instruction, wherein the fourth execution instruction instructs the operation of the electronic device to be shut down.
[0062] Optionally, it also includes:
[0063] A fifth execution instruction determining unit is used to determine a fifth execution instruction when the first expected threshold is not met, wherein the fifth execution instruction instructs the electronic device to output alarm information.
[0064] Optionally, it also includes:
[0065] A second pupil distance information acquisition unit, used to acquire second pupil distance information of the user, where the second pupil distance information is pupil distance information acquired after the light source ends operation;
[0066] A storage unit is used to overwrite the second pupil distance information with the historical pupil distance information and store it.
[0067] The embodiment of the present invention provides a control method and electronic device for light acting on the eyes. The user's identity information is first determined. When the user's identity information corresponds to the first identity information, the next stage is started. When the proximity sensor of the electronic device detects that the user is close to the electronic device and generates a first position signal, the camera unit obtains the user's first eye information according to the first position signal. When the difference between the user's first pupil distance information and the historical pupil distance information meets the first expected threshold, that is, the pupil distance information difference is within the normal range, the light source emits light to the user's eyes according to the light output mode corresponding to the user. The light source runs until the running time ends, and the first pupil distance information during this use is overwritten with the historical pupil distance information for the convenience of next use. The embodiment of the present invention identifies the user's identity information, and only controls the light source to emit light to the user's eyes when the identity information corresponds, and treats the user's eyes. When multiple users use the same electronic device, the light emitted by the light source is prevented from entering the eyes of non-corresponding users, thereby ensuring the safety of the electronic device.
[0068] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0070] Figure 1 A flow chart of a first method for controlling light acting on the eye provided by an embodiment of the present invention;
[0071] Figure 2 A flow chart of a second method for controlling light acting on the eye provided by an embodiment of the present invention;
[0072] Figure 3 A flow chart of a third method for controlling light acting on the eye provided by an embodiment of the present invention;
[0073] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0074] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only 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 should fall within the scope of protection of the present invention.
[0075] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0076] Embodiment 1
[0077] Figure 1 A flowchart of a first method for controlling light acting on the eyes provided by an embodiment of the present invention. The method can be executed by an electronic device, which can be implemented in the form of hardware and / or software. The electronic device includes a light source, a camera unit, and a proximity sensor. When the user is in use, the light emitted by the light source is guided to the user's eyes. Figure 1 , the method comprising:
[0078] S110: Obtain first identity information.
[0079] Among them, the first identity information may include an account password pre-set by the user to represent the user identity information. Further, the first identity information can be obtained by the user inputting into the electronic device, and the user's input method can be set according to actual needs, and the embodiment of the present invention does not impose specific restrictions on this. For example, on the mobile terminal, the parent account needs to set the parent login password and the child account program password. The parent account login password is used to log in to the electronic device, so as to obtain the latest information of the child account on the terminal; the child account program password is used to start the treatment plan in the therapeutic device. Each child account has an independent identity identification number (Identity Document, ID). After setting the child account program password, it will be associated with this independent ID. The user needs to enter the correct program password of the currently selected child account before entering the subsequent stage. Different users correspond to different light output modes, so it is necessary to confirm the user's identity information to ensure that the user used is consistent with the user identity corresponding to the light output mode. After obtaining the first identity information, it is determined that the user used is the user corresponding to the first identity information, and the instructions of each stage are executed in sequence according to the light source output mode of the user corresponding to the first identity information; when the corresponding first identity information cannot be obtained, that is, the user used is not the user corresponding to the first identity information, the electronic device will not continue to execute the instructions of each stage. By determining the identity of the user according to the first identity information, it is possible to prevent the light emitted by the light source from entering the eyes of an irrelevant user, thereby ensuring the safety of the electronic device.
[0080] S120: Determine whether the first historical information is included according to the first identity information.
[0081] The first historical information includes the user's historical pupil distance information, and the first historical information is stored in the electronic device. In the stage of determining the user's identity according to the identity information, the electronic device will not turn on the camera unit, and cannot obtain the user's pupil distance information according to the camera unit. Therefore, it is necessary to determine the user's historical pupil distance information stored in the electronic device, and the electronic device can obtain instructions for each stage according to the stored historical pupil distance information.
[0082] If the electronic device contains the first historical information, S130 is executed.
[0083] S130: Acquire a first position signal.
[0084] The first position signal is a trigger signal of the user approaching the electronic device, and the first position signal can be a low-level signal or a high-level signal generated by the proximity sensor, which can be designed according to actual conditions. When the electronic device detects that the user is approaching the electronic device and obtains the first position signal, the electronic device executes the instructions of each stage in sequence.
[0085] S140. Determine a first execution instruction according to the first position signal.
[0086] The first execution instruction is to instruct the camera unit to obtain the first eye information of the user, and the first eye information is the current first pupil distance information of the user. When the first position signal is obtained, it is detected that the user is close to the electronic device. At this time, it is necessary to determine the light source output mode corresponding to the user according to the first eye information of the user, so it is necessary to turn on the camera unit to obtain the first eye information of the user.
[0087] S150: Determine whether a first condition is met based on the historical pupil distance information and the first pupil distance information.
[0088] Among them, the historical pupil distance information is the first historical information stored in the electronic device, and the first condition is that the comparison between the first pupil distance information and the historical pupil distance information meets the first expected threshold value, and the first expected threshold value is the error range of the difference between the first pupil distance information and the historical pupil distance information, and the error range is usually between 1mm and 2mm. The specific first expected threshold value can be selected according to the actual situation. When the difference between the first pupil distance information and the historical pupil distance information meets the first expected threshold value, the difference between the pupil distance information used by the user this time and the last time is within the normal range, and the subsequent instructions can be executed; when the difference between the first pupil distance information and the historical pupil distance information is greater than the first expected threshold value, the pupil distance information used by the user this time is too different from the pupil distance information used last time, and it is impossible to enter the next stage, so as to prevent the light emitted by the light source from entering the eyes of the non-corresponding user and ensure the safety of the electronic device.
[0089] If the historical pupil distance information and the first pupil distance information meet the first condition, S160 is executed.
[0090] S160: Determine a second execution instruction.
[0091] Among them, the second execution instruction instructs the light source to perform light output and be guided to the user's eyes, and the first pupil distance information is overwritten with the historical pupil distance information and stored. When the difference between the historical pupil distance information and the first pupil distance information is within the normal range, the electronic device can enter the next stage, and the electronic device enters the light source output mode. During this use, the user's first pupil distance information is overwritten with the historical pupil distance information, which is convenient for the user to use the historical pupil distance information accurately the next time, and reduce the user's pupil distance information changes greatly when the time difference between two uses is too long, resulting in the inability to use normally.
[0092] S170, the light source operates in a light output state until the operation ends.
[0093] The light source emits light to the user's eyes according to the light output mode corresponding to the user, and runs until the running time ends. For example, in one embodiment, the light source runs in the output state for 3 minutes before the treatment ends and the light source is turned off.
[0094] Exemplarily, the light output includes two output modes. The light source includes a first output mode in the light output state. The second execution instruction instructs the light source to execute the first output mode so that the light is guided to the user's eyes. The light in the first output mode has a first execution light and a second execution light output in sequence, and the output power of the first execution light is less than the output power of the second execution light. First, the user's eyes are irradiated with a first execution light with a relatively low power. At this time, the user is exposed to the light emitted by the light source for the first time, and it takes time to adapt. The user can gradually adapt to the light emitted by the light source irradiating the eyes to ensure adaptability to the light, thereby improving the user's experience and comfort with the electronic device. It should be emphasized that when the light irradiates the eyes, the pupil will shrink autonomously. In this embodiment, in the first output mode, the user's eyes receive the light emitted by the light source, and it takes time to adapt to the irradiation of the light. The size of the user's pupil will be relatively reduced. Using the first execution light with a relatively low output power can ensure the safety of the user's eyes while guiding the pupil to a pupil size close to that when the second execution light is irradiated. At this time, whether the first condition is met is determined based on the historical pupil distance information and the first pupil distance information, so that the user's pupil distance information can be more accurately identified, the accuracy of electronic device recognition is improved, and the light emitted by the light source is prevented from entering the eyes of non-corresponding users; after confirming the user's identity information, the user's eyes are irradiated with the second execution light, and red light with a wavelength of 630nm-700nm is used to achieve the purpose of treating myopia, delaying and controlling the progression of myopia, relieving visual fatigue, and improving naked eye vision. By irradiating the eyes with two powers of light, we can ensure the safety of the equipment while guiding the user's eyes to reach the optimal pupil size to ensure the effectiveness of the light during the treatment phase and improve the treatment effect.
[0095] The following is a table showing changes in pupil size of 50 test persons under different light intensities, with the reference pupil diameter set to 4 mm. The pupil diameters of the test persons are measured under no light, under the first execution light with a power of 0.03 mW, and under the second execution light with a power of 0.2 mW to illustrate the effect of the solution provided by the present invention. The test data are shown below:
[0096]
[0097]
[0098]
[0099] From the test data in the table above, it can be seen that under the first execution light, the pupil diameter in the early stage is closer to the pupil diameter in the treatment stage, and there is a huge difference with the no-light condition. Under the no-light condition, the average pupil diameter of the 50 test groups is 5.9mm, the average pupil diameter under the first execution light condition is 3.3mm, and the average pupil diameter under the second execution light condition is 3.0mm. For the convenience of calculation, assuming that the pupil is a standard circle, the average pupil area of the 50 test groups under the no-light condition is 27.8mm 2 , the average pupil area under the first execution light condition is 8.8mm 2 The average pupil area under the second execution light condition is 7.2mm 2 If the pupil area under the condition of no illumination, that is, the pupil size collected before illumination, is used as the input parameter for calculating the light power emitted by the light source 401, the actual output light power is only 25.9% of the treatment design power, and the treatment effect is greatly reduced; the eye image information capture under the first execution light illumination condition is added, that is, the image information of the user's eyes is collected under the first execution light illumination condition, as the input parameter of the light power emitted by the light source 401, at this time, the actual output light power reaches 81.8% of the treatment design power, and the treatment effect is close, and then fine-tuning is performed according to the adjustment strategy during the treatment process to ensure safety while achieving the best treatment effect, that is, there is a power fluctuation adjustment during the treatment stage to achieve the matching of the light power entering the eye with the pupil size in the real state, thereby achieving the best treatment effect during the entire light entering the eye process.
[0100] Exemplarily, the light source is a red laser emitting at a wavelength of 630-670 nm.
[0101] Exemplarily, light emitted by the light source is directed to the user's pupil.
[0102] A control method for light acting on the eyes provided by an embodiment of the present invention first determines the identity information of the user, and when the identity information of the user corresponds to the first identity information, the next stage is started, the proximity sensor of the electronic device detects that the user is close to the electronic device and generates a first position signal, the camera unit obtains the first information of the user's eyes according to the first position signal, and when the difference between the user's first pupil distance information and the historical pupil distance information meets the first expected threshold, that is, the pupil distance information difference is within the normal range, the light source emits light to the user's eyes according to the light output mode corresponding to the user, the light source runs until the running time ends, and the first pupil distance information of this use is overwritten with the historical pupil distance information for the convenience of next use. The embodiment of the present invention identifies the identity information of the user, and only controls the light source to emit light to the user's eyes when the identity information corresponds, and treats the user's eyes. When multiple users use the same electronic device, the light emitted by the light source is prevented from entering the eyes of non-corresponding users, thereby ensuring the safety of the electronic device.
[0103] Based on the above solutions, this first embodiment also provides a variety of optional embodiments, modified embodiments or specific embodiments.
[0104] Specifically, in a specific embodiment, the above step S130, obtaining the first position signal, also includes:
[0105] S121. Obtain a first gear adjustment signal.
[0106] S122. Determine a third execution instruction according to the first gear adjustment signal.
[0107] The third execution instruction indicates that the light output by the light source has a peak power and a working state that match the first identity information, and the working state includes guiding the light to one or both eyes of the user.
[0108] Among them, the first gear adjustment signal is the gear output of the light source of the electronic device determined according to the first identity information. Exemplarily, the electronic device can be set with three gears to adapt to the treatment of people of different age groups and different degrees of myopia and amblyopia. When adjusting the gear, both sides of the gear can be turned on or only one side of the gear can be turned on, and the gear on the other side can be closed to adapt to the treatment of people with myopia and amblyopia of different degrees of severity in both eyes of the user. For example, if the user's right eye is myopic and the left eye is normal, the user can only turn on the gear of the right eye and turn off the gear of the left eye to achieve the treatment purpose of the light source irradiating only the right eye.
[0109] Specifically, in a specific embodiment, after the above step S150, judging whether the first condition is met according to the historical pupil distance information and the first pupil distance information, further includes: if not, executing S180;
[0110] S180: Determine the fifth execution instruction.
[0111] Among them, the fifth execution instruction instructs the electronic device to output an alarm message. If the difference between the historical pupil distance information and the first pupil distance information does not meet the first expected threshold, the pupil distance information of the user during this use is too different from the pupil distance information during the last use, and the user who uses this time may not be the same user as the user who used last time, and it is impossible to enter the next stage, so the electronic device sends an alarm message to ensure the safety of the electronic device. In specific implementation, the alarm message can be a voice reminder message.
[0112] Specifically, in a specific embodiment, after the above step S170, the light source operates in the state of light output until the operation ends, it also includes:
[0113] S190: Obtain user's second pupil distance information.
[0114] The second pupil distance information is the current pupil distance information of the user obtained by the camera unit of the electronic device after the light source ends. The second pupil distance information is overwritten with the historical pupil distance information and stored. This is convenient for the user to use the historical pupil distance information accurately the next time, and reduces the problem of the user's pupil distance information changing too much when the time difference between two uses is too long, resulting in the inability to use normally.
[0115] Embodiment 2
[0116] Figure 2 This is a flow chart of a second method for controlling light acting on the eye provided by an embodiment of the present invention. This second embodiment is optimized based on the above embodiments. Figure 2 , a method for controlling light acting on the eye provided by an embodiment of the present invention includes:
[0117] S201. Obtain first identity information.
[0118] S202: Determine whether the first historical information is included according to the first identity information.
[0119] If the electronic device contains the first historical information, S203 is executed.
[0120] S203: Acquire a first position signal.
[0121] S204: Determine a first execution instruction according to the first position signal.
[0122] S205: Determine whether a first condition is met according to the historical pupil distance information and the first pupil distance information.
[0123] If the historical pupil distance information and the first pupil distance information meet the first condition, execute S206.
[0124] S206: Determine a second execution instruction.
[0125] S207: Acquire the second eye information in real time.
[0126] The second eye information is the current eye state of the user, including one or any combination of the second pupil distance information, the eye-opening state, the eye-closing state and the pupil size.
[0127] S208: Determine whether the second pupil distance information and the first pupil distance information satisfy a second condition.
[0128] Among them, the second condition is that the comparison between the second pupil distance information and the first pupil distance information meets the second expected threshold. The second pupil distance information is the user's current pupil distance information, and the second expected threshold is the error range of the difference between the second pupil distance information and the first pupil distance information. When the difference between the second pupil distance information and the first pupil distance information meets the second expected threshold, the user's current pupil distance information difference is within the normal range, the user's eyes are currently in a normal state, and subsequent instructions can be executed; when the difference between the second pupil distance information and the first pupil distance information does not meet the second expected threshold, the user's current pupil distance information difference is too large, the user's eyes are currently in an abnormal state, and it is necessary to suspend the second execution instruction, turn off the light source light output mode, and protect the user's eye safety.
[0129] If the comparison between the second pupil distance information and the first pupil distance information meets the second expected threshold, execute S209; if the comparison between the second pupil distance information and the first pupil distance information does not meet the second expected threshold, execute S213.
[0130] S209: Determine whether the pupil size meets a third expected threshold.
[0131] Among them, the third expected threshold is the normal range of the user's pupil size. When the user's pupil size meets the normal range, the user's eyes are in a normal state and subsequent instructions can be executed; when the user's pupil size does not meet the normal range, the user's eyes are in an abnormal state, and it is necessary to pause the second execution instruction and turn off the light source output mode to protect the user's eye safety.
[0132] If the pupil size meets the third expected threshold, execute S210; if the pupil size does not meet the third expected threshold, execute S213.
[0133] S210: Determine whether the user's current eye state is an open eye state.
[0134] Among them, when the user's current eye state is open, the light output by the light source of the electronic device can illuminate the user's eyes, the user's eyes are in a normal state, and subsequent instructions can be executed; when the user's current eye state is closed, the light output by the light source of the electronic device cannot illuminate the user's eyes, the user's eyes are in an abnormal state, and it is necessary to pause the second execution instruction, turn off the light output mode of the light source, terminate the treatment timing, and it is also beneficial to reduce energy consumption.
[0135] If the user's current eye state is an open eye state, execute S211; if the user's current eye state is not an open eye state, execute S213.
[0136] S211. Continue to execute the second execution instruction.
[0137] Among them, only when the comparison between the second pupil distance information and the first pupil distance information meets the second expected threshold, the pupil size meets the third expected threshold, and the user's current eye state is an open state, it is judged as a normal treatment stage, and the second execution instruction can continue to be executed.
[0138] S212: The light source operates in a light output state until the operation ends.
[0139] S213: Stop executing the second execution instruction.
[0140] Among them, as long as the comparison between the second pupil distance information and the first pupil distance information does not meet the second expected threshold, the pupil size does not meet the third expected threshold, and the user's current eye state is any of the closed eyes states, it means that the current eye state is abnormal, and the execution of the second execution instruction needs to be suspended to ensure the safety of the user's eyes.
[0141] Exemplarily, the electronic device can also be instructed to output a prompt message to prompt the user that the second eye information currently obtained does not match the user's eye data before the second execution instruction starts executing, and the treatment cannot be continued. The treatment will continue after the user's second eye information returns to the normal range.
[0142] An embodiment of the present invention provides a method for controlling light acting on the eyes. On the basis of the above embodiment, during the execution of a second execution instruction, the user's current second eye information is compared with the user's eye data before the second execution instruction starts to be executed. The second execution instruction can only be executed when the comparison between the second pupil distance information and the first pupil distance information meets the second expected threshold, the pupil size meets the third expected threshold, and the user's current eye state is an open eye state, thereby ensuring the safety of the user's eyes.
[0143] Embodiment 3
[0144] Figure 3 This is a flow chart of a third method for controlling light acting on the eye provided by an embodiment of the present invention. This third embodiment is optimized based on the above embodiments. Figure 3 , a method for controlling light acting on the eye provided by an embodiment of the present invention includes:
[0145] S301: Obtain first identity information.
[0146] S302: Determine whether the first historical information is included according to the first identity information.
[0147] If the electronic device contains the first historical information, S303 is executed.
[0148] S303: Acquire a first position signal.
[0149] S304: Determine a first execution instruction according to the first position signal.
[0150] S305: Determine whether a first condition is met according to the historical pupil distance information and the first pupil distance information.
[0151] If the historical pupil distance information and the first pupil distance information meet the first condition, execute S306; if the historical pupil distance information and the first pupil distance information do not meet the first condition, execute S311.
[0152] S306: Determine a second execution instruction.
[0153] S307: Acquire a second position signal.
[0154] The second position signal is a signal that the user is away from the electronic device, and the second position signal is generated by the proximity sensor. When the electronic device detects that the user is away from the electronic device and obtains the second position signal, the electronic device executes the instructions of each stage in sequence.
[0155] S308. Determine a third execution instruction according to the second position signal.
[0156] Among them, the third execution instruction instructs the light source to execute the second output mode, and the second output mode includes reducing or turning off the power of the light source. When the electronic device detects the second position signal that the user is away from the electronic device, the electronic device controls the light source to reduce the output power or turn it off, waiting for the user to approach again, thereby reducing the power consumption of the electronic device and extending the use time of the electronic device. Exemplarily, before the electronic device controls the light source to turn off, it controls the camera unit to obtain the pupil distance information of the user at this time, and overwrites the pupil distance information of the user at this time with the historical pupil distance information and stores it. It is convenient for the user to obtain accurate data of the historical pupil distance information when using it next time, and reduces the large change in the user's pupil distance information when the time difference between two uses is too long, resulting in the inability to use it normally.
[0157] If the proximity sensor detects the first position signal, the process returns to S304 ; if the proximity sensor does not detect the first position signal, the process executes S310 .
[0158] S309: The light source operates in a light output state until the operation ends.
[0159] S310, determining the duration of the second output mode, and determining a fourth execution instruction when the duration exceeds a preset value.
[0160] Among them, the fourth execution instruction is to instruct the operation of the electronic device to shut down. The preset value is the maximum duration of the second output mode set in advance. When the duration exceeds the preset value, the user has not returned for a long time, and the fourth execution instruction is executed to ensure safety and prevent the user's eyes from being affected when the user does not match. The preset value can be customized according to actual needs, for example, it can be 10 minutes, and the embodiment of the present invention does not make specific restrictions on this.
[0161] S311. Determine the fifth execution instruction.
[0162] The fifth execution instruction instructs the electronic device to output an alarm message. If the difference between the historical pupil distance information and the first pupil distance information does not meet the first expected threshold, the pupil distance information of the user during this use is too different from the pupil distance information during the last use, and the user who uses this time may not be the same user as the user who used last time, and it is impossible to enter the next stage, so the electronic device sends an alarm message to ensure the safety of the electronic device.
[0163] An embodiment of the present invention provides a method for controlling light acting on the eyes. On the basis of the above embodiment, during the execution of the second execution instruction, when the proximity sensor detects a second position signal that the user is away from the electronic device, a pause stage is added, and the electronic device controls the light source to reduce the output power or turn it off, waiting for the user to approach again, thereby reducing the power consumption of the electronic device and extending the use time of the electronic device. When the duration of the second position signal exceeds a preset value and the user has not returned for a long time, the fourth execution instruction is executed to ensure safety and prevent the user's eyes from being affected when the user is not matched.
[0164] Embodiment 4
[0165] In one embodiment, Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, referring to Figure 4 The electronic device includes a light source 401, a camera unit 402 and a proximity sensor 403, and when the user is in use, the light emitted by the light source 401 is guided to the user's eyes, and the electronic device also includes:
[0166] A first identity information acquisition unit 404, configured to acquire first identity information, where the first identity information is acquired by a user inputting into the electronic device;
[0167] A first history information determination unit 405, connected to the first identity information acquisition unit 404, for determining whether the first history information is contained according to the first identity information acquisition unit, the first history information being historically stored by the electronic device and including the user's historical pupil distance information;
[0168] A first position signal determining unit 406, connected to the proximity sensor 403, for acquiring a first position signal, the first position signal being generated by the proximity sensor when the user approaches the electronic device;
[0169] A first execution instruction determining unit 407 is connected to the first position signal determining unit 406 and is used to determine a first execution instruction according to the first position signal, wherein the first execution instruction instructs the camera unit to obtain first eye information, where the first eye information is the user's current first pupil distance information;
[0170] A first condition judgment unit 408, configured to judge whether a first condition is satisfied based on the first pupil distance information and the historical pupil distance information, wherein the first condition is that a comparison between the first pupil distance information and the historical pupil distance information satisfies a first expected threshold;
[0171] A second execution instruction determination unit 409, connected to the light source 401, is used to determine a second execution instruction when the first condition is met, the second execution instruction instructing the light source 401 to perform light output and be guided to the user's eyes, and to overwrite the first pupil distance information with historical pupil distance information and store it;
[0172] The light source operation unit 410 is used to control the light source 401 to operate in a light output state until the operation ends.
[0173] The electronic device provided in the embodiment of the present invention can execute the control method of light acting on the eye provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. The similarities can be referred to the above description.
[0174] Optionally, the electronic device further includes:
[0175] A first gear adjustment signal acquisition unit, used to acquire a first gear adjustment signal;
[0176] A third execution instruction determination unit is used to determine a third execution instruction according to the first gear signal, wherein the third execution instruction indicates that the light output by the light source has a peak power and a working state matching the first identity information, and the working state includes guiding the light to one or both eyes of the user.
[0177] Optionally, the electronic device further includes:
[0178] The second eye information acquisition unit is used to acquire the second eye information, where the second eye information is the current eye state of the user, including one or a combination of the second pupil distance information, the eye-opening state, the eye-closing state and the pupil size;
[0179] The second execution instruction determination unit is further used to determine whether to execute the second execution instruction according to the second eye information.
[0180] Optionally, the second execution instruction determining unit further includes:
[0181] A second condition judgment unit, used for judging whether the second pupil distance information and the first pupil distance information satisfy a second condition, wherein the second condition is that a comparison between the second pupil distance information and the first pupil distance information satisfies a second expected threshold;
[0182] A third condition judgment unit, used to determine whether the pupil size meets a third expected threshold;
[0183] When the second condition judgment unit determines that it is no or the third condition judgment unit determines that it is no, or the user is in a closed-eye state, the second execution instruction determination unit stops executing the second execution instruction;
[0184] When the second condition determination unit determines as yes and the third condition determination unit determines as yes, and the user is in the eyes-open state, the second execution instruction determination unit continues to execute the second execution instruction.
[0185] Optionally, the electronic device further includes:
[0186] a second position signal determining unit, connected to the proximity sensor, and configured to obtain a second position signal, the second position signal being generated by the proximity sensor when the user is away from the electronic device;
[0187] The third execution instruction determination unit is connected to the second position signal determination unit and the light source, and is used to determine a third execution instruction according to the second position signal, wherein the third execution instruction instructs the light source to execute a second output mode, and the second output mode includes reducing or shutting down the power of the light source.
[0188] Optionally, after the third execution instruction determination unit executes the third execution instruction, the first position signal determination unit, the first execution instruction determination unit, the first condition judgment unit, the second execution instruction determination unit and the light source operation unit perform a next operation.
[0189] Optionally, the electronic device further includes:
[0190] The second output mode duration determination unit is used to determine the duration of the second output mode, and when the duration exceeds a preset value, a fourth execution instruction is determined, and the fourth execution instruction instructs the operation of the electronic device to be shut down.
[0191] Optionally, the electronic device further includes:
[0192] The fifth execution instruction determining unit is used to determine a fifth execution instruction when the first expected threshold is not met, and the fifth execution instruction instructs the electronic device to output alarm information.
[0193] Optionally, the electronic device further includes:
[0194] A second pupil distance information acquisition unit is used to acquire the second pupil distance information of the user, where the second pupil distance information is the pupil distance information acquired after the light source ends operation;
[0195] The storage unit is used to overwrite the second pupil distance information with the historical pupil distance information and store it.
[0196] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for controlling the action of light on the eye, It is characterized in that Applied to an electronic device, the electronic device has a light source, a camera unit and a proximity sensor, and when a user is using the electronic device, the light emitted by the light source is guided to the user's eyes, and the control method includes: Acquire first identity information, where the first identity information is acquired by a user inputting into the electronic device; determining whether first historical information is included according to the first identity information, where the first historical information is historically stored by the electronic device and includes historical pupil distance information of the user; If it contains: Acquire a first position signal, where the first position signal is generated by the proximity sensor when a user approaches the electronic device; determining a first execution instruction according to the first position signal, wherein the first execution instruction instructs the camera unit to acquire first eye information, wherein the first eye information is current first pupil distance information of the user; Determining whether a first condition is met according to the historical pupil distance information and the first pupil distance information, wherein the first condition is that a comparison between the first pupil distance information and the historical pupil distance information meets a first expected threshold; If the condition is satisfied, a second execution instruction is determined, wherein the second execution instruction instructs the light source to output light and direct the light to the user's eyes, and the first pupil distance information is overwritten with the historical pupil distance information and stored; The light source operates in a state of outputting light until the operation ends.
2. The method for controlling light acting on the eye according to claim 1, It is characterized in that Before the step of acquiring the first position signal, the method further includes: Obtaining a first gear adjustment signal; A third execution instruction is determined according to the first gear adjustment signal, wherein the third execution instruction indicates that the light output by the light source has a peak power and a working state matching the first identity information, wherein the working state includes guiding light to one or both eyes of the user.
3. The method for controlling light acting on the eye according to claim 1, It is characterized in that After the second execution instruction instructs the light source to output light and guide it to the user's eyes, and the first pupil distance information is overwritten with the historical pupil distance information and stored, the method further includes: Acquire the second eye information in real time, where the second eye information is the current eye state of the user, including one or any combination of the second pupil distance information, the eye-opening state, the eye-closing state, and the pupil size; Determine whether to continue executing the second execution instruction according to the second eye information.
4. The method for controlling light acting on the eye according to claim 3, It is characterized in that The step of determining whether to continue to execute the second execution instruction according to the second eye information comprises: Determine whether the second pupil distance information and the first pupil distance information meet a second condition, where the second condition is that a comparison between the second pupil distance information and the first pupil distance information meets a second expected threshold; determining whether the pupil size satisfies a third desired threshold; If the second expected threshold or the third expected threshold is not met, or the user is in a state of closing eyes, stopping the execution of the second execution instruction; If the second expected threshold and the third expected threshold are met and the user is in an eyes-open state, the second execution instruction continues to be executed.
5. The method for controlling light acting on the eye according to claim 1, It is characterized in that After the second execution instruction instructs the light source to output light and guide it to the user's eyes, and the first pupil distance information is overwritten with the historical pupil distance information and stored, the method further includes: Acquire a second position signal, where the second position signal is generated by the proximity sensor when the user moves away from the electronic device; A third execution instruction is determined according to the second position signal, wherein the third execution instruction instructs the light source to execute a second output mode, wherein the second output mode includes reducing or shutting down the power of the light source.
6. The method for controlling light acting on the eye according to claim 5, It is characterized in that After the third execution instruction instructs the light source to execute a second output mode, wherein the second output mode includes a step of reducing or shutting down the power of the light source, the control method further includes: Continue to execute all steps after obtaining the first position signal.
7. The method for controlling light acting on the eye according to claim 5, It is characterized in that After the third execution instruction instructs the light source to execute a second output mode, wherein the second output mode includes a step of reducing or shutting down the power of the light source, the control method further includes: Determine the duration of the second output mode, and when the duration exceeds a preset value, determine a fourth execution instruction, wherein the fourth execution instruction instructs the electronic device to shut down.
8. The method for controlling light acting on the eye according to claim 1 or 6, It is characterized in that After the step of judging whether a first condition is satisfied according to the historical pupil distance information and the first pupil distance information, wherein the first condition is a first expected threshold value for comparing the first pupil distance information with the historical pupil distance information, the step further includes: If the first expected threshold is not met, a fifth execution instruction is determined, and the fifth execution instruction instructs the electronic device to output alarm information.
9. The method for controlling light acting on the eye according to claim 1, It is characterized in that After the step of operating the light source in a light output state until the operation ends, the step further includes: The user's second pupil distance information is obtained, where the second pupil distance information is the pupil distance information obtained after the light source ends operation, and the second pupil distance information is overwritten with the historical pupil distance information and stored.
10. An electronic device, It is characterized in that The electronic device comprises a light source, a camera unit and a proximity sensor, and when a user is using the electronic device, the light emitted by the light source is guided to the user's eyes. The electronic device further comprises: A first identity information acquisition unit, configured to acquire first identity information, wherein the first identity information is acquired by a user inputting into the electronic device; a first historical information determining unit, connected to the first identity information acquiring unit, and configured to determine whether first historical information is contained according to the first identity information, the first historical information being historically stored by the electronic device and including historical pupil distance information of the user; a first position signal determining unit, connected to the proximity sensor, and configured to obtain a first position signal, wherein the first position signal is generated by the proximity sensor when a user approaches the electronic device; a first execution instruction determining unit, connected to the first position signal determining unit, and configured to determine a first execution instruction according to the first position signal, wherein the first execution instruction instructs the camera unit to obtain first eye information, wherein the first eye information is current first pupil distance information of the user; A first condition judgment unit, configured to judge whether a first condition is satisfied according to the first pupil distance information and the historical pupil distance information, wherein the first condition is that a comparison between the first pupil distance information and the historical pupil distance information satisfies a first expected threshold; a second execution instruction determination unit, connected to the light source, and configured to determine a second execution instruction when the first condition is met, wherein the second execution instruction instructs the light source to output light and guide the light to the user's eyes, and to overwrite the first pupil distance information with the historical pupil distance information and store the information; The light source operation unit is used to control the light source to operate in a light output state until the operation ends.
11. The electronic device according to claim 10, It is characterized in that Also includes: A first gear adjustment signal acquisition unit, used to acquire a first gear adjustment signal; A third execution instruction determination unit is used to determine a third execution instruction according to the first gear signal, wherein the third execution instruction indicates that the light output by the light source has a peak power and a working state matching the first identity information, and the working state includes guiding light to one or both eyes of the user.
12. The electronic device according to claim 10, It is characterized in that Also includes: The second eye information acquisition unit is used to acquire the second eye information, where the second eye information is the current eye state of the user, including one or a combination of the second pupil distance information, the eye-opening state, the eye-closing state and the pupil size; The second execution instruction determination unit is further used to determine whether to execute the second execution instruction according to the second eye information.
13. The electronic device according to claim 12, It is characterized in that The second execution instruction determination unit further includes: A second condition judgment unit, configured to judge whether the second pupil distance information and the first pupil distance information satisfy a second condition, wherein the second condition is that a comparison between the second pupil distance information and the first pupil distance information satisfies a second expected threshold; A third condition judgment unit, used to determine whether the pupil size meets a third expected threshold; When the second condition judgment unit determines that the second condition judgment unit is negative or the third condition judgment unit determines that the second condition judgment unit is negative, or the user is in a closed-eye state, the second execution instruction determination unit stops executing the second execution instruction; When the second condition determination unit determines as yes and the third condition determination unit determines as yes, and the user is in the eyes-open state, the second execution instruction determination unit continues to execute the second execution instruction.
14. The electronic device according to claim 10, It is characterized in that Also includes: a second position signal determining unit, connected to the proximity sensor, and configured to obtain a second position signal, wherein the second position signal is generated by the proximity sensor when the user is away from the electronic device; A third execution instruction determination unit is connected to the second position signal determination unit and the light source, and is used to determine a third execution instruction according to the second position signal, wherein the third execution instruction instructs the light source to execute a second output mode, and the second output mode includes reducing or shutting down the power of the light source.
15. The electronic device according to claim 14, It is characterized in that After the third execution instruction determination unit executes the third execution instruction, the first position signal determination unit, the first execution instruction determination unit, the first condition judgment unit, the second execution instruction determination unit and the light source operation unit perform the next operation.
16. The electronic device according to claim 14, It is characterized in that Also includes: The second output mode duration determination unit is used to determine the duration of the second output mode, and when the duration exceeds a preset value, determine a fourth execution instruction, wherein the fourth execution instruction instructs the operation of the electronic device to be shut down.
17. The electronic device according to claim 10 or 15, It is characterized in that Also includes: A fifth execution instruction determining unit is used to determine a fifth execution instruction when the first expected threshold is not met, wherein the fifth execution instruction instructs the electronic device to output alarm information.
18. The electronic device according to claim 10, It is characterized in that Also includes: A second pupil distance information acquisition unit, used to acquire second pupil distance information of the user, where the second pupil distance information is pupil distance information acquired after the light source ends operation; A storage unit is used to overwrite the second pupil distance information with the historical pupil distance information and store it.
Citation Information
Cited By
Eye washing device
CN122701572A
