Light source control method and device, electronic equipment and storage medium

By configuring a variety of irradiation light types in the light source and adjusting the eye-entry power when the pupil is stable, the problem of unstable eye-entry power caused by changes in pupil size in the existing technology is solved, and the safety and effectiveness of phototherapy are improved.

CN118576909APending Publication Date: 2024-09-03DAYUE INNOVATION (SUZHOU) MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311787821.X
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

Technical Problem

It is difficult to effectively control the power of existing light sources entering the eye when the pupil size changes, resulting in insufficient safety and effectiveness. Especially when the pupil becomes larger, the power entering the eye is too high, and when the pupil becomes smaller, the power entering the eye is too low, and there is no eye adaptation in the early light adaptation stage. Poor light adaptability.

Method used

By configuring the light source to output at least two types of irradiation light, and adjusting the eye-entry power when the pupil state is stable, the eye-entry power of the first irradiation light is less than or equal to the second irradiation light, ensuring efficient irradiation after the pupil shrinks during the adaptation stage.

Benefits of technology

It achieves effective control and adjustment of the power of the irradiation light output by the light source entering the eye, improves the comfort, safety and effectiveness of the irradiation light, and ensures that the pupil receives an appropriate amount of light in a stable state to improve the treatment effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118576909A
    Figure CN118576909A
Patent Text Reader

Abstract

The invention discloses a light source control method and device, electronic equipment and a storage medium. The method is executed by the electronic equipment, the electronic equipment is used in cooperation with at least one set of light sources, the at least one set of light sources is used for providing at least two types of light for at least one eye, and the method comprises the steps that the light sources are controlled to output first irradiation light to irradiate the eyes; when it is determined that the pupil state stability condition is met, the light source is controlled to output second irradiation light to irradiate the eyes; wherein the in-eye power of the first irradiation light is smaller than or equal to that of the second irradiation light. The eye entering power of the irradiation light output by the light source can be effectively controlled and adjusted, and the eye entering comfort, safety and effectiveness of the irradiation light are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of optical technology, and in particular to a method and device for controlling a light source, an electronic device and a storage medium. Background Art

[0002] By irradiating the center, periphery and periorbital area of ​​the fundus with red light of a specific wavelength, it is possible to treat myopia, delay and control the progression of myopia, relieve visual fatigue and improve naked eye vision.

[0003] In the prior art, the laser light source usually forms a uniform circular light spot at a certain distance from the eye. The circular light spot covers the entire pupil. The red light that enters the pupil is effective light, which can be quantified by the power entering the eye. However, the pupil has a non-autonomous adjustment function. It will shrink in bright light and become larger in dim light. Under normal lighting conditions, the pupil diameter generally ranges from 2.5 to 5 mm. Under bright light conditions, the pupil diameter may be reduced to less than 3 mm, and under dim light conditions, the diameter can reach 5 to 7 mm. Under the condition of a certain output power of the light source, when the pupil diameter is 7 mm, the power entering the eye is 7.8 times that when the pupil diameter is 2.5 mm. When the light irradiates the eye, if the power entering the eye is too small, the effect of laser irradiation will be poor; if the power entering the eye is too high, it will cause discomfort to the eye and even cause safety accidents. Summary of the invention

[0004] The present invention provides a method, device, electronic device and storage medium for controlling a light source, so as to realize effective control and adjustment of the eye-entering power of the irradiation light output by the light source, thereby improving the safety and effectiveness of the irradiation light entering the eye.

[0005] In a first aspect, an embodiment of the present invention provides a method for controlling a light source, the method being performed by an electronic device, the electronic device being used in conjunction with at least one group of light sources, the at least one group of light sources being used to provide at least two types of light to at least one eye, the method comprising:

[0006] Controlling the light source to output a first irradiation light to irradiate the eyes;

[0007] When it is determined that the pupil state stability condition is met, controlling the light source to output a second illumination light to illuminate the eye;

[0008] The eye-entering power of the first illumination light is less than or equal to that of the second illumination light.

[0009] In a second aspect, an embodiment of the present invention further provides a light source control device, which is deployed in an electronic device, and the electronic device is used in conjunction with at least one group of light sources, and the at least one group of light sources is used to provide at least two types of light to at least one eye, and the device includes:

[0010] A first illumination light output module, used to control the light source to output a first illumination light to illuminate the eyes;

[0011] A second illumination light output module, used for controlling the light source to output a second illumination light to illuminate the eye when it is determined that the pupil state stability condition is met;

[0012] The eye-entering power of the first illumination light is less than or equal to that of the second illumination light.

[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for controlling a light source as described in any one of the embodiments of the present invention is implemented.

[0014] In a fourth aspect, an embodiment of the present invention further provides a storage medium storing computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute a method for controlling a light source as described in any one of the embodiments of the present invention.

[0015] The technical solution of the embodiment of the present invention is to configure the light source to emit at least two types of illumination light to at least one eye, and control the light source to output the first illumination light to illuminate the eye first, and then control the light source to output the second illumination light to illuminate the eye when the pupil state is stable, and the eye-entering power of the first illumination light is less than or equal to the second illumination light. The technical solution solves the problems in the prior art: when the output power of the light source remains constant, the enlarged pupil will lead to an increase in the eye-entering power, which is less safe; the smaller pupil will lead to a decrease in the eye-entering power, which is less effective; there is no early stage of light adaptation, and the eye has poor adaptability to light; it realizes effective control and adjustment of the eye-entering power of the illumination light output by the light source, and improves the comfort, safety and effectiveness of the illumination light entering the eye.

[0016] 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

[0017] 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.

[0018] Figure 1 is a flow chart of a method for controlling a light source provided in Embodiment 1 of the present invention;

[0019] Figure 2 is a flow chart of a method for controlling a light source provided in Embodiment 2 of the present invention;

[0020] Figure 3 is a structural schematic diagram of a phototherapy device provided in Embodiment 2 of the present invention;

[0021] Figure 4 is a flow chart of a method for controlling a light source provided by Embodiment 3 of the present invention;

[0022] Figure 5 This is a schematic diagram of the relationship between eye-entry power and pupil diameter provided in Embodiment 3 of the present invention;

[0023] Figure 6 is a schematic diagram of the relationship between output power and pupil diameter provided in Embodiment 3 of the present invention;

[0024] Figure 7 This is a flowchart of a light source control preparation stage provided in a specific applicable scenario 1 of the present invention;

[0025] Figure 8 This is a flow chart of a light source control operation phase provided in a specific applicable scenario 1 of the present invention;

[0026] Fig. 9 is a structural schematic diagram of a light source control device provided by a fourth embodiment of the present invention;

[0027] Fig.10 It is a structural schematic diagram of an electronic device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0028] 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.

[0029] 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.

[0030] Embodiment 1

[0031] Figure 1 A flowchart of a method for controlling a light source is provided for the first embodiment of the present invention. This embodiment can be applied to the case where the power of light output by the light source enters the eye when irradiating the eye. The method can be executed by a control device of the light source. The control device of the light source can be implemented in the form of hardware and / or software. The control device of the light source can be configured in an electronic device. The electronic device can be deployed in the phototherapy device or can be independent of the phototherapy device and can be pre-communicated with the phototherapy device. The electronic device is used in conjunction with at least one group of light sources, and the at least one group of light sources is used to provide at least two types of light to at least one eye.

[0032] like Figure 1 As shown, the method includes:

[0033] S110, controlling the light source to output a first illumination light to illuminate the eyes.

