Dimming compensation method, light source device, endoscope system, and dimming compensation device

By dynamically updating dimming parameters, the problem of poor dimming compensation effect in the existing technology is solved, and the accurate control of the output light of the endoscope light source device is achieved, and the performance and user experience of the light source device are improved.

CN119837473APending Publication Date: 2025-04-18CHANGZHOU UNITED IMAGING HEALTHCARE SURGICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311351337.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-17
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

In the prior art, the dimming compensation effect of the endoscope light source device is poor, and it is impossible to effectively adapt to the real state of the light source device changing over time.

Method used

By obtaining the target optical radiation amount, determining its associated initial dimming parameters and target dimming compensation value, dynamically update the dimming parameters based on the historical dimming parameters and output optical radiation amount, and achieving accurate control of the light output of the light source device.

Benefits of technology

The dimming compensation effect is improved, so that the output light of the light source device can more accurately meet the target optical radiation amount, adapt to the real state of the light source device, and improve the performance and user experience of the light source device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119837473A_ABST
    Figure CN119837473A_ABST
Patent Text Reader

Abstract

The invention relates to a dimming compensation method, light source equipment, an endoscope system and a dimming compensation device. The dimming compensation method comprises the following steps: acquiring target light radiation quantity; determining an initial dimming parameter associated with the target light radiation quantity and a target dimming compensation value associated with the target light radiation quantity; wherein the target dimming compensation value is obtained from a historical dimming parameter of the light source equipment and a light radiation quantity output in response to the historical dimming parameter in a preset time range; performing parameter compensation on the initial dimming parameter according to the target dimming compensation value to obtain a target dimming parameter; the light source device is driven to output light based on the target dimming parameter, and the dimming compensation effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of endoscope dimming, and in particular to a dimming compensation method, a light source device, an endoscope system and a dimming compensation device. Background Art

[0002] In the medical field, endoscopes are used to assist in the discovery, diagnosis and treatment of lesions. Endoscopes can be inserted into the human body cavity, such as the esophagus, stomach, and large intestine for observation and diagnosis. During this process, the endoscope needs to use a light source device to provide illumination for the observation of the object inside the body cavity.

[0003] After the light source equipment is put into use at the factory, its lumen-verter rate gradually decreases with the change of time, that is, the ratio between the light radiation output by the light source equipment and the light radiation reference value gradually decreases, which will have an adverse effect on the use of the endoscope. For this reason, the relevant technology proposes a solution for dimming compensation of the light source equipment. However, with the change of time, the earlier compensation value can no longer meet the actual use needs.

[0004] With regard to the problem in the related art that the dimming compensation effect of the light source is poor, no effective solution has been proposed. Summary of the invention

[0005] Based on this, it is necessary to provide a dimming compensation method, light source equipment, endoscope system and dimming compensation device that can improve the dimming compensation effect in response to the above technical problems.

[0006] In a first aspect, the present application provides a dimming compensation method. The method comprises:

[0007] Obtaining target light radiation amount;

[0008] Determine an initial dimming parameter associated with the target light radiation amount, and a target dimming compensation value associated with the target light radiation amount; wherein the target dimming compensation value is obtained by a historical dimming parameter of the light source device within a preset time range and a light radiation amount output in response to the historical dimming parameter;

[0009] According to the target dimming compensation value, the initial dimming parameter is compensated to obtain the target dimming parameter;

[0010] The light source device is driven to output light based on the target dimming parameter.

[0011] In one of the embodiments, before obtaining the target light radiation amount, the method further includes:

[0012] In response to an operation instruction input by a user, dimming compensation values ​​corresponding to a plurality of light radiation quantities are calculated; or,

[0013] When the time between the current startup and the first startup of the light source device reaches a preset time, the dimming compensation values ​​corresponding to the plurality of light radiation quantities are calculated; or

[0014] When the preset compensation period is reached, the dimming compensation values ​​respectively corresponding to the plurality of light radiation quantities are calculated.

[0015] In one embodiment, the light source device includes multiple light source modes, and in different light source modes, the wavelength bands of the light output by the light source device are not completely the same; each light source mode includes multiple dimming gears, and each dimming gear corresponds to a different light radiation amount;

[0016] Before obtaining the target light radiation amount, the method further includes:

[0017] Obtaining the priority of each light source mode, and traversing and calculating the dimming compensation value of each light radiation amount in each light source mode according to the priority order; the priority is positively correlated with the frequency of use of the light source mode; and / or obtaining the priority of each dimming gear, and traversing and calculating the dimming compensation value of each dimming gear according to the priority order; the priority is positively correlated with the frequency of use of the dimming gear;

[0018] When a user preset operation is detected, the traversal calculation is terminated.

[0019] In one of the embodiments, before obtaining the target light radiation amount, the method further includes:

[0020] When the dimming signal is detected, the step of obtaining the target light radiation amount is returned to be executed.

[0021] In one of the embodiments, the dimming signal is triggered by a frame interval signal, and the frame interval signal is a signal generated before acquiring a single image frame.

[0022] In one of the embodiments, before obtaining the target light radiation amount, the method further includes:

[0023] Calibrate dimming parameters for multiple light radiation quantities; wherein the multiple light radiation quantities include the target light radiation quantity; the first light radiation quantity reference value is the reference value of any light radiation quantity among the multiple light radiation quantities, and the first dimming parameter is the dimming parameter associated with the first light radiation quantity reference value;

