Endoscope Color Tone Correction Method, Device, Adjustment Equipment, and Endoscope System

By calculating the target color ratio and correction coefficient of the endoscope's emitted light and adjusting the light source's luminescence, the problem of unstable tone of the endoscope's emitted light is solved, and the precise adjustment of tones and the accuracy of human tissue observation is achieved.

CN119157466BActive Publication Date: 2025-06-24CHANGZHOU UNITED IMAGING HEALTHCARE SURGICAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311789227.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-22
Publication Date
2025-06-24
Estimated Expiration
2043-12-22

AI Technical Summary

Technical Problem

When observing human tissues with an endoscope, the emitted light tone is unstable, making it difficult to meet the expected light tone needs, affecting the observation of human tissues and the diagnosis of clinical information.

Method used

By obtaining the target color ratio associated with the target light to be irradiated, the first light output power of each color to be controlled is calculated, and the second light output power is determined based on the correction coefficient of the endoscope for each color to be controlled, and finally the light source corresponding to the color to be controlled in the light source host is controlled to emit light so that the color ratio of the emitted light meets the target requirements.

Benefits of technology

The tone stability of the endoscopic light is achieved, ensuring that the ratio between the colors to be controlled in the irradiated light emitted from the endoscopic to meet the target color ratio requirements, thereby improving the accuracy of human tissue observation and the reliability of clinical diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119157466B_ABST
    Figure CN119157466B_ABST
Patent Text Reader

Abstract

The present application relates to an endoscope color tone correction method, device, adjustment equipment, and endoscope system. By obtaining a target color ratio associated with the target light to be irradiated, obtaining the first light output power of each color to be controlled according to the target color ratio, determining the second light output power of each color to be controlled based on the first light output power and the correction coefficient of each color to be controlled by the endoscope, and controlling the light sources corresponding to each color to be controlled in the light source host to emit light based on the second light output power, so that the ratio between each color to be controlled in the irradiation light emitted from the endoscope meets the requirements of the target color ratio. In view of the attenuation of different color lights by the endoscope, the present application adjusts the power of each light in the light source host to achieve compensation for the power of each light, ensuring that the ratio between each color to be controlled in the irradiation light emitted from the endoscope meets the requirements of the target color ratio, thereby achieving precise adjustment of the light output color tone.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of medical technology, and in particular, to an endoscope color tone correction method, device, adjustment device, and endoscope system. Background Art

[0002] An endoscope system includes a light source host, an endoscope, an image processing host, etc. Due to different detection parts, different types of endoscopes, including colonoscopes, gastroscopes, bronchoscopes, etc., can be connected to the same light source host and image processing host to observe human tissues.

[0003] In practical applications, it is found that when actually observing human tissues using a light source host and an endoscope, the color tone of the emitted light is often unstable, making it difficult to meet the expected requirements for the emitted light color tone. This has an adverse impact on the observation of human tissues and the diagnosis of clinical information. Summary of the Invention

[0004] Based on this, in view of the above technical problems, it is necessary to provide an endoscope color tone correction method, device, adjustment device, and endoscope system that can achieve stable emitted light color tone.

[0005] In a first aspect, this application provides an endoscope color tone correction method, including:

[0006] Obtain a target color ratio associated with the target light to be irradiated, where the target color ratio includes the emitted light power ratio between multiple colors to be controlled;

[0007] Obtain the first emitted light power of each color to be controlled according to the target color ratio;

[0008] Determine the second emitted light power of each color to be controlled according to the first emitted light power and the correction coefficient of the endoscope for each color to be controlled; wherein, the correction coefficient is used to characterize the attenuation of the endoscope for different color lights, and the correction coefficients of each color to be controlled are different;

[0009] Based on the second emitted light power, control the light sources corresponding to each color to be controlled in the light source host to emit light, so that the ratio between each color to be controlled in the irradiation light emitted from the endoscope meets the requirements of the target color ratio.

[0010] In one embodiment, before determining the second emitted light power of each color to be controlled according to the first emitted light power and the correction coefficient of the endoscope for each color to be controlled, it further includes:

[0011] Obtain the first aging data of the endoscope;

[0012] Based on the first aging data, determine the correction coefficient of the endoscope for each of the colors to be controlled.

[0013] In one embodiment, the obtaining of the aging data of the endoscope includes:

[0014] Obtain the first usage duration of the endoscope;

[0015] Based on the first usage duration, determine the first aging data of the endoscope.

[0016] In one embodiment, the first usage duration includes one or more second usage durations; the determining of the first aging data of the endoscope based on the first usage duration includes:

[0017] Obtain the second usage duration corresponding to each time the endoscope is used, and the first intensity data and / or the first light mode of the light emitted by the light source host each time it is used;

[0018] Based on all the second usage durations, and the first intensity data and / or the first light mode, determine the first aging data of the endoscope.

[0019] In one embodiment, the obtaining of the first aging data of the endoscope includes:

[0020] Determine the unique identification information of the endoscope;

[0021] According to the unique identification information, determine the first aging data of the endoscope.

[0022] In one embodiment, the controlling of the light sources corresponding to the colors to be controlled in the light source host based on the second light output power includes:

[0023] Obtain the first mapping relation data associated with the light source host; the first mapping relation data includes the mapping relation between the second light output power corresponding to each of the colors to be controlled and the control parameters;

[0024] According to the second light output powers and the first mapping relation data, determine the control parameters for each of the colors to be controlled, and drive the light sources corresponding to each of the colors to be controlled in the light source host based on the control parameters.

[0025] In one embodiment, the obtaining of the first mapping relation data associated with the light source host includes:

[0026] Obtain the second aging data of the light source host;

[0027] Determine the first mapping relationship data associated with the light source host according to the second aging data.

[0028] In one embodiment, the obtaining the second aging data of the light source host includes:

[0029] Obtain the first working duration of the light source host;

[0030] Determine the second aging data of the light source host based on the first working duration.

[0031] In one embodiment, the first working duration includes one or more second working durations; the determining the second aging data of the light source host based on the first working duration includes:

[0032] Obtain the second working duration of the light source host each time it works, and the second intensity data and / or the second light mode of the light emitted by the light source host each time it works;

[0033] Determine the second aging data of the light source host based on all the second working durations, and the second intensity data and / or the second light mode.

[0034] In one embodiment, before determining the second light output power of each of the colors to be controlled according to the first light output power and the correction coefficients of the endoscope for each of the colors to be controlled, it further includes:

[0035] Read the correction coefficients stored in the endoscope;

[0036] Correspondingly, the obtaining the first mapping relationship data associated with the light source host includes:

[0037] Read the first mapping relationship data stored in the light source host.

[0038] In a second aspect, the present application further provides an endoscope tone correction device, including:

[0039] A first acquisition module, configured to acquire a target color ratio associated with a target light ray to be irradiated, where the target color ratio includes the light output power ratio between multiple colors to be controlled;

[0040] A second acquisition module, configured to acquire the first light output power of each of the colors to be controlled according to the target color ratio;

[0041] A first determination module, configured to determine the second light output power of each of the colors to be controlled according to the first light output power and the correction coefficients of the endoscope for each of the colors to be controlled; wherein, the correction coefficients are used to characterize the attenuation of different color lights by the endoscope, and the correction coefficients of each of the colors to be controlled are different;