[0034] Herein, the light source refers to a device in a phototherapy device (such as a laser) that can emit laser. The light source is used in conjunction with an electronic device. The number of light sources is at least one group, and the light output by the light source irradiates at least one eye.

[0035] In a specific example, the number of light sources can be one group, and one group can include two light sources on the left and right sides. The left light source and the right light source can illuminate the two eyes at the same time, and respectively provide the same type of light: the first illumination light. When controlling the light source to illuminate the eyes, the left light source and / or the right light source can be turned on according to actual needs.

[0036] In another specific example, the number of light sources may be one group, and one group may include one light source, which can illuminate one eye when turned on. Alternatively, one group may include one light source, and the light source can illuminate one eye or both eyes at the same time through a light guide component inside the device, such as a beam splitter.

[0037] It should be noted that the above examples are merely illustrative of the number and type of light sources and the number of eyes that can be illuminated by the light sources, and can be flexibly set according to actual needs, and this embodiment does not limit this.

[0038] The first illumination light is one type of light output by the light source. In this embodiment, the light source is controlled to output the first illumination light to illuminate the eyes. Its functions are: first, it can enable the pupil to adapt to the light effectively under the illumination of the first illumination light, so that the user has an adaptation stage to the light, thereby reducing the sensitivity to light to further improve the comfort of use; second, under the illumination of the first illumination light, the pupil will shrink accordingly, and after a certain period of continuous illumination time, it will reach a relatively stable state to be closer to the pupil size when the second illumination light is used for illumination, and subsequent light illumination can be performed under the condition that the pupil size is relatively stable, thereby ensuring the effectiveness of subsequent light entering the eye and improving the treatment effect; in addition, after the first illumination light guides the pupil to shrink, the total amount of light entering the fundus is significantly less than the total amount of light entering the fundus in the unguided state, thereby ensuring the safety of the first illumination light during the illumination process and the second illumination light entering the eye through the first illumination light.

[0039] S120. When it is determined that the pupil state stability condition is met, control the light source to output a second illumination light to illuminate the eye.

[0040] The eye-entering power of the first illumination light is less than or equal to that of the second illumination light.

[0041] Among them, satisfying the pupil state stability condition means that the pupil size has tended to be stable under the irradiation of the first irradiation light, and the pupil size may include the pupil diameter, the pupil area, etc., and this embodiment does not limit the specific form of the pupil size. The second irradiation light irradiates the eye to achieve the purpose of treating myopia, delaying and controlling the progression of myopia, relieving visual fatigue, and improving naked eye vision.

[0042] In this embodiment, the eye-entering power of the first illumination light is less than or equal to the second illumination light, which can be achieved in a variety of ways. In a specific example, when the light source has an adjustable gear, and different gears correspond to different light output powers, the light source can be controlled to be adjusted to a lower gear, so that the output power of the light source is lower, and the first illumination light is output, so that the eye-entering power of the first illumination light is also lower; after the pupil state is stable, the light source can be controlled to be adjusted to a higher gear, so that the output power of the light source is higher, and the second illumination light is output, so that the eye-entering power of the second illumination light is also higher.

[0043] In another specific example, when the light source does not have a gear, the output power of the light source can be adjusted to first make the output power of the light source lower and output the first illumination light so that the power of the first illumination light entering the eye is also lower; after the pupil state is stable, the output power of the light source is increased and the second illumination light is output so that the power of the second illumination light entering the eye is also higher.

[0044] In another specific example, two groups of light sources can be set to respectively output a first illumination light and a second illumination light. One group of light sources outputs the first illumination light at a lower gear or is adjusted to a lower output power, so that the power of the first illumination light entering the eye is also lower; after the pupil state is stabilized, the other group of light sources outputs the second illumination light at a higher gear or is adjusted to a higher output power, so that the power of the second illumination light entering the eye is also higher.

[0045] In another specific example, one or two groups of light sources can be set, and a baffle can be set on the phototherapy device for use with the light source. When the light source is a group, the output power of the light source is maintained at a larger output power, and the baffle is set in the middle of the path of the light output by the light source to the eye. This setting can reduce the power of the light output by the light source in the process of penetrating the baffle, so that the power entering the eye is lower. It can be understood that the baffle is a shielding plate with light attenuation characteristics, which can control the intensity of light passing through the baffle within a certain range. After the pupil state is stable, the output power of the light source is kept unchanged and the baffle is removed, so that the power entering the eye can be increased. When the light source is two groups, it can be set to set a baffle in the middle of the light path of one group of light sources to provide a first irradiation light with a smaller power entering the eye. The other group of light sources is not provided with a baffle, and a second irradiation light with a larger power entering the eye is provided.

[0046] In this embodiment, the light source is first controlled to output the first illumination light, and the eye is illuminated with a smaller eye-entering power. After the pupil state is stable, the light source is controlled to output the second illumination light, and the eye is illuminated with a larger eye-entering power. This setting can make the pupil adapt effectively in the first stage, so that the eye can reduce its sensitivity to light, thereby improving the user's comfort; at the same time, under the irradiation of the first illumination light, the pupil will shrink accordingly, closer to the pupil state when the second illumination light is irradiated in the second stage, ensuring the effectiveness of the second illumination light entering the eye and improving the treatment effect; in addition, because the pupil shrinks under the irradiation of the first illumination light, the total amount of light entering the fundus is significantly less than the total amount of light entering the fundus in the unguided state, thereby ensuring the safety of light entering the eye through the first illumination light; the illumination lights with different eye-entering powers in the two stages cooperate with each other, which not only ensures safety, but also improves the treatment effect.

[0047] Furthermore, the first illumination light and the second illumination light have light continuity, and during illumination, the two types of light are outputted successively and uninterruptedly to ensure that the pupil changes continuously within a controllable range.

[0048] Furthermore, when the light source includes a first light source and a second light source, S110 can be implemented by the following steps: controlling the first light source to output a first illumination light to illuminate the eye; S120 can be implemented by the following steps: controlling the second light source to output a second illumination light to illuminate the eye.

[0049] This embodiment provides an implementation method of providing a first illumination light and a second illumination light respectively by two groups of light sources. Specifically, the first light source first provides a first illumination light with a lower eye power at a lower gear or adjusted to a lower output power, and when the first light source stops outputting the first illumination light, the second light source provides a second illumination light with a higher eye power at a higher gear or adjusted to a higher output power.

[0050] Furthermore, controlling the first light source to output the first illumination light to illuminate the eyes may also include: controlling the first light source to output the first illumination light to illuminate the eyes according to the first output power; controlling the first light source to increase the first output power of the first illumination light according to a preset frequency until the increased first output power is the same as the second output power of the second illumination light output by the second light source.

[0051] This embodiment provides an implementation method for gradually increasing the first output power of the first light source until the second output power of the second illumination light is reached. The preset frequency can be a fixed value, which is preset according to an empirical value, or can be calculated according to the difference between the initial first output power and the second output power, and a preset adjustment time period. This embodiment does not limit the setting method of the preset frequency.

[0052] In this embodiment, the output power of the first illumination light is gradually increased, so that the power of the first illumination light entering the eye is also in a gradually increasing state. At the same time, in combination with the description in the above embodiment, there is light continuity between the first illumination light and the second illumination light, and while the first output power of the first illumination light output by the first light source is increased to the second output power, the second light source is switched to output the second illumination light with the second output power, so that during the whole process from the first light source outputting the first illumination light to irradiate the eyes to switching to the second illumination light of the second light source, the pupil is always in a stable and controllable change state, and the pupil can effectively adapt to the second illumination light, thereby improving the safety of the second illumination light entering the eye.