[0024] The calibration operation of the first dimming parameter includes:

[0025] Acquiring a first light radiation amount output by the light source device in response to the first dimming parameter;

[0026] Adjusting a current dimming parameter for driving the light source device until a difference between a second light radiation amount output by the light source device and a reference value of the first light radiation amount is reduced to below a threshold, and determining a second dimming parameter for the second light radiation amount;

[0027] A dimming compensation value of the first dimming parameter is determined according to the first dimming parameter, the first light radiation amount, the second dimming parameter, the second light radiation amount, and a reference value of the first light radiation amount.

[0028] In one embodiment, the adjusting the current dimming parameters for driving the light source device includes:

[0029] According to the difference between the current light radiation amount and the first light radiation amount reference value, the adjustment degree of the current dimming parameter is determined, and the current dimming parameter is adjusted based on the adjustment degree.

[0030] In one embodiment, determining a dimming compensation value of the first dimming parameter according to the first dimming parameter, the first light radiation, the second dimming parameter, the second light radiation, and the first light radiation reference value includes:

[0031] Determine a mapping relationship between a dimming parameter and an optical radiation amount according to the first dimming parameter, the first optical radiation amount, the second dimming parameter, and the second optical radiation amount;

[0032] A dimming compensation value of the first dimming parameter is determined according to the mapping relationship, the first light radiation reference value and the first dimming parameter.

[0033] In a second aspect, the present application further provides a light source device, including: a light emitting module, a light source control unit and a memory; wherein,

[0034] The memory stores a computer program, and when the light source control unit executes the computer program, the steps of the method described in the first aspect are implemented.

[0035] In one of the embodiments, the light source device further includes: a photoelectric detection module;

[0036] The photoelectric detection module is used to detect the light radiation amount output by the light emitting module and feed back the detected light radiation amount to the light source control unit;

[0037] In a third aspect, the present application provides an endoscope system, comprising: a display, an image processing device, an endoscope, and the light source device described in the second aspect.

[0038] In a fourth aspect, the present application provides a dimming compensation device, including:

[0039] An acquisition module, used for acquiring target light radiation amount;

[0040] A determination module, used to determine an initial dimming parameter associated with the target light radiation amount, and a target dimming compensation value associated with the target light radiation amount; wherein the target dimming compensation value is obtained by a historical dimming parameter of the light source device within a preset time range and a light radiation amount output in response to the historical dimming parameter;

[0041] A compensation module, configured to perform parameter compensation on the initial dimming parameter according to the target dimming compensation value to obtain a target dimming parameter;

[0042] A driving module is used to drive the light source device to output light based on the target dimming parameter.

[0043] The above-mentioned dimming compensation method, light source equipment, endoscope system and dimming compensation device compensate for the initial dimming parameters based on the target dimming compensation value, and then control the light output based on the compensated target dimming parameters, wherein the target dimming compensation value is obtained by the historical dimming parameters of the light source equipment within a preset time range and the light radiation output in response to the historical dimming parameters, and has the characteristic of dynamic update, that is, it can adapt to the actual equipment status of the light source equipment, and can realize accurate control of the actual light radiation output by the light source equipment, thereby making the dimming compensation effect better. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 is a hardware structure block diagram of a light source device in an embodiment;

[0045] Figure 2 is a flow chart of a dimming compensation method in an embodiment;

[0046] Figure 3 is a hardware structure block diagram of an endoscope system in one embodiment;

[0047] Figure 4 is a schematic diagram comparing a dimming compensation method in an embodiment with a traditional dimming compensation method;

[0048] Figure 5 is a working principle diagram of an endoscope system in one embodiment;

[0049] Figure 6 is a flow chart of dimming parameter calibration for a certain dimming gear in an embodiment;

[0050] Figure 7 yes Figure 6 A flow chart of an optional implementation method of a step in the embodiment;

[0051] Figure 8 is a schematic diagram of compensation calculation of ergodic dimming in an embodiment;

[0052] Fig. 9 is a flow chart of a compensation calculation method for traversal dimming in an embodiment;

[0053] Fig.10 It is a schematic diagram of the structure of a dimming compensation device in an embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0056] The method embodiments provided in this application can be executed in a terminal, a computer or a similar computing device. For example, running in a light source device, Figure 1 1 is a hardware structure diagram of a light source device according to an embodiment of the present application. Figure 1As shown, the light source device 1 includes: a photoelectric detection module 11, a light emitting module 12, a light source control unit 13 and a memory 14. The photoelectric detection module 11 is used to detect the light radiation output by the light emitting module 12, and feed the detected light radiation to the light source control unit 13; the memory 14 stores a computer program, and the light source control unit 13 implements the steps of the dimming compensation method when executing the computer program.

[0057] It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above light source device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0058] Optionally, the photoelectric detection module 11 includes a photodetector (Photo-Diode, PD) array. The light emitting module 12 includes a light emitting diode (Light Emitting Diode, LED) array.

[0059] Optionally, the light source control unit 13 includes one or more processors. The processor may include but is not limited to a microprocessor MCU or a programmable logic device FPGA. The processor executes various functional applications and data processing by running a computer program stored in the memory 4, that is, realizing the dimming compensation method.

