Endoscope hue correction method and device, adjusting equipment and endoscope system

By calculating the light output power and correction coefficient of the color to be controlled in the endoscope system, the light source of the light source host is controlled to emit light, and the problem of unstable color tone of the endoscope is solved, and the precise adjustment and stability of the light tone is achieved, which improves the Accuracy of clinical diagnosis.

CN119157466AActive Publication Date: 2024-12-20CHANGZHOU UNITED IMAGING HEALTHCARE SURGICAL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the endoscopic system, the light source host and endoscopy are unstable when observing human tissues, which is difficult to meet the expected tone requirements, affecting the observation of human tissues and the diagnosis of clinical information.

Method used

By obtaining the target color ratio of the target light, 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, and the light source to be controlled in the light source host emits light to ensure that from the endoscope, the light source to be controlled is emitted by light source to ensure that the light source is exposed from the endoscope The ratio between the colors to be controlled in the irradiated light emitted by the mirror meets the target color ratio requirements.

Benefits of technology

The stability and precise adjustment of the tone of the endoscope's emitted light are achieved, ensuring the accurate proportion of the colors to be controlled in the irradiated light emitted from the endoscope, and meeting the tone requirements of clinical diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119157466A_ABST
    Figure CN119157466A_ABST
Patent Text Reader

Abstract

The invention relates to an endoscope hue correction method and device, adjusting equipment and an endoscope system. The method comprises the steps of obtaining a target color proportion associated with target light needing to be irradiated, obtaining first light-emitting power of each color to be controlled according to the target color proportion, determining second light-emitting power of each color to be controlled according to the first light-emitting power and a correction coefficient of the endoscope for each color to be controlled, and adjusting the color to be controlled on the basis of the second light-emitting power. And controlling light sources corresponding to the to-be-controlled colors in the light source host to emit light, so that the proportion of the to-be-controlled colors in the irradiation light emitted from the endoscope meets the target color proportion requirement. According to attenuation conditions of different colors of light rays of the endoscope, the power of each light ray in the light source host is adjusted, compensation of the power of each light ray is achieved, it is ensured that the proportion of the to-be-controlled colors in the irradiation light emitted from the endoscope meets the target color proportion requirement, and the purpose of the endoscope is achieved. Therefore, accurate adjustment of the color tone of the emitted light is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

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

[0003] In actual applications, it is found that when using a light source host and an endoscope to observe human tissue, the emitted light tone is often unstable and difficult to meet the expected light tone requirements. This has an adverse effect on the observation of human tissue and the diagnosis of clinical information. Summary of the invention

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

[0005] In a first aspect, the present application provides an endoscope color tone correction method, comprising:

[0006] Obtaining a target color ratio associated with a target light to be irradiated, wherein the target color ratio includes a light output power ratio between a plurality of colors to be controlled;

[0007] Acquire a first light output power of each color to be controlled according to the target color ratio;

[0008] 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 light of different colors, and the correction coefficient of each color to be controlled is different;

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

[0010] In one of the embodiments, 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 the endoscope for each color to be controlled, the method further includes:

[0011] Acquiring first aging data of the endoscope;

[0012] The correction coefficient of the endoscope for each of the colors to be controlled is determined based on the first aging data.

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

[0014] Obtaining a first usage duration of the endoscope;

[0015] First aging data of the endoscope is determined based on the first usage time.

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

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

[0018] First aging data of the endoscope are determined based on all of the second usage times, as well as the first intensity data and / or the first light pattern.

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

[0020] Determining unique identification information of the endoscope;

[0021] The first aging data of the endoscope is determined according to the unique identification information.

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

[0023] Acquire first mapping relationship data associated with the light source host; the first mapping relationship data includes a mapping relationship between the second light output power and the control parameter corresponding to each color to be controlled;

[0024] According to each of the second light output powers and the first mapping relationship data, control parameters of each of the colors to be controlled are determined, and based on the control parameters, light sources corresponding to each of the colors to be controlled in the light source host are driven to emit light.

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

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

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

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

[0029] Obtaining a first working time of the light source host;

[0030] Second aging data of the light source host is determined based on the first working duration.

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

[0032] Acquire the second working time 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;

[0033] The second aging data of the light source host is determined based on all the second working time, the second intensity data and / or the second light pattern.

[0034] In one of the embodiments, 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 the endoscope for each color to be controlled, the method further includes:

[0035] reading the correction coefficient stored in the endoscope;

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

[0037] The first mapping relationship data stored in the light source host is read.

[0038] In a second aspect, the present application also provides an endoscope color tone correction device, comprising:

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

[0040] A second acquisition module, used for acquiring the first light output power of each color to be controlled according to the target color ratio;

[0041] A first determination module, used 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 light of different colors, and the correction coefficient of each color to be controlled is different;