[0053] Further, S110 can be implemented by the following steps: controlling the light source to output a first illumination light to illuminate the eyes according to a first output power; S120 can be implemented by the following steps: controlling the light source to output a second illumination light to illuminate the eyes according to a second output power; wherein the first output power is less than or equal to the second output power.

[0054] This embodiment provides an implementation method of providing a first illumination light and a second illumination light respectively through a group of light sources. Specifically, the light source is controlled to output the first illumination light with a smaller first output power, so that the eye-entering power of the first illumination light is smaller. The light source is controlled to output the second illumination light with a larger second output power, so that the eye-entering power of the second illumination light is higher.

[0055] Furthermore, controlling the light source to output the first illumination light to illuminate the eyes according to the first output power may also include: controlling the light source to output the first illumination light to illuminate the eyes according to the first output power; controlling the light source to increase the first output power of the first illumination light according to a preset frequency until the increased first output power is the same as the second output power.

[0056] This embodiment provides an implementation method of gradually increasing the first output power of the first illumination light until the second output power of the second illumination light is reached. The setting method of the preset frequency has been described above and will not be repeated here.

[0057] Similarly, when a group of light sources are used to provide the first illumination light and the second illumination light respectively, the first output power of the first illumination light is gradually increased. In combination with the above-mentioned embodiment, there is light continuity between the first illumination light and the second illumination light. The light source outputs the first illumination light at the first output power, and the first output power is gradually increased until the second output power. At this time, the illumination light output by the light source at the second output power is the second illumination light. This allows a smooth transition between the first illumination light and the second illumination light, the pupil is always in a stable and controllable state of change, the pupil can effectively adapt to the second illumination light, and the safety of the second illumination light entering the eye is improved.

[0058] Further, determining whether the pupil state stability condition is met may include: if it is determined that the duration of controlling the light source to output the first illumination light to illuminate the eye is greater than or equal to a preset time threshold, then determining that the pupil state stability condition is met.

[0059] This embodiment provides a specific method for determining the pupil state stability condition. It can be understood that after the light source outputs the first illumination light to illuminate the eye, the pupil will be relatively reduced under the illumination of the light, but after the first illumination light continues to illuminate for a period of time, the pupil will reach a relatively stable state. Therefore, it can be set that when the duration of the first illumination light irradiating the eye is greater than or equal to the preset time threshold, the pupil state stability condition is met, and at this time, the second illumination light is controlled to illuminate the eye.

[0060] When guiding the first irradiation light for different users, different preset time thresholds may be set. Specifically, the preset time threshold may be flexibly set according to the eye-entry power of the first irradiation light, the eye-entry power of the second irradiation light, a predetermined standard pupil size, and an expected treatment effect, etc., and this embodiment does not limit this.

[0061] Furthermore, in the above example, when the light source is adjusted to a lower gear or to a lower output power to output the first illumination light, and the light source is adjusted to a higher gear or to a higher output power to output the second illumination light, the expected gear or expected output power of the second illumination light can be determined based on the expected treatment effect, user selection, and previous treatment experience before controlling the light source to output the illumination light. Taking the example that the light source includes three gears, high-end, medium-end, and low-end, different expected gears of the second illumination light can correspond to the same or different gears of the first illumination light. For example, when the expected gears of the second illumination light are medium-end and low-end, the first illumination light gear can be determined to be low-end, and when the expected gear of the second illumination light is high-end, the first illumination light gear can be determined to be medium-end. This embodiment does not limit the relationship between the output powers of the first illumination light corresponding to the output powers of different second illumination lights.

[0062] The technical solution of the embodiment of the present invention is to configure the light source to emit at least two types of illumination light to at least one eye, and control the light source to output the first illumination light to illuminate the eye first, and then control the light source to output the second illumination light to illuminate the eye when the pupil state is stable, and the eye-entering power of the first illumination light is less than or equal to the second illumination light. The technical solution solves the problems in the prior art: when the output power of the light source remains constant, the enlarged pupil will lead to an increase in the eye-entering power, which is less safe; the smaller pupil will lead to a decrease in the eye-entering power, which is less effective; there is no early stage of light adaptation, and the eye has poor adaptability to light; it realizes effective control and adjustment of the eye-entering power of the illumination light output by the light source, and improves the comfort, safety and effectiveness of the illumination light entering the eye.

[0063] Embodiment 2

[0064] Figure 2This is a flow chart of another method for controlling a light source provided in the second embodiment of the present invention. Based on the above embodiments, this embodiment of the present invention further specifies the specific judgment process of the pupil state stability condition and the process of controlling the light source to output the second illumination light to illuminate the eyes.

[0065] like Figure 2 As shown, the method includes:

[0066] S210, controlling the light source to output a first illumination light to illuminate the eyes.

[0067] S220: Acquire at least two human eye images.

[0068] The human eye image is an image obtained by photographing the eye while the first illumination light is irradiating the human eye.

[0069] In this embodiment, while the first illumination light is irradiating the human eye, a human eye image is acquired in real time and processed by an image recognition algorithm, with the aim of determining the eye state and pupil size through the recognition result.

[0070] S230: Determine the pupil size corresponding to each human eye image, and calculate the average value of the pupil size corresponding to each human eye image.

[0071] In this embodiment, the pupil in each human eye image is identified and the pupil size is obtained. The pupil size can be represented by the pupil diameter, the pupil area, etc. Specifically, the pupil can be identified by an image recognition algorithm, and a neural network model can be pre-trained to obtain a pupil recognition model. The pupil in each human eye image is obtained by inputting the human eye image into the pupil recognition model.

[0072] In this embodiment, the average value of the pupil sizes corresponding to each human eye image is calculated, so as to facilitate the subsequent determination of the pupil state stability condition.

[0073] Furthermore, after acquiring at least two human eye images, before determining the pupil size corresponding to each human eye image, the eye state can be first identified based on each human eye image. The eye state may include open eyes, closed eyes, blinking, etc. After determining that the eye state is open eyes, the pupil size identification can be started.

[0074] After acquiring at least two images of the human eye, the eye state is first judged, and then the pupil size is identified when the eyes are open. This setting can reduce the pressure of image recognition, reduce the waste of computing power, and improve the efficiency of judging the stability of the pupil state.

[0075] S240: If it is determined that the differences between the pupil sizes corresponding to a preset number of consecutive individual eye images and the average value are all less than or equal to a preset difference threshold, it is determined that the pupil state stability condition is met.

[0076] In this embodiment, an implementation method for judging the stability condition of the pupil state by the pupil size in the human eye image acquired in real time is provided. It can be understood that when the pupil state tends to be stable, the pupil size is also in a relatively stable state, which is reflected in the human eye image acquired in real time, that is, the pupil size in multiple consecutive human eye images fluctuates in a small range around the average pupil size. The preset number and the preset difference threshold can be flexibly set according to actual needs. For example, the preset number can be 5, and the preset difference threshold can be set according to the standard pupil size of the user under normal lighting conditions. Specifically, under normal lighting conditions, the range of pupil diameter is generally 2.5 to 5 mm. If the standard pupil diameter of user A under normal lighting conditions is 2.5 mm, a relatively small preset difference threshold can be set, such as 0.05 mm. If the standard pupil diameter of user B under normal lighting conditions is 5 mm, a relatively large preset difference threshold can be set, such as 0.1 mm.