[0060] Optionally, the memory 14 includes a high-speed random access memory 14, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 14 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the light source device via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The memory 14 may be arranged in the light source control unit 13, or may be arranged outside the light source control unit 13. Computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the dimming compensation method in the present embodiment.

[0061] Optionally, the light source device 1 also includes a transmission device and an input / output device for communication functions. The transmission device is used to receive or send data via a network. The network includes a wireless network provided by a communication provider of the light source device. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one embodiment, the transmission device can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet or other electronic devices (such as image processing equipment, etc.) wirelessly.

[0062] In the dimming compensation solution of related technology, due to the large amount of endoscope light source testing, the compensation value is completed by connecting to external detection devices and LADView-like software simulation components. The external detection devices and software are mainly used for factory inspection. After the light source equipment is put into use, it is difficult to track the compensation online and in real time due to the limitations of the external detection devices or software. This will cause the compensation value to be fixed. As time changes, the earlier compensation value may no longer meet the actual use requirements.

[0063] As time goes by, it is found that in addition to the gradual decrease in the lumen-Vert rate of the light source device, the response characteristics of the light source device also change, that is, the mapping relationship between the input dimming parameters and the output light radiation changes. In this case, if the dimming parameters are still compensated based on the initial compensation value, the compensated dimming parameters will not be able to drive the light source device to output light that meets the theoretical light radiation. The main reason is that in the traditional solution, the compensated dimming parameters can only adapt to the response characteristics of light source devices that are relatively old or even when they leave the factory. If the compensated dimming parameters can adapt to the actual response characteristics of the light source device at the moment, this problem can be improved.

[0064] Based on the above analysis, in one embodiment, Figure 2 As shown, a flowchart of a dimming compensation method is provided, and the method is applied to Figure 1 The light source device in is used as an example to illustrate, including the following steps:

[0065] Step S201, obtaining target light radiation amount.

[0066] The target light radiation amount can be obtained by receiving instructions from an image processing device; or by receiving instructions input by a user. The image processing device is used to process images, and the instructions can include the actual value of the target light radiation amount and / or the storage address where the actual value of the target light radiation amount is stored. In practical applications, the target light radiation amount can be actively obtained after the light source device is turned on, or the target light radiation amount can be determined by passively receiving instructions issued by the image processing device or input by the user during the operation of the light source device. The specific information can be determined according to the actual application situation.

[0067] Step S202, determining the initial dimming parameters associated with the target light radiation amount, and the target dimming compensation value associated with the target light radiation amount; wherein the target dimming compensation value is obtained by the historical dimming parameters of the light source device within a preset time range and the light radiation amount output in response to the historical dimming parameters.

[0068] In practical applications, the light source device can be set to output one or more than two levels of light radiation, and the target light radiation belongs to one of them. Each level of light radiation has a corresponding dimming parameter for driving the light source device. The dimming parameter can include an electrical signal value, such as a current value or a voltage value. The initial dimming parameter can be the dimming parameter that has been set for the light source device since it leaves the factory. Ideally, the initial dimming parameter can drive the light source device to output light of the target light radiation.

[0069] The historical dimming parameters refer to the historical data of the dimming parameters that drive the light source device before obtaining the target light radiation. The light radiation output by the historical dimming parameters, that is, the actual light radiation output by the light source device when the light source device is driven according to the historical dimming parameters. The dimming compensation value is obtained by the historical dimming parameters of the light source device and the light radiation output in response to the historical dimming parameters. This operation process can be regarded as the calibration of the dimming parameters. That is, by comparing the difference between the theoretical light radiation and the actual light radiation of the light output by the light source device when the light source device is driven according to the historical dimming parameters, it is determined that if the output light needs to reach the theoretical light radiation, the compensation amount of the historical dimming parameters (that is, the target dimming compensation value) is required. This setting can make the dimming parameters compensated by the target dimming compensation value more adaptable to the current response characteristics of the light source device, thereby improving the compensation effect.

[0070] At least one dimming parameter calibration can be performed within the preset time range. The preset time range can be a time range obtained by going back a period of time from the moment when the target light radiation is obtained. It can be understood that the preset time range includes the current startup time of the light source device. Optionally, the preset time range is less than the length of time that has passed since the light source device was first powered on until the current startup.

[0071] Considering that the closer the calibration time of the dimming parameters is to the acquisition time of the target light radiation, the better the dimming compensation effect is, the dimming compensation value generated by the most recent calibration of the dimming parameters can be selected as the target dimming compensation value. Optionally, the most recent calibration of the dimming parameters can be after the current startup of the light source device and before the acquisition time of the target light radiation. Considering that the calibration of the dimming parameters takes a certain amount of time, the calibration may not be completed after the current startup of the light source device until the target light radiation is acquired, which is inconvenient for users. Optionally, the most recent calibration of the dimming parameters is performed after the last or previous startup of the light source device. That is, after the current startup of the light source device, the dimming compensation value calculated by the last or previous calibration can be used as the target dimming compensation value.

[0072] Step S203: performing parameter compensation on the initial dimming parameters according to the target dimming compensation value to obtain the target dimming parameters.

[0073] The initial dimming parameter is compensated by operating the target dimming compensation value and the initial dimming parameter according to a preset constraint relationship. The preset constraint relationship includes but is not limited to four arithmetic operations, logical operations, or a combination of the two.

[0074] Step S204: driving the light source device to output light based on the target dimming parameter.