[0042] A control module, configured to control the light sources corresponding to each of the colors to be controlled in the light source host to emit light based on the second light output power, so that the ratio between each of the colors to be controlled in the illumination light emitted from the endoscope meets the target color ratio requirement.

[0043] In a third aspect, the present application further provides an adjustment device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0044] Obtain a target color ratio associated with the target light to be irradiated, where the target color ratio includes the light output power ratio between multiple colors to be controlled;

[0045] Obtain the first light output power of each of the colors to be controlled according to the target color ratio;

[0046] Determine the second light output power of each of the colors to be controlled according to the first light output power and the correction coefficients of the endoscope for each of the colors to be controlled; wherein, the correction coefficients are used to characterize the attenuation of different color lights by the endoscope, and the correction coefficients of each of the colors to be controlled are different;

[0047] Based on the second light output power, control the light sources corresponding to each of the colors to be controlled in the light source host to emit light, so that the ratio between each of the colors to be controlled in the illumination light emitted from the endoscope meets the target color ratio requirement.

[0048] In a fourth aspect, the present application further provides an endoscope system, which includes a display device, a target endoscope body, and the adjustment device provided in the third aspect.

[0049] In a fifth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0050] Obtain a target color ratio associated with the target light to be irradiated, where the target color ratio includes the light output power ratio between multiple colors to be controlled;

[0051] Obtain the first light output power of each of the colors to be controlled according to the target color ratio;

[0052] Determine the second light output power of each color to be controlled according to the first light output power and the correction coefficient of the endoscope for each color to be controlled; wherein, the correction coefficient is used to characterize the attenuation of different color light rays by the endoscope, and the correction coefficients of each color to be controlled are different;

[0053] Based on the second light output power, control the light sources corresponding to each color to be controlled in the light source host to emit light, so that the ratio between each color to be controlled in the irradiation light emitted from the endoscope meets the target color ratio requirement.

[0054] In a sixth aspect, the present application further provides a computer program product, including a computer program, which when executed by a processor implements the following steps:

[0055] Obtain a target color ratio associated with the target light rays to be irradiated, where the target color ratio includes the light output power ratio between multiple colors to be controlled;

[0056] Obtain the first light output power of each color to be controlled according to the target color ratio;

[0057] Determine the second light output power of each color to be controlled according to the first light output power and the correction coefficient of the endoscope for each color to be controlled; wherein, the correction coefficient is used to characterize the attenuation of different color light rays by the endoscope, and the correction coefficients of each color to be controlled are different;

[0058] Based on the second light output power, control the light sources corresponding to each color to be controlled in the light source host to emit light, so that the ratio between each color to be controlled in the irradiation light emitted from the endoscope meets the target color ratio requirement.

[0059] The above endoscopic color tone correction method, device, adjustment equipment and endoscopic system obtain a target color ratio associated with the target light to be irradiated, obtain the first light output power of each color to be controlled according to the target color ratio, determine the second light output power of each color to be controlled according to the first light output power and the correction coefficient of the endoscopic for each color to be controlled, and control the light sources corresponding to each color to be controlled in the light source host to emit light based on the second light output power, so that the ratio between the colors to be controlled in the irradiation light emitted from the endoscope meets the target color ratio requirement. Among them, the target color ratio includes the light output power ratio between multiple colors to be controlled, the correction coefficient is used to characterize the attenuation of the endoscope for different color lights, and the correction coefficients of each color to be controlled are different. In the embodiment of the present application, aiming at the attenuation of the endoscope for different color lights, by adjusting the power of the lights corresponding to each color to be controlled in the light source host, the compensation of the power of each light is realized, ensuring that the ratio between the colors to be controlled in the irradiation light emitted from the endoscope is stable and accurate, that is, the ratio between the colors to be controlled in the irradiation light emitted from the endoscope meets the target color ratio requirement, so as to realize the precise adjustment of the light output color tone. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] 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, other drawings can be obtained based on these drawings without creative efforts.

[0061] Figure 1 It is a schematic diagram of an endoscopic system in an embodiment;

[0062] Figure 2 It is a schematic diagram of the transmittance of different types of endoscopes in an embodiment;

[0063] Figure 3 It is an application environment diagram of the endoscopic color tone correction method in an embodiment;

[0064] Figure 4 It is a schematic flowchart of the endoscopic color tone correction method in an embodiment;

[0065] Figure 5 It is a schematic flowchart of the correction coefficient determination method in an embodiment;

[0066] Figure 6 It is a schematic flowchart of the first aging data determination method in an embodiment;

[0067] Figure 7 It is a schematic diagram of endoscopic calibration in an embodiment;

[0068] Figure 8 is a schematic flow chart of a first aging data determination method in another embodiment;

[0069] Figure 9 is a schematic flow chart of a control parameter determination method in one embodiment;

[0070] Figure 10 is a schematic diagram of light source host calibration in one embodiment;

[0071] Figure 11 is a schematic flow chart of a second aging data determination method in one embodiment;

[0072] Figure 12 is a structural block diagram of an endoscope tone correction device in one embodiment;

[0073] Figure 13 is a structural block diagram of an adjustment device in one embodiment;

[0074] Figure 14 is a structural block diagram of an endoscope system in one embodiment. Detailed implementation manners

[0075] In order to make the objectives, technical solutions and advantages of the present application clearer and more 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.

[0076] As Figure 1 shown, the endoscope system includes a light source host, an endoscope, a display, an image processing host, etc. The light emitted by the light source host irradiates the detection site of the human body through the optical fiber bundle of the endoscope, and then the detection site is photographed by the imaging unit of the endoscope to generate an image signal, and the image signal is transmitted to the image processing host through the data transmission channel. The image processing host further processes the image signal and is displayed by the display device.

[0077] Currently, the light source host uses light sources such as xenon lamps or halogen lamps that emit white light. Alternatively, a light emitting diode (LED) is used as the light source. The LED light source is usually a combination of several LEDs, such as a red R-LED, a green G-LED, a blue B-LED, and a purple UV-LED. By independently controlling each color LED, the proportion 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.

[0078] On the one hand, as Figure 2As shown, due to different detection sites, there are different types of endoscopes, such as colonoscopes, gastroscopes, bronchoscopes, etc. Different types of endoscopes can be connected to the same light source host and image processing host. However, the lengths, thicknesses, etc. of the light guides of different types of endoscopes are different, and the light transmission characteristics (transmittance) are also different. Therefore, when the light output from the light source host remains the same and different types of endoscopes are used, the proportion of each color component of the illumination light coming out of the endoscope will change, resulting in a change in hue.

[0079] On the other hand, even for different endoscopes of the same type, the light transmission characteristics may also be different. Before leaving the factory, each endoscope has material differences and assembly differences, resulting in inconsistent transmittances for different endoscopes. Moreover, with the number of uses and usage duration of different endoscopes, the aging conditions of each endoscope are different, resulting in different light transmission characteristics (transmittance). When the light output from the light source remains the same and the same type of endoscope is used, the proportion of each color component of the illumination light coming out of the endoscope will also change, resulting in a change in hue.

[0080] If the hue of the illumination light emitted from the endoscope changes, the hue of the image determined based on the image signal of the detected site captured by the endoscope will also change, thus having an adverse impact on the observation of human tissues and the diagnosis of clinical information. Therefore, the present application proposes an endoscope hue correction method, device, adjustment device, and endoscope system that can solve the above problem of unstable light output hue.