[0077] This embodiment also provides a method for determining the pupil state stability condition in parallel with S230-S240, specifically, determining the pupil size corresponding to each human eye image, and determining the pupil size-time curve, and if it is determined that the curvature of the pupil size-time curve is within a certain curvature range, it is determined that the pupil state stability condition is met. It can be understood that when the pupil size is in a relatively stable state, the pupil size-time curve is close to a parallel line parallel to the time axis, and the curvature fluctuates around 0.

[0078] S250: Determine a reference pupil size according to each eye image.

[0079] Among them, the reference pupil size is used to characterize the size of the pupil when the state tends to be stable under the irradiation of the first irradiation light, and is also used to determine the output power of the second irradiation light irradiating the eye. It can be understood that when the output power of the irradiation light remains unchanged, the eye-entry powers corresponding to different pupil sizes vary greatly, and the eye-entry power is an important parameter of the phototherapy equipment, and the treatment effect of the phototherapy equipment is measured by the eye-entry power. Under the premise that the eye-entry power can be quantified, different second irradiation light output powers are determined for different pupil sizes to ensure that different pupil sizes can reach the target eye-entry power. Therefore, this embodiment determines the reference pupil size based on the pupil size in each human eye image as a reference factor required to determine the output power of the second irradiation light.

[0080] Furthermore, S250 may include: taking the average value of pupil sizes whose difference with the average value is less than or equal to a preset difference threshold as a reference pupil size.

[0081] It can be understood that when it is determined in S240 that the pupil state stability condition is met, the average value is calculated as the reference pupil size based on the pupil size when the state tends to be stable, that is, the pupil size with a smaller difference from the average pupil size.

[0082] This embodiment also provides a reference pupil size calculation method parallel to S250, after determining that the pupil state stability condition is met, according to the pupil sizes in a preset number of consecutive human eye images, an average value is calculated as the reference pupil size. This embodiment does not limit the specific calculation method of the reference pupil size.

[0083] S260. Determine the output power of the second illumination light according to the reference pupil size.

[0084] It can be understood that, under the premise of a given target eye-entry power, the larger the reference pupil size, the larger the illumination area of ​​the pupil by the second illumination light. At this time, the output power of the second illumination light should be smaller when the reference pupil size is smaller, so as to ensure that the overall eye-entry power of the pupil is maintained at the target eye-entry power.

[0085] When the irradiation light is irradiated to the eye, the pupil will shrink to a certain extent to control the amount of light entering the eye, and the pupil size will deviate from the pupil size under normal lighting conditions. If the output power of the second irradiation light is calculated using the pupil size of the human eye under normal lighting, the calculated output power of the second irradiation light will be too small, thereby worsening the therapeutic effect of the second irradiation light.

[0086] In this embodiment, the pupil is irradiated with the first irradiation light, a reference pupil size is determined according to the pupil size after the pupil state is stabilized, and the output power of the second irradiation light is calculated using the reference pupil size. Since the pupil state under the irradiation of the first irradiation light is closer to the state when the second irradiation light is irradiated, the output power of the second irradiation light calculated using the reference pupil size is more accurate, so that the treatment effect of the second irradiation light is better.

[0087] Furthermore, S260 can be implemented by the following steps:

[0088] A1. Determine the eye entrance power matching the reference pupil size according to the preset calibrated pupil size, the calibrated eye entrance power matching the calibrated pupil size, and the reference pupil size;

[0089] Among them, the irradiation light output by the light source reaches the eye-entry plane position, and will pass through the air and a layer of transparent tube lens. The irradiation light reaching the eye-entry plane will be attenuated to a certain extent. The degree of attenuation is related to the material and light transmittance of the tube lens. Therefore, the light source will be calibrated before leaving the factory. Specifically, the power detection device is used to measure at the eye-entry plane and adjust the output power of the light source so that the eye-entry power of the calibrated pupil size is the calibrated eye-entry power.

[0090] The calibrated pupil size refers to the pupil size used when calibrating the light source, and the calibrated eye entrance power refers to the eye entrance power used when calibrating the light source. This embodiment does not limit the specific values ​​and value-taking methods of the calibrated pupil size and the calibrated eye entrance power.

[0091] Furthermore, the calibrated pupil size may correspond to a plurality of different calibrated eye-entry powers, and different degrees of treatment effects may be achieved under different calibrated eye-entry powers. Exemplarily, when the light source has gears, different light source gears correspond to different calibrated eye-entry powers.

[0092] Specifically, the eye power matching the reference pupil size can be calculated using the following formula: Where w represents the eye power matching the reference pupil size, w f represents the calibrated eye power, d represents the reference pupil diameter, and d f Represents the nominal pupil diameter.

[0093] The above formula shows that when the pupil size changes, the corresponding eye-entering power changes exponentially. Therefore, it also shows that the output power of the second illumination light calculated by the reference pupil size in this embodiment is more accurate than the output power of the second illumination light calculated by the pupil size of the human eye pupil under normal light.

[0094] A2. Determine the output power of the second illumination light according to the eye entrance power and a mapping relationship between the eye entrance power and the output power of the second illumination light.

[0095] Among them, due to the attenuation of the irradiation light, the output power of the irradiation light is usually higher than the eye-entering power, and the relationship between the output power and the eye-entering power can be calculated in a variety of ways and can be stored in the form of a table. Exemplarily, when the light source is calibrated, the relationship between the output power and the eye-entering power can be determined based on the calibrated eye-entering power and the light source output power when the eye-entering power of the calibrated pupil size is the calibrated eye-entering power.

[0096] Specifically, the relationship between the output power and the eye power during light source calibration can be expressed by the following formula: W = k × w f, where W represents the output power of the light source and k is the calibration coefficient. It can be seen that the output power is in direct proportion to the eye-entering power. The calibration coefficient k is obtained by calibration, and the calibration coefficient k is used to represent the mapping relationship between the eye-entering power and the output power of the second illumination light. After the calibration coefficient k is calculated, k is multiplied by the eye-entering power calculated in step A1 to obtain the output power of the second illumination light.

[0097] S270, controlling the light source to output the second illumination light to illuminate the eyes according to the output power of the second illumination light.

[0098] Calculating the output power of the second illumination light based on the reference pupil size when the pupil state is stable after illumination with the first illumination light can improve the effectiveness of the therapeutic effect of the second illumination light.

[0099] The technical solution of the embodiment of the present invention collects human eye images in real time when the light source outputs the first illumination light, and judges the pupil state and pupil size through the human eye images. The pupil size average is calculated based on the pupil size in each human eye image, and the pupil state is judged by the fluctuation of the pupil size in the human eye image obtained in real time around the pupil size average, and the pupil size in each human eye image can more intuitively reflect the pupil state, and judge whether the pupil state tends to be stable under the irradiation of the first illumination light. When the pupil state is stable, the reference pupil size is determined, and the eye-entry power of the reference pupil size is calculated based on the relationship between the reference pupil size and the calibrated pupil size, and the output power of the second illumination light is determined based on the relationship between the eye-entry power of the reference pupil size and the output power of the light source. Since the change of pupil size will cause the eye-entry power to change exponentially, the reference pupil size is closer to the pupil size when the second illumination light is actually irradiated. Therefore, the use of the reference pupil size to determine the eye-entry power and then determine the output power can improve the effectiveness and safety of the second illumination light.