[0075] The target dimming parameters can control the light source device to output a light beam of corresponding light radiation amount, and the actual light radiation amount of the light beam is closer to the target light radiation amount than the light radiation amount of the light beam corresponding to the initial dimming parameters.

[0076] In the above steps S201 to S204, the initial dimming parameters are compensated based on the dimming compensation value, and then the light output is controlled based on the compensated target dimming parameters, wherein the target dimming compensation value is obtained by the historical dimming parameters of the light source device within a preset time range and the light radiation output in response to the historical dimming parameters, and has the characteristic of dynamic update, that is, it can adapt to the actual device status of the light source device, and can achieve accurate control of the actual light radiation output by the light source device, so as to achieve better dimming compensation effect. Therefore, based on the embodiment of the present application, when the lumen Vert rate of the light source device gradually decreases with the increase of service life, the light radiation of the actual output light of the light source device can still be effectively maintained, so that the performance of the light source device is more reliable and can better meet the actual use needs of users.

[0077] In one embodiment, Figure 3 An endoscope system is provided. Figure 3 As shown, the endoscope system includes: a light source device 1, a display 2, an image processing device 3 and an endoscope 4.

[0078] During use, the light source device 1 provides a searchlight source for the endoscope 4 to shoot by executing the dimming compensation method of the above embodiment. The endoscope 4 sends the collected image data to the image processing device 3 for image processing, and the image processing device 3 sends the processed image to the display 2 for display. The display 2 can be a liquid crystal display or an electronic ink display. The display can be covered with a touch layer to receive user commands, or supplemented by an input device such as a keyboard to receive user commands. The endoscope 4 is provided with a light sensor and a window. The image processing device 3 and the endoscope 4 can be integrated into an endoscope to connect to external medical equipment.

[0079] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the endoscope system to which the scheme of the present application is applied. The specific endoscope system may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0080] As an embodiment of the present application, the light source device 1 may execute steps S201 to S204 when a dimming signal is detected; wherein the dimming signal is triggered by a frame interval signal, and the frame interval signal is a signal generated before a single image frame is acquired. With such a configuration, when the light sensor acquires a target image frame, the required amount of radiant light can be provided to the light sensor. Among them, dimming compensation can be triggered on demand, for example, dimming compensation is performed once before a certain image frame is generated, or dimming compensation is performed once before each image frame of multiple image frames is generated. In actual applications, the image processing device 3 issues instructions to perform AE dimming according to the needs of the light sensor camera scene. The light source device 1 responds to the instructions issued by the image processing device 3, compensates for the corresponding dimming parameters to drive the LED inside it to emit light. The light is emitted through the window of the endoscope to illuminate the patient's part to be diagnosed.

[0081] To facilitate understanding of the dimming compensation effect of this embodiment, Figure 4 A comparison diagram of the dimming compensation method of this embodiment and the traditional dimming compensation method is given. Figure 4 As shown, A is the light sensor sampling timing, B is the frame interval signal timing, C is the signal timing of the traditional dimming compensation method, and D is a signal timing of the dimming compensation method of this embodiment. Among them, in the signal timing of the traditional dimming compensation method, c is the compensation value, cM is the Mth compensation value, T ACQis the sampling interval, which depends on the duration requirement of the light sensor. In a signal timing of the dimming compensation method of this embodiment, dcm is a dimming signal, which is triggered by a frame interval signal (Frame_Sync), and Tdcm is the dimming compensation duration, which only depends on the frame interval signal. It can be seen that the traditional dimming compensation method depends on the light sensor sampling interval and requires multiple blind adjustments. In this implementation, multiple blind adjustment triggers are improved to one dimming compensation, which is independent of the light sensor sampling interval, and is normalized to one time in terms of duration to avoid oscillation. When there are multiple LEDs of different colors in the light source device 1, the monochrome compensation responsiveness is high, and the color tone of the mixed color light source is maintained stable.

[0082] In one embodiment, Figure 5 The working principle of an endoscope system is given. Figure 5 As shown, the endoscope system includes an endoscope and a light source device. The endoscope is integrated with an image processing device and an endoscope to connect to external medical equipment. The light source device includes a light source control unit, an LED array, a PD array and a non-volatile storage medium. The light source control unit includes a light source setting calculation unit, a light source driving unit, a compensation model and a resource pool interface. The compensation model and the light source setting calculation unit realize information interaction through the resource pool interface. The compensation model can perform light radiation reference value acquisition, off-site application startup training, dimming compensation calculation and data caching. The cached data includes dimming compensation value, initial dimming parameters and light radiation reference value. During the operation of the endoscope system, the compensation model calculates and generates a dimming compensation value, generates an LED driving current according to the dimming compensation value, and transmits the LED driving current to the light source setting calculation unit through the resource pool interface. Then, the light source setting calculation unit sends it to the light source driving unit, and the light source driving unit uses the LED driving current to drive the LED array to emit light. The PD array detects the output of the LED array, obtains the light radiation O / E signal, and feeds the light radiation O / E signal back to the compensation model through the resource pool interface. Among them, the compensation model is based on SoC (System On Chip) FPGA (Field-Programmable Gate Array), which calculates the compensation values ​​of multi-channel LEDs in real time and in parallel, without the need to connect to external devices or other LabCAD-type simulation software.

