Driving method and device, light emitting control equipment and endoscope system
By using the preset lookup table and the compensation coefficient of the target mirror in the endoscope system, the deleted radiation power value of the target light source is determined and driven, the color temperature and tone changes caused by light guide attenuation is solved, and the effect of precise control and time-saving and labor-saving is achieved.
Patent Information
- Application Number
- CN202311781884.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2025-06-24
AI Technical Summary
The attenuation of light guide in the endoscopic system causes changes in the color temperature and tone parameters that irradiate to the target to be tested, affecting clinical diagnosis. The existing plan requires the factory to be repaired in a time-consuming and laborious manner.
The initial radiated power value is determined by the preset lookup table and the initial driving parameters of the target light source, and compensated by the compensation coefficient of the target mirror body to obtain the target driving parameters to drive the target light source.
It realizes accurate control of the output radiation of the light source host, reduces the impact of light guide attenuation, and does not require factory repair, saving time and effort.
Smart Images

Figure CN120201612A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of optical technologies, and particularly to a driving method, a device, a light output control device, and an endoscope system. Background Art
[0002] Taking the endoscope field as an example, an endoscope system is an important optical detection instrument in the medical field. Currently, an endoscope system usually uses a light-emitting diode (LED) as a light source. For example, a combination of a red R-LED, a green G-LED, and a blue B-LED is used as the light source. Further, the light source emits light through an illumination light transmission channel and irradiates a target to be measured.
[0003] As the number of times the endoscope system is used increases and time goes by, the light guide attenuation will occur in the transmission channel, resulting in changes in parameters such as the color temperature and color tone of the light irradiating the target to be measured, which is not conducive to clinical diagnosis.
[0004] However, in related solutions, the endoscope system needs to be sent back to the factory for repair to reduce the influence of light guide attenuation in the transmission channel. However, the above method is time-consuming and laborious. Summary of the Invention
[0005] Based on this, it is necessary to provide a driving method, a device, a light output control device, and an endoscope system that can save time and effort for the above technical problems.
[0006] In a first aspect, this application provides a driving method, including:
[0007] Determine a first radiation power value corresponding to the initial driving parameter according to a preset look-up table and the initial driving parameter of the target light source; the preset look-up table includes the radiation power values output by the light source host corresponding to the target light source under a variety of different driving parameters; the light source host contains a variety of light sources, and the target light source is any one of the variety of light sources;
[0008] Compensate the first radiation power value by using the compensation coefficient of the target lens body for the target light source to obtain a second radiation power value; the target lens body is connected to the light source host;
[0009] Determine a target driving parameter corresponding to the second radiation power value according to the second radiation power value and the preset look-up table;
[0010] Drive the target light source to emit light by using the target driving parameter.
[0011] In one embodiment, before determining the first radiation power value corresponding to the initial driving parameter according to the preset look-up table and the initial driving parameter of the target light source, the method further includes:
[0012] When the head end of the target lens body is inside the white balance cap and the target light source is driven using preset driving parameters, obtain the current response output value of the image sensor in the head end of the target lens body;
[0013] Determine the compensation coefficient of the target lens body for the target light source according to the current response output value and the reference response output value;
[0014] The reference response output value is: the output value of the image sensor in the head end of the standard lens body when the standard lens body is connected to the light source host, the head end of the standard lens body is inside the white balance cap, and the target light source is driven using preset driving parameters.
[0015] In one embodiment, determining the compensation coefficient of the target lens body for the target light source according to the current response output value and the reference response output value includes:
[0016] If the current response output value is inconsistent with the reference response output value, adjust the preset driving parameters to obtain the first driving parameter; wherein, when the target light source is driven using the first driving parameter, the new response output value of the image sensor in the head end of the target lens body is consistent with the reference response output value;
[0017] Determine the compensation coefficient of the target lens body for the target light source according to the first driving parameter and the preset driving parameter.
[0018] In one embodiment, determining the compensation coefficient of the target lens body for the target light source according to the first driving parameter and the preset driving parameter includes:
[0019] Determine the third radiation power value according to the preset driving parameter and the preset look-up table;
[0020] Determine the fourth radiation power value according to the first driving parameter and the preset look-up table;
[0021] Determine the compensation coefficient of the target lens body for the target light source according to the third radiation power value and the fourth radiation power value.
[0022] In one embodiment, determining the compensation coefficient of the target lens body for the target light source according to the third radiation power value and the fourth radiation power value includes:
[0023] Take the ratio between the fourth radiation power value and the third radiation power value as the compensation coefficient of the target lens body for the target light source.
[0024] In one embodiment, compensating the first radiation power value using the compensation coefficient of the target lens body for the target light source to obtain the second radiation power value includes:
[0025] Use the product of the first radiation power value and the compensation coefficient of the target mirror body for the target light source as the second radiation power value.
[0026] In one embodiment, the preset look-up table is determined by driving the target light source with multiple different driving parameters, obtaining the radiation power values of the light source host under each driving parameter, and based on each driving parameter and the corresponding radiation power value.
[0027] In a second aspect, the present application also provides a driving device, including:
[0028] A first determination module, configured to determine a first radiation power value corresponding to the initial driving parameter according to the preset look-up table and the initial driving parameter of the target light source; the preset look-up table includes the radiation power values output by the light source host corresponding to the target light source under a variety of different driving parameters; the light source host contains a variety of light sources, and the target light source is any one of the variety of light sources;
[0029] A compensation module, configured to use the compensation coefficient of the target mirror body for the target light source to compensate the first radiation power value to obtain a second radiation power value; the target mirror body is connected to the light source host;
[0030] A second determination module, configured to determine a target driving parameter corresponding to the second radiation power value according to the second radiation power value and the preset look-up table;
[0031] A first driving module, configured to drive the target light source to emit light using the target driving parameter.
[0032] In a third aspect, the present application also provides a light output control device, including a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the above driving methods are performed.
[0033] In a fourth aspect, the present application also provides an endoscope system, including: a display device, the above light output control device, and a target mirror body.
[0034] In a fifth aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the above methods are implemented.
[0035] In a sixth aspect, the present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of any one of the above methods are implemented.
[0036] In the above-mentioned driving method, device, light output control device, and endoscope system, since the preset look-up table includes the radiation power values output by the light source host corresponding to the target light source under various different driving parameters, therefore, according to the preset look-up table and the initial driving parameters of the target light source, the first radiation power value corresponding to the initial driving parameters can be determined. Since the target lens body is connected to the light source host, and the compensation coefficient of the target light source can be used to compensate the first radiation power value to obtain the second radiation power value, therefore, according to the second radiation power value and the preset look-up table, the target driving parameters corresponding to the second radiation power value are determined. Then, after driving the target light source to emit light using the target driving parameters, the LED can be driven by the compensated target driving parameters to reduce the influence of optical attenuation in the transmission channel. Since there are multiple light sources in the light source host, and the target light source is any one of the multiple light sources, therefore, on the basis of accurately controlling each target light source using the target driving parameters, accurate control of the radiation amount output by the light source host is achieved. In this process, on the one hand, there is no need for the user to return the endoscope system to the factory for repair, and the compensation and correction can be automatically performed according to the compensation coefficient, which saves time and effort. On the other hand, there is no need to add additional structures or devices, and there is no operation threshold for users, so the practicability and applicability are good. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0038] Figure 1 It is an application environment diagram of the driving method in the embodiment of the present application;
[0039] Figure 2 It is a flowchart of the driving method in the embodiment of the present application;
[0040] Figure 3 It is a flowchart of a method for determining a compensation coefficient in the embodiment of the present application;
[0041] Figure 4 It is a schematic diagram of the optical power distribution in the embodiment of the present application;
[0042] Figure 5 It is a schematic diagram of the light splitting characteristics in the embodiment of the present application;
[0043] Figure 6 It is a schematic diagram of the response principle of red light in the embodiment of the present application;
[0044] Figure 7Schematic diagram of the response principle of green light in the embodiments of the present application;
[0045] Figure 8 Schematic diagram of the response principle of blue light in the embodiments of the present application;
[0046] Figure 9 Schematic diagram of the response principle of ultraviolet light in the embodiments of the present application;
[0047] Figure 10 A comparative schematic diagram in the embodiments of the present application;
[0048] Figure 11 Schematic diagram of a process for determining a compensation coefficient in the embodiments of the present application;
[0049] Figure 12 Another schematic diagram of a process for determining a compensation coefficient in the embodiments of the present application;
[0050] Figure 13 Schematic diagram of a process for determining a preset look-up table in the embodiments of the present application;
[0051] Figure 14 Schematic diagram of the architecture for determining a preset look-up table in the embodiments of the present application;
[0052] Figure 15 Schematic diagram of the process of a driving method in the embodiments of the present application;
[0053] Figure 16 Block diagram of the structure of a driving device in the embodiments of the present application;
[0054] Figure 17 Schematic diagram of the structure of a light output control device in the embodiments of the present application;
[0055] Figure 18 Schematic diagram of the structure of an endoscope system in the embodiments of the present application. Detailed implementation manners
[0056] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to 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.
[0057] Taking the endoscope field as an example, endoscope systems usually use light sources such as xenon lamps or halogen lamps that can emit white light as illumination light. However, with the development of technology, more and more endoscope systems use a combination of LEDs of various color types as illumination light. When using an LED light source, it is usually a combination of several LEDs, such as a combination of R-LED, G-LED, B-LED, and purple V-LED. Furthermore, by independently controlling the light emission amount of each color type of LED, the ratio of each color component in the illumination light is changed to adjust the color temperature of the illumination light and the clinical diagnosis information, etc.
[0058] However, as the number of times the endoscope body is used increases and time goes by, the light transmission characteristics (transmittance) of the light guide in the endoscope body will change. Generally, it can be manifested as fiber attenuation, that is, the spectral transmittance decreases. That is to say, light guide attenuation will occur in the transmission channel within the endoscope system. And the degree of attenuation in the wavelength ranges of red, green, blue, and purple is different. Therefore, after being used for a period of time, even if the light output of the light source host in the endoscope system remains the same, due to the light guide attenuation, the ratio of each color component in the illumination light coming out of the head end will change, resulting in changes in hue and color temperature.
[0059] In some alternative solutions, the use of an image white balance algorithm can improve the phenomenon of hue change in the image. For example, when the head end is placed inside a white balance cap, the response value based on the current light output is obtained through the image sensor at the head end and compared with the response value under the standard light output, so as to obtain an image correction amount to compensate the finally generated image signal, thereby adjusting the color balance of the image display effect. However, although using the image white balance algorithm can correct the color balance problem of the image in the display device, it cannot solve the change in human tissue information caused by the change in the light output hue.
[0060] For example, blue light has a short wavelength and a high absorption rate, and it is difficult to penetrate into deep tissues, and is generally used to observe superficial blood vessels; red light has a long wavelength and a low absorption rate, and is generally used to observe deep tissues; green light with an intermediate wavelength is used to observe the body tissues in the middle part. Therefore, when the light output power ratio of blue light, green light, red light, and purple light changes, the human tissue information reflected will also change, which will have an adverse impact on the diagnosis of clinical information.
[0061] In related solutions, it is necessary to send the endoscope system back to the factory for repair to reduce the influence of light guide attenuation in the transmission channel. The above method is time-consuming and laborious. Based on this, it is necessary to propose a driving method for the above problems. The following will introduce this driving method. It should be noted that the following mainly takes the driving method applied to the endoscope field with an LED as the light source as an example for description. This driving method can also be applied to other lighting, display, and other fields, and the light source can also be of other types.
[0062] Figure 1 This is an application environment diagram of the driving method in the embodiments of the present application. Figure 1 It shows an endoscope system 100, as Figure 1 shown. Figure 1 The endoscope system 100 in includes a light source host 101, an electronic endoscope 101 (which can also be referred to as the endoscope body), and an image processing device 103. In some alternative embodiments, the light source host 101 and the image processing device 103 can also be the same device.
[0063] The light source host 101 generates illumination light, and through the illumination light transmission channel 1021 in the electronic endoscope 102, the light finally exits from the head end and irradiates the target to be measured. Then, through the image sensor at the head end ( Figure 2 not shown in ), it senses light, and then captures the specimen signal of the target to be measured to generate an image signal. Furthermore, the image signal is transmitted to the image processing device 103 through the image sensing data transmission channel 1022. The image processing device 103 further processes the image signal and is displayed by a display device ( Figure 2 not shown in ). Among them, the head end refers to the end of the illumination light transmission channel 1021 close to the target to be measured, that is, the outlet of the illumination light transmission channel.
[0064] Among them, the light source host 101 includes a processor, a driving component, an LED, and an optical waveguide. The processor can be, including but not limited to, a microcontroller unit (MCU) or an FPGA. In the light source host 101, the processor can control the driving component to drive the LED by the driving component, and direct the light emitted by the LED to a preset direction by the optical waveguide. In some embodiments, the image processing device 103 can also be implemented by an independent server or a server cluster composed of multiple servers. It should be noted that Figure 1 only shows a schematic structural diagram of an endoscope system, and the structure of the endoscope system is not limited thereto.
[0065] Figure 2 This is a flowchart of the driving method in the embodiments of the present application. In an exemplary embodiment, as Figure 2 shown, a driving method is provided. The execution subject of this method is the light output control device. The light output control device can be the light source host or the image processing device. Taking this method applied to Figure 1 the light source host in as an example for illustration, in some embodiments, this method can also be applied to Figure 1 the image processing device in , including the following S201 to S204.
[0066] S201. Determine a first radiation power value corresponding to the initial drive parameter according to a preset look-up table and the initial drive parameter of the target light source. The preset look-up table includes the radiation power values output by the light source host corresponding to the target light source under a variety of different drive parameters. The light source host contains a variety of light sources, and the target light source is any one of the variety of light sources.
[0067] In this embodiment, the light source host contains a variety of light sources, and each light source can emit light of a specific color. Taking the light source as an LED as an example, the light source host may include an R-LED, a G-LED, a B-LED, and a V-LED. The target light source refers to any one of the variety of light sources in the light source host, for example, it can be any one of the R-LED, G-LED, B-LED, and V-LED.
[0068] The drive parameter refers to the electrical parameter used to drive the target light source, which can be the digital-to-analog converter (DAC) value corresponding to the drive current or the DAC value corresponding to the drive voltage. The radiation power value is used to indicate the energy output by the light source host per unit time when driving the target LED with the drive parameter, and the unit can be W (watt).
[0069] It can be understood that for the same target light source, the radiation power values output by the light source host are different under the drive of different drive parameters. In some related technologies, the relationship between the drive parameter and the radiation power value is idealized as a certain linear relationship, and linear calculation is performed to derive the drive parameter. However, in actual applications, the applicant has found through a large number of experiments that since the light source host contains many components related to light propagation, the combined influence of these components on light propagation is non-linear. Therefore, the relationship between the drive parameter and the radiation power value is not a strictly linear relationship.
[0070] Based on this, in order to improve the accuracy of driving, a method of using a preset look-up table (LUT) is proposed to accurately quantify the mapping relationship between the drive parameter and the radiation power value. Among them, the preset look-up table includes the radiation power values output by the light source host corresponding to the target light source under a variety of different drive parameters.
[0071] Exemplarily, the preset lookup table may include the radiation power value A1 output by the light source host when the R-LED is driven by driving parameter A, the radiation power value B1 output by the light source host when the R-LED is driven by driving parameter B, etc.; the radiation power value A2 output by the light source host when the G-LED is driven by driving parameter A, the radiation power value B2 output by the light source host when the G-LED is driven by driving parameter B, etc.; the radiation power value A3 output by the light source host when the B-LED is driven by driving parameter A, the radiation power value B3 output by the light source host when the G-LED is driven by driving parameter B, and so on.
[0072] In some embodiments, the preset lookup table may further include a correspondence between the light-emitting gear of the target light source and the driving parameters. The light-emitting gear is used to indicate the brightness gear of the LED, and different light-emitting gears correspond to different driving parameters. For example, the R-LED corresponds to driving parameter A in light-emitting gear 1, corresponds to driving parameter B in light-emitting gear 2, and so on. It should be noted that the above letters are only for distinguishing examples and do not limit the number of parameters such as radiation power values in the preset lookup table.
[0073] Further optionally, the preset lookup table may be a lookup table stored in the light source host in advance, or may be a lookup table sent to the light source host by other devices.
[0074] Since the preset lookup table records the radiation power values output by the light source host corresponding to the target light source under a variety of different driving parameters, compared with the related technology that assumes a linear relationship between the driving parameters and the radiation power values, the embodiment of the present application can more accurately control the radiation power value output by the light source host, thereby reducing the degree to which the light output of the light source host is affected by the optical waveguide attenuation during actual use, and because the preset lookup table is tailored based on the target light source, it can be adapted to the situation of any light source host.
[0075] The initial driving parameters may be driving parameters of the target light source during use. Optionally, the light source host may measure the initial driving parameters of the target light source through a sensor; the light source host may also obtain the initial light-emitting gear of the target light source, and determine the initial driving parameters based on the initial light-emitting gear of the target light source and a preset lookup table. Exemplarily, it is assumed that the target light source is R-LED. If the user operates the light source of the endoscope according to actual usage requirements, and the light source host obtains that the initial light-emitting gear of the target light source is light-emitting gear 1, the light source host may determine the driving parameter A corresponding to the target light source at light-emitting gear 1 according to the preset lookup table.
[0076] Further, the light source host will determine the first radiation power value corresponding to the initial drive parameter according to the preset look-up table and the initial drive parameter of the target light source. Continuing with the above example, the light source host looks up the preset look-up table based on drive parameter A and can determine that the first radiation power value is radiation power value A1.
[0077] S202. Compensate the first radiation power value by using the compensation coefficient of the target mirror body for the target light source to obtain a second radiation power value; the target mirror body is connected to the light source host.
[0078] In this embodiment, the light source host can determine the compensation coefficient of the target mirror body for the target light source. It can be understood that after the endoscope has been used for a period of time, due to the optical fiber attenuation in the transmission channel, for the target light source, the light output at the head end will also attenuate under the same drive parameter. Therefore, in order to keep the light output at the head end unchanged, the light source host can determine the compensation coefficient of the target mirror body for the target light source and use the compensation coefficient of the target mirror body for the target light source to compensate the first radiation power value to obtain the second radiation power value. Exemplarily, assume that the radiation power value A1 is compensated to obtain a second radiation power value of radiation power value B1. Among them, the second radiation power value is usually greater than the first radiation power value.
[0079] Among them, the compensation coefficient is used to characterize the attenuation of different color lights by the target mirror body. It can be understood that the endoscope system will age with use. Since the actual usage of each endoscope system is different, the aging degree of each endoscope system is also different, and thus the degree of optical fiber attenuation is also different. Therefore, optionally, the light source host can obtain in advance the corresponding relationship between the aging data of the endoscope system, the attenuation degree of each light source, and the compensation coefficient, and then determine the compensation coefficient of the target mirror body for the target light source according to the aging data of the endoscope system. Among them, the aging data includes but is not limited to at least one of the usage duration of the endoscope, the light output mode, the light level, and the wear degree. The above corresponding relationship can be a mapping relationship in the form of a table, or a mapping relationship in the form of a function, or a mapping relationship in the form of a curve graph, etc. The embodiments of the present application do not limit this.
[0080] Taking the aging data including the usage duration as an example, assuming that when the usage duration of the endoscope system is less than 20 hours, the attenuation degree of the R-LED is 5%, and the compensation coefficient of the target lens body for the R-LED is compensation coefficient A; when the usage duration of the endoscope system is greater than or equal to 20 hours and less than or equal to 50 hours, the attenuation degree of the R-LED is 10%, and the compensation coefficient of the target lens body for the R-LED is compensation coefficient B. Then, when the endoscope system has been used for 40 hours, the light source host can determine that the compensation coefficient of the target lens body for the R-LED is compensation coefficient B. The same applies to other light sources and will not be elaborated here. Of course, the light source host can also determine the compensation coefficient by other means, and this embodiment is not limited thereto.
[0081] S203. Determine the target drive parameter corresponding to the second radiation power value according to the second radiation power value and the preset look-up table.
[0082] Furthermore, after obtaining the second radiation power value, the target drive parameter corresponding to the second radiation power value can be continuously determined according to the preset look-up table. Continuing the above example, the light source host will use the drive parameter B corresponding to the radiation power value B1 as the target drive parameter.
[0083] In some embodiments, if the second radiation power value is not in the preset look-up table, the light source host can use the drive parameter corresponding to the radiation power value with the smallest difference from the second radiation power value in the preset look-up table as the target drive parameter.
[0084] S204. Drive the target light source to emit light using the target drive parameter.
[0085] Furthermore, after obtaining the target drive parameter, the light source host can drive the target light source to emit light using the target drive parameter. For example, the light source host can send the target drive parameter to the processor of the light source host of the endoscope, so that the drive component in the light source host drives the target light source to emit light according to the target drive parameter.
[0086] In the above driving method, since the preset look-up table includes the radiation power values output by the light source host corresponding to the target light source under a variety of different driving parameters, therefore, according to the preset look-up table and the initial driving parameters of the target light source, the first radiation power value corresponding to the initial driving parameters can be determined. Since the target mirror body is connected to the light source host, and the compensation coefficient of the target light source can be used to compensate the first radiation power value to obtain the second radiation power value, therefore, according to the second radiation power value and the preset look-up table, the target driving parameters corresponding to the second radiation power value are determined. Furthermore, after driving the target light source to emit light using the target driving parameters, the LED can be driven by the compensated target driving parameters to reduce the influence of optical attenuation in the transmission channel. Since there are multiple light sources in the light source host, and the target light source is any one of the multiple light sources, therefore, on the basis of accurately controlling each target light source using the target driving parameters, accurate control of the radiation amount output by the light source host is achieved. In this process, on the one hand, there is no need for the user to return the endoscope system to the factory for repair, and the compensation and correction can be automatically performed according to the compensation coefficient, which saves time and effort. On the other hand, there is no need to add additional structures or devices, and there is no operation threshold for the user, so the practicability and applicability are good.
[0087] Figure 3 FIG. is a schematic flow chart of determining a compensation coefficient in an embodiment of the present application. In an exemplary embodiment, as Figure 3 shown, before determining the first radiation power value corresponding to the initial driving parameters according to the preset look-up table and the initial driving parameters of the target light source, the above driving method includes S301 to S302.
[0088] S301, when the head end of the target mirror body is inside the white balance cap and the target light source is driven using the preset driving parameters, obtain the current response output value of the image sensor in the head end of the target mirror body.
[0089] Before leaving the factory, the endoscope system is usually in a complete state, and the light output from the head end is standard light output. In this case, when the head end is inside the white balance cap, the R-LED, G-LED, B-LED, and V-LED are respectively lit, then the light power distributions of the light output from the head end after reflection and transmitted to the image sensor with respect to wavelength are respectively 、 、 、 . Figure 4 FIG. is a schematic diagram of a light power distribution in an embodiment of the present application. Before the endoscope system leaves the factory, 、 、 、 such as Figure 4 shown.
[0090] When environmental variables such as the gain of the image sensor in the endoscope system are fixed, according to the optical power transmitted to the image sensor , , and the spectral splitting characteristics of the image sensor , , , the response output value of the image sensor can be obtained, denoted as , , . It should be noted that the spectral splitting characteristics of the image sensor for blue light and violet light are the same. Figure 5 is a schematic diagram of a spectral splitting characteristic in an embodiment of the present application, , , such as Figure 5 shown.
[0091] Among them, the output response value of the image sensor for each color is equal to the integral of the spectral distribution of the incident light and the spectral splitting characteristic of the image sensor in the corresponding color, and multiplied by the corresponding k-value coefficient. Exemplarily, the output response value of the image sensor for red is shown in the following formula (1), the output response value of the image sensor for green is shown in the following formula (2), and the output response value of the image sensor for blue is shown in the following formula (2)
[0092] (1)
[0093] (2)
[0094] (3)
[0095] Among them, , and represent the influence of environmental variables such as the gain of the image sensor on the output response value. In this article, relevant environmental variables are fixed, so it is considered that , and are constant values. That is to say, when other conditions such as the sensor gain and white balance cap remain unchanged, the response output values , , of the image sensor for each color are only related to the light output from the head end.
[0096] Figure 6 is a schematic diagram of the response principle of red light in an embodiment of the present application, Figure 7 is a schematic diagram of the response principle of green light in an embodiment of the present application, Figure 8 is a schematic diagram of the response principle of blue light in an embodiment of the present application, Figure 9Schematic diagram of the response principle of purple light in the embodiment of the present application.
[0097] Since the head end is inside the white balance cap, the reflectivity of the white balance cap for each wavelength is fixed, that is, it can be considered that the reflectivity for each wavelength is the same. Therefore, if the light output of the head end does not change, Figure 6 (a) Figure 7 (a) Figure 8 (a) and Figure 9 (a) shows the distribution of light power transmitted to the image sensor. , , , will remain unchanged. And, if Figure 6 (b) Figure 7 (b) Figure 8 (b) and Figure 9 As shown in (b), since the spectral characteristics of the image sensor for each color remain unchanged, the response output value of the image sensor will not change.
[0098] Figure 10 This is a comparative schematic diagram of the embodiment of the present application, taking red light as an example, the principles of light sources of other colors are the same. Figure 10 As shown in Figure 1, if light guide attenuation occurs, the light output from the head end will change, and the light power distribution transmitted to the image sensor will change. will also change, thus affecting the response output value of the image sensor.
[0099] Therefore, the compensation coefficient can be determined based on the current response output value and the reference response output value. The reference response output value is: when the standard lens body is connected to the light source host, the head end of the standard lens body is in the white balance cap, and the target light source is driven by the preset driving parameters, the output value of the image sensor in the head end of the standard lens body. Among them, the standard lens body includes a lens body without light conduction attenuation or a lens body with light conduction attenuation less than a preset threshold. The preset threshold can be set according to demand, for example, a number close to 0. Furthermore, the target lens body at the time of leaving the factory can be used as the standard lens body, and other lens bodies at the time of leaving the factory can also be used as the standard lens body. The preset driving parameters can be set according to demand, and this embodiment does not impose any restrictions.
[0100] Taking the target light source as R-LED as an example, before the endoscope system leaves the factory or before the endoscope system is used, the light source host is connected to the standard scope, and the head end of the standard scope is placed in the white balance cap. The light source host can send preset driving parameters to the driving component to drive the R-LED using the preset driving parameters, and record the reference response output value of the image sensor in the head end of the standard scope at this time.
[0101] Furthermore, when the endoscope system needs to be used, after connecting the light source host to the target endoscope body and placing the head end of the target endoscope body in the white balance cap, the light source host can send the same preset driving parameter to the driving component, and the driving component drives the R-LED, and records the current response output value of the image sensor in the head end of the target endoscope body at this time. If the light guide transmits attenuation, the current response output value will change compared with the reference response output value.
[0102] It should be noted that since the responses of the blue and purple of the image sensor are the same, and in order to improve the accuracy of the compensation coefficient, the light source host can drive the target light sources in sequence to respectively determine the reference response output value and the current response output value corresponding to each target light source.
[0103] In some embodiments, after the light source host responds to the enable signal, it can then sequentially obtain the current response output values corresponding to the LEDs of each color type. For example, when the head end of the target endoscope body is inside the white balance cap, if the user clicks the button to start monitoring, the light source host can sequentially turn on the R-LED, G-LED, B-LED, and V-LED using the preset driving parameter, and respectively record the current response output values of the image sensor in the head end of the target endoscope body at this time. The reference response output value is the same, which will not be elaborated here.
[0104] S302. Determine the compensation coefficient of the target endoscope body for the target light source according to the current response output value and the reference response output value; the reference response output value is: when the standard endoscope body is connected to the light source host, the head end of the standard endoscope body is inside the white balance cap, and the target light source is driven using the preset driving parameter, the output value of the image sensor in the head end of the standard endoscope body.
[0105] In this embodiment, the light source host can determine whether the current response output value and the reference response output value are consistent, and determine the compensation coefficient of the target endoscope body for the target light source according to the result of whether the current response output value and the reference response output value are consistent.
[0106] Among them, the light source host can determine that the current response output value and the reference response output value are consistent when the current response output value is equal to the reference response output value; and determine that the current response output value and the reference response output value are inconsistent when the current response output value is not equal to the reference response output value.
[0107] The light source host can also determine that the current response output value and the reference response output value are consistent when the difference between the current response output value and the reference response output value is less than the preset difference; and determine that the current response output value and the reference response output value are inconsistent when the difference between the current response output value and the reference response output value is not less than the preset difference. Among them, the preset difference can be set according to requirements, for example, a number close to 0.
[0108] Optionally, when the current response output value is the same as the reference response output value, the light source host can determine that the compensation coefficient is 1.
[0109] In the above embodiments, since the reference response output value is the output value of the image sensor in the head end of the standard mirror body when the standard mirror body is connected to the light source host, the head end of the standard mirror body is inside the white balance cap, and the target light source is driven using the preset driving parameters. Therefore, when the head end of the target mirror body is inside the white balance cap and the target light source is driven using the preset driving parameters, the current response output value of the image sensor in the head end of the target mirror body is obtained, and based on the current response output value and the reference response output value, the compensation coefficient of the target mirror body for the target light source can be determined relatively accurately. Further, no additional structure or device needs to be added during the process of determining the compensation coefficient, and there is no operation threshold for the user, improving convenience and practicality.
[0110] Figure 11 The following is a schematic flowchart of a process for determining a compensation coefficient in an embodiment of the present application. In an exemplary embodiment, as Figure 11 shown, S202 includes S1101 to S1102.
[0111] S1101, if the current response output value is different from the reference response output value, adjust the preset driving parameters to obtain the first driving parameters; wherein, when the target light source is driven using the first driving parameters, the new response output value of the image sensor in the head end of the target mirror body is the same as the reference response output value.
[0112] In this embodiment, generally, if there is optical fiber attenuation, the current response output value will be less than the reference response output value. Of course, in some embodiments, the current response output value may also be greater than the reference response output value. When the current response output value is different from the reference response output value, parameters such as the color temperature and hue of the light irradiated to the target to be measured will change. Therefore, if the current response output value is different from the reference response output value, the light source host will adjust the preset driving parameters to obtain the first driving parameters.
[0113] Optionally, when the current response output value is less than the reference response output value, the light source host can increment the preset driving parameters. When the current response output value is greater than the reference response output value, the light source host can decrement the preset driving parameters to achieve the adjustment of the preset driving parameters.
[0114] Furthermore, when adjusting the preset driving parameters, the light source host will obtain the new response output value corresponding to the updated preset driving parameters and determine whether the new response output value is consistent with the reference response output value. If the new response output value is not consistent with the reference response output value, the light source host can continue to adjust the preset driving parameters to obtain the driving parameters updated next time, and continue to determine whether the new response output value next time is consistent with the reference response output value until the obtained new response output value is consistent with the reference response output value, and the first driving parameter is obtained. That is to say, when driving the target light source with the first driving parameter, the new response output value of the image sensor in the head end of the target lens body is consistent with the reference response output value.
[0115] Exemplarily, assume that the preset driving parameter is driving parameter A. Since the response output value A of the image sensor is not consistent with the reference response output value when the target light source is driven by driving parameter A, the light source host adjusts driving parameter A to obtain driving parameter B, and determines the response output value B of the image sensor when the target light source is driven by driving parameter B. If the response output value B of the image sensor is still not consistent with the reference response output value, the light source host can continue to adjust driving parameter B to obtain driving parameter C, and determine the response output value C of the image sensor when the target light source is driven by driving parameter C. If the response output value C of the image sensor is still not consistent with the reference response output value, the light source host can continue to adjust driving parameter C to obtain driving parameter D, and so on, which will not be elaborated here. If the response output value F of the image sensor is consistent with the reference response output value when the target light source is driven by driving parameter F, the light source host stops adjusting, and the first driving parameter is also driving parameter F.
[0116] S1102. Determine the compensation coefficient of the target lens body for the target light source according to the first driving parameter and the preset driving parameter.
[0117] Continuing the above example, the light source host can determine the compensation coefficient of the target lens body for the target light source according to driving parameter F and driving parameter A.
[0118] Optionally, the light source host can determine the degree of attenuation of the light guide according to the difference between driving parameter F and driving parameter A, and determine the compensation coefficient according to the degree of attenuation of the light guide.
[0119] Further optionally, for different light sources, the light source host can sequentially adjust to obtain corresponding compensation coefficients. Exemplarily, if the target light source includes R-LED, G-LED, B-LED, and V-LED, the light source host can first adjust the preset driving parameters of the R-LED to obtain the first driving parameters corresponding to the R-LED, and then obtain the compensation coefficient NR of the target lens body for the R-LED. Furthermore, the light source host then adjusts the preset driving parameters of the G-LED to obtain the first driving parameters corresponding to the G-LED, and then obtains the compensation coefficient NG of the target lens body for the G-LED, and so on, sequentially obtaining the compensation coefficient NR of the target lens body for the R-LED, the compensation coefficient NG of the target lens body for the G-LED, the compensation coefficient NB of the target lens body for the B-LED, and the compensation coefficient NU of the target lens body for the V-LED.
[0120] In the above embodiment, since the new response output value of the image sensor in the head end of the target lens body is consistent with the reference response output value when the target light source is driven using the first driving parameters, therefore, when the current response output value is inconsistent with the reference response output value, the preset driving parameters are adjusted to obtain the first driving parameters, and based on the first driving parameters and the preset driving parameters, the compensation coefficient of the target lens body for the target light source can be accurately determined. In this way, the determined compensation coefficient can make the current response output value close to the reference response output value, thereby realizing the compensation of the first radiation power value to reduce the influence of light guide attenuation.
[0121] Figure 12 This is a schematic flowchart of another process for determining the compensation coefficient in the embodiments of the present application. In an exemplary embodiment, as Figure 12 shown, S1202 includes S1201 to S1203.
[0122] S1201, determine the third radiation power value according to the preset driving parameters and the preset lookup table.
[0123] In this embodiment, continuing the above example, the light source host can determine the third radiation power value according to the driving parameter A and the preset lookup table.
[0124] S1202, determine the fourth radiation power value according to the first driving parameters and the preset lookup table.
[0125] Similarly, the light source host can determine the fourth radiation power value according to the driving parameter F and the preset lookup table. In some embodiments, if the first driving parameter is not in the preset lookup table, the light source host can use the radiation power value corresponding to the driving parameter with the smallest difference from the first driving parameter in the preset lookup table as the fourth radiation power value.
[0126] S1203. Determine the compensation coefficient of the target mirror body for the target light source according to the third radiation power value and the fourth radiation power value.
[0127] Further, the light source host can determine the compensation coefficient of the target mirror body for the target light source according to the third radiation power value and the fourth radiation power value. Optionally, the light source host determines the quotient value between the third radiation power value and the fourth radiation power value, and takes the product of the quotient value multiplied by the proportionality coefficient as the compensation coefficient of the target mirror body for the target light source. In this case, the compensation coefficient is greater than 0 and less than or equal to 1. The light source host can also determine the quotient value between the fourth radiation power value and the third radiation power value, and take the product of the quotient value multiplied by the proportionality coefficient as the compensation coefficient of the target mirror body for the target light source. In this case, the compensation coefficient is greater than or equal to 1 and less than or equal to 2. It can be understood that when the compensation coefficient is equal to 1, it means that the standard mirror body has no attenuation itself.
[0128] In the above embodiment, according to the preset driving parameters and the preset look-up table, the third radiation power value is determined, and according to the first driving parameter and the preset look-up table, the fourth radiation power value is determined. Furthermore, according to the third radiation power value and the fourth radiation power value, the compensation coefficient of the target mirror body for the target light source is determined. In this way, the compensation coefficient of the target mirror body for the target light source is determined according to the first driving parameter and the preset driving parameter, improving the determination efficiency of the compensation coefficient.
[0129] In an exemplary embodiment, the above S1303 can be implemented in the following manner:
[0130] Take the ratio between the fourth radiation power value and the third radiation power value as the compensation coefficient of the target mirror body for the target light source.
[0131] In this embodiment, the light source host takes the ratio between the fourth radiation power value and the third radiation power value as the compensation coefficient of the target mirror body for the target light source. The reciprocal of the compensation coefficient is also the attenuation coefficient of the optical fiber in the color band of the target light source. The larger the attenuation coefficient, the more it indicates that the driving parameter of the target light source needs to be increased, and then the light output of the light source host is increased to compensate for the optical fiber attenuation, so that the light output at the head end is the same as before and no color shift occurs.
[0132] In this embodiment, since the ratio between the fourth radiation power value and the third radiation power value is taken as the compensation coefficient of the target mirror body for the target light source, in this way, the compensation coefficient can be determined efficiently and accurately.
[0133] In an exemplary embodiment, the above S202 can be implemented in the following manner:
[0134] Take the product of the first radiation power value and the compensation coefficient of the target mirror body for the target light source as the second radiation power value.
[0135] Continuing with the above example, taking the R-LED as an example, the light source host can use the product of the first radiation power value and the compensation coefficient NR of the target mirror body for the target light source as the second radiation power value to achieve compensation for the first radiation power value. In this way, after obtaining the target driving parameter according to the second radiation power value and the preset look-up table and driving the target light source with the target driving parameter, the response output value of the image sensor will be consistent with the reference response output value, and thus the radiation power value output by the light source host can be accurately controlled, thereby ensuring the light output effect.
[0136] In this embodiment, since the product of the first radiation power value and the compensation coefficient of the target mirror body for the target light source is used as the second radiation power value, the compensation coefficient of the target mirror body for the target light source is also used to compensate the first radiation power value, thereby reducing the influence of light guide attenuation.
[0137] In an exemplary embodiment, optionally, the preset look-up table is determined by driving the target light source with multiple different driving parameters, obtaining the radiation power value of the light source host under each driving parameter, and according to each driving parameter and the corresponding radiation power value.
[0138] In this embodiment, before the endoscope leaves the factory, the preset look-up table can be determined by means of experimental calibration. To more clearly introduce the process of determining the preset look-up table, here in combination with Figure 13 for illustration. Figure 13 FIG. 13 is a schematic flowchart of a process for determining a preset look-up table in an embodiment of the present application. The process of determining the preset look-up table includes S1301 to S1303.
[0139] S1301, driving the target light source with multiple different driving parameters.
[0140] When determining the preset look-up table, different driving parameters will be used to drive the target light source first. Optionally, different light-emitting gears can be determined, and different driving parameters corresponding to each light-emitting gear can be determined.
[0141] Figure 14 FIG. 14 is a schematic architecture diagram for determining a preset look-up table in an embodiment of the present application. As Figure 14 shown, the upper computer of the spectral radiometer can send different driving parameters to the processor of the light source host, and the processor of the light source host writes the driving parameter into the driving component, so that the driving component drives the target light source according to different driving parameters.
[0142] S1302, obtaining the radiation power value of the light source host under each driving parameter.
[0143] Please continue to refer to Figure 15, the light output from the light source host is placed in the spectroradiometer through an optical fiber, and based on the spectroradiometer, the radiation power value output by the light source host of the target light source under the driving parameters is obtained.
[0144] It can be understood that different driving parameters will result in different radiation power values output by the light source host. Therefore, when driving the R-LED with driving parameter A, based on the spectroradiometer, the radiation power value A1 output by the light source host under the driving of driving parameter A can be obtained; when driving the R-LED with driving parameter B, based on the spectroradiometer, the radiation power value B1 output by the light source host under the driving of driving parameter B can be obtained; when driving the R-LED with driving parameter C, based on the spectroradiometer, the radiation power value C1 output by the light source host under the driving of driving parameter C can be obtained. The principle of the target light source of other colors is the same and will not be elaborated here. In this way, the radiation power values of the light source host under various driving parameters can be obtained.
[0145] S1303, determine a preset look-up table according to each driving parameter and the corresponding radiation power value.
[0146] Furthermore, by establishing the relationship between each target light source, each driving parameter and the corresponding radiation power value, the preset look-up table can be obtained. That is to say, the preset look-up table is determined by driving the target light source with multiple different driving parameters, obtaining the radiation power values of the light source host under each driving parameter, and according to each driving parameter and the corresponding radiation power value.
[0147] Further optionally, the relationship between each target light source, each driving parameter and the corresponding luminous level and radiation power value can be established to obtain the preset look-up table.
[0148] Table 1 is a schematic diagram of a preset look-up table, as shown in Table 1. In the case of luminous level 1: when driving the R-LED with driving parameter r1, the radiation power value output by the light source host is Wr1; when driving the G-LED with driving parameter g1, the radiation power value output by the light source host is Wg1; when driving the B-LED with driving parameter b1, the radiation power value output by the light source host is Wb1; when driving the V-LED with driving parameter uv1, the radiation power value output by the light source host is Wuv1. The same applies to other luminous levels and will not be elaborated here. In Table 1, the unit of the driving parameter can be ampere, and the unit of the radiation power value can be milliwatt.
[0149] Table 1 Preset Look-up Table
[0150]
[0151] In this embodiment, since the preset look-up table is determined by driving the target light source with multiple different driving parameters, obtaining the radiation power values of the light source host under each driving parameter, and based on each driving parameter and the corresponding radiation power value, therefore, according to the preset look-up table, the radiation power value corresponding to the driving parameter can be determined according to the driving parameter, or the corresponding driving parameter can be determined according to the radiation power value.
[0152] To more clearly introduce the driving method in the embodiments of the present application, the following is combined Figure 15 for description. Figure 15 FIG. is a schematic process diagram of a driving method in an embodiment of the present application. As Figure 15 shown, the light source host can execute the driving method according to the following process.
[0153] S1501, drive the target light source with multiple different driving parameters.
[0154] S1502, obtain the radiation power values of the light source host under each driving parameter.
[0155] S1503, determine the preset look-up table according to each driving parameter and the corresponding radiation power value. It should be noted that the steps of S1501 to S1503 occur in the experimental calibration stage before the endoscope leaves the factory.
[0156] S1504, when the head end of the target lens body is in the white balance cap and the target light source is driven by the preset driving parameter, obtain the current response output value of the image sensor in the head end of the target lens body.
[0157] S1505, if the current response output value is inconsistent with the reference response output value, adjust the preset driving parameter to obtain the first driving parameter.
[0158] S1506, determine the third radiation power value according to the preset driving parameter and the preset look-up table.
[0159] S1507, determine the fourth radiation power value according to the first driving parameter and the preset look-up table.
[0160] S1508, use the ratio between the fourth radiation power value and the third radiation power value as the compensation coefficient of the target lens body for the target light source.
[0161] S1509, determine the first radiation power value corresponding to the initial driving parameter according to the preset look-up table and the initial driving parameter of the target light source.
[0162] S1510, use the product of the first radiation power value and the compensation coefficient of the target lens body for the target light source as the second radiation power value.
[0163] S1511. Determine a target driving parameter corresponding to the second radiation power value according to the second radiation power value and a preset look-up table.
[0164] S1512. Drive the target light source to emit light by using the target driving parameter.
[0165] S1501 to S1512 can refer to the above embodiments and will not be elaborated here.
[0166] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the arrows, these steps do not necessarily have to be executed in the order indicated by the arrows. Unless otherwise clearly stated in this article, there is no strict order limit for the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages do not necessarily have to be executed at the same time, but can be executed at different times. The execution order of these steps or stages does not necessarily have to be sequential, but can be executed alternately or in turn with at least some of the steps or stages in other steps or other steps.
[0167] Based on the same inventive concept, an embodiment of the present application further provides a driving device for implementing the driving method involved above. The solution provided by this device for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more of the following driving device embodiments can refer to the limitations on the driving method in the above text and will not be elaborated here.
[0168] Figure 16 It is a structural block diagram of the driving device in an embodiment of the present application. In an exemplary embodiment, as Figure 16 shown, a driving device 1600 is provided, including: a first determination module 1601, a compensation module 1602, a second determination module 1603, and a first driving module 1604, where:
[0169] The first determination module 1601 is configured to determine a first radiation power value corresponding to the initial driving parameter according to a preset look-up table and the initial driving parameter of the target light source; the preset look-up table includes radiation power values output by the light source host corresponding to the target light source under various different driving parameters; the light source host includes multiple light sources, and the target light source is any one of the multiple light sources.
[0170] The compensation module 1602 is configured to compensate the first radiation power value by using a compensation coefficient of the target mirror body for the target light source to obtain a second radiation power value; the target mirror body is connected to the light source host.
[0171] The second determination module 1603 is configured to determine a target driving parameter corresponding to the second radiation power value according to the second radiation power value and a preset look-up table.
[0172] The first driving module 1604 is configured to drive the target light source to emit light by using the target driving parameter.
[0173] In the above driving device, since the preset look-up table includes the radiation power values output by the light source host corresponding to the target light source under various different driving parameters, therefore, according to the preset look-up table and the initial driving parameter of the target light source, the first radiation power value corresponding to the initial driving parameter can be determined. Since the target mirror body is connected to the light source host, and the compensation coefficient of the target mirror body for the target light source can be used to compensate the first radiation power value to obtain the second radiation power value, therefore, according to the second radiation power value and the preset look-up table, the target driving parameter corresponding to the second radiation power value is determined, and then after driving the target light source to emit light by using the target driving parameter, the LED can be driven by the compensated target driving parameter to reduce the influence of optical attenuation occurring in the transmission channel. Since there are multiple light sources in the light source host, and the target light source is any one of the multiple light sources, therefore, on the basis of accurately controlling each target light source by using the target driving parameter, the accurate control of the radiation amount output by the light source host is realized. In this process, on the one hand, it is not necessary for the user to return the endoscope system to the factory for repair, and the compensation and correction can be automatically performed according to the compensation coefficient, which saves time and effort. On the other hand, there is no need to add additional structures or devices, and there is no operation threshold for the user, and the practicability and applicability are good.
[0174] Optionally, the driving device 1600 further includes:
[0175] The first acquisition module is configured to acquire the current response output value of the image sensor in the head end of the target mirror body when the head end of the target mirror body is inside the white balance cap and the target light source is driven by using a preset driving parameter.
[0176] The third determination module is configured to determine the compensation coefficient of the target mirror body for the target light source according to the current response output value and the reference response output value; the reference response output value is: the output value of the image sensor in the head end of the standard mirror body when the standard mirror body is connected to the light source host, the head end of the standard mirror body is inside the white balance cap, and the target light source is driven by using a preset driving parameter.
[0177] Optionally, the third determination module includes:
[0178] An adjustment unit, configured to adjust a preset driving parameter to obtain a first driving parameter if a current response output value is inconsistent with a reference response output value; wherein, when the target light source is driven by the first driving parameter, a new response output value of an image sensor in a head end portion of the target mirror body is consistent with the reference response output value.
[0179] A determination unit, configured to determine a compensation coefficient of the target mirror body for the target light source according to the first driving parameter and the preset driving parameter.
[0180] Optionally, the determination unit includes:
[0181] A first determination subunit, configured to determine a third radiation power value according to the preset driving parameter and a preset look-up table.
[0182] A second determination subunit, configured to determine a fourth radiation power value according to the first driving parameter and the preset look-up table.
[0183] A third determination subunit, configured to determine a compensation coefficient of the target mirror body for the target light source according to the third radiation power value and the fourth radiation power value.
[0184] Optionally, the third determination subunit is further configured to use a ratio between the fourth radiation power value and the third radiation power value as the compensation coefficient of the target mirror body for the target light source.
[0185] Optionally, the compensation module 1602 is further configured to use a product of the first radiation power value and the compensation coefficient of the target mirror body for the target light source as the second radiation power value.
[0186] Optionally, the preset look-up table is determined by driving the target light source with a plurality of different driving parameters, obtaining radiation power values of a light source host under each driving parameter, and according to each driving parameter and the corresponding radiation power value.
[0187] Each module in the above driving device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in the computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0188] Figure 17 It is a schematic structural diagram of a light output control device in an embodiment of the present application. In one embodiment, as Figure 17 shown, a light output control device 1700 is provided, including a memory 1701 and a processor 1702. The memory 1701 stores a computer program 1703, and when the processor 1702 executes the computer program 1703, the steps of any one of the above driving methods are implemented.
[0189] Figure 18This is a schematic structural diagram of an endoscope system in an embodiment of the present application. In one embodiment, as Figure 18 shown, an endoscope system 1800 is provided, including: a display device 1801, the above-mentioned light output control device 1700, and a target endoscope body 1802.
[0190] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0191] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0192] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned method embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned method embodiments. Among them, any reference to a memory, a database, or other media provided in the various embodiments of the present application can include at least one of non-volatile and volatile memories. Non-volatile memories can include read-only memory (ROM), magnetic tapes, floppy disks, flash memories, optical memories, high-density embedded non-volatile memories, resistive random access memories (ReRAM), magnetoresistive random access memories (MRAM), ferroelectric random access memories (FRAM), phase change memories (PCM), graphene memories, etc. Volatile memories can include random access memory (RAM) or external cache memories, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the various embodiments of the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the various embodiments of the present application can be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.
[0193] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, 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, it should be considered as the scope recorded in this specification.
[0194] The above-described embodiments merely represent several implementation manners of the present application, and the description thereof is relatively specific and detailed. However, it should not be construed as a limitation on the scope of the patent of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several deformations and improvements can still be made, 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 appended claims.
Claims
1. A driving method, characterized in that, The method includes: Determining a first radiation power value corresponding to the initial driving parameter according to a preset look-up table and an initial driving parameter of a target light source; the preset look-up table includes radiation power values output by a light source host corresponding to the target light source under a variety of different driving parameters; the light source host contains a variety of light sources, and the target light source is any one of the variety of light sources; Compensating the first radiation power value by using a compensation coefficient of the target light source by a target lens body; the target lens body is connected to the light source host; Determining a target driving parameter corresponding to the second radiation power value according to the second radiation power value and the preset look-up table; Driving the target light source to emit light by using the target driving parameter.
2. The method according to claim 1, wherein Before determining the first radiation power value corresponding to the initial driving parameter according to the preset look-up table and the initial driving parameter of the target light source, the method further includes: When the head end of the target lens body is inside a white balance cap and the target light source is driven by using a preset driving parameter, obtaining a current response output value of an image sensor in the head end of the target lens body; Determining a compensation coefficient of the target lens body for the target light source according to the current response output value and a reference response output value; The reference response output value is: the output value of an image sensor in the head end of a standard lens body when the standard lens body is connected to the light source host, the head end of the standard lens body is inside the white balance cap, and the target light source is driven by using the preset driving parameter.
3. The method according to claim 2, wherein The determining a compensation coefficient of the target lens body for the target light source according to the current response output value and the reference response output value includes: If the current response output value is inconsistent with the reference response output value, adjusting the preset driving parameter to obtain a first driving parameter; wherein, when the target light source is driven by using the first driving parameter, the new response output value of the image sensor in the head end of the target lens body is consistent with the reference response output value; Determining a compensation coefficient of the target lens body for the target light source according to the first driving parameter and the preset driving parameter.
4. The method according to claim 3, wherein The determining a compensation coefficient of the target lens body for the target light source according to the first driving parameter and the preset driving parameter includes: Determining a third radiation power value according to the preset driving parameter and the preset look-up table; Determining a fourth radiation power value according to the first driving parameter and the preset look-up table; Determining a compensation coefficient of the target lens body for the target light source according to the third radiation power value and the fourth radiation power value.
5. The method according to claim 4, characterized in that, The determining a compensation coefficient of the target lens body for the target light source according to the third radiation power value and the fourth radiation power value includes: Taking the ratio between the fourth radiation power value and the third radiation power value as the compensation coefficient of the target lens body for the target light source.
6. The method according to any one of claims 1-5, characterized in that, The compensating the first radiation power value by using a compensation coefficient of the target light source by a target lens body to obtain a second radiation power value includes: Use the product of the first radiation power value and the compensation coefficient of the target mirror body for the target light source as the second radiation power value.
7. The method according to any one of claims 1-5, characterized in that, The preset look-up table is determined by driving the target light source with a plurality of different driving parameters, obtaining the radiation power values of the light source host under each of the driving parameters, and based on each of the driving parameters and the corresponding radiation power values.
8. A driving device, characterized in that, The device includes: A first determination module, configured to determine a first radiation power value corresponding to the initial driving parameter according to a preset look-up table and an initial driving parameter of a target light source; the preset look-up table includes radiation power values output by the light source host corresponding to the target light source under a variety of different driving parameters; the light source host includes a variety of light sources, and the target light source is any one of the variety of light sources; A compensation module, configured to compensate the first radiation power value by using a compensation coefficient of a target mirror body for the target light source to obtain a second radiation power value; the target mirror body is connected to the light source host; A second determination module, configured to determine a target driving parameter corresponding to the second radiation power value according to the second radiation power value and the preset look-up table; A first driving module, configured to drive the target light source to emit light by using the target driving parameter.
9. An optical output control device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. An endoscope system, characterized in that, Including: A display device, a light output control device as claimed in claim 9, and a target mirror body.