[0042] A control module is used to control the light sources corresponding to 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 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 a regulating device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0044] Obtaining a target color ratio associated with a target light to be irradiated, wherein the target color ratio includes a light output power ratio between a plurality of colors to be controlled;

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

[0046] 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 light of different colors, and the correction coefficient of each color to be controlled is different;

[0047] Based on the second light output power, the light sources corresponding to the colors to be controlled in the light source host are controlled to emit light, so that the ratio between 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 also provides an endoscope system, which includes a display device, a target scope and the adjustment device provided in the third aspect.

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

[0050] Obtaining a target color ratio associated with a target light to be irradiated, wherein the target color ratio includes a light output power ratio between a plurality of colors to be controlled;

[0051] Acquire a first light output power of each color 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 the endoscope for light of different colors, and the correction coefficient of each color to be controlled is different;

[0053] Based on the second light output power, the light sources corresponding to the colors to be controlled in the light source host are controlled to emit light, so that the ratio between the colors to be controlled in the illumination 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 implements the following steps when executed by a processor:

[0055] Obtaining a target color ratio associated with a target light to be irradiated, wherein the target color ratio includes a light output power ratio between a plurality of colors to be controlled;

[0056] Acquire a 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 the endoscope for light of different colors, and the correction coefficient of each color to be controlled is different;

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

[0059] The above-mentioned endoscope color tone correction method, device, adjustment equipment and endoscope system obtain the 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 endoscope for each color to be controlled, and control the light source corresponding to each color to be controlled in the light source host 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. Among them, the target color ratio includes the light output power ratio between multiple colors to be controlled, and the correction coefficient is used to characterize the attenuation of the endoscope to different colors of light, and the correction coefficient of each color to be controlled is different. The embodiment of the present application targets the attenuation of light of different colors by the endoscope, and adjusts the power of the light corresponding to each color to be controlled in the light source host to achieve compensation for the power of each light, thereby ensuring that the ratio between the colors to be controlled in the illumination light emitted from the endoscope is stable and accurate, that is, the ratio between the colors to be controlled in the illumination light emitted from the endoscope meets the target color ratio requirement, thereby achieving precise adjustment of the light output tone. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0061] Figure 1 is a schematic diagram of an endoscope endoscope system in one embodiment;

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

[0063] Figure 3 A diagram showing an application environment of an endoscope color tone correction method in one embodiment;

[0064] Figure 4 is a schematic flow chart of an endoscope color tone correction method in one embodiment;

[0065] Figure 5 A schematic flow chart of a method for determining a correction coefficient in one embodiment;

[0066] Figure 6 is a schematic flow chart of a method for determining first aging data in one embodiment;

[0067] Figure 7 is a schematic diagram of endoscope calibration in one embodiment;

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

[0069] Fig. 9 A schematic diagram of a flow chart of a method for determining control parameters in one embodiment;

[0070] Fig.10 A schematic diagram of calibration of a light source host in one embodiment;

[0071] Fig.11 is a schematic flow chart of a method for determining second aging data in one embodiment;

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

[0073] Fig.13 is a structural block diagram of a regulating device in one embodiment;

[0074] Fig.14 1 is a structural block diagram of an endoscope system in one embodiment. DETAILED DESCRIPTION

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

[0076] like Figure 1 As shown, the endoscope system includes a light source host, an endoscope, a display, and an image processing host. The light emitted by the light source host is irradiated to the detection part of the human body through the optical fiber bundle of the endoscope, and then the imaging unit of the endoscope photographs the detection part 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 displays it on the display device.

[0077] At present, the light source host uses a xenon lamp or halogen lamp that emits 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 red R-LED, green G-LED, blue B-LED, and purple UV-LED. By independently controlling each color of LED to change the proportion of each color component in the illumination light, the color temperature of the illumination light and the clinical diagnostic information can be adjusted.

[0078] On the one hand, if Figure 2As shown, due to the different detection parts, there will be 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. The length and thickness of the light guide of different types of endoscopes are different, and the light transmission characteristics (transmittance) are also different. Therefore, the light output of the light source host remains the same. When different types of endoscopes are used, the proportion of each color component of the irradiation light from the endoscope will change, resulting in a change in color tone.

[0079] On the other hand, even for different endoscopes of the same type, the light transfer characteristics may be different. Before the endoscope leaves the factory, each endoscope has material differences and assembly differences, resulting in inconsistent transmittances of different endoscopes. And with the number of times different endoscopes are used and the length of time they are used, the aging conditions of each endoscope are also different, resulting in different light transfer characteristics (transmittance). When the light source remains the same, using the same type of endoscope, the proportion of each color component of the irradiated light coming out of the endoscope will also change, resulting in a change in color tone.