[0083] In actual applications, when the amount of monochromatic light deviates from the expected benchmark, the hue of the light source deteriorates. In this case, a button can be set in the endoscope system to trigger the dimming compensation operation, so that the light source device starts to traverse the dimming compensation calculation. The light source device polls the factory light quantity, obtains the compensated dimming parameters by mixing and calculating multiple sets of data, and performs compensation calculations on the light sources of each mode such as white light and special light in turn, and stores them in non-volatile media. Every time the endoscope is restarted, the reconstructed dimming compensation value can be directly called to achieve the maintenance of the hue of medical observation. The endoscope system provided in this embodiment is not restricted by external equipment and device conditions, supports off-site applications, and maintains consistent appearance and color rendering during the life cycle. By executing the dimming compensation method provided in the above embodiment, the dimming compensation value can be cached to the storage medium to ensure that the dimming process of the image processing device is directly called to achieve the effect of low latency and high responsiveness.

[0084] In some embodiments, the dimming parameter calibration will also be performed before obtaining the target light radiation. The response characteristics of the light source equipment will change over time. If the calibration data is not maintained in time, the compensated dimming parameters will not keep up with the changes in the response characteristics, and some dimming compensation effects will be lost, especially when the calibration time is far away from the current time. Therefore, the calibration trigger conditions can be set according to actual usage requirements to maintain the validity of the calibration data. Details are as follows:

[0085] Calibration scenario 1: In response to an operation instruction input by a user, dimming compensation values ​​corresponding to a plurality of light radiation quantities are calculated.

[0086] The light source device can be provided with an interactive device to receive operation instructions input by the user and perform calibration of dimming parameters. In actual applications, it takes a certain amount of time for the user to turn on the endoscope function and insert the endoscope into the human body. Based on this, in some embodiments, the operation instruction includes: a power-on instruction corresponding to the power-on function and / or a restart instruction corresponding to the restart function. In this embodiment, the calibration of dimming parameters is performed from the time when the light source device is turned on / restarted to the time when the target light radiation amount is obtained, and the time when the multiplexed light source device is turned on to the time when the endoscope is inserted into the human body is used, so as to realize non-sensitive operation for the user. In actual use, no waiting and real-time adjustment to the actual required light radiation amount is realized.

[0087] In some embodiments, a corresponding calibration function may be provided in the light source device for manual operation when required by the user, and the operation instruction includes: a calibration instruction corresponding to the calibration function, that is, calibration is started when it is detected that the user turns on the calibration function.

[0088] Calibration scenario 2: When the current startup of the light source device reaches a preset time from the first startup, the dimming compensation values ​​corresponding to multiple light radiation quantities are calculated.

[0089] After the light source device is turned on, check the time difference between the current power-on time and the first power-on time. If the time difference between the current power-on time and the first power-on time reaches the preset time, a calibration is triggered. Since the calibration is automatically triggered at a fixed time, the dimming compensation value has a certain real-time performance. Among them, the specific value of the preset time can be set according to actual needs, for example, it can be: one week, half a month, one month or one year. Multiple preset time lengths can be set, for example, one week, half a month, one month or one year, that is, the light source device is calibrated once when it reaches one week after the first power-on, and calibrated again when it reaches half a month, and so on, so as to maintain the real-time performance of the dimming compensation value for a long time and to ensure the distortion-free output of the radiated light every time the user uses it as much as possible.

[0090] Calibration scenario 3: When the preset compensation cycle is reached, the dimming compensation values ​​corresponding to multiple light radiation quantities are calculated. That is, the dimming compensation values ​​corresponding to multiple light radiation quantities are calculated regularly according to the preset compensation cycle to maintain the real-time performance of the dimming compensation value for a long time, and to ensure the distortion-free output of the radiation light quantity every time the user uses it as much as possible. Among them, the preset compensation cycle can be set according to actual needs, for example, it can be: one week, half a month, one month or one year, etc.

[0091] It should be noted that the trigger conditions of the above three calibration scenarios can be freely combined and implemented in actual applications. For example, all three can be set, and the calibration operation can be triggered when any calibration scenario occurs. Moreover, the multiple light radiation quantities involved in the calibration may or may not include the target light radiation quantity. If it is not included, the target dimming compensation value corresponding to the target light radiation quantity can be inferred through historical data or existing calibration data.

[0092] The embodiment of the present application sets the trigger conditions for calibration according to actual usage requirements, wherein calibration scenario 1 can be manually triggered by the user, calibration scenario 2 can automatically trigger calibration at a fixed time, and calibration scenario 3 can automatically trigger calibration periodically. Such a setting realizes the maintenance of calibration data, thereby improving the validity of calibration data.

[0093] In some embodiments, the light source device includes a plurality of light source modes, and in different light source modes, the wavelength bands of the light output by the light source device are not exactly the same; each light source mode includes a plurality of dimming gears, and each dimming gear corresponds to a different light radiation amount. Considering that in actual applications, when the user needs to use the endoscope in a shorter time, it is necessary to give priority to meeting the actual needs of the user. The calibration process takes a certain amount of time, so it may happen that the actual operation time required by the user is shorter than the time required for the calibration to be completed. For example, in some emergency scenarios, medical staff need to use the light source device to output light to the endoscope immediately after turning on the light source device, during which the calibration process may not be fully completed. Therefore, based on the above-mentioned calibration scenarios, in order to meet the actual use needs of the user as much as possible, the order of calibration of the adjustment parameters can be set according to the actual situation of the user. In the process of calculating the dimming compensation values ​​corresponding to the multiple light radiation amounts, the operations are performed in sequence according to the priority order of the adjustment parameters to meet the actual needs of the user as much as possible. Details are as follows:

[0094] Priority case 1: Get the priority of each light source mode, and traverse and calculate the dimming compensation value of each light radiation amount in each light source mode in order of priority; the priority is positively correlated with the frequency of the light source mode being used. If a user preset operation is detected, the traversal calculation is terminated.

[0095] A certain common mode can be selectively prioritized according to the actual use of the endoscope. That is, the adjustment parameters corresponding to the light radiation amount in the common mode are calibrated preferentially to prevent the situation where the user needs to use the endoscope for inspection in a short period of time after turning on the endoscope function or starting the light source device under special circumstances. Among them, the priority of the light source mode can be determined based on the historical frequency of use of the light source mode by users stored locally, or it can also be set by a technician based on the historical frequency of use of the light source mode by a large number of users, so as to be close to the actual needs of the user. When user operation is detected during the calibration process, the calibration is terminated after the calibration of the current dimming gear is completed. Optionally, when resuming the calibration, the dimming gear priority calibration of the last breakpoint can be continued. Optionally, in some embodiments, the light source mode includes three light modes: WLI, EBI, and PSI.

[0096] Priority case 2: Get the priority of each dimming gear, and traverse and calculate the dimming compensation value of each dimming gear in order of priority; the priority is positively correlated with the frequency with which the dimming gear is used; when a user preset operation is detected, the traversal calculation is terminated.

[0097] Depending on the actual use of the endoscope, a certain commonly used dimming gear can be selectively prioritized. That is, the adjustment parameters corresponding to the light radiation amount of the dimming gear are calibrated preferentially to prevent the situation where the user needs to use the endoscope for inspection in a short period of time after turning on the endoscope function or starting the light source device under special circumstances. Among them, the priority of the dimming gear is determined based on the historical usage frequency of the dimming gear by the user stored locally, or it can also be set by a technician based on the historical usage frequency of the dimming gear by a large number of users, so as to be close to the actual needs of the user. When user operation is detected during the calibration process, the calibration is terminated after the calibration of the current dimming gear is completed. Optionally, when resuming the calibration, the dimming gear priority calibration of the last breakpoint can be continued.

[0098] It should be understood that since each light source mode has multiple different dimming gears, the above-mentioned priority situation 1 and priority situation 2 can be implemented in combination. That is, the light source mode to be calibrated first can be determined according to the light source mode priority, and when operating a specific light source mode, the calibration operation is performed on each dimming gear in the current light source mode in turn according to the dimming gear priority.

[0099] The embodiment of the present application sequentially performs calibration operations according to the priority order of light source modes and / or dimming gears, wherein priority case 1 can meet the application requirements of having priority calibration for a specific light source mode, priority case 2 can meet the application requirements of having priority calibration for a specific dimming gear, and the combination of priority case 1 and priority case 2 can meet the application requirements of having priority calibration for a specific dimming gear in a specific light source mode. In short, through the present application, the calibration order can be adjusted according to actual use requirements, thereby improving the flexibility of calibration.

[0100] The following embodiments will introduce the calibration method of the dimming parameters in this application.

[0101] In one embodiment, dimming parameters can be calibrated for multiple light radiation quantities; wherein the multiple light radiation quantities include a target light radiation quantity; the first light radiation quantity reference value is a reference value of any light radiation quantity among the multiple light radiation quantities, and the first dimming parameter is a dimming parameter associated with the first light radiation quantity reference value. Assume that the light source device has multiple dimming gears, and each dimming gear has a corresponding light radiation quantity reference value. In the embodiment of the present application, the calibration operation of the dimming parameters for each dimming gear is the same, so only a single dimming gear is used as an example for illustration. Figure 6 The process of calibrating the dimming parameters of a certain dimming gear is given, such as Figure 6 As shown, the process includes the following steps:

[0102] Step S301 : obtaining a first light radiation amount y1 output by a light source device in response to a first dimming parameter x1 .

[0103] Step S302, adjusting the current dimming parameter used to drive the light source device until the difference between the second light radiation amount y2 output by the light source device and the first light radiation amount reference value ye is reduced to below a threshold, and determining the second dimming parameter x2 of the second light radiation amount y2. The adjustment degree of the current dimming parameter can be determined according to the difference between the current light radiation amount and the first light radiation amount reference value, and the current dimming parameter is adjusted based on the adjustment degree.

[0104] Step S303, determine the dimming compensation value xq of the first dimming parameter x1 according to the first dimming parameter x1, the first light radiation amount y1, the second dimming parameter x2, the second light radiation amount y2, and the first light radiation amount reference value ye. The mapping relationship f between the dimming parameter and the light radiation amount can be determined according to the first dimming parameter x1, the first light radiation amount y1, the second dimming parameter x2, and the second light radiation amount y2; and then determine the dimming compensation value xq of the first dimming parameter x1 according to the mapping relationship f, the first light radiation amount reference value ye and the first dimming parameter x1. Exemplarily, according to the principle that two points determine a straight line, the slope k and the constant b of the straight line determined by (x1, y1) and (x2, y2) are calculated to obtain the mapping relationship f(x)=kx+b. Let f(x)=ye, xe can be calculated, and the dimming compensation value xq is obtained by subtracting xe from x1.