[0100] Furthermore, Figure 3 A schematic diagram of the structure of a phototherapy device is provided, such as Figure 3As shown, the phototherapy device includes an electronic device 201, a power module 202, a right human eye image capture module 203, a left human eye image capture module 204, a right light source 205 and a left light source 206. Among them, the electronic device can be a CPU (Central Processing Unit), which is responsible for the control of human eye image capture, image recognition, light source output control, etc. The power module 202 is used to power the entire phototherapy device. The right human eye image capture module 203 and the left human eye image capture module 204 are respectively used for image capture of the right human eye and the left human eye. The captured human eye images are sent to the electronic device 201, and after the image recognition algorithm, the pupil state and pupil size are reflected. The right light source 205 and the left light source 206 are respectively used for the irradiation light output on the right and left sides, and the output intensity of the laser can be controlled by adjusting the duty cycle of the PWM (Pulse Width Modulation).

[0101] In this embodiment, the electronic device 201 controls the right light source 205 and / or the left light source 206 to output the first illumination light at a relatively small output power. At the same time, the electronic device 201 controls the right human eye image capture module 203 and / or the left human eye image capture module 204 to capture human eye images, and obtains each pupil size based on the captured human eye images, calculates the average pupil size, and determines whether the pupil state is stable based on the pupil size and the average value in the human eye image obtained in real time. When it is determined that the pupil state is stable, the electronic device 201 calculates the reference pupil size, and calculates the output power of the second illumination light based on the reference pupil size. The electronic device 201 controls the right light source 205 and / or the left light source 206 to output the second illumination light at the calculated output power.

[0102] In a specific example, in order to verify the effectiveness of this embodiment in improving the therapeutic effect of the second illumination light, human eye images of a certain number of test subjects were obtained under no illumination light, illumination of the first illumination light, and illumination of the second illumination light, and the pupil diameter was determined based on the human eye images. The calibrated pupil size was set to 4mm, the output power of the first illumination light output by the light source was set to a power that makes the calibrated eye-entering power 0.03mW, and the output power of the second illumination light output by the light source was set to a power that makes the calibrated eye-entering power 0.2mW. The average pupil diameter of the test subjects without illumination light was 5.9mm, and the average pupil area was 27.8mm. 2 The average pupil diameter under the first illumination light was 3.3 mm, and the average pupil area was 8.8 mm. 2 The average pupil diameter under the second illumination light was 3.0 mm, and the average pupil area was 7.2 mm. 2According to the above test results, if the output power of the second illumination light is calculated based on the pupil diameter without illumination light, the output power of the second illumination light can only reach 25.9% (7.2mm) of the output power corresponding to the optimal eye entrance power. 2 / 27.8mm 2 =25.9%), and if the output of the first illumination light guides the pupil size to be close to the pupil size when the second illumination light is irradiated, and the output power of the second illumination light is calculated according to the pupil diameter under the irradiation of the first illumination light, the output power of the second illumination light can reach 81.8% (7.2mm) of the output power corresponding to the optimal eye-entry power. 2 / 8.8mm 2 =81.8%), thereby greatly improving the therapeutic effect of the second irradiation light irradiation.

[0103] Embodiment 3

[0104] Figure 4 This is a flow chart of another method for controlling a light source provided in Embodiment 3 of the present invention. Based on the above embodiments, this embodiment of the present invention adds a process of controlling the light source to output a second illumination light to illuminate the eyes, and then performing real-time adjustment and exception handling.

[0105] like Figure 4 As shown, the method includes:

[0106] S310, controlling the light source to output a first illumination light to illuminate the eyes.

[0107] S320: When it is determined that the pupil state stability condition is met, control the light source to output a second illumination light to illuminate the eye.

[0108] S330, obtaining a real-time human eye image after the second illumination light enters the eye, and determining a real-time pupil size corresponding to the real-time human eye image.

[0109] After controlling the light source to output the first illumination light to illuminate the eye and guiding the pupil to reach a stable state close to the treatment effect, the light source is controlled to output the second illumination light to illuminate the eye to achieve the treatment effect. However, when the second illumination light illuminates the eye, the pupil state may change due to a variety of uncontrollable factors, such as blood pressure changes, external interference, etc., which may affect the change of the pupil to a certain extent. Therefore, in this embodiment, while the second illumination light is irradiating, the human eye image is obtained in real time to monitor the eye state and pupil size.

[0110] The specific methods of obtaining the human eye image, performing pupil recognition on the human eye image, and calculating the pupil size have been described in the above embodiments, and will not be repeated in this embodiment.

[0111] S340, determining whether the real-time pupil size is greater than or equal to a preset first pupil size threshold, if so, executing S350, otherwise executing S360.

[0112] The first pupil size threshold is determined according to the reference pupil size.

[0113] The specific method for obtaining the reference pupil size has been described in the above embodiments, and will not be repeated in this embodiment.

[0114] The first pupil size threshold is determined according to the reference pupil size. In a specific example, a proportional coefficient can be pre-set, and the product of the proportional coefficient and the reference pupil size threshold is used as the first pupil size threshold. In another specific example, different first pupil size thresholds can be determined for reference pupil sizes in different numerical intervals, and the corresponding first pupil size threshold is determined according to the numerical interval of the calculated reference pupil size.

[0115] In this embodiment, the method of determining the first pupil size threshold according to the reference pupil size is taken as an example to illustrate the method of determining the first pupil size threshold. Optionally, the first pupil size threshold can also be determined according to an empirical value, which is not limited in this embodiment.

[0116] In this embodiment, a first pupil size threshold is predetermined, and it is determined whether the real-time pupil size under the illumination of the second illumination light is greater than or equal to the first pupil size threshold. The reason is that when the pupil size increases, the amount of light entering the pupil area increases, and the eye-entering power increases exponentially. In order to ensure that the eye-entering power is in a stable state or within a controllable range, it is necessary to reduce the eye-entering power of the second illumination light.

[0117] S350, adjusting the second illumination light output by the light source.

[0118] The eye-entering power of the adjusted second illumination light when irradiating the eye is less than the eye-entering power of the second illumination light before adjustment.

[0119] Specifically, the eye-entering power of the second illumination light can be reduced by reducing the output power of the light source or lowering the light source gear. The eye-entering power of the second illumination light can also be reduced by setting a baffle in the middle of the light path of the light source. This embodiment does not limit the specific method of reducing the eye-entering power of the second illumination light.

[0120] Furthermore, S350 may include:

[0121] B1. determining a target output power of the second illumination light according to the real-time pupil size, the first pupil size threshold, and the current output power of the second illumination light;

[0122] In this embodiment, the output power of the second illumination light is reduced based on the first pupil size threshold value to reduce the eye-entering power.

[0123] Furthermore, B1 may include:

[0124] B11. determining a ratio between a target output power and a current output power according to a ratio of a square of a first pupil size threshold to a square of the real-time pupil size;

[0125] B12. Determine the target output power of the second illumination light according to the current output power of the second illumination light and the ratio between the target output power and the current output power.

[0126] Specifically, according to the formula It can be inferred that Wherein, w' represents the target output power, w represents the current output power, d' represents the first pupil size threshold, and d represents the real-time pupil size.

[0127] After the ratio between the target output power and the current output power is obtained, the product of the ratio and the current output power is used as the target output power.

[0128] B2. Control the light source to reduce the current output power of the second illumination light to the target output power of the second illumination light.

[0129] In this embodiment, the output power of the light source is controlled to be reduced to the target output power, so as to reduce the eye-entering power of the second illumination light.