[0081] The endoscope hue correction method provided in the embodiments of the present application can be applied to an application environment as Figure 3 shown. This application environment includes an endoscope, a light source host, and an image processing host. The light source host drives an LED to emit light through control parameters. The light emitted from the light source host is transmitted through the fiber bundle of the endoscope and finally irradiates into the human tissue. The imaging unit of the endoscope captures the human tissue to generate an image signal and transmits the image signal to the image processing host. The correction coefficient can be stored in the endoscope or in the light source host. Figure 3 As shown in, the correction coefficient is stored in the endoscope. When the endoscope is connected to the light source host, the correction coefficient of the color to be controlled is read from the endoscope, parsed after obtaining the correction coefficient through the data transmission channel, and the parsed correction coefficient is sent to the light source host, so as to compensate for the attenuation of different color lights by the endoscope based on the correction coefficient, so that the proportion between each color to be controlled in the illumination light emitted from the endoscope meets the target color proportion requirement.

[0082] In an exemplary embodiment, as Figure 4 shown, an endoscope hue correction method is provided. This method is applied to Figure 3The image processing host / light source host in [description]. In the following embodiments, this method is described by taking its application to the image processing host as an example, including the following S401 to S404, where:

[0083] S401, obtain a target color ratio associated with the target light rays to be irradiated. The target color ratio includes the light output power ratios between multiple colors to be controlled.

[0084] The light rays emitted by the light source host pass through the endoscope to reach the human tissue. The imaging unit of the endoscope takes pictures of the human tissue to generate an image signal, and the image signal is transmitted to the image processing host. The image processing host obtains the image of the corresponding tissue based on the image signal. Since the absorption ability, reflection ability, etc. of each tissue for various light rays are different, in order to obtain images of different tissues or parts, it is necessary to set the light output mode of the light source host according to the requirements. In each light output mode, the colors of the light rays emitted by the light source host are different, so as to irradiate the human tissue with the light rays in each light output mode to obtain the corresponding image. For example, the light output mode can be a special light mode, a red light mode, or a white light mode, etc.

[0085] The target color ratio corresponding to each light output mode is different. For example, in the white light mode, the light output power ratio between the colors to be controlled R / G / B / UV is 1:1:1:1.

[0086] S402, obtain the first light output power of each color to be controlled according to the target color ratio.

[0087] In the same light output mode, different light output levels can also be included. For example, when the light output power ratio between the colors to be controlled R / G / B / UV is 1:1:1:1, the light output power of the colors to be controlled R / G / B / UV can all be 1 mW, or the light output power of the colors to be controlled R / G / B / UV can all be 2 mW.

[0088] Therefore, in some embodiments, the first light output power of each color to be controlled can be obtained according to the target color ratio and the total power of the target light rays. For example, the target color ratio R / G / B / UV = 1:1:1:1, and the total power of the target light rays is 10 mW, then the first light output power of each color to be controlled is 2.5 mW.

[0089] Determining the first light output power of each color to be controlled through the target color ratio and the total power of the target light rays, since the total power of the target light rays is set, the relative controllability of the total power can be achieved.

[0090] In a possible implementation, it is also possible to obtain the first light output powers of the colors to be controlled according to the target color ratio and the first light output power of one of the colors to be controlled. For example, if the target color ratio R / G / B = 1:2:1 and the first light output power of the color to be controlled R is 2 mW, then the first light output power of the color to be controlled G is 4 mW, and the first light output power of the color to be controlled B is 2 mW.

[0091] Determining the first light output powers of the colors to be controlled according to the target color ratio and the first light output power of one of the colors to be controlled can achieve relative control of the power of the reference color. For example, if the above reference color is the color to be controlled R, then relative control of the power of the color to be controlled R can be achieved. Therefore, based on actual requirements, the color to be controlled that plays a decisive role in obtaining tissue information, etc., can be used as the reference color.

[0092] S403. Determine the second light output powers of the colors to be controlled according to the first light output powers and the correction coefficients of the endoscope for the colors to be controlled; where the correction coefficients are used to characterize the attenuation of different color light rays by the endoscope, and the correction coefficients of the colors to be controlled are different.

[0093] When the light rays emitted by the light source host pass through the endoscope, the fiber bundle inside the endoscope itself will cause attenuation of the transmitted light rays. At the same time, the breakage of the optical fibers in the fiber bundle will also affect the attenuation of the light rays. Moreover, the fiber bundle has different attenuation capabilities for light rays of different colors (i.e., light rays of different wavelengths). Therefore, there will be certain differences in the attenuation of different color light rays by the endoscope ultimately.

[0094] Therefore, in order to ensure controllability of the power of the irradiation light finally emitted from the endoscope, it is necessary to compensate the power of each light ray according to the attenuation of each light ray by the endoscope, so as to achieve precise controllability of the power of the finally emitted irradiation light.

[0095] Optionally, the correction coefficient can be the transmittance or the attenuation rate, where the transmittance = 1 - the attenuation rate; or it can be a coefficient determined according to the transmittance / attenuation rate.

[0096] In a possible implementation, if the correction coefficient is a coefficient determined according to the reciprocal of the attenuation rate, then the second light output powers of the colors to be controlled can be determined according to the product results of the first light output powers of each color and the correction coefficients of the endoscope for the colors to be controlled. For example, if the attenuation rate of the endoscope for the color to be controlled R is 50%, then the correction coefficient of the endoscope for the color to be controlled R is 2. When the first light output power of the color to be controlled R is 50 mW, the second light output power of the color to be controlled R is 100 mW.

[0097] If the correction coefficient is the transmittance, the second output optical power of each color to be controlled can be determined according to the quotient of each first output optical power and the correction coefficient of the endoscope for each color to be controlled. For example, if the transmittance of the endoscope for the color R to be controlled is 20%, the correction coefficient of the endoscope for the color R to be controlled is 0.2. When the first output optical power of the color R to be controlled is 10 mW, the second output optical power of the color R to be controlled is 50 mW.

[0098] If the correction coefficient is the attenuation rate, the transmittance can be determined according to the attenuation rate, and thus the second output optical power of the color to be controlled can be obtained by using the above method with the transmittance as the correction coefficient.

[0099] In another possible implementation, regardless of whether the correction coefficient is the above-mentioned transmittance, attenuation rate, or a coefficient determined according to the transmittance / attenuation rate, a standard endoscope can be first determined, and the correction coefficient of the endoscope can be determined based on the standard endoscope, that is, the endoscope can be calibrated based on the standard endoscope.

[0100] For example, assume that the transmittances of the standard endoscope for R / G / B / UV are 67.5%, 45%, 30%, and 20% respectively, and the correction coefficients of the standard endoscope are all set to 1. If the transmittances of the endoscope for R / G / B / UV are 67.5%×0.9, 45%×0.8, 30%×1.1, and 20%×1.0, then the correction coefficients of this endoscope relative to the standard endoscope are 1 / 0.9, 1 / 0.8, 1 / 1.1, and 1 / 1.0.