[0105] In one embodiment, Figure 7 Given Figure 6 A flowchart of an optional implementation method of step S302 is shown in FIG. Figure 7 As shown, the process includes the following steps:

[0106] Step S401, obtaining the current light radiation amount output by the light source device in response to the current dimming parameters.

[0107] Step S402, determining whether the difference between the current light radiation amount and the first light radiation amount reference value is greater than a preset threshold; if so, executing step S403; if not, executing step S404.

[0108] Step S403, increase the current dimming parameter, and return to step S401. The degree of increase of the current dimming parameter can be determined according to the difference between the current light radiation and the first light radiation reference value. For example, the greater the difference, the greater the increase. Conversely, the smaller the difference, the smaller the increase.

[0109] Step S404, stop adjusting.

[0110] The following will introduce the calibration method of the dimming parameters in the above embodiment in combination with actual application scenarios.

[0111] In one embodiment, when the calibration is triggered, the light source device starts the compensation calculation of the ergodic dimming. Figure 8 A schematic diagram of compensation calculation for ergodic dimming is given. Figure 8 As shown, the light source device has 1024 dimming gears, and Ye_0 to Ye_1023 represent the factory light quantity gold standard (i.e., light radiation quantity reference value) from the 0th dimming gear to the 1023th dimming gear, and also represent the light radiation quantity O / E signal. {X1 / Y1} represents the first dimming value group, where X1 represents the initial dimming parameter and Y1 represents the actual light radiation quantity corresponding to X1. {X2 / Y2} represents the second dimming value group, where X2 represents the dimming parameter after the second adjustment and Y2 represents the actual light radiation quantity of X2. X3_0 to X3_1023 represent the dimming compensation values ​​of the monochromatic light source from the 0th dimming gear to the 1023rd dimming gear, respectively. Among them, X is composed of the current data matrix of the monochromatic R / G / B / V…N, which is used as the input of the monochromatic LED. Y is composed of the light quantity data matrix of the monochromatic R / G / B / V…N, which is used as the electrical signal output of the photoelectric detection module.

[0112] The factory setting of the light source controls the light input X1. When the output Y1 does not match the gold standard, the offset offset is used to adjust the light X2 in proportion. The light radiation flux output data Y1 / Y2 after the LED photoelectric conversion is obtained. The two sets of data {X1 / Y1} and {X2 / Y2} are mixed and calculated as numerical outputs. When the output dimming matches the target light quantity and the target is locked, the dimming gear compensation calculation is completed. Each dimming gear is polled in turn until all dimming gears are polled, and finally stored in a readable and writable storage medium.

[0113] For example, Fig. 9 Given Figure 8 The compensation calculation method of ergodic dimming. Fig. 9 As shown, the following steps are included:

[0114] Step S501, obtaining a reference value ye of the total dimming light radiation amount;

[0115] Step S502, starting the compensation polling process;

[0116] Step S503, FSM=0; polling dimming address addr++, first dimming; photodetector samples real light radiation y1; compares y1 with ye; if y1 is greater than ye, Alm is set to 1; wherein FSM is a state machine;

[0117] Step S504, FSM=1; Alm level adaptation, Offset setting; wherein Offset is set to the default ratio value 8;

[0118] Step S505, FSM=2; addrin+offset dimming setting, second dimming;

[0119] Step S506, FSM=3; the photoelectric detector samples the actual light radiation amount y2;

[0120] Step S507, FSM=4; Output xe, third dimming;

[0121] Step S508, determine whether Alm is 0; if so, execute step S509; if not, return to step S507;

[0122] Step S509, write operation of compensation value Dcm_Bram;

[0123] Step S510, determining whether the compensation polling process is completed; if so, executing step S511; if not, returning to step S503; if it is finished, closing the polling process;

[0124] Step S511, the host computer starts a non-volatile storage medium write operation; the compensation polling process ends here;

[0125] Step S512, the endoscope is running, and the image processing device receives a brightness adjustment frame synchronization signal and a dimming signal;

[0126] Step S513, determine whether dcm_enable is set to 1; if so, execute step S514; if not, execute step S515; wherein dcm_enable is hue compensation enable;

[0127] Step S514, selecting 0 / 1 / 2 ... / N LED compensation currents;

[0128] Step S515, selecting 0 / 1 / 2 ... / N LED driving currents;

[0129] Step S516: inputting DAC drive and PWM drive to the LED.

[0130] In one embodiment, Fig.10 A dimming compensation device is provided. Fig.10As shown, the dimming compensation device includes: an acquisition module 101, a determination module 102, a compensation module 103 and a driving module 104. The acquisition module 101 is used to acquire the target light radiation. The determination module 102 is used to determine the initial dimming parameters associated with the target light radiation, and the target dimming compensation value associated with the target light radiation; wherein the target dimming compensation value is obtained by the historical dimming parameters of the light source device within a preset time range and the light radiation output in response to the historical dimming parameters. The compensation module 103 is used to perform parameter compensation on the initial dimming parameters according to the target dimming compensation value to obtain the target dimming parameters. The driving module 104 is used to drive the light source device to output light based on the target dimming parameters.