[0130] In this embodiment, by comparing the real-time pupil size with the first pupil size threshold, when the real-time pupil size is greater than or equal to the first pupil size threshold, the output power of the light source is reduced, so that the eye power of the second illumination light can be kept in a relatively constant stable state, thereby ensuring the safety of the illumination light.

[0131] S360: Control the light source to maintain the current output power of the second illumination light.

[0132] Understandably, according to the formula and W = k × w f It can be seen that the output power of the light source is It can be seen that as the pupil diameter decreases, if the power entering the eye is to remain stable, the output power of the second illumination light needs to be increased, and the power entering the eye per unit area of ​​the pupil area will increase exponentially. Since the illumination area of ​​the illumination light covers not only the pupil, but also a part of the non-pupil part, the energy focused on the non-pupil part will also increase exponentially, bringing great safety hazards. Once the pupil or non-pupil part cannot withstand high-power irradiation, it will cause damage to the eye (including the black eye, white eye, fundus and other areas covered, passed or focused by the illumination light). Therefore, in this embodiment, when the real-time pupil size is less than the first pupil size threshold, the current output power of the light source is kept unchanged, which can effectively ensure the safety of the eyes during the irradiation process and limit the risk of eye damage caused by excessive output power of the light source.

[0133] This embodiment takes the example of a light source with three levels of power adjustment to illustrate the relationship between the eye-entering power and the pupil diameter and the relationship between the output power and the pupil diameter during the whole process of the light source outputting the first illumination light and the second illumination light.

[0134] Figure 5 A schematic diagram of the relationship between eye power and pupil diameter is provided, such as Figure 5 As shown, in stage ①, the light source outputs the first illumination light at a constant output power, and at this time the user's pupil diameter is smaller than the first pupil size threshold d f The smaller the pupil diameter, the smaller the power entering the eye. 1 For example, d 1 <d f , at the output power level 1, the actual eye power y 11 Less than the set power y 1 , at the second output power, the actual eye power y 21 Less than the set power y 2 , under the third gear output power, the actual eye power y 31 Less than the set power y 3 In stage ②, the user’s pupil diameter is greater than the first pupil size threshold d f At this time, it is necessary to adjust the output power of the light source to keep the power entering the eye constant. The larger the pupil diameter, the smaller the output power of the light source. 2 For example, d 2 >d f By reducing the output power of the light source, the actual eye power y 12 Equal to the set power y 1 , at the second output power, the actual eye power y 22 Equal to the set power y 2 , under the third gear output power, the actual eye power y 32Equal to the set power y 3 .

[0135] Figure 6 A schematic diagram of the relationship between output power and pupil diameter is provided, such as Figure 6 As shown, in stage ①, the light source outputs the first illumination light at a constant output power, and at this time the user's pupil diameter is smaller than the first pupil size threshold d f The output power of the light source at level 1 is Y 11 Equal to the set power Y 1 , the light source output power Y in the second gear 21 Equal to the set power Y 2 , the light source output power Y under the third gear 31 Equal to the set power Y 3 In stage ②, the user’s pupil diameter is greater than the first pupil size threshold d f By reducing the output power of the light source, the power entering the eye is kept constant. At this time, the output power of the light source at the first level is Y 12 Less than the set power Y 1 , the light source output power Y in the second gear 22 Less than the set power Y 2 , the light source output power Y under the third gear 32 Less than the set power Y 3 .

[0136] In this embodiment, the first pupil size threshold and the second pupil size threshold are the same as an example to illustrate the power adjustment process during the second illumination light irradiation process. The first pupil size threshold and the second pupil size threshold may also be different, and both the first pupil size threshold and the second pupil size threshold can be determined based on the reference pupil size. The method for determining the second pupil size threshold based on the reference pupil size is the same as the method for determining the first pupil size threshold, and this embodiment will not be repeated here.

[0137] Specifically, when the first pupil size threshold and the second pupil size threshold are different, and the first pupil size threshold is greater than the second pupil size threshold, the process of performing real-time control of the light source according to the real-time pupil size, the first pupil size threshold, and the second pupil size threshold includes:

[0138] C1. When the real-time pupil size is greater than or equal to a preset first pupil size threshold, adjusting the second illumination light output by the light source;

[0139] C2. When the real-time pupil size is smaller than a second pupil size threshold, controlling the light source to maintain the current output power of the second illumination light;

[0140] C3. When the real-time pupil size is smaller than a preset first pupil size threshold and greater than or equal to a second pupil size threshold, the light source is controlled to maintain the current output power of the second illumination light, or, the target output power is calculated in the same manner as B1 above, and the light source is controlled to increase the current output power of the second illumination light to the target output power of the second illumination light.

[0141] This embodiment does not limit the specific processing method when the real-time pupil size is less than the preset first pupil size threshold and greater than or equal to the second pupil size threshold in C3. By increasing the output power of the light source, the therapeutic effect of the irradiated light can be ensured while ensuring safety.

[0142] The technical solution of the embodiment of the present invention controls the light source to output the first illumination light, guides the pupil state to a stable state close to the treatment state, and then controls the light source to output the second illumination light, performs real-time human eye image monitoring during the whole process of the second illumination light illumination, and when the real-time pupil size is greater than or equal to the preset first pupil size threshold, controls the light source to reduce the current output power of the second illumination light to the target output power of the second illumination light, so that the eye power of the second illumination light remains stable, and the safety of the illumination light illumination is improved. When the real-time pupil size is less than the first pupil size threshold, the current output power of the light source is kept unchanged, so as to avoid the risk of eye damage caused by excessive output power of the light source, and effectively ensure the eye safety during the illumination process.

[0143] Specific application scenario 1

[0144] Figure 7 A flowchart of a light source control preparation phase is provided for a specific applicable scenario 1 of the present invention, such as Figure 7 As shown, the light source control preparation stage includes the following processes:

[0145] S11. Turn on the light source and select the light source level.

[0146] The light source gear can be selected according to the expected light source gear and the actual treatment needs. For example, if the user has a low degree of myopia and the expected light source gear for treatment is a medium gear, a low light source gear can be used in the light source control preparation stage. If the user has a high degree of myopia and the expected light source gear for treatment is the highest gear, a medium light source gear can be used in the light source control preparation stage. This embodiment does not limit this.

[0147] S12, the light source outputs a first illumination light to illuminate human eyes.

[0148] S13, determine whether the detection sensor is triggered, if so, execute S14, otherwise return to execute S12.

[0149] The detection sensor is used to detect whether a human eye is close and whether the human eye is at the eye entrance plane of the irradiated light.

[0150] S14. Obtain a human eye image by photographing the left human eye image capturing module and / or the right human eye image capturing module.

[0151] S15. Identify the state of human eyes through an image recognition algorithm.

[0152] Among them, the human eye state may include open, closed, and blinking.

[0153] S16, determine whether the human eye state is open, if so, execute S17, otherwise return to execute S12.

[0154] S17. The pupil size is identified by an image recognition algorithm, and the output power of the second illumination light is determined according to the expected light source level.

[0155] In this embodiment, the expected light source gear can be a gear pre-selected by the user, or a gear determined based on the actual situation of the user and the expected treatment effect. Since the calibrated eye-entry power of the calibrated pupil size corresponding to different light source gears is different, the output power of the second irradiation light is calculated based on the calibrated pupil size, the calibrated eye-entry power corresponding to the expected light source gear, the identified pupil size, and the relationship between the eye-entry power and the output power. The specific calculation process has been described in the above embodiment, and this embodiment will not be repeated here.