[0080] If the hue of the irradiated light emitted from the endoscope changes, the hue of the image determined based on the image signal of the detection part captured by the endoscope will also change, thereby adversely affecting the observation of human tissue 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-mentioned problem of unstable light hue.

[0081] The endoscope color correction method provided in the embodiment of the present application can be applied to Figure 3 In the application environment shown. The application environment includes an endoscope, a light source host, and an image processing host. The light source host drives the LED to emit light by controlling parameters. The light emitted from the light source host is transmitted through the optical fiber bundle of the endoscope and finally irradiates the human tissue. The imaging unit of the endoscope photographs the human tissue to generate an image signal, and the image signal is transmitted to the image processing host. The correction coefficient can be stored in the endoscope or in the light source host. Figure 3 What is shown in the figure is that 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, the correction coefficient is obtained through the data transmission channel and then analyzed, and the analyzed correction coefficient is sent to the light source host, so as to compensate for the attenuation of different colors of light by the endoscope based on the correction coefficient, so that the ratio between the colors to be controlled in the irradiation light emitted from the endoscope meets the target color ratio requirement.

[0082] In an exemplary embodiment, Figure 4 As shown, a method for chromatic aberration correction of an endoscope is provided, and the method is applied to Figure 3The image processing host / light source host in the following embodiment is described by taking the method applied to the image processing host as an example, including the following S401 to S404, wherein:

[0083] S401, obtaining a target color ratio associated with a target light to be irradiated, wherein the target color ratio includes a light output power ratio between a plurality of colors to be controlled.

[0084] The light emitted by the light source host reaches the human tissue through the endoscope, and the imaging unit of the endoscope photographs the human tissue to generate an image signal, and transmits the image signal to the image processing host. The image processing host can obtain the image of the corresponding tissue based on the image signal. Since each tissue has different absorption and reflection capabilities to various lights, 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 needs. The color of the light emitted by the light source host is different in each light output mode, so that the light in each light output mode is used to illuminate the human tissue 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.