[0131] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0132] The terms "module", "unit", "subunit" and the like used above may be a combination of software and / or hardware that implements the predetermined functions. Although the devices described in some embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0133] In addition, in combination with the dimming compensation method provided in the above embodiments, a storage medium may be provided in this embodiment to implement the dimming compensation method. The storage medium stores a computer program; when the computer program is executed by a processor, any dimming compensation method in the above embodiments is implemented.

[0134] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0135] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0136] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A dimming compensation method, characterized in that: include: Obtaining target light radiation amount; Determine an initial dimming parameter associated with the target light radiation amount, and a target dimming compensation value associated with the target light radiation amount; wherein the target dimming compensation value is obtained by a historical dimming parameter of the light source device within a preset time range and a light radiation amount output in response to the historical dimming parameter; According to the target dimming compensation value, the initial dimming parameter is compensated to obtain the target dimming parameter; The light source device is driven to output light based on the target dimming parameter.

2. The dimming compensation method according to claim 1, characterized in that: Before obtaining the target light radiation amount, the method further includes: In response to an operation instruction input by a user, dimming compensation values ​​corresponding to a plurality of light radiation quantities are calculated; or, When the time between the current startup and the first startup of the light source device reaches a preset time, the dimming compensation values ​​corresponding to the plurality of light radiation quantities are calculated; or When the preset compensation period is reached, the dimming compensation values ​​respectively corresponding to the plurality of light radiation quantities are calculated.

3. The dimming compensation method according to claim 1, characterized in that: The light source device includes multiple light source modes. In different light source modes, the wavelength bands of the light output by the light source device are not completely the same; each light source mode includes multiple dimming gears, and each dimming gear corresponds to a different light radiation amount; Before obtaining the target light radiation amount, the method further includes: Obtaining the priority of each light source mode, and traversing and calculating the dimming compensation value of each light radiation amount in each light source mode according to the priority order; the priority is positively correlated with the frequency of use of the light source mode; and / or obtaining the priority of each dimming gear, and traversing and calculating the dimming compensation value of each dimming gear according to the priority order; the priority is positively correlated with the frequency of use of the dimming gear; When a user preset operation is detected, the traversal calculation is terminated.

4. The dimming compensation method according to claim 1, characterized in that: Before obtaining the target light radiation amount, the method further includes: When the dimming signal is detected, the step of obtaining the target light radiation amount is returned to be executed.

5. The dimming compensation method according to claim 4, characterized in that: The dimming signal is triggered by a frame interval signal, and the frame interval signal is a signal generated before acquiring a single image frame.

6. The dimming compensation method according to any one of claims 1 to 5, characterized in that: Before obtaining the target light radiation amount, the method further includes: Calibrate dimming parameters for multiple light radiation quantities; wherein the multiple light radiation quantities include the target light radiation quantity; the first light radiation quantity reference value is the reference value of any light radiation quantity among the multiple light radiation quantities, and the first dimming parameter is the dimming parameter associated with the first light radiation quantity reference value; The calibration operation of the first dimming parameter includes: Acquiring a first light radiation amount output by the light source device in response to the first dimming parameter; Adjusting a current dimming parameter for driving the light source device until a difference between a second light radiation amount output by the light source device and a reference value of the first light radiation amount is reduced to below a threshold, and determining a second dimming parameter for the second light radiation amount; A dimming compensation value of the first dimming parameter is determined according to the first dimming parameter, the first light radiation amount, the second dimming parameter, the second light radiation amount, and a reference value of the first light radiation amount.

7. The dimming compensation method according to claim 6, characterized in that: The adjusting the current dimming parameters for driving the light source device includes: According to the difference between the current light radiation amount and the first light radiation amount reference value, the adjustment degree of the current dimming parameter is determined, and the current dimming parameter is adjusted based on the adjustment degree.

8. The dimming compensation method according to claim 6, characterized in that: Determining a dimming compensation value of the first dimming parameter according to the first dimming parameter, the first light radiation amount, a second dimming parameter, the second light radiation amount, and a reference value of the first light radiation amount includes: Determine a mapping relationship between a dimming parameter and an optical radiation amount according to the first dimming parameter, the first optical radiation amount, the second dimming parameter, and the second optical radiation amount; A dimming compensation value of the first dimming parameter is determined according to the mapping relationship, the first light radiation reference value and the first dimming parameter.

9. A light source device, characterized in that: include: A light emitting module, a light source control unit and a memory; wherein, The memory stores a computer program, and the light source control unit implements the steps of any one of claims 1 to 8 when executing the computer program.

10. The light source device according to claim 9, characterized in that: The light source device further comprises: a photoelectric detection module; The photoelectric detection module is used to detect the light radiation amount output by the light emitting module, and feed back the detected light radiation amount to the light source control unit.

11. An endoscope system, characterized in that: include: A display, an image processing device, an endoscope, and the light source device according to claim 10.

12. A dimming compensation device, characterized in that: include: An acquisition module, used for acquiring target light radiation amount; A determination module, used to determine an initial dimming parameter associated with the target light radiation amount, and a target dimming compensation value associated with the target light radiation amount; wherein the target dimming compensation value is obtained by a historical dimming parameter of the light source device within a preset time range and a light radiation amount output in response to the historical dimming parameter; A compensation module, configured to perform parameter compensation on the initial dimming parameter according to the target dimming compensation value to obtain a target dimming parameter; A driving module is used to drive the light source device to output light based on the target dimming parameter.