[0101] If the correction coefficient of the endoscope is determined relative to the correction coefficient of the standard endoscope, the second output optical power of the endoscope can be determined based on the first output optical power of the light source host under the standard endoscope and the correction coefficient of this endoscope relative to the standard endoscope. For example, if the target color ratio under the standard endoscope is R / G / B / UV = 1:1:1:1, then the output optical power ratio of the second output optical power of the light source host under the standard endoscope is 1:1.5:2.25:3.375 (1×67.5% = 1.5×45% = 2.25×30% = 3.375×20% = 0.675).

[0102] Under this endoscope, in order to make the power of the irradiation light emitted from the endoscope the same as that of the irradiation light emitted from the standard endoscope, and the ratio between each color to be controlled in the irradiation light emitted from the endoscope meets the target color ratio requirement (i.e., 1:1:1:1), the output optical power ratio of the second output optical power of the light source host under this endoscope is: [1, 1.5, 2.25, 3.375]×[1 / 0.9, 1 / 0.8, 1 / 1.1, 1 / 1.0.].

[0103] Before determining the second light output power of each color to be controlled according to the first light output power and the correction coefficient of each color to be controlled by the endoscope, it further includes: reading the correction coefficient stored in the endoscope.

[0104] The correction coefficient can be stored in the light source host or in the endoscope.

[0105] If the correction coefficient is stored in the endoscope, in actual applications, the light source host can be compatible with endoscopes from any manufacturer; if the correction coefficient is stored in the light source host, only by reading the model of the endoscope, the light source host can calibrate any type of endoscope.

[0106] S404, based on the second light output power, control the light sources corresponding to each color to be controlled in the light source host to emit light, so that the ratio between each color to be controlled in the illumination light emitted from the endoscope meets the target color ratio requirement.

[0107] In this embodiment, the light sources corresponding to each color to be controlled in the light source host can be controlled according to the current parameter or voltage parameter corresponding to each second light output power, so that the ratio between each color to be controlled in the illumination light emitted from the endoscope meets the target color ratio requirement.

[0108] In the above endoscope tone correction method, by obtaining the target color ratio associated with the target light to be irradiated, obtaining the first light output power of each color to be controlled according to the target color ratio, determining the second light output power of each color to be controlled according to the first light output power and the correction coefficient of each color to be controlled by the endoscope, and based on the second light output power, controlling the light sources corresponding to each color to be controlled in the light source host to emit light, so that the ratio between each color to be controlled in the illumination light emitted from the endoscope meets the target color ratio requirement. Among them, the target color ratio includes the light output power ratio between multiple colors to be controlled, the correction coefficient is used to characterize the attenuation of the endoscope to different color lights, and the correction coefficients of each color to be controlled are different. In the embodiment of the present application, aiming at the attenuation of the endoscope to different color lights, by adjusting the power of the lights corresponding to each color to be controlled in the light source host, the compensation of the power of each light is realized, ensuring that the ratio between each color to be controlled in the illumination light emitted from the endoscope is stable and accurate, that is, the ratio between each color to be controlled in the illumination light emitted from the endoscope meets the target color ratio requirement, so as to realize the precise adjustment of the light output tone.

[0109] Figure 5 It is a schematic flow chart of a correction coefficient determination method in an embodiment, as Figure 5As shown in the figure, the embodiment of the present application relates to a possible implementation manner of determining a correction coefficient before determining the second light output power of each color to be controlled according to the first light output power and the correction coefficient of each color to be controlled by the endoscope, including the following steps:

[0110] S501, obtain the first aging data of the endoscope.

[0111] In practical applications, the endoscope will age as it is used. For example, the number of times the endoscope is used, the usage duration of the endoscope, and the wear and tear during the storage and use of the endoscope will all affect the aging condition of the endoscope. Since the actual usage of each endoscope is different, the aging degree of each endoscope is also different, resulting in different light transmission characteristics (transmittance). When different endoscopes are inserted, even if the light output of the light source host remains the same, the proportion of each color component of the illumination light coming out of the endoscope will change, leading to a change in hue. Therefore, it is necessary to obtain the aging degree of the endoscope to more accurately determine the correction coefficient according to the aging degree.

[0112] In the embodiment of the present application, the aging degree can be quantitatively characterized by aging data.

[0113] In some embodiments, the aging data can be determined according to the specific usage data set according to actual needs. For example, in some alternative embodiments, the first aging data can be determined by any usage data such as the usage duration of the endoscope, the light output mode, the light level, and the degree of wear.

[0114] In some embodiments, it is also possible to perform grading, scoring, etc. on any usage data such as the usage duration of the endoscope, the light output mode, the light level, and the degree of wear to determine the first aging data. For example, when the specific usage data is that other usage data remains the same, the level of light level A is grade 1; the level of light level B is grade 2, and so on. Among them, the intensity of light level A is greater than that of light level B, and the aging degree of grade 1 is greater than that of grade 2.

[0115] As an alternative embodiment of the present application, the first aging data of the endoscope can be obtained by obtaining the first usage duration of the endoscope.

[0116] S502, based on the first aging data, determine the correction coefficient of the endoscope for each color to be controlled.

[0117] In this embodiment, different aging degrees correspond to different correction coefficients. Therefore, a mapping relationship can be established in advance between the aging data of the endoscope and the correction coefficients of each color to be controlled. For example, the mapping relationship can be in the form of a table, or in the form of a function, or in the form of a curve graph, etc. The embodiments of the present application do not limit this.

[0118] Among them, the mapping relationship between the aging data of the endoscope and the correction coefficients of each color to be controlled can be calibrated and determined as shown in Figure 6 . Aging processing can be performed on the endoscope according to different aging data. At each aging data, the power of the light emitted by the light source host is known. The light emitted by the light source host is transmitted through the fiber bundle of the endoscope and reaches the spectroradiometer, and the power of the light emitted by the endoscope is obtained. The correction coefficient is obtained based on the power of the light emitted by the light source host and the power of the light emitted by the endoscope, so as to obtain the mapping relationship between the aging data and the correction coefficient.

[0119] After obtaining the first aging data, the correction coefficients of each color to be controlled that match the first aging data are determined from the mapping relationship.

[0120] In the embodiments of the present application, by obtaining the first aging data of the endoscope and based on the first aging data, the correction coefficients of the endoscope for each color to be controlled are determined. The present application determines the correction coefficients of each color to be controlled based on the first aging data, and solves the problem that the aging rates of different endoscopes are inconsistent after leaving the factory, resulting in inconsistent light-emitting hues of the endoscopes.

[0121] In one embodiment, obtaining the first aging data of the endoscope includes: obtaining the first usage duration of the endoscope; and determining the first aging data of the endoscope based on the first usage duration.

[0122] Since the longer the usage duration of the endoscope, the more serious its aging phenomenon is, therefore, the first usage duration of the endoscope can be used to characterize the aging degree of the endoscope. For example, specifically, when the first usage duration is greater than 20 hours and less than 22 hours, the grade is 1; when the first usage duration is greater than 18 hours and less than 20 hours, the grade is 2, and so on. Among them, the aging degree of grade 1 is greater than that of grade 2. Or, the aging degree when the first usage duration is greater than 20 hours and less than 22 hours is 80%, and the aging degree when the first usage duration is greater than 18 hours and less than 20 hours is 70%, etc.