[0156] S18, light source control operation.

[0157] The technical solution in this applicable scenario, in the light source control preparation stage, uses a lower-power first irradiation light to irradiate the human eye, so that the pupil state of the human eye is closer to the actual pupil state in the light source control operation stage, so that the calculated output power of the second irradiation light is more accurate and the treatment effect is better. Secondly, through the irradiation of the lower-power first irradiation light, the human eye can have an effective adaptation process, which improves the comfort of the irradiation light; in addition, the pupil size after the first irradiation light is smaller than the pupil size in the unirradiated state, and there is a large difference in the amount of light entering the eye. Therefore, after being guided by the first irradiation light and then entering the second irradiation light, the safety of light entering the eye can be effectively improved.

[0158] Figure 8 A flowchart of a light source control operation phase is provided for a specific application scenario 1 of the present invention, such as Figure 8 As shown, the light source control operation phase includes the following processes:

[0159] S21, controlling the output power of the light source to gradually increase to the output power of the second irradiation light;

[0160] S22. Obtain a human eye image by photographing the left human eye image capturing module and / or the right human eye image capturing module.

[0161] S23. Identify the state of human eyes through an image recognition algorithm.

[0162] S24, determine whether the eyes are open, if so, execute S25, otherwise return to execute S22.

[0163] S25. Determine whether the pupil diameter is greater than or equal to the pupil diameter threshold. If so, execute S26; otherwise, execute S27.

[0164] S26. Adjust the output power of the light source.

[0165] Specifically, the output power of the light source is reduced to keep the eye power constant.

[0166] S27. Maintain the current output power of the light source.

[0167] Specifically, when the pupil diameter is smaller than the pupil diameter threshold, in order to avoid eye safety risks caused by increased energy per unit area entering the pupil region and increased energy focused in the non-pupil region when the light source output power is increased, the current output power is kept unchanged in this embodiment to ensure eye safety.

[0168] S28, determine whether the operation is completed, if so, execute S29, otherwise return to execute S22.

[0169] Specifically, whether the operation is finished can be determined by whether the duration of the second irradiation light is greater than or equal to a preset time threshold.

[0170] S29. Turn off the light source.

[0171] The technical solution in this applicable scenario continuously monitors the human eye status and pupil diameter in real time during the light source control operation stage. When the pupil diameter is greater than or equal to the pupil diameter threshold, the light source output power is lowered to keep the eye power constant. When the pupil diameter is less than the pupil diameter threshold, the current light source output power is kept unchanged to ensure eye safety and reduce the risk of laser damage to the eye.

[0172] Embodiment 4

[0173] Fig. 9 This is a schematic diagram of the structure of a light source control device provided in Embodiment 4 of the present invention. The device is deployed in an electronic device, and the electronic device is used in conjunction with at least one set of light sources, and the at least one set of light sources is used to provide at least two types of light to at least one eye, such as Fig. 9 As shown, the device comprises:

[0174] A first illumination light output module 410, used to control the light source to output a first illumination light to illuminate the eyes;

[0175] The second illumination light output module 420 is used to control the light source to output the second illumination light to illuminate the eye when it is determined that the pupil state stability condition is met;

[0176] The eye-entering power of the first illumination light is less than or equal to that of the second illumination light.

[0177] The technical solution of the embodiment of the present invention is to configure the light source to emit at least two types of illumination light to at least one eye, and control the light source to output the first illumination light to illuminate the eye first, and then control the light source to output the second illumination light to illuminate the eye when the pupil state is stable, and the eye-entering power of the first illumination light is less than or equal to the second illumination light. The technical solution solves the problems in the prior art: when the output power of the light source remains constant, the enlarged pupil will lead to an increase in the eye-entering power, which is less safe; the smaller pupil will lead to a decrease in the eye-entering power, which is less effective; there is no early stage of light adaptation, and the eye has poor adaptability to light; it realizes effective control and adjustment of the eye-entering power of the illumination light output by the light source, and improves the comfort, safety and effectiveness of the illumination light entering the eye.

[0178] On the basis of the above embodiment, the light source includes a first light source and a second light source; the first illumination light output module 410 includes:

[0179] A first light source control unit, used for controlling the first light source to output a first illumination light to illuminate the eye;

[0180] The second illumination light output module 420 includes:

[0181] The second light source control unit is used to control the second light source to output the second illumination light to illuminate the eyes.

[0182] On the basis of the above embodiment, the first light source control unit is specifically used for:

[0183] Controlling the first light source to output a first illumination light according to a first output power to illuminate the eye;

[0184] The first light source is controlled to increase the first output power of the first illumination light according to a preset frequency until the increased first output power is equal to the second output power of the second illumination light output by the second light source.

[0185] Based on the above embodiment, the first illumination light output module 410 includes:

[0186] A first output power output unit, used to control the light source to output a first irradiation light according to a first output power to irradiate the eye;

[0187] The second illumination light output module 420 includes:

[0188] A second output power output unit, used to control the light source to output a second illumination light according to the second output power to illuminate the eyes;

[0189] The first output power is less than or equal to the second output power.

[0190] Based on the above embodiment, the first output power output unit is specifically used for:

[0191] Controlling the light source to output a first irradiation light according to a first output power to irradiate the eye;

[0192] The light source is controlled to increase the first output power of the first irradiation light according to a preset frequency until the increased first output power is the same as the second output power.

[0193] Based on the above embodiment, the second illumination light output module 420 includes:

[0194] The first pupil state stability condition judgment unit is used to determine that the pupil state stability condition is met if it is determined that the duration of controlling the light source to output the first illumination light to illuminate the eye is greater than or equal to a preset time threshold.

[0195] Based on the above embodiment, the device further includes:

[0196] A human eye image acquisition module, used to acquire at least two human eye images;

[0197] The second illumination light output module 420 includes:

[0198] A pupil size average value calculation unit, used to determine the pupil size corresponding to each human eye image, and calculate the average value of the pupil size corresponding to each human eye image;

[0199] The second pupil state stability condition judgment unit is used to determine that the pupil state stability condition is met if the difference between the pupil size corresponding to a preset number of consecutive individual eye images and the average value is less than or equal to a preset difference threshold.

[0200] Based on the above embodiment, the second illumination light output module 420 includes:

[0201] A reference pupil size determination unit, used to determine a reference pupil size based on each human eye image;

[0202] a second illumination light output power determining unit, configured to determine the output power of the second illumination light according to the reference pupil size;

[0203] The second illumination light output unit is used to control the light source to output the second illumination light to illuminate the eyes according to the output power of the second illumination light.

[0204] On the basis of the above embodiment, the reference pupil size determination unit is specifically used for:

[0205] The average value of each pupil size whose difference with the average value is less than or equal to a preset difference threshold is used as the reference pupil size.

[0206] On the basis of the above embodiment, the second illumination light output power determination unit is specifically used for:

[0207] Determining the eye entrance power matching the reference pupil size according to the preset calibrated pupil size, the calibrated eye entrance power matching the calibrated pupil size, and the reference pupil size;

[0208] The output power of the second illumination light is determined according to the eye entrance power and a mapping relationship between the eye entrance power and the output power of the second illumination light.

[0209] Based on the above embodiment, the device further includes:

[0210] A real-time pupil size acquisition module, used to acquire a real-time human eye image after the second illumination light enters the eye, and determine a real-time pupil size corresponding to the real-time human eye image;

