Combined light brightness adjusting method and device, endoscope system and storage medium
By obtaining the current temperature of the luminous emitting device and adjusting the driving current, the problem of unstable combined brightness is solved, and the stable adjustment of combined brightness and color temperature is achieved, which improves the operating stability and application effect of the equipment.
Patent Information
- Application Number
- CN202411995988.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-12-31
AI Technical Summary
In the prior art, the combined brightness of the light emitting device is unstable during the working process, which affects the normal operation and application effect of the device.
By obtaining the current temperature of each luminous device, determining whether it exceeds the reference temperature, adjusting the driving current to adjust the combined brightness and color temperature, ensuring the stability of the brightness and color temperature.
The stable adjustment of combined brightness and color temperature is achieved, which avoids brightness attenuation caused by temperature changes, and improves the operating stability and application effect of the equipment.
Smart Images

Figure CN119629792A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a combined light brightness adjustment method, device, endoscope system and storage medium. Background Art
[0002] At present, the light emitted by some devices during operation is often a combination of light from multiple monochromatic light-emitting devices. For example, an endoscope multi-spectrum cold light source uses light from multiple monochromatic LED lamps to form white light or specific narrow-band light. In the prior art, the brightness of the combined light is often unstable during the operation of the light-emitting device. Summary of the invention
[0003] In view of this, the purpose of the present application is to provide a combined light brightness adjustment method, an apparatus endoscope system and a storage medium to keep the combined light brightness stable during the operation of the light-emitting device.
[0004] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0005] In a first aspect, the present application provides a combined light brightness adjustment method, which is applied to an endoscope system, wherein the endoscope system includes a plurality of light emitting devices, and the method includes:
[0006] Acquire a first current temperature of each of the light emitting devices;
[0007] For each of the light-emitting devices, determining whether a first current temperature of the light-emitting device exceeds a reference temperature corresponding to the light-emitting device;
[0008] If the first current temperature of the light-emitting device exceeds the reference temperature corresponding to the light-emitting device, the light-emitting device is determined as the first light-emitting device to be adjusted;
[0009] Adjusting the current driving current of the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted, so as to adjust the current combined light brightness of the plurality of light-emitting devices to a preset brightness;
[0010] When there are other light-emitting devices other than the first light-emitting device to be adjusted among the plurality of light-emitting devices, obtaining a driving current of the other light-emitting devices;
[0011] Calculate the brightness proportion corresponding to the other light-emitting device according to the current driving current of the other light-emitting device and the first current temperature, and determine whether the other light-emitting device is the second light-emitting device to be adjusted according to the brightness proportion corresponding to the other light-emitting device;
[0012] In the case that the other light-emitting device is the second light-emitting device to be adjusted, the current driving current of the second light-emitting device to be adjusted is adjusted according to the first current temperature of the other light-emitting device to adjust the current combined light color temperature to the preset color temperature.
[0013] In an optional implementation manner, obtaining the first current temperature of each of the light-emitting devices includes:
[0014] Calculating the resistance value of each of the light-emitting devices according to the current voltage of each of the light-emitting devices and a preset voltage division relationship;
[0015] The first current temperature of each of the light-emitting devices is calculated according to the resistance value of each of the light-emitting devices and a first temperature formula; the first temperature formula records the corresponding relationship between the resistance value and the temperature.
[0016] In an optional implementation, the step of adjusting the current driving current of the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted so as to adjust the current combined light brightness to a preset brightness includes:
[0017] Calculate the target brightness of the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted and a preset brightness formula; the target brightness is the brightness of the first light-emitting device to be adjusted before it is attenuated at the preset brightness;
[0018] The target driving current corresponding to the first light-emitting device to be adjusted is calculated according to the target brightness and the first current formula, and the first light-emitting device to be adjusted is driven according to the target driving current to adjust the current combined light brightness to the preset brightness; the first current formula records the corresponding relationship between brightness and driving current.
[0019] In an optional implementation, the brightness formula includes a brightness attenuation formula and a brightness relationship formula;
[0020] The step of calculating the target brightness corresponding to the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted and a preset brightness formula includes:
[0021] Calculate a first brightness attenuation parameter corresponding to the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted and a brightness attenuation formula corresponding to the first light-emitting device to be adjusted; the brightness attenuation formula records the corresponding relationship between the temperature and the brightness attenuation parameter;
[0022] According to the preset brightness and the brightness relationship formula corresponding to the first light-emitting device to be adjusted, the brightness that the first light-emitting device to be adjusted should output at the preset brightness is calculated; the brightness relationship formula records the corresponding relationship between the brightness of the combined light and the brightness of the light-emitting device;
[0023] The target brightness corresponding to the first light-emitting device to be adjusted is calculated according to the brightness that the first light-emitting device to be adjusted should output at the preset brightness and the first brightness attenuation parameter.
[0024] In an optional implementation, after driving the first light-emitting device to be adjusted according to the target driving current, the method further includes:
[0025] A second current temperature of the first light-emitting device to be adjusted is calculated, and the second current temperature is determined as a new reference temperature corresponding to the first light-emitting device to be adjusted.
[0026] In an optional implementation, calculating the brightness proportion corresponding to the other light-emitting devices according to the current driving current of the other light-emitting devices and the first current temperature includes:
[0027] Calculating a second brightness attenuation parameter corresponding to the other light-emitting device according to the first current temperature of the other light-emitting device and a brightness attenuation formula corresponding to the other light-emitting device;
[0028] Calculate the ideal brightness corresponding to the other light-emitting device according to the current driving current of the other light-emitting device and the second current formula; the ideal brightness is the brightness of the other light-emitting device that is not attenuated under the current driving current, and the second current formula records the corresponding relationship between the driving current and the brightness;
[0029] The current brightness of the other light-emitting device is calculated according to the ideal brightness corresponding to the other light-emitting device and the second brightness attenuation parameter, and the brightness proportion of the other light-emitting device is calculated according to the current brightness and the preset brightness.
[0030] In an optional implementation, the determining whether the other light-emitting device is the second light-emitting device to be adjusted according to the brightness proportion corresponding to the other light-emitting device includes:
[0031] If the difference between the brightness proportion of the other light-emitting device and the preset brightness proportion corresponding to the other light-emitting device exceeds the proportion deviation threshold, the other light-emitting device is determined to be the second light-emitting device to be adjusted.
[0032] In a second aspect, the present application provides a combined light brightness adjustment device, which is applied to an endoscope system, wherein the endoscope system includes a plurality of light-emitting devices, and the device includes:
[0033] An acquisition module, used for acquiring a first current temperature of each of the light-emitting devices;
[0034] A determination module, configured to determine, for each of the light-emitting devices, whether a first current temperature of the light-emitting device exceeds a reference temperature corresponding to the light-emitting device;
[0035] The determination module is further configured to determine the light-emitting device as the first light-emitting device to be adjusted if the first current temperature of the light-emitting device exceeds the reference temperature corresponding to the light-emitting device;
[0036] An adjustment module, used for adjusting a current driving current of the first light-emitting device to be adjusted according to a first current temperature of the first light-emitting device to be adjusted, so as to adjust a current combined light brightness composed of a plurality of the light-emitting devices to a preset brightness;
[0037] The determination module is further configured to, when there are other light-emitting devices other than the first light-emitting device to be adjusted among the plurality of light-emitting devices, obtain the driving current of the other light-emitting devices, calculate the brightness proportion corresponding to the other light-emitting devices according to the current driving current of the other light-emitting devices and the first current temperature, and determine whether the other light-emitting devices are the second light-emitting devices to be adjusted according to the brightness proportion corresponding to the other light-emitting devices;
[0038] The adjustment module is further used to adjust the current driving current of the second light-emitting device to be adjusted according to the first current temperature of the other light-emitting device when the other light-emitting device is the second light-emitting device to be adjusted, so as to adjust the current combined light color temperature to the preset color temperature.
[0039] In a third aspect, the present application provides an endoscope system, comprising a controller, wherein the controller is used to execute a computer program to implement the method described in any of the aforementioned embodiments.
[0040] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method described in any of the aforementioned embodiments.
[0041] The combined light brightness adjustment method, device, endoscope system and storage medium provided in the embodiments of the present application calculate the first current temperature corresponding to each light-emitting device, and determine the first light-emitting device to be adjusted from multiple light-emitting devices according to the first current temperature of each light-emitting device, and adjust the current driving current of the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted, so as to adjust the current combined light brightness to the preset brightness. In this way, it can be determined whether it should be adjusted by the current temperature of the light-emitting device, and the driving current can be adjusted by the current temperature of the light-emitting device to be adjusted, so as to adjust the current combined light brightness, and ensure that the combined light brightness can be stabilized at the preset brightness during the operation of the light-emitting device. Further, after adjusting the first light-emitting device to be adjusted, it can be determined whether there are other light-emitting devices among the multiple light-emitting devices, and whether the other light-emitting devices are the second light-emitting devices to be adjusted. If it is the second light-emitting device to be adjusted, the current driving current of the second light-emitting device to be adjusted can be adjusted according to its corresponding first current temperature, so as to adjust the current combined light color temperature, so that the stability of the combined light color temperature can be further ensured.
[0042] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 A schematic diagram of the combined colors of red, blue and green LED lights is shown;
[0045] Figure 2 The schematic diagram of the circuit structure of the MCU and each LED lamp is shown;
[0046] Figure 3 A schematic diagram of a process of adjusting the brightness of a combined light provided in an embodiment of the present application is shown;
[0047] Figure 4 A functional module diagram of a combined light brightness adjustment device provided in an embodiment of the present application is shown.
[0048] Icons: 100 - acquisition module; 110 - determination module; 120 - adjustment module. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0050] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0051] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0052] At present, some equipment needs to use a combination of light composed of light from multiple monochromatic light-emitting devices, such as the light of an endoscope multi-spectral cold light source, which is white light composed of light from multiple monochromatic LED lamps.
[0053] Since the luminous efficiency of a light-emitting device is strongly correlated with its own temperature, that is, as the temperature increases, the luminous efficiency will decrease, and the light-emitting device will inevitably emit heat during operation, therefore, as the light-emitting device works, the ambient temperature will increase, resulting in a decrease in the luminous efficiency of the light-emitting device, which in turn will cause the brightness of the combined light to be affected to a certain extent, resulting in an unstable brightness of the combined light.
[0054] Based on this, the embodiments of the present application provide a combined light brightness adjustment method, device, endoscope system and storage medium to solve the above problems.
[0055] First, an embodiment of the present application provides an endoscope system, which includes a controller, and the controller can execute a computer program to implement the combined light brightness adjustment method provided in the embodiment of the present application.
[0056] Optionally, the endoscope system may further include a plurality of light emitting devices, and the controller may be electrically connected to the plurality of light emitting devices, and adjust the brightness of the light emitting devices by controlling the driving current of the light emitting devices, thereby adjusting the brightness of the combined light composed of the plurality of light emitting devices.
[0057] In a possible implementation, the controller may be an MCU (Microcontroller Unit), and the light emitting device may be an LED (Light Emitting Diode).
[0058] In one example, Figure 1 For a schematic diagram of the combined colors of red, blue and green LED lights, see Figure 1 , the combined light composed of multiple light emitting devices can be white light, and the light emitting devices can include red LED lights, blue LED lights, and green LED lights. It can be understood that the present application uses the light emitting devices as red LED lights, blue LED lights, and green LED lights as examples, and the light emitting devices can also be other combined lights, and the present application does not limit the number and specific bands of the light emitting devices.
[0059] In this example, the MCU may be electrically connected to a red LED lamp, a blue LED lamp, and a green LED lamp, respectively, to control each LED lamp.
[0060] Specifically, Figure 2 For the circuit diagram of MCU and each LED lamp, please refer to Figure 2 , the MCU can obtain the divided voltage of the NTC resistor in the LED lamp through the ADC, read the actual current value of the LED lamp calculated by INA226 through I2C, and drive the PVC device through PWM to provide driving current for the LED lamp.
[0061] Figure 2 In the figure, R represents a red LED light, G represents a green LED light, and B represents a blue LED light.
[0062] Next, the controller in the endoscope system is used as the execution body, and the combined light brightness adjustment method provided in the embodiment of the present application is exemplarily introduced in combination with the flowchart. Specifically, Figure 3 A schematic diagram of a combined light brightness adjustment method provided in an embodiment of the present application is shown in FIG. Figure 3 , the method comprising:
[0063] Step S20, obtaining a first current temperature of each light emitting device.
[0064] Step S21 : for each light emitting device, determining whether a first current temperature of the light emitting device exceeds a reference temperature corresponding to the light emitting device.
[0065] Step S22: if the first current temperature of the light-emitting device exceeds the reference temperature corresponding to the light-emitting device, the light-emitting device is determined as the first light-emitting device to be adjusted.
[0066] Optionally, each light-emitting device corresponds to a reference temperature. To ensure the accuracy of adjustment, for each light-emitting device, the reference temperature may be the temperature of the light-emitting device after the driving current of the light-emitting device was last adjusted.
[0067] It can be understood that if the first current temperature of the light-emitting device exceeds its corresponding reference temperature, it can be determined that the brightness of the light-emitting device has decayed due to temperature changes, thereby affecting the current combined light brightness, so the light-emitting device can be determined as the first light-emitting device to be adjusted.
[0068] Optionally, in order to facilitate the judgment of the endoscope system, a byte can be used as an identification bit to determine in turn whether the first current temperature of each light-emitting device exceeds the reference temperature corresponding to the light-emitting device, and the identification bit is updated according to the judgment result. The endoscope system can then determine which light-emitting device to adjust based on the identification bit.
[0069] In one example, the identification bit can be Tflag, and at the initial moment Tflag=0x0. The endoscope system can first determine whether the red LED light is the first light-emitting device to be adjusted. If so, the new identification bit Tflag=Tflag|0b1, if not, the identification bit is not modified. Then, it can continue to determine whether the green LED light is the first light-emitting device to be adjusted. If so, the new identification bit Tflag=Tflag|0b10, if not, the identification bit is not modified. Then, it can continue to determine whether the blue LED light is the first light-emitting device to be adjusted. If so, the new identification bit Tflag=Tflag|0xb100, if not, the identification bit is not modified. Among them, "|" represents an OR operation.
[0070] In this case, the endoscope system can ultimately adjust the current driving current of the light emitting device according to the value of Tflag.
[0071] Optionally, the first light-emitting device to be adjusted refers to a light-emitting device whose luminous efficiency is greatly reduced due to the influence of temperature.
[0072] In this embodiment, the number of the first light-emitting device to be modulated may be one or more.
[0073] Step S23, adjusting the current driving current of the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted, so as to adjust the current combined light brightness of the multiple light-emitting devices to a preset brightness.
[0074] Optionally, since brightness is affected by temperature, the endoscope system can adjust the current driving current corresponding to the first light-emitting device to be adjusted according to the first current temperature corresponding to the first light-emitting device to be adjusted, thereby adjusting the current brightness of the current combined light by adjusting the driving current.
[0075] Optionally, the endoscope system may adjust the driving current of the first light-emitting device to be adjusted by adjusting the PWM duty cycle.
[0076] Step S24: when there are other light-emitting devices besides the first light-emitting device to be adjusted among the plurality of light-emitting devices, obtain the driving current of the other light-emitting devices.
[0077] Optionally, considering that some light-emitting devices are first light-emitting devices to be adjusted, and although the temperature of other light-emitting devices does not exceed the threshold, there may be changes that cause the color temperature of the combined light to change, it can be further determined whether the color temperature needs to be adjusted.
[0078] Step S25, calculating the brightness proportion corresponding to the other light-emitting devices according to the current driving current of the other light-emitting devices and the first current temperature, and determining whether the other light-emitting devices are the second light-emitting devices to be adjusted according to the brightness proportion corresponding to the other light-emitting devices.
[0079] Step S26, when the other light-emitting device is the second light-emitting device to be adjusted, the current driving current of the second light-emitting device to be adjusted is adjusted according to the first current temperature of the second light-emitting device to be adjusted, so as to adjust the current combined light color temperature to the preset color temperature.
[0080] Optionally, among multiple light-emitting devices, only some of them may have a first current temperature exceeding their corresponding reference temperature, while there are other light-emitting devices whose first current temperature does not exceed their corresponding reference temperature. For these light-emitting devices, it can be determined whether their corresponding brightness ratios are shifted too much, thereby affecting the combined light color temperature.
[0081] In this embodiment, the endoscope system can determine whether the brightness ratio of other light-emitting devices deviates significantly from the brightness ratio they should have at the preset color temperature. If the deviation is large, it will be determined as the second light-emitting device to be adjusted.
[0082] It is understandable that when adjusting the second light-emitting device to be adjusted, the brightness will be further fine-tuned, so the stability of the brightness can be further guaranteed, and the stability of the color temperature can also be guaranteed.
[0083] Optionally, the endoscope system may adjust the current driving current of the second light-emitting device to be adjusted by adjusting the PWM duty cycle.
[0084] In the combined light brightness adjustment method provided in the embodiment of the present application, the controller in the endoscope system can calculate the first current temperature corresponding to each light-emitting device, and determine the first light-emitting device to be adjusted from multiple light-emitting devices according to the first current temperature of each light-emitting device, and adjust the current driving current of the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted, so as to adjust the current combined light brightness to a preset brightness. In this way, it can be determined whether the light-emitting device should be adjusted according to its current temperature, and the driving current can be adjusted according to the current temperature of the light-emitting device to be adjusted, so as to adjust the current combined light brightness, so as to ensure that the combined light brightness can be stabilized at the preset brightness during the operation of the light-emitting device.
[0085] Furthermore, after adjusting the first light-emitting device to be adjusted, the endoscope system can determine whether there are other light-emitting devices among the multiple light-emitting devices, and determine whether the other light-emitting devices are second light-emitting devices to be adjusted. If they are second light-emitting devices to be adjusted, the current driving current of the second light-emitting device to be adjusted can be adjusted according to its corresponding first current temperature, thereby adjusting the current combined light color temperature, thereby further ensuring the stability of the combined light color temperature.
[0086] This application is particularly suitable for medical scenarios such as endoscopes. After the endoscope insertion tube enters the patient's cavity / organ, the camera module at the front end of the insertion tube can be used to collect images of the patient's cavity / organ for the doctor to diagnose the patient. Because the patient's cavity / organ is relatively dark, and different tissues (such as blood vessels, lesions, etc.) reflect different lights to different degrees, brightness deviation and color temperature deviation may affect the image display of the doctor's tissue of interest, thereby affecting the doctor's judgment. In addition, there are certain deviations in the temperature of different cavities / organs. Based on this, the combined light brightness adjustment method provided by the present application can comprehensively consider the temperature and brightness ratio of multiple light-emitting devices to adjust the combined light brightness and color temperature, which can not only effectively reduce the brightness attenuation and stabilize the brightness of the combined light, but also effectively ensure the comprehensive stability of the combined light brightness and color temperature, which is helpful for the doctor's diagnosis.
[0087] In a possible implementation, the endoscope system may obtain the first current temperature of each light emitting device through a temperature sensor.
[0088] In another possible implementation, the endoscope system may calculate the first current temperature of each light emitting device through the current voltage of the light emitting device.
[0089] Specifically, the endoscope system can calculate the resistance value of each light-emitting device according to the current voltage of each light-emitting device and a preset voltage division relationship, thereby calculating the first current temperature of each light-emitting device according to the resistance value of each light-emitting device and the first temperature formula.
[0090] The first temperature formula records the corresponding relationship between the resistance value and the temperature.
[0091] In this embodiment, the first temperature formula may be a formula provided in a specification sheet corresponding to the light emitting device.
[0092] For an example, see Figure 2 , the MCU can read the divided voltage of the NTC resistor on each LED lamp through the ADC, and calculate the resistance value of each NTC resistor according to the resistance divided voltage relationship, so as to calculate the first current temperature corresponding to each LED lamp by combining the first temperature formula and the resistance value of each NTC resistor.
[0093] Next, a possible implementation method is provided for how to adjust the current driving current of the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted so as to adjust the current combined light brightness to a preset brightness.
[0094] Specifically, the endoscope system can calculate the target brightness corresponding to the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted and a preset brightness formula, calculate the target driving current corresponding to the first light-emitting device to be adjusted according to the target brightness and the first current formula, and drive the first light-emitting device to be adjusted according to the target driving current to adjust the current combined light brightness to the preset brightness.
[0095] The target brightness is the brightness of the first light-emitting device to be adjusted before attenuation at a preset brightness, and the first current formula records the corresponding relationship between the brightness and the driving current.
[0096] Optionally, the preset brightness refers to a combined light brightness at which the temperature should be maintained.
[0097] Optionally, considering that the temperature factor causes brightness attenuation, it is necessary to calculate the brightness that the first device to be dimmed should output at a preset brightness if it is not attenuated, that is, the target brightness, so as to take the brightness attenuation factor into account.
[0098] Optionally, the brightness formula may include a brightness attenuation formula and a brightness relationship formula, and the endoscope system may calculate the target brightness corresponding to the first light-emitting device to be adjusted according to the brightness attenuation formula and the brightness relationship formula.
[0099] In one possible implementation, the endoscope system can calculate the first brightness attenuation parameter corresponding to the first light-emitting device to be adjusted based on the first current temperature of the first light-emitting device to be adjusted and the brightness attenuation formula corresponding to the first light-emitting device to be adjusted, and calculate the brightness that the first light-emitting device to be adjusted should output at the preset brightness based on the preset brightness and the brightness relationship formula corresponding to the first light-emitting device to be adjusted.
[0100] On this basis, the endoscope system can calculate the target brightness corresponding to the first light-emitting device to be adjusted according to the brightness that the first light-emitting device to be adjusted should output at the preset brightness and the first brightness attenuation parameter.
[0101] The brightness attenuation formula records the corresponding relationship between temperature and brightness attenuation parameter, and the brightness relationship formula records the corresponding relationship between the combined light brightness and the brightness of the light-emitting device.
[0102] It can be understood that, since the brightness relationship formula records the relationship between the combined light brightness and the brightness of the light-emitting device, the brightness that the first light-emitting device to be adjusted should output at the preset brightness can be calculated based on the preset brightness and the brightness relationship formula.
[0103] In this embodiment, considering that if the brightness is adjusted according to the brightness that should be output, the brightness of the light-emitting device cannot reach the brightness that should be output after the brightness decays due to the influence of temperature, it is also necessary to combine the brightness that should be output and the corresponding first brightness attenuation coefficient to calculate the target brightness that takes into account the brightness attenuation.
[0104] In one example, if a red LED lamp is the first light emitting device to be adjusted, the endoscope system can adjust the brightness of the red LED lamp according to the first current temperature TR of the red LED lamp and the brightness attenuation formula YR=KR4*TR corresponding to the red LED lamp. 2 +KR5*TR+KR6, calculate the first brightness attenuation parameter YR corresponding to the red LED light, and calculate the brightness LRA that the red LED light should output according to the relationship formula LRA=KR1*LW2+KR2*LW+KR3 between the preset brightness LW and the brightness corresponding to the red LED light. Among them, KR4, KR5, KR6, KR1, KR2, and KR3 are all constants.
[0105] Then, the target brightness LR corresponding to the red LED light can be calculated according to the formula YR=LRA / LR.
[0106] In this example, the endoscope system can also be based on the target brightness LR corresponding to the red LED light and the first current formula IRA = KR7*LR corresponding to the red LED light. 2 +KR8*LR+KR9, calculate the target driving current IRA corresponding to the red LED light, so as to drive the red LED light by the target driving current. Among them, KR7, KR8, and KR9 are all constants.
[0107] Please continue to see Figure 2 , the MCU can determine the corresponding target PWM duty cycle according to the corresponding relationship between the target driving current IRA and the preset current and PWM duty cycle, so as to adjust the driving current of the red LED lamp to the target driving current by adjusting the PWM duty cycle to the target PWM duty cycle.
[0108] Optionally, in order to facilitate subsequent adjustment of the first light-emitting device to be adjusted, the endoscope system can also calculate the second current temperature of the first light-emitting device to be adjusted after driving the first light-emitting device to be adjusted according to the target driving current, and determine the second current temperature as the new reference temperature corresponding to the first light-emitting device to be adjusted.
[0109] Next, a possible implementation method is provided for how to calculate the brightness proportion corresponding to other light-emitting devices according to the current driving current of other light-emitting devices and the first current temperature.
[0110] Specifically, the endoscope system can calculate the second brightness attenuation parameter corresponding to the other light-emitting devices based on the first current temperature of the other light-emitting devices and the brightness attenuation formula corresponding to the other light-emitting devices, calculate the ideal brightness corresponding to the other light-emitting devices based on the current driving current of the other light-emitting devices and the second current formula, calculate the current brightness of the other light-emitting devices based on the ideal brightness and second brightness attenuation parameters corresponding to the other light-emitting devices, and calculate the brightness ratio of the other light-emitting devices based on the current brightness and the preset brightness.
[0111] The ideal brightness is the unattenuated brightness of other light-emitting devices under the current driving current, and the second current formula records the corresponding relationship between the driving current and the ideal brightness;
[0112] Optionally, the current driving current of other light-emitting devices may be input into the second current formula for calculation, so as to obtain the ideal brightness corresponding to the other light-emitting devices.
[0113] It can be understood that the ideal brightness is the brightness without attenuation, so the actual brightness of other light-emitting devices can be calculated in combination with the ideal brightness and the second brightness attenuation formula.
[0114] In this embodiment, the brightness ratio is the ratio of the current brightness to the preset brightness.
[0115] Optionally, if the difference between the brightness proportion of other light-emitting devices and the preset brightness proportion corresponding to the other light-emitting devices exceeds a proportion deviation threshold, the other light-emitting devices are determined to be the second light-emitting devices to be adjusted.
[0116] It can be understood that the adjustment logic for the current driving current of the second light-emitting device to be adjusted is consistent with the adjustment logic for the current driving current of the first light-emitting device to be adjusted, and will not be described in detail here.
[0117] In one example, if the red LED lamp and the blue LED lamp are both the first light-emitting device to be adjusted, the endoscope system needs to determine whether the green LED lamp is the second light-emitting device to be adjusted.
[0118] In this example, the MCU can obtain the current driving current of the green LED lamp through I2C, and calculate the second brightness attenuation parameter YG corresponding to the green LED lamp according to the first current temperature TG of the green LED lamp and the brightness attenuation formula YG=KG4*TG2+KG5*TG+KG6 of the green LED lamp. Among them, KG4, KG5, and KG6 are all constants.
[0119] In addition, the ideal brightness LG corresponding to the green LED lamp can be calculated according to the current driving current IGA of the green LED lamp and the second current formula LG=KG10*IGA2+KG11*IGA+KG12 corresponding to the green LED lamp. In this example, the endoscope system can calculate the current brightness LGA corresponding to the green LED lamp according to LGA=LG / YG, and calculate the current brightness ratio NG of the green LED lamp according to LGA and the preset brightness LW. Among them, KG10, KG11, and KG12 are all constants.
[0120] In this example, the endoscope system can calculate the difference between the current brightness ratio NG of the green LED lamp and the preset brightness ratio NGA corresponding to the green LED lamp, and determine whether the difference exceeds the ratio deviation threshold NM, thereby determining whether the green LED lamp is the second light-emitting device to be adjusted.
[0121] In this example, if the green LED lamp is the second light-emitting device to be adjusted, its corresponding target brightness can be calculated according to the first current temperature of the green LED lamp and the brightness-related formula corresponding to the green LED lamp, and then the target driving current corresponding to the green LED lamp can be calculated according to the target brightness and the first current formula corresponding to the green LED lamp, and then the current driving current of the green LED lamp can be adjusted according to the target driving current.
[0122] In one possible implementation, the brightness adjustment formulas (first current formula, second current formula, brightness attenuation formula and brightness relationship formula) and color temperature parameters (preset brightness proportion and proportion deviation threshold) corresponding to the above-mentioned light-emitting devices can be obtained based on the relationship between the various parameters in the specification of the light-emitting device.
[0123] In another possible implementation method, considering that the relationship between the parameters recorded in the specification sheet is generally common to the light-emitting device corresponding to a certain model, the brightness adjustment formula and color temperature parameters determined according to the specification sheet are for all light-emitting devices, and do not take into account the differences that may exist between different light-emitting devices during actual application. Therefore, in order to further improve the accuracy of brightness adjustment of the light-emitting device, the endoscope system can also generate the corresponding brightness adjustment formula and color temperature parameters for each light-emitting device.
[0124] Optionally, the endoscope system can obtain the actual current and actual brightness corresponding to each light-emitting device under multiple preset combined light brightnesses at a preset color temperature, and for each light-emitting device, generate a brightness adjustment formula corresponding to the light-emitting device based on the multiple actual currents and multiple actual brightnesses corresponding to the light-emitting device, and generate the color temperature parameters of the light-emitting device based on the multiple actual brightnesses of the light-emitting device.
[0125] Specifically, the endoscope system can generate a brightness relationship formula for each light-emitting device based on the actual combined light brightness of multiple light-emitting devices under each preset combined light brightness and the actual brightness of the light-emitting device, and determine multiple characteristic currents corresponding to the light-emitting device based on multiple actual currents and preset working currents, and determine the characteristic brightness and characteristic temperature corresponding to the light-emitting device under each characteristic current, thereby generating a brightness attenuation formula, a first current formula and a second current formula based on the characteristic brightness and characteristic temperature corresponding to the light-emitting device under each characteristic current.
[0126] In this embodiment, the endoscope system can also determine the brightness ratio of the light-emitting device under each preset combination brightness according to the actual combined brightness of multiple light-emitting devices and the actual brightness of the light-emitting device under each preset combination brightness for each light-emitting device respectively, thereby determining the preset brightness ratio corresponding to the light-emitting device according to the brightness ratio of the light-emitting device under each preset combination brightness, and determining the ratio deviation threshold according to the brightness ratio of each light-emitting device under each preset combination brightness and the preset brightness ratio.
[0127] In order to perform the corresponding steps in the above embodiments and various possible methods, a method for implementing a combined light brightness adjustment device is provided below. Figure 4 , Figure 4 A functional module diagram of a combined light brightness adjustment device provided in an embodiment of the present application.
[0128] It should be noted that the basic principle and technical effects of the combined light brightness adjustment device provided in this embodiment are the same as those of the above embodiments. For the sake of brief description, for the parts not mentioned in this embodiment, reference can be made to the corresponding contents in the above embodiments. The combined light brightness adjustment device includes: an acquisition module 100, a determination module 110 and an adjustment module 120.
[0129] The acquisition module 100 is used to acquire the first current temperature of each light emitting device.
[0130] It can be understood that the acquisition module 100 can also be used to execute the above step S20.
[0131] The determination module 110 is used to determine, for each light-emitting device, whether a first current temperature of the light-emitting device exceeds a reference temperature corresponding to the light-emitting device.
[0132] It can be understood that the determination module 110 can also be used to execute the above step S21.
[0133] The determination module 110 is further configured to determine the light-emitting device as the first light-emitting device to be adjusted if the first current temperature of the light-emitting device exceeds the reference temperature corresponding to the light-emitting device.
[0134] It can be understood that the determination module 110 can also be used to execute the above step S22.
[0135] The adjustment module 120 is used to adjust the current driving current of the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted, so as to adjust the current combined light brightness of the multiple light-emitting devices to a preset brightness.
[0136] It can be understood that the adjustment module 120 can also be used to execute the above step S23.
[0137] Optionally, the determination module 110 is also used to obtain the current driving current of other light-emitting devices when there are other light-emitting devices besides the first light-emitting device to be adjusted among the multiple light-emitting devices; calculate the brightness ratio corresponding to the other light-emitting devices based on the current driving current and the first current temperature of the other light-emitting devices, and determine whether the other light-emitting devices are the second light-emitting devices to be adjusted based on the brightness ratio corresponding to the other light-emitting devices.
[0138] It can be understood that the determination module 110 can also be used to execute the above steps S24 to S25.
[0139] Optionally, the adjustment module 120 is further used to adjust the current driving current of the second light-emitting device to be adjusted according to the first current temperature of the other light-emitting device when the other light-emitting device is the second light-emitting device to be adjusted, so as to adjust the current combined light color temperature to the preset color temperature.
[0140] It can be understood that the adjustment module 120 can also be used to execute the above step S26.
[0141] Optionally, the acquisition module 100 is also used to calculate the resistance value of each light-emitting device based on the current voltage of each light-emitting device and a preset voltage division relationship; calculate the first current temperature of each light-emitting device based on the resistance value of each light-emitting device and a first temperature formula; the first temperature formula records the corresponding relationship between the resistance value and the temperature.
[0142] Optionally, the adjustment module 120 is also used to calculate the target brightness corresponding to the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted and a preset brightness formula; the target brightness is the brightness of the first light-emitting device to be adjusted before it is attenuated at the preset brightness; the target driving current corresponding to the first light-emitting device to be adjusted is calculated according to the target brightness and the first current formula, and the first light-emitting device to be adjusted is driven according to the target driving current to adjust the current combined light brightness to the preset brightness; the first current formula records the correspondence between the brightness and the driving current.
[0143] Optionally, the adjustment module 120 is also used to calculate a first brightness attenuation parameter corresponding to the first light-emitting device to be adjusted based on the first current temperature of the first light-emitting device to be adjusted and a brightness attenuation formula corresponding to the first light-emitting device to be adjusted; the brightness attenuation formula records the correspondence between temperature and the brightness attenuation parameter; the brightness that the first light-emitting device to be adjusted should output at the preset brightness is calculated based on the preset brightness and the brightness relationship formula corresponding to the first light-emitting device to be adjusted; the brightness relationship formula records the correspondence between the combined light brightness and the brightness of the light-emitting device; the target brightness corresponding to the first light-emitting device to be adjusted is calculated based on the brightness that the first light-emitting device to be adjusted should output at the preset brightness and the first brightness attenuation parameter.
[0144] Optionally, the adjustment module 120 is further configured to calculate a second current temperature of the first light-emitting device to be adjusted, and determine the second current temperature as a new reference temperature corresponding to the first light-emitting device to be adjusted.
[0145] Optionally, the determination module 110 is also used to calculate the second brightness attenuation parameter corresponding to the other light-emitting devices based on the first current temperature of the other light-emitting devices and the brightness attenuation formula corresponding to the other light-emitting devices; calculate the ideal brightness corresponding to the other light-emitting devices based on the current driving current of the other light-emitting devices and the second current formula; the ideal brightness is the unattenuated brightness of the other light-emitting devices under the current driving current, and the second current formula records the correspondence between the driving current and the brightness; calculate the current brightness of the other light-emitting devices based on the ideal brightness and the second brightness attenuation parameter corresponding to the other light-emitting devices, and calculate the brightness proportion of the other light-emitting devices based on the current brightness and the preset brightness.
[0146] Optionally, the determination module 110 is further configured to determine that the other light-emitting device is the second light-emitting device to be adjusted if the difference between the brightness proportion of the other light-emitting device and the preset brightness proportion corresponding to the other light-emitting device exceeds a proportion deviation threshold.
[0147] The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the combined light brightness adjustment method provided in the embodiment of the present application can be implemented.
[0148] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0149] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0150] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0151] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A combined light brightness adjustment method, characterized in that: Applied to an endoscope system, the endoscope system includes a plurality of light emitting devices, the method includes: Acquire a first current temperature of each of the light emitting devices; For each of the light-emitting devices, determining whether a first current temperature of the light-emitting device exceeds a reference temperature corresponding to the light-emitting device; If the first current temperature of the light-emitting device exceeds the reference temperature corresponding to the light-emitting device, the light-emitting device is determined as the first light-emitting device to be adjusted; Adjusting the current driving current of the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted, so as to adjust the current combined light brightness of the plurality of light-emitting devices to a preset brightness; When there are other light-emitting devices other than the first light-emitting device to be adjusted among the plurality of light-emitting devices, obtaining a driving current of the other light-emitting devices; Calculate the brightness proportion corresponding to the other light-emitting device according to the current driving current of the other light-emitting device and the first current temperature, and determine whether the other light-emitting device is the second light-emitting device to be adjusted according to the brightness proportion corresponding to the other light-emitting device; In the case that the other light-emitting device is the second light-emitting device to be adjusted, the current driving current of the second light-emitting device to be adjusted is adjusted according to the first current temperature of the second light-emitting device to be adjusted to adjust the current combined light color temperature to the preset color temperature.
2. The method according to claim 1, characterized in that The obtaining of the first current temperature of each of the light emitting devices comprises: Calculating the resistance value of each of the light-emitting devices according to the current voltage of each of the light-emitting devices and a preset voltage division relationship; The first current temperature of each of the light-emitting devices is calculated according to the resistance value of each of the light-emitting devices and a first temperature formula; the first temperature formula records the corresponding relationship between the resistance value and the temperature.
3. The method according to claim 1, characterized in that The step of adjusting the current driving current of the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted so as to adjust the current combined light brightness to a preset brightness includes: Calculate the target brightness of the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted and a preset brightness formula; the target brightness is the brightness of the first light-emitting device to be adjusted before it is attenuated at the preset brightness; The target driving current corresponding to the first light-emitting device to be adjusted is calculated according to the target brightness and the first current formula, and the first light-emitting device to be adjusted is driven according to the target driving current to adjust the current combined light brightness to the preset brightness; the first current formula records the corresponding relationship between brightness and driving current.
4. The method according to claim 3, characterized in that The brightness formula includes a brightness attenuation formula and a brightness relationship formula; The step of calculating the target brightness corresponding to the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted and a preset brightness formula includes: Calculate a first brightness attenuation parameter corresponding to the first light-emitting device to be adjusted according to the first current temperature of the first light-emitting device to be adjusted and a brightness attenuation formula corresponding to the first light-emitting device to be adjusted; the brightness attenuation formula records the corresponding relationship between the temperature and the brightness attenuation parameter; According to the preset brightness and the brightness relationship formula corresponding to the first light-emitting device to be adjusted, the brightness that the first light-emitting device to be adjusted should output at the preset brightness is calculated; the brightness relationship formula records the corresponding relationship between the brightness of the combined light and the brightness of the light-emitting device; The target brightness corresponding to the first light-emitting device to be adjusted is calculated according to the brightness that the first light-emitting device to be adjusted should output at the preset brightness and the first brightness attenuation parameter.
5. The method according to claim 3, characterized in that: After driving the first light-emitting device to be adjusted according to the target driving current, the method further includes: A second current temperature of the first light-emitting device to be adjusted is calculated, and the second current temperature is determined as a new reference temperature corresponding to the first light-emitting device to be adjusted.
6. The method according to claim 1, characterized in that The calculating, according to the current driving current of the other light-emitting device and the first current temperature, the brightness proportion corresponding to the other light-emitting device comprises: Calculating a second brightness attenuation parameter corresponding to the other light-emitting device according to the first current temperature of the other light-emitting device and a brightness attenuation formula corresponding to the other light-emitting device; Calculate the ideal brightness corresponding to the other light-emitting device according to the current driving current of the other light-emitting device and the second current formula; the ideal brightness is the brightness of the other light-emitting device that is not attenuated under the current driving current, and the second current formula records the corresponding relationship between the driving current and the brightness; The current brightness of the other light-emitting device is calculated according to the ideal brightness corresponding to the other light-emitting device and the second brightness attenuation parameter, and the brightness proportion of the other light-emitting device is calculated according to the current brightness and the preset brightness.
7. The method according to claim 1, characterized in that The determining whether the other light-emitting device is a second light-emitting device to be adjusted according to the brightness proportion corresponding to the other light-emitting device includes: If the difference between the brightness proportion of the other light-emitting device and the preset brightness proportion corresponding to the other light-emitting device exceeds the proportion deviation threshold, the other light-emitting device is determined to be the second light-emitting device to be adjusted.
8. A combined light brightness adjustment device, characterized in that: Applied to an endoscope system, the endoscope system includes a plurality of light emitting devices, and the device includes: An acquisition module, used for acquiring a first current temperature of each of the light-emitting devices; A determination module, configured to determine, for each of the light-emitting devices, whether a first current temperature of the light-emitting device exceeds a reference temperature corresponding to the light-emitting device; The determination module is further configured to determine the light-emitting device as a first light-emitting device to be adjusted if the first current temperature of the light-emitting device exceeds a reference temperature corresponding to the light-emitting device; An adjustment module, used for adjusting a current driving current of the first light-emitting device to be adjusted according to a first current temperature of the first light-emitting device to be adjusted, so as to adjust a current combined light brightness composed of a plurality of the light-emitting devices to a preset brightness; The determination module is further configured to, when there are other light-emitting devices other than the first light-emitting device to be adjusted among the plurality of light-emitting devices, obtain the driving current of the other light-emitting devices, calculate the brightness proportion corresponding to the other light-emitting devices according to the current driving current of the other light-emitting devices and the first current temperature, and determine whether the other light-emitting devices are the second light-emitting devices to be adjusted according to the brightness proportion corresponding to the other light-emitting devices; The adjustment module is further used to adjust the current driving current of the second light-emitting device to be adjusted according to the first current temperature of the second light-emitting device to be adjusted when the other light-emitting device is the second light-emitting device to be adjusted, so as to adjust the current combined light color temperature to the preset color temperature.
9. An endoscope system, characterized in that: The method comprises a controller, wherein the controller is used to execute a computer program to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Endoscope exposure control method and device
CN115670351A
Endoscope device
JP1996271808A
Light source device for endoscope, endoscope device, and method for operating light source device for endoscope
WO2020100184A1
Control method for adaptively adjusting brightness, chromaticity, and color temperature of light source
WO2021072679A1