[0123] In the embodiments of the present application, by obtaining the first usage duration of the endoscope and determining the first aging data of the endoscope based on the first usage duration, the aging conditions of each endoscope caused by different usage durations of the endoscope are fully considered, so that the correction coefficients of each color to be controlled determined based on the first aging data are more accurate.

[0124] Figure 7 FIG. is a schematic flowchart of a method for determining first aging data in an embodiment. As Figure 7 shown, the embodiments of the present application relate to a possible implementation manner of how to determine the first aging data of the endoscope based on the first usage duration, including the following steps:

[0125] S701, obtain the corresponding second usage duration of the endoscope each time it is used, and the first intensity data and / or the first light mode of the light emitted by the light source host each time it is used.

[0126] In this embodiment, obtaining the corresponding second usage duration of the endoscope each time it is used, and the first intensity data and / or the first light mode of the light emitted by the light source host each time it is used may include the following three situations:

[0127] The first situation: When the endoscope is connected to the light source host and there is light irradiation, obtain the duration corresponding to each use of the endoscope and use it as the second usage duration. At the same time, obtain the first intensity data of the light passing through the endoscope each time it is used. For example, the light output power is 1 mw (the first intensity data), and the second usage duration of the endoscope at a light output power of 1 mw is 10 hours.

[0128] The second situation: When the endoscope is connected to the light source host and there is light irradiation, obtain the duration corresponding to each use of the endoscope and use it as the second usage duration. At the same time, obtain the first light mode of the light each time it is used. For example, the light is in a special light mode, and in this special light mode, the second usage duration of the endoscope is 5 hours.

[0129] The third situation: When the endoscope is connected to the light source host and there is light irradiation, obtain the duration corresponding to each use of the endoscope and use it as the second usage duration. At the same time, obtain the first intensity data and the first light mode of the light passing through the endoscope each time it is used. For example, the first light mode is the white light mode, the light output power in this mode is 1 mw (the first intensity data), and the second usage duration under the first intensity data and the first light mode is 20 hours.

[0130] S702, determine the first aging data of the endoscope based on all the second usage durations, and the first intensity data and / or the first light mode.

[0131] In this embodiment, similarly, mapping relationships can be established in advance for the above three cases. For example, a mapping relationship 1 is established using the second usage duration, the first intensity data, and the first aging data; a mapping relationship 2 is established using the second usage duration, the first light mode, and the first aging data; and a mapping relationship 3 is established using the second usage duration, the first intensity data, the first light mode, and the first aging data. The mapping relationship can be a table or a functional relationship.

[0132] If the mapping relationship is a table, the first aging data of the endoscope can be determined by looking up the table according to the second usage duration, the first intensity data, and the corresponding mapping relationship 1. Or, the first aging data of the endoscope can be determined by looking up the table according to the second usage duration, the first light mode, and the corresponding mapping relationship 2. Alternatively, when the mapping relationship is a functional relationship, the second usage duration, the first intensity data, and the first light mode are substituted into the corresponding functional relationship formula to calculate the first aging data of the endoscope.

[0133] In some embodiments, the second usage duration, and the first intensity data and / or the first light mode can also be directly used as the first aging data.

[0134] In the embodiments of the present application, by obtaining the second usage duration corresponding to each time the endoscope is used, and the first intensity data and / or the first light mode of the light emitted by the light source host each time it is used, the first aging data of the endoscope is determined based on all the second usage durations, and the first intensity data and / or the first light mode. In the embodiments of the present application, the first aging data of the endoscope is determined according to the second usage duration, the first intensity data, and / or the first light mode, making the determination of the first aging data more accurate, and thus obtaining more accurate color correction coefficients for each color.

[0135] Figure 8 For another embodiment, it is a flowchart of a method for determining the first aging data. As Figure 8 shown, it includes: S801, determining the unique identification information of the endoscope; S802, determining the first aging data of the endoscope according to the unique identification information.

[0136] Due to different observation sites, there are different types of endoscopes, such as colonoscopes, gastroscopes, bronchoscopes, etc. Different types of endoscopes can generally be connected to the same light source host and image processing host for use. The lengths, thicknesses, etc. of the light guides of different types of endoscopes are different, and the light transmission characteristics (transmittance) are also different. Even for the same type of endoscope, before leaving the factory, there are material differences and assembly differences for each endoscope, resulting in inconsistent transmittance of the endoscope. Therefore, when using different types or different endoscopes of the same type, when the light output of the light source remains the same, the proportion of each color component of the irradiated light emitted from the endoscope will change, resulting in a change in the light output tone.

[0137] Therefore, in this embodiment, the first aging data of each endoscope can be recorded separately. The first aging data of different endoscopes can be distinguished and recorded according to the unique identification information of the endoscope. The first aging data of the corresponding endoscope can be obtained through the unique identification information according to the usage requirements, so as to determine the correction coefficient of the color to be controlled based on the first aging data of the endoscope.

[0138] Furthermore, it can be based on Figure 8 the unique identification information to determine the first aging data of the endoscope, or the above-mentioned Figures 5 - 7 corresponding embodiment can be used to obtain the first aging data, or the first aging data of the endoscope can be determined by combining the two methods simultaneously.

[0139] In the embodiment of the present application, the unique identification information of the endoscope is determined, the first aging data of the endoscope is determined according to the unique identification information, and the first aging data is distinguished by the unique identification information. During application, the first aging data of the current endoscope can be specifically determined, so as to determine the corresponding correction coefficient based on the first aging data, which can better adapt to the actual application scenario where one light source host corresponds to multiple endoscopes.

[0140] Figure 9 FIG. is a schematic flowchart of a control parameter determination method in an embodiment. As Figure 9 shown, the embodiment of the present application relates to a possible implementation manner of controlling the light emission of the light sources corresponding to each color to be controlled in the light source host based on the second light output power, including the following steps:

[0141] S901, obtain the first mapping relationship data associated with the light source host; the first mapping relationship data includes the mapping relationship between the second light output power corresponding to each color to be controlled and the control parameter.

[0142] Optionally, the control parameter can be the DAC data of the drive current, or the voltage data, etc.

[0143] In this embodiment, the first mapping relationship data can be stored in the light source host. The first mapping relationship data can be as shown in Table 1. The first relationship data table corresponding to Table 1 stores the mapping relationship between the second light output power of the 4-color LED of the light source host and the control parameter.

[0144] Table 1

[0145]

[0146] S902, determine the control parameters of each color to be controlled according to each second light output power and the first mapping relationship data, and drive the light sources corresponding to each color to be controlled in the light source host to emit light based on the control parameters.

[0147] In practical applications, since the light source host and the endoscope are both core influencing factors in the light propagation path, in order to improve the stability and accuracy of the light output tone, the light source host can be pre-calibrated to determine the mapping relationship between each second light output power and the control parameters. Therefore, after obtaining the second light output power, according to each second light output power and the first mapping relationship data, the control parameters of each color to be controlled can be determined. Considering the aging conditions of both the endoscope and the light source host, the accurate control of the final light output tone of the endoscope can be truly achieved.