[0211] A second illumination light adjustment module, configured to adjust the second illumination light output by the light source if it is determined that the real-time pupil size is greater than or equal to a preset first pupil size threshold;

[0212] The eye-entering power of the adjusted second illumination light when irradiating the eye is less than the eye-entering power of the second illumination light before adjustment.

[0213] Based on the above embodiment, the second illumination light adjustment module includes:

[0214] a target output power determination unit, configured to determine a target output power of the second illumination light according to the real-time pupil size, a first pupil size threshold, and a current output power of the second illumination light;

[0215] The current output power reducing unit is used to control the light source to reduce the current output power of the second illumination light to the target output power of the second illumination light.

[0216] Based on the above embodiment, the target output power determination unit is specifically used to:

[0217] Determining a ratio between a target output power and a current output power according to a ratio of a square of a first pupil size threshold to a square of the real-time pupil size;

[0218] The target output power of the second illumination light is determined according to the current output power of the second illumination light and the ratio between the target output power and the current output power.

[0219] Based on the above embodiment, the device further includes:

[0220] The current output power maintaining module is used to control the light source to maintain the current output power of the second illumination light if it is determined that the real-time pupil size is smaller than a preset second pupil size threshold.

[0221] Based on the above embodiment, the first pupil size threshold and the second pupil size threshold are determined according to a reference pupil size.

[0222] The light source control device provided in the embodiment of the present invention can execute the light source control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0223] Embodiment 5

[0224] Fig.10 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0225] like Fig.10 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0226] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0227] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a method for controlling a light source.

[0228] In some embodiments, the control method of the light source may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the control method of the light source described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the control method of the light source in any other appropriate manner (e.g., by means of firmware).

[0229] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0230] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0231] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0232] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0233] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0234] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0235] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0236] 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 a light source, characterized in that: The method is performed by an electronic device, the electronic device is used in conjunction with at least one set of light sources, the at least one set of light sources is used to provide at least two types of light to at least one eye, the method comprising: Controlling the light source to output a first irradiation light to irradiate the eyes; When it is determined that the pupil state stability condition is met, controlling the light source to output a second illumination light to illuminate the eye; The eye-entering power of the first illumination light is less than or equal to that of the second illumination light.

2. The method according to claim 1, characterized in that The light source comprises a first light source and a second light source; Controlling the light source to output a first illumination light to illuminate the eye includes: Controlling the first light source to output a first illumination light to illuminate the eyes; Controlling the light source to output a second illumination light to illuminate the eye includes: The second light source is controlled to output the second illumination light to illuminate the eyes.

3. The method according to claim 2, characterized in that Controlling the first light source to output the first illumination light to illuminate the eye includes: Controlling the first light source to output a first illumination light according to a first output power to illuminate the eye; The first light source is controlled to increase the first output power of the first illumination light according to a preset frequency until the increased first output power is equal to the second output power of the second illumination light output by the second light source.

4. The method according to claim 1, characterized in that: Controlling the light source to output a first illumination light to illuminate the eye includes: Controlling the light source to output a first irradiation light according to a first output power to irradiate the eye; Controlling the light source to output a second illumination light to illuminate the eye includes: Controlling the light source to output a second illumination light according to the second output power to illuminate the eyes; The first output power is less than or equal to the second output power.

5. The method according to claim 4, characterized in that Controlling the light source to output a first irradiation light according to a first output power to irradiate the eye includes: Controlling the light source to output a first irradiation light according to a first output power to irradiate the eye; The light source is controlled to increase the first output power of the first irradiation light according to a preset frequency until the increased first output power is the same as the second output power.

6. The method according to claim 1, characterized in that Determine whether pupil state stability conditions are met, including: If it is determined that the duration of controlling the light source to output the first illumination light to illuminate the eye is greater than or equal to a preset time threshold, it is determined that the pupil state stability condition is met.

7. The method according to claim 1, characterized in that After controlling the light source to output the first illumination light to illuminate the eye, the method further includes: Obtain at least two human eye images; Determining that the pupil state stability condition is met also includes: Determine the pupil size corresponding to each human eye image, and calculate the average value of the pupil size corresponding to each human eye image; If it is determined that the differences between the pupil sizes corresponding to a preset number of consecutive individual eye images and the average value are all less than or equal to a preset difference threshold, it is determined that the pupil state stability condition is met.

8. The method according to claim 7, characterized in that Controlling the light source to output a second illumination light to illuminate the eye includes: Determine reference pupil size based on each person's eye image; determining the output power of the second illumination light according to the reference pupil size; The light source is controlled to output the second illumination light to illuminate the eyes according to the output power of the second illumination light.

9. The method according to claim 8, characterized in that Based on each eye image, the reference pupil size is determined, including: The average value of each pupil size whose difference with the average value is less than or equal to a preset difference threshold is used as the reference pupil size.

10. The method according to claim 8, characterized in that Determining the output power of the second illumination light according to the reference pupil size includes: Determining the eye entrance power matching the reference pupil size according to the preset calibrated pupil size, the calibrated eye entrance power matching the calibrated pupil size, and the reference pupil size; The output power of the second illumination light is determined according to the eye entrance power and a mapping relationship between the eye entrance power and the output power of the second illumination light.

11. The method according to claim 1, characterized in that: After controlling the light source to output the second illumination light to illuminate the eye, the method further includes: Acquire a real-time human eye image after the second illumination light enters the eye, and determine a real-time pupil size corresponding to the real-time human eye image; If it is determined that the real-time pupil size is greater than or equal to a preset first pupil size threshold, adjusting the second illumination light output by the light source; The eye-entering power of the adjusted second illumination light when irradiating the eye is less than the eye-entering power of the second illumination light before adjustment.

12. The method according to claim 11, characterized in that Adjusting the second illumination light output by the light source comprises: determining a target output power of the second illumination light according to the real-time pupil size, the first pupil size threshold, and the current output power of the second illumination light; The light source is controlled to reduce the current output power of the second illumination light to the target output power of the second illumination light.

13. The method according to claim 12, characterized in that Determining a target output power of the second illumination light according to the real-time pupil size, the first pupil size threshold, and the current output power of the second illumination light includes: Determining a ratio between a target output power and a current output power according to a ratio of a square of a first pupil size threshold to a square of the real-time pupil size; The target output power of the second illumination light is determined according to the current output power of the second illumination light and the ratio between the target output power and the current output power.

14. The method according to claim 11, characterized in that After determining the real-time pupil size corresponding to the real-time human eye image, it also includes: If it is determined that the real-time pupil size is smaller than a preset second pupil size threshold, the light source is controlled to maintain the current output power of the second illumination light.

15. The method according to claim 14, characterized in that The first pupil size threshold and the second pupil size threshold are determined according to a reference pupil size.

16. A light source control device, characterized in that: The device is deployed in an electronic device, the electronic device is used in conjunction with at least one set of light sources, the at least one set of light sources is used to provide at least two types of light to at least one eye, and the device includes: A first illumination light output module, used to control the light source to output a first illumination light to illuminate the eyes; A second illumination light output module, used for controlling the light source to output a second illumination light to illuminate the eye when it is determined that the pupil state stability condition is met; The eye-entering power of the first illumination light is less than or equal to that of the second illumination light.

17. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for controlling a light source as described in any one of claims 1 to 15 is implemented.

18. A storage medium storing computer executable instructions, characterized in that: The computer executable instructions are used to execute the light source control method as claimed in any one of claims 1 to 15 when executed by a computer processor.