[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, obtaining a first light output power of each color to be controlled according to a target color ratio.

[0087] In the same light output mode, different light output gears 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 1mW, and the light output power of the colors to be controlled R / G / B / UV can all be 2mW.

[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. For example, if the target color ratio R / G / B / UV=1:1:1:1 and the total power of the target light is 10mW, the first light output power of each color to be controlled is 2.5mW.

[0089] The first light output power of each color to be controlled is determined by the target color ratio and the total power of the target light. Since the total power of the target light is set, the total power can be relatively controllable.

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

[0091] According to the target color ratio and the first light output power of one of the colors to be controlled, the first light output power of each color to be controlled is determined, and the power of the reference color can be relatively controllable. For example, if the above-mentioned reference color is the color to be controlled R, the power of the color to be controlled R can be relatively controllable. Therefore, based on actual needs, the color to be controlled that plays a decisive role in obtaining tissue information can be used as the reference color.

[0092] S403, determining 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 light of different colors, and the correction coefficient of each color to be controlled is different.

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

[0094] Therefore, in order to ensure that the power of the illumination light finally emitted from the endoscope is controllable, it is necessary to compensate the power of each light according to the attenuation of each light by the endoscope, so as to achieve accurate control of the power of the illumination light finally emitted.

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

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

[0097] If the correction coefficient is transmittance, the second light output power of each color to be controlled can be determined according to the quotient of each first light output 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 light output power of the color R to be controlled is 10mW, the second light output power of the color R to be controlled is 50mW.

[0098] If the correction coefficient is an attenuation rate, the transmittance can be determined according to the attenuation rate, so that the second light output power of the color to be controlled can be obtained by using 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 based on 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, assuming that the transmittance of a standard endoscope for R / G / B / UV is 67.5%, 45%, 30%, and 20%, respectively, the correction coefficients of the standard endoscope are all set to 1. If the transmittance of R / G / B / UV of an endoscope is 67.5%×0.9, 45%×0.8, 30%×1.1, and 20%×1.0, the correction coefficients of the 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 light output power of the endoscope can be determined based on the first light output power of the light source host under the standard endoscope and the correction coefficient of the 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, the light output ratio of the second light output 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 the endoscope, in order to ensure that the power of the illumination light emitted from the endoscope is the same as that of the illumination light emitted from a standard endoscope, and that the ratio between the colors to be controlled in the illumination light emitted by the endoscope meets the target color ratio requirement (i.e., 1:1:1:1), the light output ratio of the second light output power of the light source host under the endoscope is: [1, 1.5, 2.25, 3.375] × [1 / 0.9, 1 / 0.8, 1 / 1.1, 1 / 1.0.].

[0103] Wherein, 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 the endoscope for each color to be controlled, the method further includes: reading the correction coefficient stored in the endoscope.

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

[0105] If the correction coefficient is stored in the endoscope, in actual application, the light source host can be compatible with endoscopes from any manufacturer; if the correction coefficient is stored in the light source host, only the model of the endoscope needs to be read, and 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 the colors to be controlled in the light source host to emit light, so that the ratio between the colors 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 the colors to be controlled in the light source host can be controlled to emit light according to the current parameters or voltage parameters corresponding to each second light output power, so that the ratio between the colors to be controlled in the illumination light emitted from the endoscope meets the target color ratio requirement.

[0108] In the above-mentioned endoscope hue correction method, 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 obtained according to the target color ratio, and the second light output power of each color to be controlled is determined according to the first light output power and the correction coefficient of the endoscope for each color to be controlled. Based on the second light output power, the light source corresponding to each color to be controlled in the light source host is controlled 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. Among them, the target color ratio includes the light output power ratio between multiple colors to be controlled, and the correction coefficient is used to characterize the attenuation of the endoscope to different colors of light, and the correction coefficient of each color to be controlled is different. The embodiment of the present application is aimed at the attenuation of the endoscope to different colors of light, and the power of each light is compensated by adjusting the power of the light corresponding to each color to be controlled in the light source host, so as to ensure that the ratio between each color to be controlled in the irradiation light emitted from the endoscope is stable and accurate, that is, the ratio between each color to be controlled in the irradiation light emitted from the endoscope meets the target color ratio requirement, thereby achieving precise adjustment of the light output hue.

[0109] Figure 5 FIG. 1 is a flow chart of a method for determining a correction coefficient in one embodiment. Figure 5As shown, the embodiment of the present application relates to a possible implementation method of determining a correction coefficient before determining the second light output power of each color to be controlled based on the first light output power and the correction coefficient of the endoscope for each color to be controlled, including the following steps:

[0110] S501, obtaining first aging data of an endoscope.

[0111] In actual applications, endoscopes will age as they are used. For example, the number of times the endoscope is used, the length of time the endoscope is used, and the wear and tear caused by storage and use of the endoscope will all affect the aging of the endoscope. The actual usage of each endoscope is different, so the degree of aging of each endoscope is also different, resulting in different light transfer 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 irradiated light coming out of the endoscope will change, resulting in a change in hue. Therefore, it is necessary to obtain the degree of aging of the endoscope so as to more accurately determine the correction factor based on the degree of aging.

[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 specific usage data set according to actual needs. For example, in some optional embodiments, the first aging data can be determined according to any usage data of the endoscope, such as the usage time, light output mode, light level, and wear degree.

[0114] In some embodiments, any usage data of the endoscope, such as the usage time, light output mode, light level, and wear level, can also be graded and scored to determine the first aging data. For example, the specific usage data is that when other usage data remain the same, the level of light level A is 1; the level of light level B is 2, and so on. Among them, the intensity of light level A is greater than the intensity of light level B, and the aging degree of level 1 is greater than the aging degree of level 2.

[0115] As an optional embodiment of the present application, first aging data of the endoscope may be obtained by acquiring a first usage time of the endoscope.

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

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

[0118] The mapping relationship between the aging data of the endoscope and the correction coefficient of each color to be controlled can be obtained by: Figure 6 The endoscope can be aging-treated according to different aging data. Under each aging data, the power of the light emitted by the light source host is known, and the light emitted by the light source host is transmitted through the optical fiber bundle of the endoscope to the spectroradiometer to obtain the power of the light emitted by the endoscope. The correction coefficient is obtained according to the power of the light emitted by the light source host and the power of the light emitted by the endoscope, thereby obtaining the mapping relationship between the aging data and the correction coefficient.

[0119] After the first aging data is acquired, the correction coefficients of the colors to be controlled that match the first aging data are determined from the mapping relationship.

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

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

[0122] Since the longer the endoscope is used, the more serious its aging phenomenon is, the first use time of the endoscope can be used to characterize the aging degree of the endoscope. For example, the specific usage data is that the first use time is greater than 20 hours and less than 22 hours, and the level is 1; the first use time is greater than 18 hours and less than 20 hours, and the level is 2, and so on. Among them, the aging degree of level 1 is greater than the aging degree of level 2. Alternatively, the aging degree of the first use time is greater than 20 hours and less than 22 hours is 80%, the aging degree of the first use time is greater than 18 hours and less than 20 hours is 70%, and so on.

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

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

[0125] S701, obtaining a second usage time corresponding to each use of the endoscope, and first intensity data and / or a first light pattern of light emitted by a light source host each time the endoscope is used.

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

[0127] The first case: when the endoscope is connected to the light source host and is illuminated by light, the duration corresponding to each use of the endoscope is obtained and used as the second use duration. At the same time, the first intensity data of the light passing through the endoscope is obtained each time it is used. For example, the light output power of the light is 1mw (first intensity data), and the second use duration of the endoscope is 10 hours when the light output power is 1mw.

[0128] The second case: when the endoscope is connected to the light source host and is irradiated with light, the duration corresponding to each use of the endoscope is obtained and used as the second use duration. At the same time, the first light mode of the light is obtained each time it is used. For example, the light is a special light mode, and in this special light mode, the second use duration of the endoscope is 5 hours.

[0129] The third case: when the endoscope is connected to the light source host and is irradiated with light, the duration corresponding to each use of the endoscope is obtained and used as the second use duration, and at the same time, the first intensity data and the first light mode of the light passing through the endoscope are obtained each time it is used. For example, the first light mode is a white light mode, the light output power in this mode is 1mw (first intensity data), and the second use duration under the first intensity data and the first light mode is 20 hours.

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

[0131] In this embodiment, similarly, mapping relationships can be pre-established for the above three situations, for example, mapping relationship 1 is established between the second usage time, the first intensity data, and the first aging data; mapping relationship 2 is established between the second usage time, the first light pattern, and the first aging data; and mapping relationship 3 is established between the second usage time, the first intensity data, the first light pattern, and the first aging data. The mapping relationship can be a table or a function 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 time, the first intensity data and the corresponding mapping relationship 1. Alternatively, the first aging data of the endoscope can be determined by looking up the table according to the second usage time, the first light pattern and the corresponding mapping relationship 2. Alternatively, when the mapping relationship is a functional relationship, the second usage time, the first intensity data and the first light pattern are substituted into the corresponding functional relationship to calculate and obtain the first aging data of the endoscope.

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

[0134] In the embodiment of the present application, the first aging data of the endoscope is determined based on all the second usage time, the first intensity data and / or the first light pattern of the light emitted by the light source host each time the endoscope is used by obtaining the second usage time corresponding to each time the endoscope is used, and the first intensity data and / or the first light pattern. In the embodiment of the present application, the first aging data of the endoscope is determined based on the second usage time, the first intensity data and / or the first light pattern, so that the determination of the first aging data is more accurate, thereby obtaining a more accurate correction coefficient for each color.

[0135] Figure 8 FIG. 1 is a flow chart of a method for determining first aging data in another embodiment. Figure 8 As shown, the method includes: S801, determining unique identification information of an endoscope; S802, determining first aging data of the endoscope according to the unique identification information.

[0136] Due to the different observation parts, 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 length and thickness of the optical waveguide of different types of endoscopes are different, and the light transfer characteristics (transmittance) are also different. Even for the same type of endoscope, each endoscope has material differences and assembly differences before leaving the factory, resulting in inconsistent transmittance of the endoscope. Therefore, when using different types or different endoscopes of the same type, while the light output of the light source remains the same, the proportion of each color component of the irradiation light emitted from the endoscope will also change, resulting in a change in the hue of the light output.

[0137] Therefore, in this embodiment, the first aging data of each endoscope can be recorded separately, and the first aging data of different endoscopes can be distinguished and recorded based on 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 usage requirements, so as to determine the correction coefficient of the color to be controlled based on the first aging data corresponding to the endoscope.

[0138] Furthermore, according to Figure 8 The first aging data of the endoscope can be determined based on the unique identification information, or the above Figure 5-Figure 7 The corresponding embodiment obtains the first aging data, or determines the first aging data of the endoscope by combining the two methods at the same time.

[0139] In an embodiment of the present application, unique identification information of the endoscope is determined, first aging data of the endoscope is determined based on the unique identification information, and the first aging data is distinguished by the unique identification information. When applied, the first aging data of the current endoscope is determined in a targeted manner, and thus the corresponding correction coefficient is determined 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] Fig. 9 FIG. 1 is a flow chart of a method for determining control parameters in an embodiment. Fig. 9 As shown, the embodiment of the present application relates to a possible implementation method of how to control the light sources corresponding to the colors to be controlled in the light source host to emit light based on the second light output power, including the following steps:

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

[0142] Optionally, the control parameter may be DAC data of the driving current, or 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 shown in Table 1. The first relationship data table corresponding to Table 1 stores the mapping relationship between the second light output power and control parameters of the four-color LED of the light source host.

[0144] Table 1

[0145]

[0146] S902, determining control parameters of each color to be controlled according to each second output light 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.

[0147] In practical applications, both the light source host and the endoscope are 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 calibrated in advance to determine the mapping relationship between each second light output power and the control parameter. Therefore, after obtaining the second light output power, the control parameters of each color to be controlled can be determined based on the second light output power and the first mapping relationship data. Taking into account the two aging conditions of the endoscope and the light source host, the precise control of the final endoscope light output tone can be achieved in a real sense.

[0148] In this embodiment, according to each second light output power and the first mapping relationship data, the core processor in the light source host reads the control parameters of each color to be controlled according to each second light output power. Taking the above Table 1 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. 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, the current of the 4-color LED is driven so that the 4-color LED emits light, so that the ratio between the colors to be controlled in the irradiation light emitted from the endoscope meets the target color ratio requirement.

[0149] In an embodiment of the present application, by acquiring the first mapping relationship data associated with the light source host, the control parameters of each color to be controlled are determined according to each second light output power and the first mapping relationship data, and the light sources corresponding to each color to be controlled in the light source host are driven to emit light based on the control parameters. In an embodiment of the present application, the light source host is calibrated in advance to obtain the first mapping relationship data, and the control parameters of each color to be controlled are determined using the first mapping relationship data, so that the corresponding light source is driven to emit light based on the control parameters, which can ensure the accuracy of the light output of the light source host itself, thereby achieving precise control of the light power of each color to be controlled that "enters the endoscope".

[0150] In one embodiment, obtaining first mapping relationship data associated with the light source host includes: obtaining 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.

[0151] For the light source host, the time and 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 of 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 then determine the first mapping relationship data associated with the light source host based on the aging degree.

[0152] In this embodiment, if Fig.10 As 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. The light source host is calibrated, the LED is driven to emit light according to the control parameters, and the second light output power emitted from the light source host end is obtained by using a spectroradiometer. The second light output power corresponding to each control parameter is used to obtain the first mapping relationship data of the corresponding relationship between the control parameter and the second light output power.

[0153] Since the cost of performing aging processing on the light source host using the second aging data is too high, the first mapping relationship data between each control parameter and the second light output power can also be obtained by using a simulation calibration method.

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

[0155] The second light output power of the light emitted from the light source host is obtained by using a spectral radiometer, and the second light output power is written into the light source host to obtain first mapping relationship data of the corresponding relationship between the control parameter and the second light output power, and the first mapping relationship data is stored in the light source host. In practical applications, the first mapping relationship data is read from the light source host, and the first mapping relationship data can be used to adaptively improve the color tone instability caused by the aging of the light source host.

[0156] In an embodiment of the present application, by acquiring the second aging data of the light source host, the first mapping relationship data associated with the light source host is determined according to the second aging data, thereby laying a foundation for subsequently determining the control parameters based on the first mapping relationship and the second light output power, thereby driving the light sources corresponding to 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 time of the light source host; and determining the second aging data of the light source host based on the first working time.

[0158] Among them, the first working time is the working time of the light source host under light emission.

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

[0160] In this embodiment, the first working time is the specific usage data of the light source host, and the first working time can be directly used as the second aging data of the light source host; or the corresponding relationship between the working time and the aging degree can be preset to determine the specific interval in the corresponding relationship where the first working time is located, thereby obtaining the aging degree of the light source host.

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

[0162] Fig.11 FIG. 1 is a flow chart of a method for determining second aging data in an embodiment. Fig.11 As shown, the embodiment of the present application relates to a possible implementation method of how to determine the second aging data of the light source host based on the first working time, including the following steps:

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

[0164] In this embodiment, similarly, obtaining the second working time 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, may include the following three situations:

[0165] The first case: when the light source host emits light, obtain the corresponding duration of 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 of the light emitted by the light source host each time it works. For example, the light output power of the light is 2mw (second intensity data), and the second working duration of the light source host is 20 hours when the light output power is 2mw.

[0166] The second case: when the light source host emits light, the duration corresponding to each time the light source host emits light is obtained, and it is used as the second working duration. At the same time, the second light mode of the light is obtained each time it works. For example, the light is a special light mode, and in 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, the duration corresponding to each light emission of the light source host is obtained, and it is used as the second working duration. At the same time, the second intensity data and the second light mode of the light are obtained each time it works. For example, the light source host emits light that is overall red light, and the light output power in this mode is 10mw (second intensity data), and the second working duration in the second intensity data and the second light mode is 10 hours.

[0168] S1102, determining second aging data of the light source host based on all second working time periods, second intensity data and / or second light patterns.

[0169] In this embodiment, mapping relationships corresponding to the above three situations can be established in advance. After the corresponding second working time, second intensity data and / or second light mode are obtained, the corresponding mapping relationship is determined according to the second working time, second intensity data and / or second light mode, and the corresponding second aging data is matched from the mapping relationship.

[0170] Similarly, the second working time, the second intensity data and / or the second light pattern may also be directly used as the second aging data.

[0171] In an embodiment of the present application, by obtaining the second working time of the light source host each time it works, and the second intensity data and / or second light pattern of the emitted light each time the light source host works, the second aging data of the light source host is determined based on all the second working time, and the second intensity data and / or the second light pattern, and 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 to 8 For an embodiment related to the aging degree of an endoscope, and Figures 9 to 11 The embodiments related to the aging degree of the light source host can be implemented in combination. That is, the correction coefficient and the first mapping relationship data can be used at the same time to adaptively improve the color instability caused by the aging of the light source host and the endoscope, which can deal with the actual inconsistency between the aging of the light source host and the endoscope in actual applications.

[0173] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, 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, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0174] Based on the same inventive concept, the embodiment of the present application also provides an endoscope color correction device for implementing the endoscope color correction method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more endoscope color correction device embodiments provided below can refer to the limitations of the endoscope color correction method above, and will not be repeated here.

[0175] In an exemplary embodiment, Fig.12 As shown, an endoscope color correction device is provided, comprising: a first acquisition module 11, a second acquisition module 12, a first determination module 13 and a control module 14, wherein:

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

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

[0178] A first determination module 13 is used 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 light of different colors, and the correction coefficient of each color to be controlled is different;

[0179] The control module 14 is used to control the light sources corresponding to 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 the colors to be controlled in the illumination light emitted from the endoscope meets the target color ratio requirement.

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

[0181] A third acquisition module, used for acquiring first aging data of the endoscope;

[0182] The second determination module is used to determine the 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 obtaining unit, used for obtaining a first usage time of the endoscope;

[0185] The first determining unit is used to determine first aging data of the endoscope based on a first usage duration.

[0186] In one embodiment, the first determination unit is also used to obtain the second usage time corresponding to each time the endoscope is used, and the first intensity data and / or the first light pattern of the light emitted by the light source host each time it is used; and determine the first aging data of the endoscope based on all the second usage time, and the first intensity data and / or the first light pattern.

[0187] In one embodiment, the first acquisition unit is further used to determine unique identification information of the endoscope; and determine 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 is used to acquire first mapping relationship data associated with the light source host; the first mapping relationship data includes a mapping relationship between the second light output power and the control parameter corresponding to each color to be controlled;

[0190] The third determination unit is used to 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.

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

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

[0193] In one embodiment, the second acquisition unit is also used to obtain the second working time of the light source host each time it works, and the second intensity data and / or second light pattern of the light emitted by the light source host each time it works; and determine the second aging data of the light source host based on all second usage times, and the second intensity data and / or second light pattern.

[0194] In one embodiment, the endoscope color correction device further comprises:

[0195] A reading module, used for reading the correction coefficient stored in the endoscope;

[0196] Correspondingly, the second acquisition unit is also used to read the first mapping relationship data stored in the light source host.

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

[0198] Fig.13 Schematic diagram of a structure of a regulating device in an embodiment of the present application. In one embodiment, Fig.13 As shown, an adjustment device 13 is provided, including a memory 1301 and a processor 1302, the memory 1301 stores a computer program 1303, and the processor 1302 implements the steps of any of the above-mentioned endoscope color tone correction methods when executing the computer program 1303.

[0199] Fig.14 FIG. 1 is a schematic diagram of the structure of an endoscope system in an embodiment of the present application. In one embodiment, Fig.14 As shown, an endoscope system 14 is provided, comprising: a display device 1401 , a target scope 1403 and an adjustment device. The adjustment device may 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, and when the computer program is executed by a processor, the following steps are implemented:

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

[0202] Obtaining 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 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 light of different colors, and the correction coefficient of each color to be controlled is different;

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

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

[0206] acquiring first aging data of the endoscope;

[0207] Based on the first aging data, a correction coefficient of the endoscope for each color to be controlled is determined.

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

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

[0210] First aging data of the endoscope is determined based on the first usage time.

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

[0212] Acquire a second usage duration corresponding to each use of the endoscope, and first intensity data and / or a first light pattern of light emitted by the light source host each time the endoscope is used;

[0213] First aging data of the endoscope are determined based on all second usage times and the first intensity data and / or the first light pattern.

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

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

[0216] First aging data of the endoscope is determined according to the unique identification information.

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

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

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

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

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

[0222] The first mapping relationship data associated with the light source host is determined according to the second aging data.

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

[0224] Get the first working time of the light source host;

[0225] The second aging data of the light source host is determined based on the first working time.

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

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

[0228] The second aging data of the light source host is determined based on all the second working time, 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 also implemented:

[0230] Reading the correction factors stored in the endoscope;

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

[0232] The first mapping relationship data stored in the light source host is read.

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

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

[0235] Obtaining 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 the endoscope for each color to be controlled; wherein the correction coefficient is used to characterize the attenuation of the endoscope for light of different colors, and the correction coefficient of each color to be controlled is different;

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

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

[0239] acquiring first aging data of the endoscope;

[0240] Based on the first aging data, a correction coefficient of the endoscope for each color to be controlled is determined.

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

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

[0243] First aging data of the endoscope is determined based on the first usage time.

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

[0245] Acquire a second usage duration corresponding to each use of the endoscope, and first intensity data and / or a first light pattern of light emitted by the light source host each time the endoscope is used;

[0246] First aging data of the endoscope are determined based on all second usage times and the first intensity data and / or the first light pattern.

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

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

[0249] First aging data of the endoscope is determined according to the unique identification information.

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

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

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

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

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

[0255] The first mapping relationship data associated with the light source host is determined according to the second aging data.

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

[0257] Get the first working time of the light source host;

[0258] The second aging data of the light source host is determined based on the first working time.

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

[0260] Acquire a second working time of the light source host each time it works, and second intensity data and / or a second light pattern of light emitted by the light source host each time it works;

[0261] The second aging data of the light source host is determined based on all the second working time, 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 also implemented:

[0263] Reading the correction factors stored in the endoscope;

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

[0265] The first mapping relationship data stored in the light source host is read.

[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 used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0267] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and 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-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

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

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

Claims

1. A method for calibrating color tone of an endoscope, characterized in that: The method comprises: Obtaining a target color ratio associated with a target light to be irradiated, wherein the target color ratio includes a light output power ratio between a plurality of colors to be controlled; Acquire a 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 endoscope for each color to be controlled; wherein the correction coefficient is used to characterize the attenuation of the endoscope for light of different colors, and the correction coefficient of each color to be controlled is different; Based on the second light output power, the light sources corresponding to the colors to be controlled in the light source host are controlled to emit light, so that the ratio between the colors to be controlled in the illumination light emitted from the endoscope meets the target color ratio requirement.

2. The method according to claim 1, characterized in that: 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 the endoscope for each color to be controlled, the method further includes: Acquiring first aging data of the endoscope; The correction coefficient of the endoscope for each of the colors to be controlled is determined based on the first aging data.

3. The method according to claim 2, characterized in that The obtaining of first aging data of the endoscope comprises: Obtaining a first usage duration of the endoscope; First aging data of the endoscope is determined based on the first usage time.

4. The method according to claim 3, characterized in that The first usage duration includes one or more second usage durations; and determining the first aging data of the endoscope based on the first usage duration includes: Acquire the second usage time corresponding to each time the endoscope is used, and the first intensity data and / or the first light pattern of the light emitted by the light source host each time the endoscope is used; First aging data of the endoscope are determined based on all of the second usage times, as well as the first intensity data and / or the first light pattern.

5. The method according to claim 2, characterized in that: The obtaining of first aging data of the endoscope comprises: Determining unique identification information of the endoscope; The first aging data of the endoscope is determined according to the unique identification information.

6. The method according to any one of claims 1 to 5, characterized in that: The controlling, based on the second light output power, of the light source host corresponding to each of the colors to be controlled to emit light comprises: Acquire first mapping relationship data associated with the light source host; the first mapping relationship data includes a mapping relationship between the second light output power and the control parameter corresponding to each color to be controlled; According to each of the second light output powers and the first mapping relationship data, control parameters of each of the colors to be controlled are determined, and based on the control parameters, light sources corresponding to each of the colors to be controlled in the light source host are driven to emit light.

7. The method according to claim 6, characterized in that The obtaining of first mapping relationship data associated with the light source host comprises: Acquire second aging data of the light source host; The first mapping relationship data associated with the light source host is determined according to the second aging data.

8. The method according to claim 7, characterized in that The obtaining the second aging data of the light source host comprises: Obtaining a first working time of the light source host; Second aging data of the light source host is determined based on the first working duration.

9. The method according to claim 8, characterized in that The first working duration includes one or more second working durations; and determining the second aging data of the light source host based on the first working duration includes: Acquire the second working time 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; The second aging data of the light source host is determined based on all the second working time, the second intensity data and / or the second light pattern.

10. The method according to claim 6, characterized in that 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 the endoscope for each color to be controlled, the method further includes: reading the correction coefficient stored in the endoscope; Correspondingly, the obtaining of the first mapping relationship data associated with the light source host includes: The first mapping relationship data stored in the light source host is read.

11. An endoscope color correction device, characterized in that: The device comprises: A first acquisition module is used to acquire a target color ratio associated with a target light to be irradiated, wherein the target color ratio includes a light output power ratio between multiple colors to be controlled; A second acquisition module, used for acquiring the first light output power of each color to be controlled according to the target color ratio; A first determination module, used 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 light of different colors, and the correction coefficient of each color to be controlled is different; A control module is used to control the light sources corresponding to 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 the colors to be controlled in the illumination light emitted from the endoscope meets the target color ratio requirement.

12. A regulating 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 10 are implemented.

13. An endoscope system, characterized in that: include: A display device, a target mirror body and an adjustment device as claimed in claim 12.

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

  • Endoscope color temperature real-time correction method and device, electronic equipment and camera system

    CN114071110A