[0148] In this embodiment, according to each second light output power and the first mapping relationship data, the central processor in the light source host reads the control parameters of each color to be controlled based on each second light output power. Taking Table 1 above as an example, the target color ratio is R / G / B / UV = 1:1:1:1. The second light output power determined according to the first light output power of R and the corresponding correction coefficient is Fr2, the second light output power determined according to the first light output power of G and the corresponding correction coefficient is Fg1, the second light output power determined according to the first light output power of B and the corresponding correction coefficient is Fb2, and the second light output power determined according to the first light output power of UV and the corresponding correction coefficient is Fuv3. Drive the current of the 4-color LED according to the control parameters corresponding to Fr2, the control parameters corresponding to Fg1, the control parameters corresponding to Fb2, and the control parameters corresponding to Fuv3, so that the 4-color LED emits light, so that the ratio between each color to be controlled in the irradiation light emitted from the endoscope meets the target color ratio requirement.

[0149] In the embodiment of the present application, by obtaining the first mapping relationship data associated with the light source host, according to each second light output power and the first mapping relationship data, the control parameters of each color to be controlled are determined, and based on the control parameters, the light sources corresponding to each color to be controlled in the light source host are driven to emit light. In the embodiment of the present application, the light source host is pre-calibrated to obtain the first mapping relationship data, and the first mapping relationship data is used to determine the control parameters of each color to be controlled, so as to drive the corresponding light source to emit light based on the control parameters, which can ensure the accuracy of the light output of the light source host itself, thereby realizing the accurate control of the light power of each color to be controlled "entering the endoscope".

[0150] In one embodiment, obtaining the first mapping relationship data associated with the light source host includes: obtaining the second aging data of the light source host; determining the first mapping relationship data associated with the light source host according to the second aging data.

[0151] For a light source host, factors such as the time of use, the duration of use, the intensity of the light emitted / transmitted each time it is used, and the differences in the LED materials in the light source host will directly affect the aging of the light source host, resulting in different aging degrees for each light source host. Therefore, it is necessary to obtain the second aging data of the light source host, measure the aging degree of the light source host based on the second aging data, and thus determine the first mapping relationship data associated with the light source host based on the aging degree.

[0152] In this embodiment, as Figure 10 shown, after obtaining the second aging data, the light source host can be aged based on the second aging data so that the aging degree of the light source host is the same as the aging degree corresponding to the second aging data. Calibrate the light source host, drive the LED to emit light according to the control parameters, and use a spectral radiometer to obtain the second light output power of the light emitted from the light source host end. For each control parameter, obtain the corresponding second light output power to get the first mapping relationship data of the correspondence between the control parameter and the second light output power.

[0153] Since aging the light source host using the second aging data is too costly, it is also possible to use the method of simulation calibration to obtain the first mapping relationship data between each control parameter and the second light output power.

[0154] Obtaining the first mapping relationship data associated with the light source host includes: reading the first mapping relationship data stored in the light source host.

[0155] Use a spectral radiometer to obtain the second light output power of the light emitted from the light source host end, write the second light output power into the light source host to get the first mapping relationship data of the correspondence between the control parameter and the second light output power, and store the first mapping relationship data in the light source host. In practical applications, reading the first mapping relationship data from the light source host can be used to adaptively improve the color tone instability caused by the aging of the light source host using the first mapping relationship data.

[0156] In the embodiments of the present application, by obtaining the second aging data of the light source host and determining the first mapping relationship data associated with the light source host according to the second aging data, it lays a foundation for subsequently determining the control parameters based on the first mapping relationship and the second light output power, and thus driving the light sources corresponding to each of the colors to be controlled in the light source host to emit light based on the control parameters.

[0157] In one embodiment, obtaining the second aging data of the light source host includes: obtaining the first working duration of the light source host; determining the second aging data of the light source host based on the first working duration.

[0158] Among them, the first working duration is the working duration of the light source host when it is emitting light.

[0159] The aging of the light source host is mainly reflected in the LED. During long-term operation, the light output of the LED will gradually weaken, the current and power of the LED will gradually decrease, and the emitted light color of the LED will change, resulting in different degrees of aging of each light source host. Therefore, it is necessary to obtain the first working duration of the light source host when it emits light, and use the first working duration to measure the aging degree of the light source host.

[0160] In this embodiment, the first working duration is the specific usage data of the light source host. The first working duration can be directly used as the second aging data of the light source host; or a corresponding relationship between the working duration and the aging degree can be preset, and it is judged which specific interval the first working duration is located in the corresponding relationship, so as to obtain the aging degree of the light source host.

[0161] In the embodiment of the present application, by obtaining the first working duration of the light source host and determining the second aging data of the light source host based on the first working duration, the aging situation of the light source host caused by the working duration is fully considered, laying a foundation for subsequent calibration of the light source host based on the second aging data and determining the first mapping relationship data.

[0162] Figure 11 It is a schematic flowchart of the method for determining the second aging data in an embodiment. As Figure 11 shown, the embodiment of the present application relates to a possible implementation manner of how to determine the second aging data of the light source host based on the first working duration, including the following steps:

[0163] S1101, obtain the second working duration of the light source host each time it works, and the second intensity data and / or the second light mode of the light emitted by the light source host each time it works.

[0164] In this embodiment, similarly, obtaining the second working duration of the light source host each time it works, and the second intensity data and / or the second light mode of the light emitted by the light source host each time it works may include the following three situations:

[0165] The first situation: When the light source host emits light, obtain the corresponding duration each time the light source host emits light, and use it as the second working duration. At the same time, obtain the second intensity data of the light emitted by the light source host each time it works. For example, the light output power of the light is 2 mw (the second intensity data), and the second working duration of the light source host at the light output power of 2 mw is 20 hours.

[0166] The second situation: When the light source host emits light, obtain the corresponding duration each time the light source host emits light, and use it as the second working duration. At the same time, obtain the second light mode of the light each time it works. For example, the light is a special light mode, and under this special light mode, the second working duration of the light source host is 2 hours.

[0167] The third case: When the light source host emits light, obtain the duration corresponding to each light emission of the light source host and use it as the second working duration. At the same time, obtain the second intensity data and the second light mode of the light each time it works. For example, the light source host emits light that is overall red. The light emission power in this mode is 10 mw (second intensity data), and the second working duration under the second intensity data and the second light mode is 10 hours.

[0168] S1102. Determine the second aging data of the light source host based on all the second working durations, and the second intensity data and / or the second light mode.

[0169] In this embodiment, the mapping relationships corresponding to the above three cases can be established in advance. After obtaining the corresponding second working duration, and the second intensity data and / or the second light mode, determine the corresponding mapping relationship according to the second working duration, and the second intensity data and / or the second light mode, and match the corresponding second aging data from the mapping relationship.

[0170] Similarly, the second working duration, and the second intensity data and / or the second light mode can also be directly used as the second aging data.

[0171] In the embodiment of the present application, by obtaining the second working duration of the light source host each time it works, and the second intensity data and / or the second light mode of the light emitted by the light source host each time it works, and determining the second aging data of the light source host based on all the second working durations, and the second intensity data and / or the second light mode, the factors affecting the aging of the light source host are fully considered, so that the obtained second aging data is more accurate, thereby improving the accuracy of the calibration of the light source host.

[0172] As an embodiment of the present application, the above Figures 4 - 8 is an embodiment related to the aging degree of the endoscope, and Figures 9 - 11 is an embodiment related to the aging degree of the light source host, and they can be combined and implemented. That is, the hue instability caused by the aging of the light source host and the endoscope can be adaptively improved by the correction coefficient and the first mapping relationship data at the same time, and the situation where the aging of the light source host and the endoscope is inconsistent in actual applications can be dealt with.

[0173] It should be understood that although the steps in the flowcharts involved in the above embodiments are sequentially shown according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication 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 a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.

[0174] Based on the same inventive concept, an embodiment of the present application also provides an endoscope color tone correction device for implementing the above-mentioned endoscope color tone correction method. The implementation solutions provided by this device to solve problems are similar to the implementation solutions described in the above method. Therefore, the specific limitations in one or more embodiments of the endoscope color tone correction device provided below can refer to the limitations on the endoscope color tone correction method in the above text, and will not be repeated here.

[0175] In an exemplary embodiment, as Figure 12 shown, an endoscope color tone correction device is provided, including: a first acquisition module 11, a second acquisition module 12, a first determination module 13, and a control module 14, where:

[0176] The first acquisition module 11 is configured to acquire a target color ratio associated with the target light to be irradiated, and the target color ratio includes the light output power ratio between multiple colors to be controlled;

[0177] The second acquisition module 12 is configured to acquire the first light output power of each color to be controlled according to the target color ratio;

[0178] The first determination module 13 is configured to determine the second light output power of each color to be controlled according to the first light output power and the correction coefficient of the endoscope for each color to be controlled; wherein, the correction coefficient is used to characterize the attenuation of the endoscope for different color lights, and the correction coefficients of each color to be controlled are different;

[0179] The control module 14 is configured to control the light sources corresponding to each color to be controlled in the light source host to emit light based on the second light output power, so that the ratio between each color to be controlled in the irradiation light emitted from the endoscope meets the target color ratio requirement.

[0180] In one embodiment, the endoscope color tone correction device further includes:

[0181] A third acquisition module, configured to acquire the first aging data of the endoscope;

[0182] A second determination module, configured to determine a correction coefficient of the endoscope for each color to be controlled based on the first aging data.

[0183] In one embodiment, the third acquisition module includes:

[0184] A first acquisition unit, configured to acquire a first usage duration of the endoscope;

[0185] A first determination unit, configured to determine first aging data of the endoscope based on the first usage duration.

[0186] In one embodiment, the first determination unit is further configured to acquire a second usage duration corresponding to each time the endoscope is used, and a first intensity data and / or a first light mode of the light emitted by the light source host each time the endoscope is used; determine the first aging data of the endoscope based on all the second usage durations, and the first intensity data and / or the first light mode.

[0187] In one embodiment, the first acquisition unit is further configured to determine unique identification information of the endoscope; determine the first aging data of the endoscope according to the unique identification information.

[0188] In one embodiment, the control module includes:

[0189] A second acquisition unit, configured to acquire first mapping relation data associated with the light source host; the first mapping relation data includes a mapping relation between a second light output power corresponding to each color to be controlled and a control parameter;

[0190] A third determination unit, configured to determine control parameters for each color to be controlled according to the second light output powers and the first mapping relation data, and drive the light sources corresponding to each color to be controlled in the light source host to emit light based on the control parameters.

[0191] In one embodiment, the second acquisition unit is further configured to acquire second aging data of the light source host; determine the first mapping relation data associated with the light source host according to the second aging data.

[0192] In one embodiment, the second acquisition unit is further configured to acquire a first working duration of the light source host; determine the second aging data of the light source host based on the first working duration.

[0193] In one embodiment, the second acquisition unit is further configured to acquire a second working duration of the light source host each time it works, and a second intensity data and / or a second light mode of the light emitted by the light source host each time it works; determine the second aging data of the light source host based on all the second usage durations, and the second intensity data and / or the second light mode.

[0194] In one embodiment, the endoscope tone correction device further includes:

[0195] A reading module, configured to read calibration coefficients stored in the endoscope;

[0196] Correspondingly, the second obtaining unit is further configured to read first mapping relationship data stored in the light source host.

[0197] Each module in the above endoscope color tone correction device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor in the computer device in the form of hardware or be independent of the processor, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above respective modules.

[0198] Figure 13 It is a schematic structural diagram of an adjustment device in an embodiment of the present application. In one embodiment, as Figure 13 shown, an adjustment device 13 is provided, including a memory 1301 and a processor 1302. The memory 1301 stores a computer program 1303. When the processor 1302 executes the computer program 1303, the steps of any one of the above endoscope color tone correction methods are implemented.

[0199] Figure 14 It is a schematic structural diagram of an endoscope system in an embodiment of the present application. In one embodiment, as Figure 14 shown, an endoscope system 14 is provided, including: a display device 1401, a target lens body 1403, and an adjustment device. Among them, the adjustment device can be an image processing host 1402 or a light source host 1404.

[0200] 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 following steps are implemented:

[0201] Obtain a target color ratio associated with a target light ray to be irradiated, where the target color ratio includes the light output power ratio between multiple colors to be controlled;

[0202] Obtain the first light output power of each color to be controlled according to the target color ratio;

[0203] Determine the second light output power of each color to be controlled according to the first light output power and the calibration coefficients of each color to be controlled by the endoscope; where the calibration coefficients are used to characterize the attenuation of different color light rays by the endoscope, and the calibration coefficients of each color to be controlled are different;

[0204] Based on the second light output power, control the light sources corresponding to each color to be controlled in the light source host to emit light, so that the ratio between each color to be controlled in the irradiation light emitted from the endoscope meets the requirements of the target color ratio.

[0205] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0206] Obtain the first aging data of the endoscope;

[0207] Based on the first aging data, determine the correction coefficients of the endoscope for each color to be controlled.

[0208] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0209] Obtain the first usage duration of the endoscope;

[0210] Based on the first usage duration, determine the first aging data of the endoscope.

[0211] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0212] Obtain the second usage duration corresponding to each time the endoscope is used, as well as the first intensity data and / or the first light mode of the light emitted by the light source host each time it is used;

[0213] Based on all the second usage durations, as well as the first intensity data and / or the first light mode, determine the first aging data of the endoscope.

[0214] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0215] Determine the unique identification information of the endoscope;

[0216] According to the unique identification information, determine the first aging data of the endoscope.

[0217] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0218] Obtain the first mapping relationship data associated with the light source host; the first mapping relationship data includes the mapping relationship between the second light output power corresponding to each color to be controlled and the control parameters;

[0219] According to the second light output powers and the first mapping relationship data, determine the control parameters of each color to be controlled, and drive the light sources corresponding to each color to be controlled in the light source host to emit light based on the control parameters.

[0220] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0221] Obtain the second aging data of the light source host;

[0222] According to the second aging data, determine the first mapping relationship data associated with the light source host.

[0223] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0224] Obtain the first working duration of the light source host;

[0225] Determine the second aging data of the light source host based on the first working duration.

[0226] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0227] Obtain the second working duration of the light source host each time it works, and the second intensity data and / or the second light pattern of the light emitted by the light source host each time it works;

[0228] Determine the second aging data of the light source host based on all the second working durations, and the second intensity data and / or the second light pattern.

[0229] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0230] Read the correction coefficient stored in the endoscope;

[0231] Correspondingly, obtain the first mapping relationship data associated with the light source host, including:

[0232] Read the first mapping relationship data stored in the light source host.

[0233] In one embodiment, a computer program product is provided, including a computer program, which when executed by a processor, implements the following steps:

[0234] Obtain the target color ratio associated with the target light to be irradiated, where the target color ratio includes the light output power ratio between multiple colors to be controlled;

[0235] Obtain the first light output power of each color to be controlled according to the target color ratio;

[0236] Determine the second light output power of each color to be controlled according to the first light output power and the correction coefficient of each color to be controlled by the endoscope; wherein, the correction coefficient is used to characterize the attenuation of different color lights by the endoscope, and the correction coefficients of each color to be controlled are different;

[0237] Based on the second light output power, control the light sources corresponding to each color to be controlled in the light source host to emit light, so that the ratio between each color to be controlled in the irradiation light emitted from the endoscope meets the requirements of the target color ratio.

[0238] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0239] Obtain the first aging data of the endoscope;

[0240] Based on the first aging data, determine the calibration coefficients of the endoscope for each color to be controlled.

[0241] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0242] Obtain the first usage duration of the endoscope;

[0243] Based on the first usage duration, determine the first aging data of the endoscope.

[0244] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0245] Obtain the second usage duration corresponding to each time the endoscope is used, as well as the first intensity data and / or the first light mode of the light emitted by the light source host each time it is used;

[0246] Based on all the second usage durations, as well as the first intensity data and / or the first light mode, determine the first aging data of the endoscope.

[0247] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0248] Determine the unique identification information of the endoscope;

[0249] According to the unique identification information, determine the first aging data of the endoscope.

[0250] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0251] Obtain the first mapping relationship data associated with the light source host; the first mapping relationship data includes the mapping relationship between the second light output power corresponding to each color to be controlled and the control parameters;

[0252] According to the second light output powers and the first mapping relationship data, determine the control parameters for each color to be controlled, and drive the light sources corresponding to each color to be controlled in the light source host to emit light based on the control parameters.

[0253] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0254] Obtain the second aging data of the light source host;

[0255] According to the second aging data, determine the first mapping relationship data associated with the light source host.

[0256] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0257] Obtain the first working duration of the light source host;

[0258] Determine the second aging data of the light source host based on the first working duration.

[0259] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0260] Obtain the second working duration of the light source host during each operation, and the second intensity data and / or the second light pattern of the emitted light when the light source host operates each time;

[0261] Determine the second aging data of the light source host based on all the second working durations, and the second intensity data and / or the second light pattern.

[0262] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0263] Read the calibration coefficient stored in the endoscope;

[0264] Correspondingly, obtain the first mapping relationship data associated with the light source host, including:

[0265] Read the first mapping relationship data stored in the light source host.

[0266] 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 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, and the collection, use, and processing of relevant data need to comply with relevant regulations.

[0267] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above 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 embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, 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 embodiments provided in 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 embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0268] 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 described in this specification.

[0269] The above-described embodiments merely represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting 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 modifications 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 should be subject to the appended claims.

Claims

1. An endoscopic color correction method, characterized in that, The method includes: Obtaining a target color ratio associated with a target light ray to be irradiated, where the target color ratio includes the light emission power ratio between multiple colors to be controlled; Obtaining the first light emission power of each color to be controlled according to the target color ratio; Obtaining the first usage duration of the endoscope, and determining the first aging data of the endoscope based on the first usage duration; or, determining the unique identification information of the endoscope, and determining the first aging data of the endoscope according to the unique identification information; Determining the correction coefficient of the endoscope for each color to be controlled based on the first aging data; Determining the second light emission power of each color to be controlled according to the first light emission power and the correction coefficient of the endoscope for each color to be controlled; wherein, the correction coefficient is used to characterize the attenuation of different color light rays by the endoscope, and the correction coefficients of each color to be controlled are different; Controlling the light sources corresponding to each color to be controlled in the light source host to emit light based on the second light emission power, so that the ratio between each color to be controlled in the irradiation light emitted from the endoscope meets the requirements of the target color ratio.

2. The method according to claim 1, wherein The first usage duration includes one or more second usage durations; the determining the first aging data of the endoscope based on the first usage duration includes: Obtaining the second usage duration corresponding to each time the endoscope is used, and the first intensity data and / or the first light mode of the light rays emitted by the light source host each time it is used; Determining the first aging data of the endoscope based on all the second usage durations, and the first intensity data and / or the first light mode.

3. The method according to claim 1 or 2, characterized in that, The controlling the light sources corresponding to each color to be controlled in the light source host based on the second light emission power includes: Obtaining the first mapping relationship data associated with the light source host; the first mapping relationship data includes the mapping relationship between the second light emission power corresponding to each color to be controlled and the control parameters; Determining the control parameters of each color to be controlled according to each second light emission power and the first mapping relationship data, and driving the light sources corresponding to each color to be controlled in the light source host to emit light based on the control parameters.

4. The method according to claim 3, characterized in that, The obtaining the first mapping relationship data associated with the light source host includes: Obtaining the second aging data of the light source host; Determining the first mapping relationship data associated with the light source host according to the second aging data.

5. The method according to claim 4, wherein The obtaining the second aging data of the light source host includes: Obtaining the first working duration of the light source host; Determining the second aging data of the light source host based on the first working duration.

6. The method according to claim 5, wherein The first working duration includes one or more second working durations; the determining the second aging data of the light source host based on the first working duration includes: Obtaining the second working duration of the light source host each time it works, and the second intensity data and / or the second light mode of the light rays emitted by the light source host each time it works; Determine the second aging data of the light source host based on all the second working hours, and the second intensity data and / or the second light mode.

7. The method according to claim 3, characterized in that Before determining the second light output power of each of the colors to be controlled according to the first light output power and the correction coefficient of the endoscope for each of the colors to be controlled, it further includes: Read the correction coefficient stored in the endoscope. Correspondingly, the obtaining of the first mapping relationship data associated with the light source host includes: Read the first mapping relationship data stored in the light source host.

8. An endoscope color tone correction device, characterized in that, The device includes: A first obtaining module, configured to obtain a target color ratio associated with a target light ray to be irradiated, where the target color ratio includes the light output power ratio between multiple colors to be controlled; A second obtaining module, configured to obtain the first light output power of each of the colors to be controlled according to the target color ratio; A third obtaining module, configured to obtain the first usage duration of the endoscope, and determine the first aging data of the endoscope based on the first usage duration; or, determine the unique identification information of the endoscope, and determine the first aging data of the endoscope according to the unique identification information; A second determining module, configured to determine the correction coefficient of the endoscope for each of the colors to be controlled based on the first aging data; A first determining module, configured to determine the second light output power of each of the colors to be controlled according to the first light output power and the correction coefficient of the endoscope for each of the colors to be controlled; wherein, the correction coefficient is used to characterize the attenuation of different color light rays by the endoscope, and the correction coefficients of each of the colors to be controlled are different; A control module, configured to control the light sources corresponding to each of the colors to be controlled in the light source host to emit light based on the second light output power, so that the ratio between each of the colors to be controlled in the irradiation light emitted from the endoscope meets the requirements of the target color ratio.

9. An adjustment device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

10. An endoscope system, characterized in that, It includes: A display device, a target lens body, and an adjustment device according to claim 9.

Citation Information

Patent Citations

  • Exposure feedback type fluorescent navigation endoscope system and exciting light self-adjusting method

    CN109744987A

  • Light source system and projection equipment

    CN109991799A