Method and device for upgrading hue balance parameter and upgrading equipment

By obtaining the spectral transmittance conversion relationship between the original endoscope and the new endoscope, the tone balance parameters of the light source host are remotely updated, which solves the problem that the light source host cannot be upgraded remotely in the existing technology, simplifies the upgrade process and reduces the difficulty. .

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

Patent Information

Application Number
CN202410351949.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-25
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

The existing light source host cannot remotely upgrade the tone balance parameters, resulting in the newly developed endoscope being back to the factory for calibration and maintenance, which increases the complexity and difficulty of the upgrade process.

Method used

By obtaining the spectral transmittance conversion relationship between the original endoscope and the new endoscope, determine the tone balance parameters of the light source host to be upgraded, realize remote transmission and storage, and directly update the tone balance parameters of the light source host.

Benefits of technology

The remote tone balance parameter upgrade of the light source host is realized, the upgrade process is simplified, the factory calibration and maintenance are avoided, and the difficulty is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119170231A_ABST
    Figure CN119170231A_ABST
Patent Text Reader

Abstract

The invention relates to a hue balance parameter upgrading method and device and upgrading equipment. Acquiring a conversion relation between the first spectrum transmittance of the original endoscope and the second spectrum transmittance of the new endoscope, determining a second hue balance parameter according to the conversion relation and the first hue balance parameter of the to-be-upgraded light source host, and upgrading the to-be-upgraded light source host based on the second hue balance parameter. According to the embodiment of the invention, the remote upgrading of the to-be-upgraded light source host can be realized, the situation that the sold light source host needs to be demarcated and maintained after a new endoscope is researched and developed is avoided, and the upgrading process and upgrading difficulty of the tone balance parameter of the light source host are greatly simplified.
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 a method, device and equipment for upgrading color tone balance parameters. Background Art

[0002] The endoscope system includes a light source host, an endoscope, and an image processing host. Endoscopes of different types or different models of the same type can be connected to the same light source host and image processing host to achieve observation of human tissue. Since the length and thickness of the light guide inside different endoscopes are different, the spectral transmittance of the light guide will vary with the endoscope. Therefore, in order to make the light spectrum of the endoscope end consistent when different endoscopes are connected to the same light source host, the color balance parameters of the light source host need to be changed according to the connected endoscope.

[0003] The light source host that has been sold currently stores the color tone balance parameters that match the original endoscope before the light source host was sold, but does not store the color tone balance parameters of the newly developed new endoscope. Therefore, the color tone balance parameters stored in the light source host that has been sold need to be upgraded to write the color tone balance parameters of the new endoscope into the light source host that has been sold. However, it is currently impossible to remotely upgrade the color tone balance parameters of the light source host that has been sold. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device and equipment for upgrading the tone balance parameters that can be upgraded remotely in order to solve the above technical problems.

[0005] In a first aspect, the present application provides a method for updating a tone balance parameter, comprising:

[0006] Obtaining a conversion relationship between a first spectral transmittance of an original endoscope and a second spectral transmittance of a new endoscope; the first spectral transmittance is the spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and the second spectral transmittance is the spectral transmittance of the new endoscope to each color to be controlled in the light source prototype;

[0007] Determine the second hue balance parameter according to the conversion relationship and the first hue balance parameter of the light source host to be upgraded; the first hue balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the original endoscope, and the second hue balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope;

[0008] The light source host to be upgraded is upgraded based on the second color tone balance parameter.

[0009] In one embodiment, the step of obtaining a conversion relationship between a first spectral transmittance of an original endoscope and a second spectral transmittance of a new endoscope includes:

[0010] For each color to be controlled, obtaining a first light output power of the spectrum of the color to be controlled output through the original endoscope under the same control parameters of the light source prototype, and a second light output power of the spectrum of the color to be controlled output through the new endoscope;

[0011] According to the first light output power and the second light output power of each color to be controlled, a conversion relationship corresponding to each color to be controlled is determined.

[0012] In one embodiment, the original endoscope includes a plurality of first original endoscopes, the new endoscope includes a plurality of first new endoscopes, and the first light output power of the spectrum of the color to be controlled outputted by the original endoscope under the same control parameters of the light source prototype and the second light output power of the spectrum of the color to be controlled outputted by the new endoscope include:

[0013] Acquire the third light output power of the spectrum of the color to be controlled under the same control parameters output by each of the first original endoscopes, and the fourth light output power of the spectrum of the color to be controlled under the same control parameters output by each of the first new endoscopes;

[0014] Determine, from the third optical output power and the fourth optical output power, respectively, a fifth optical output power and a sixth optical output power that meet a preset optical output power condition;

[0015] The first optical output power is determined according to the fifth optical output power, and the second optical output power is determined according to the sixth optical output power.

[0016] In one embodiment, the step of obtaining a conversion relationship between a first spectral transmittance of an original endoscope and a second spectral transmittance of a new endoscope includes:

[0017] Obtaining a first spectral transmittance of the original endoscope for each color to be controlled in the light source prototype;

[0018] Obtaining a second spectral transmittance of the new endoscope for each color to be controlled in the light source prototype;

[0019] For each of the to-be-controlled colors, a conversion relationship corresponding to the to-be-controlled color is determined according to the first spectral transmittance and the second spectral transmittance of the to-be-controlled color.

[0020] In one embodiment, the original endoscope includes a plurality of first original endoscopes, the new endoscope includes a plurality of first new endoscopes, and the obtaining of a first spectral transmittance of the original endoscope for each color to be controlled in the light source prototype, and the obtaining of a second spectral transmittance of the new endoscope for each color to be controlled in the light source prototype, comprises:

[0021] Acquire a third spectral transmittance of the first original endoscope for each of the colors to be controlled, and acquire a fourth spectral transmittance of the first new endoscope for each of the colors to be controlled;

[0022] Determining a fifth spectral transmittance and a sixth spectral transmittance that meet a preset transmittance condition from the third spectral transmittance and the fourth spectral transmittance, respectively;

[0023] The first spectral transmittance is determined according to the fifth spectral transmittance, and the second spectral transmittance is determined according to the sixth spectral transmittance.

[0024] In one embodiment, the number of colors to be controlled in the light source prototype is consistent with the number of colors to be controlled in the light source host to be upgraded, and the spectrum of each color to be controlled in the light source prototype is consistent with the wavelength band of the spectrum of each color to be controlled in the light source host to be upgraded.

[0025] In one embodiment, determining the second color tone balance parameter according to the conversion relationship and the first color tone balance parameter of the light source host to be upgraded includes:

[0026] Determine an intermediate tone balance parameter according to the conversion relationship and the first tone balance parameter; the intermediate tone balance parameter is a mapping relationship between a candidate light output power and a candidate control parameter of a spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope;

[0027] The candidate output optical power is fitted, and the candidate control parameter is fitted to obtain the second color tone balance parameter.

[0028] In one embodiment, the method further comprises:

[0029] Acquire first aging data of the light source host to be upgraded;

[0030] Determine the first color tone balance parameter from the color tone balance parameter set of the light source host to be upgraded according to the first aging data;

[0031] The tone balance parameter set includes mapping relationships associated with the light source host to be upgraded under at least two types of aging data, and the mapping relationships associated with different aging data are not completely the same.

[0032] In a second aspect, the present application also provides a device for upgrading tone balance parameters, including:

[0033] A first acquisition module is used to acquire a conversion relationship between a first spectral transmittance of an original endoscope and a second spectral transmittance of a new endoscope; the first spectral transmittance is the spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and the second spectral transmittance is the spectral transmittance of the new endoscope to each color to be controlled in the light source prototype;

[0034] A first determination module is used to determine a second color tone balance parameter according to the conversion relationship and the first color tone balance parameter; the first color tone balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the original endoscope, and the second color tone balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope;

[0035] An upgrading module is used to upgrade the light source host to be upgraded based on the second color tone balance parameter.

[0036] In a third aspect, the present application further provides an upgrade 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:

[0037] Obtaining a conversion relationship between a first spectral transmittance of an original endoscope and a second spectral transmittance of a new endoscope; the first spectral transmittance is the spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and the second spectral transmittance is the spectral transmittance of the new endoscope to each color to be controlled in the light source prototype;

[0038] Determine the second hue balance parameter according to the conversion relationship and the first hue balance parameter of the light source host to be upgraded; the first hue balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the original endoscope, and the second hue balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope;

[0039] The light source host to be upgraded is upgraded based on the second color tone balance parameter.

[0040] In a fourth 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:

[0041] Obtaining a conversion relationship between a first spectral transmittance of an original endoscope and a second spectral transmittance of a new endoscope; the first spectral transmittance is the spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and the second spectral transmittance is the spectral transmittance of the new endoscope to each color to be controlled in the light source prototype;

[0042] Determine the second hue balance parameter according to the conversion relationship and the first hue balance parameter of the light source host to be upgraded; the first hue balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the original endoscope, and the second hue balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope;

[0043] The light source host to be upgraded is upgraded based on the second color tone balance parameter.

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

[0045] Obtaining a conversion relationship between a first spectral transmittance of an original endoscope and a second spectral transmittance of a new endoscope; the first spectral transmittance is the spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and the second spectral transmittance is the spectral transmittance of the new endoscope to each color to be controlled in the light source prototype;

[0046] Determine the second hue balance parameter according to the conversion relationship and the first hue balance parameter of the light source host to be upgraded; the first hue balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the original endoscope, and the second hue balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope;

[0047] The light source host to be upgraded is upgraded based on the second color tone balance parameter.

[0048] The above-mentioned color tone balance parameter upgrade method, device and upgrade equipment obtain the conversion relationship between the first spectral transmittance of the original endoscope and the second spectral transmittance of the new endoscope under the light source prototype, and use the conversion relationship to convert the first color tone balance parameter in the light source host to be upgraded to obtain the second color tone balance parameter, and remotely transmit the second color tone balance parameter to the customer's light source host to be upgraded, which can realize remote upgrading and avoids the need to return the sold light source host to the factory for calibration and repair after the development of the new endoscope, which greatly simplifies the upgrade process and difficulty of the color tone balance parameter of the light source host. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0050] Figure 1 A diagram of an application environment of a method for updating a tone balance parameter in an embodiment;

[0051] Figure 2 is a flow chart of a method for updating a tone balance parameter in one embodiment;

[0052] Figure 3 A schematic diagram of a flow chart of a method for determining a conversion relationship in one embodiment;

[0053] Figure 4 A schematic diagram of a flow chart of a method for determining a first optical output power and a second optical output power in an embodiment;

[0054] Figure 5 is a schematic flow chart of a method for determining a first optical output power and a second optical output power in another embodiment;

[0055] Figure 6 A schematic flow chart of a method for determining a conversion relationship in another embodiment;

[0056] Figure 7 A schematic diagram of a flow chart of a method for determining a first spectral transmittance and a second spectral transmittance in one embodiment;

[0057] Figure 8 is a flow chart of a method for determining a second color tone balance parameter in one embodiment;

[0058] Fig. 9 is a schematic flow chart of a method for determining a first tone balance parameter in one embodiment;

[0059] Fig.10 is a structural block diagram of a device for updating tone balance parameters in one embodiment;

[0060] Fig.11 The figure is a diagram of the internal structure of an upgrading device in one embodiment. DETAILED DESCRIPTION

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

[0062] The method for updating the tone balance parameters provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. 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 irradiates 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.

[0063] In an exemplary embodiment, Figure 2 As shown, a method for updating the tone balance parameters is provided, and the method is applied to Figure 1 The light source host (i.e., light source prototype) or image processing host in the embodiment is used as an example for description, including the following S201 to S203. Among them:

[0064] S201, obtaining a conversion relationship between a first spectral transmittance of the original endoscope and a second spectral transmittance of the new endoscope; the first spectral transmittance is the spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and the second spectral transmittance is the spectral transmittance of the new endoscope to each color to be controlled in the light source prototype.

[0065] Due to the influence of factors such as the material, length, thickness, quantity and breakage of the endoscope optical fiber, when the light emitted by the light source host passes through the endoscope, the light guide itself in each endoscope will attenuate the transmitted light, and different endoscopes will have certain differences in these influencing factors. Therefore, the spectral transmittance passing through the endoscope also varies with different endoscopes.

[0066] The new endoscope may be an endoscope of a different type from the original endoscope. For example, if the original endoscope is a gastroscope, the new endoscope may be a bronchoscope, a colonoscope, etc. The new endoscope may also be an endoscope of the same type as the original endoscope but of a different model. For example, if the original endoscope is a gastroscope 1.0, the new endoscope may be a gastroscope 2.0, a gastroscope 1.1, etc.

[0067] In this embodiment, for each color to be controlled in the light source prototype, the first spectral transmittance of the color to be controlled through the original endoscope and the second spectral transmittance through the new endoscope can be directly obtained from the storage medium of the light source prototype, and the conversion relationship is determined according to the first spectral transmittance and the second spectral transmittance. Alternatively, the first spectral transmittance and the second spectral transmittance are obtained by experiment using the light source prototype, the original endoscope and the new endoscope, so as to determine the conversion relationship according to the first spectral transmittance and the second spectral transmittance.

[0068] In a possible implementation, for the same control parameters of the light source prototype, the higher the spectral transmittance of the endoscope, the greater the light output radiation flux through the endoscope, that is, the greater the light output power through the endoscope. Therefore, the first light output radiation flux of each color to be controlled passing through the original endoscope and the second light output radiation flux passing through the new endoscope under the same control parameters can also be obtained respectively, and the conversion relationship between the first spectral transmittance and the second spectral transmittance can be determined based on the first light output radiation flux and the second light output radiation flux.

[0069] S202, determine the second color tone balance parameter according to the conversion relationship and the first color tone balance parameter of the light source host to be upgraded; the first color tone balance parameter is the mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the original endoscope, and the second color tone balance parameter is the mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope.

[0070] As an embodiment of the present application, the number of each color to be controlled in the light source prototype is consistent with the number of each color to be controlled in the light source host to be upgraded, and the spectrum of each color to be controlled in the light source prototype is consistent with the wavelength band of the spectrum of each color to be controlled in the light source host to be upgraded. For example, the light source host to be upgraded uses a light emitting diode (LED) as a light source, and the LED light source is usually a combination of several LEDs, such as R-LED, G-LED, B-LED, and V-LED. The proportion of each color component in the emitted illumination light is changed by independently controlling the light emission of each color LED to adjust the color temperature of the illumination light and the clinical diagnosis information. If the light source host to be upgraded includes the above-mentioned 4 LEDs, the light source prototype also includes the above-mentioned 4 LEDs, which can ensure the best accuracy of the conversion relationship obtained by calibrating the light source prototype for adjusting the color balance parameters, and can also avoid the waste of labor costs caused by repeated calibration in order to improve the accuracy of the conversion relationship when the number of colors to be controlled and / or the wavelength band of the spectrum in the light source prototype and the light source host to be upgraded are inconsistent.

[0071] In this embodiment, a wireless transmission module or a wired transmission module can be used to obtain the first color tone balance parameter from the light source host to be upgraded. Since the conversion relationship represents the relationship between the spectral transmittance of the original endoscope and the new endoscope, the conversion relationship is used to convert the light output power in the first color tone balance parameter to obtain the intermediate color tone balance parameter. If the candidate control parameters and candidate light output powers corresponding to each gear in the intermediate color tone balance parameter match the gear of the new endoscope, the intermediate color tone balance parameter can be used as the second color tone balance parameter. If the candidate control parameters and candidate light output powers corresponding to each gear in the intermediate color tone balance parameter do not match the gear of the new endoscope, it is necessary to fit the intermediate color tone balance parameter to obtain the second color tone balance parameter.

[0072] As shown in Table 1, Table 1 is the first color tone balance parameter of the light source host to be upgraded.

[0073] Table 1

[0074]

[0075] Take the example that the intermediate tone balance parameter meets the gear requirements of the new endoscope, that is, the intermediate tone balance parameter is the second tone balance parameter. If the conversion relationship is the ratio between the first spectral transmittance of the original endoscope and the second spectral transmittance of the new endoscope, then for the light output power of each color to be controlled in the first tone balance parameter, divide the light output power by the conversion relationship to obtain the second tone balance parameter. For example, the light output power of the color to be controlled R through the original endoscope at the control parameter Br1 is Wr1, and the conversion relationship of the color to be controlled R is nR = first spectral transmittance TR1 / second spectral transmittance TR2. By dividing the light output power Wr1 by nR, the light output power of the color to be controlled R through the new endoscope at the control parameter Br1 can be obtained.

[0076] If the conversion relationship is the ratio of the second spectral transmittance of the new endoscope to the first spectral transmittance of the original endoscope, then for the light output power of each color to be controlled in the first color tone balance parameter, the light output power is multiplied by the conversion relationship to obtain the second color tone balance parameter.

[0077] Optionally, a wireless transmission module or a wired transmission module may be used to send the conversion relationship to the host of the light source to be upgraded, that is, the light source host to be upgraded or the image processing host corresponding to the light source host to be upgraded may be used to perform the above step S202.

[0078] S203: Upgrading the light source host to be upgraded based on the second color tone balance parameter.

[0079] In this embodiment, the second color tone balance parameter can be sent to the light source host to be upgraded by using a wireless transmission module or a wired transmission module, and the light source host to be upgraded stores the second color tone balance parameter. Alternatively, the second color tone balance parameter can be provided to the upgraded light source host for storage by using an external storage medium such as a USB flash drive.

[0080] When the light source host to be upgraded is connected to the new endoscope, the light sources corresponding to the colors to be controlled in the light source host to be upgraded can be controlled to emit light according to the control parameters corresponding to the second color tone balance parameters, so that the ratio between the colors to be controlled in the illumination light emitted from the new endoscope meets the color ratio requirements.

[0081] In an embodiment of the present application, a conversion relationship between a first spectral transmittance of the original endoscope and a second spectral transmittance of the new endoscope is obtained under a light source prototype, and the first tone balance parameter in the light source host to be upgraded is converted into a second tone balance parameter using the conversion relationship, and the second tone balance parameter is remotely transmitted to the customer's light source host to be upgraded. This allows remote upgrading, avoids the need to return the sold light source host to the factory for calibration and repair after the development of a new endoscope, and greatly simplifies the upgrade process and difficulty of the tone balance parameters of the light source host.

[0082] Figure 3 FIG. 1 is a flow chart of a method for determining a conversion relationship in an embodiment. Figure 3 As shown, the embodiment of the present application relates to a possible implementation method of how to obtain a conversion relationship between a first spectral transmittance of an original endoscope and a second spectral transmittance of a new endoscope, including the following steps:

[0083] S301, for each color to be controlled, obtaining a first light output power of the spectrum of the color to be controlled output through the original endoscope under the same control parameters of the light source prototype, and a second light output power of the spectrum of the color to be controlled output through the new endoscope.

[0084] The spectral transmittance of the endoscope to the color to be controlled affects the light output power of the endoscope. Therefore, the conversion relationship corresponding to each color to be controlled can be determined by the first light output power of the spectrum of the color to be controlled through the original endoscope under the same control parameters, and the second light output power of the spectrum of the color to be controlled through the new endoscope.

[0085] In this embodiment, if Figure 4As shown, for each color to be controlled, the control parameter of the light source prototype can be set to the same control parameter, and the control parameter is transmitted to the core control chip of the light source prototype, such as a microcontroller unit (MCU) or a field-programmable gate array (FPGA), and the light of the color to be controlled in the light source prototype is placed in the spectroradiometer through the endoscope. The control chip writes the control parameter into the current driving chip, drives the LED to emit light by driving the current, and uses the spectroradiometer to record the first light output power of the irradiation light emitted from the original endoscope and the second light output power of the irradiation light emitted from the new endoscope.

[0086] In a possible implementation, the original endoscope and the new endoscope can also be calibrated using the light source prototype in the above manner. The calibration results are shown in Tables 2 and 3. Table 2 shows the color tone balance parameters stored in the light source prototype that match the original endoscope, and Table 3 shows the color tone balance parameters stored in the light source prototype that match the new endoscope.

[0087] Table 2

[0088]

[0089] Table 3

[0090]

[0091] Through Table 2 and Table 3, the first light output power of the spectrum of the color to be controlled output by the original endoscope and the second light output power of the spectrum of the color to be controlled output by the new endoscope under the same control parameters are obtained. For example, for the color to be controlled R, it is searched that Ar3 in Table 2 = Ar5' in Table 3, and the light output power Wr3 corresponding to Ar3 is used as the first light output power, and the light output power Wr5' corresponding to Ar5' is used as the second light output power.

[0092] S302: Determine a conversion relationship corresponding to each color to be controlled according to the first light output power and the second light output power of each color to be controlled.

[0093] In this embodiment, the conversion relationship corresponding to each color to be controlled can be determined by using the ratio between the first light output power and the second light output power, or the ratio between the second light output power and the first light output power. For example, the ratio between the second spectral transmittance and the first spectral transmittance can be obtained by using the ratio between the first light output power and the second light output power.

[0094] In the embodiment of the present application, for each color to be controlled, the first light output power of the spectrum of the color to be controlled under the same control parameters of the light source prototype outputted by the original endoscope, and the second light output power of the spectrum of the color to be controlled outputted by the new endoscope are obtained, and the conversion relationship corresponding to each color to be controlled is determined according to the first light output power and the second light output power of each color to be controlled. The embodiment of the present application uses the first light output power and the second light output power to determine the conversion relationship corresponding to each color to be controlled, which can quickly map the first spectral transmittance of the original endoscope to the new endoscope, thereby improving the efficiency of determining the conversion relationship.

[0095] Figure 5 FIG. 4 is a flow chart of a method for determining the first optical output power and the second optical output power in another embodiment. Figure 5 As shown, the embodiment of the present application relates to a possible implementation method of how to obtain, for each color to be controlled, the first light output power of the spectrum of the color to be controlled under the same control parameters of the light source prototype output through the original endoscope, and the second light output power of the spectrum of the color to be controlled output through the new endoscope, including the following steps:

[0096] S501, obtaining the third light output power of the spectrum of the color to be controlled under the same control parameters output by each first original endoscope, and the fourth light output power of the spectrum of the color to be controlled under the same control parameters output by each first new endoscope.

[0097] Considering the differences in process, assembly technology, fiber optic material (fiber optic quality), etc. during the organization of endoscopes in actual applications, even for the same type of endoscopes, there will be differences in spectral transmittance between different endoscopes (assuming that they are all unused endoscopes after leaving the factory), resulting in differences in fiber optic transmittance in different endoscopes and fiber optic breakage in fiber bundles. Moreover, a single endoscope may also have transmittance deviations due to improper storage (such as new broken fibers caused by multiple storage and use), natural or testing-induced aging problems. Therefore, each endoscope in the same type of endoscope may cause slight deviations in spectral transmittance or light output power during the calibration and comparison process.

[0098] In this embodiment, the first original endoscope and the first new endoscope can be high-quality endoscopes that have just left the factory and have not been used, so as to minimize the difference in light output power caused by the difference in endoscopes.

[0099] In a specific implementation, the third optical output powers and the fourth optical output powers may be respectively obtained by using the above-mentioned S301 method.

[0100] S502: Determine, from the third optical output power and the fourth optical output power, a fifth optical output power and a sixth optical output power that meet a preset optical output power condition, respectively.

[0101] In this embodiment, the preset light output power condition can be a light output power range corresponding to each control parameter for each color to be controlled, and the above-mentioned multiple third light output powers and fourth light output powers are compared with the corresponding light output power ranges, and the third light output power located in the light output power range is used as the fifth light output power, and the fourth light output power located in the light output power range is used as the sixth light output power.

[0102] S503: Determine a first optical output power according to the fifth optical output power, and determine a second optical output power according to the sixth optical output power.

[0103] In this embodiment, the average value of the fifth optical output powers can be used as the first optical output power, and the average value of the sixth optical output powers can be used as the second optical output power; or the mode of the fifth optical output powers can be used as the first optical output power, and the mode of the sixth optical output powers can be used as the second optical output power. That is, the first optical output power and the second optical output power are the optical output powers corresponding to the virtual standard mirror.

[0104] Alternatively, the first optical output power and the second optical output power may be determined by using a median or the like.

[0105] In the embodiment of the present application, the third light output power of the spectrum of the color to be controlled under the same control parameters output by each first original endoscope is obtained, and the fourth light output power of the spectrum of the color to be controlled under the same control parameters output by each first new endoscope is obtained, and the fifth light output power and the sixth light output power that meet the preset light output power conditions are determined from the third light output power and the fourth light output power, respectively, the first light output power is determined according to the fifth light output power, and the second light output power is determined according to the sixth light output power. The embodiment of the present application uses multiple first original endoscopes and the first new endoscope to determine the first light output power and the second light output power, and fully considers the difference in light output power caused by the difference in endoscope materials, etc., so that the conversion relationship determined based on the first light output power and the second light output power is more accurate.

[0106] Figure 6 FIG. 1 is a flow chart of a method for determining a conversion relationship in another embodiment. Figure 6 As shown, the embodiment of the present application relates to another possible implementation method of how to obtain the conversion relationship between the first spectral transmittance of the original endoscope and the second spectral transmittance of the new endoscope, including the following steps:

[0107] S601, obtaining a first spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and obtaining a second spectral transmittance of the new endoscope to each color to be controlled in the light source prototype.

[0108] In this embodiment, for each color to be controlled in the light source prototype, a spectroradiometer is used to obtain the light output power of the illumination light emitted from the original endoscope end and the light output power of the illumination light emitted from the light source prototype, and the first spectral transmittance is determined by using the ratio of the light output power of the illumination light emitted from the original endoscope end to the light output power of the illumination light emitted from the light source prototype.

[0109] Similarly, the second spectral transmittance of the new endoscope for each color to be controlled in the light source prototype is obtained in the same manner.

[0110] S602: For each color to be controlled, determine a conversion relationship corresponding to the color to be controlled according to a first spectral transmittance and a second spectral transmittance of the color to be controlled.

[0111] In this embodiment, for each color to be controlled, the conversion relationship corresponding to the color to be controlled can be determined directly according to the ratio of the first spectral transmittance to the second spectral transmittance, or the ratio of the second spectral transmittance to the first spectral transmittance. For example, if the original endoscope is a gastroscope and the new endoscope is a bronchoscope, the spectral transmittance ratio of the color to be controlled R is nR=TR branch / TR stomach, the spectral transmittance ratio of the color to be controlled G is nG=TG branch / TG stomach, the spectral transmittance ratio of the color to be controlled B is nB=TB branch / TB stomach, and the spectral transmittance ratio of the color to be controlled UV is nUV=TUV branch / TUV stomach.

[0112] In the embodiment of the present application, the first spectral transmittance of the original endoscope for each color to be controlled in the light source prototype is obtained, and the second spectral transmittance of the new endoscope for each color to be controlled in the light source prototype is obtained. For each color to be controlled, the conversion relationship corresponding to the color to be controlled is determined according to the first spectral transmittance and the second spectral transmittance of the color to be controlled. In the embodiment of the present application, the conversion relationship is determined directly using the first spectral transmittance and the second spectral transmittance, and the implementation method is simple and efficient.

[0113] Figure 7 FIG. 1 is a flow chart of a method for determining a first spectral transmittance and a second spectral transmittance in one embodiment. Figure 7 As shown, the embodiment of the present application relates to a possible implementation method of how to obtain the first spectral transmittance of the original endoscope for each color to be controlled in the light source prototype, and obtain the second spectral transmittance of the new endoscope for each color to be controlled in the light source prototype, including the following steps:

[0114] S701, obtaining a third spectral transmittance of the first original endoscope for each color to be controlled, and obtaining a fourth spectral transmittance of the first new endoscope for each color to be controlled.

[0115] In this embodiment, according to the analysis of S501 above, each endoscope of the same type may cause slight deviations in spectral transmittance during the calibration and comparison process. Therefore, the third spectral transmittance of each color to be controlled can be obtained through multiple first original endoscopes, and the fourth spectral transmittance of each color to be controlled can be obtained through multiple first new endoscopes.

[0116] S702: Determine a fifth spectral transmittance and a sixth spectral transmittance that meet a preset transmittance condition from the third spectral transmittance and the fourth spectral transmittance, respectively.

[0117] In this embodiment, the preset transmittance condition can be the transmittance threshold corresponding to each color to be controlled, and the third spectral transmittance that is not less than the transmittance threshold in the third spectral transmittance is used as the fifth spectral transmittance, and the fourth spectral transmittance that is not less than the transmittance threshold in the fourth spectral transmittance is used as the sixth spectral transmittance.

[0118] Optionally, for the transmittance range corresponding to each color to be controlled, the third spectral transmittance within the transmittance range is used as the fifth spectral transmittance, and the fourth spectral transmittance within the transmittance range is used as the sixth spectral transmittance.

[0119] S703, determining a first spectral transmittance according to the fifth spectral transmittance, and determining a second spectral transmittance according to the sixth spectral transmittance.

[0120] In this embodiment, similarly, the average / mode of the plurality of fifth spectral transmittances can be used as the first spectral transmittance, and the average / mode of the plurality of sixth spectral transmittances can be used as the second spectral transmittance. That is, the first spectral transmittance and the second spectral transmittance are spectral transmittances determined by a virtual standard mirror body.

[0121] Optionally, the first spectral transmittance and the second spectral transmittance may be determined by using a median or the like.

[0122] In the embodiment of the present application, the third spectral transmittance of the first original endoscope for each color to be controlled is obtained, and the fourth spectral transmittance of the first new endoscope for each color to be controlled is obtained, and the fifth spectral transmittance and the sixth spectral transmittance that meet the preset transmittance conditions are determined from the third spectral transmittance and the fourth spectral transmittance, respectively, the first spectral transmittance is determined according to the fifth spectral transmittance, and the second spectral transmittance is determined according to the sixth spectral transmittance. The embodiment of the present application uses multiple first original endoscopes and the first new endoscope to determine the first spectral transmittance and the second spectral transmittance, and fully considers the difference in light output power caused by the difference in endoscope materials, etc., so that the conversion relationship determined based on the first spectral transmittance and the second spectral transmittance is more accurate.

[0123] Figure 8FIG. 1 is a flow chart of a method for determining a second tone balance parameter in an embodiment. Figure 8 As shown, the embodiment of the present application relates to a possible implementation method of how to determine the second color tone balance parameter according to the conversion relationship and the first color tone balance parameter of the light source host to be upgraded, including the following steps:

[0124] S801, determine the intermediate tone balance parameter according to the conversion relationship and the first tone balance parameter; the intermediate tone balance parameter is the mapping relationship between the candidate light output power of the spectrum of each color to be controlled in the upgraded light source host through the new endoscope and the candidate control parameter.

[0125] In this embodiment, the first tone balance parameter is as shown in Table 1 above, and the conversion relationship can be the ratio of the first spectral transmittance to the second spectral transmittance, or the ratio of the second spectral transmittance to the first spectral transmittance. If the conversion relationship is the ratio between the second spectral transmittance of the new endoscope and the first spectral transmittance of the original endoscope, then for the light output power of each color to be controlled in the first tone balance parameter, the light output power is multiplied by the conversion relationship to obtain the intermediate tone balance parameter, and the intermediate tone balance parameter can be as shown in Table 4.

[0126] Table 4

[0127]

[0128] S802: Fit the candidate output optical powers and the candidate control parameters to obtain a second color tone balance parameter.

[0129] The candidate light output power of each level of the intermediate tone parameter is not necessarily suitable for the new endoscope. For example, in Table 4, the candidate light output power of the control parameter Br1 value in level 1 of the color R to be controlled is 1mW (Wr1*nR), and the candidate light output power of the control parameter Br2 value in level 2 is 3mW (Wr2*nR), while the new endoscope requires 2mW light output in level 1. Therefore, Table 4 needs to be fitted to obtain the light output power of 2mW (Wr1') under the control parameter Br1' in level 1. The fitting results are shown in Table 5.

[0130] Table 5

[0131]

[0132] In an embodiment of the present application, an intermediate tone balance parameter is determined based on the conversion relationship and the first tone balance parameter, the candidate light output power is fitted, and the candidate control parameter is fitted to obtain a second tone balance parameter, so that the obtained second tone balance parameter is more suitable for the new endoscope, a consistent spectrum is obtained, and the accuracy of the tone balance parameter upgrade of the light source host to be upgraded is improved.

[0133] Fig. 9 FIG. 1 is a flow chart of a method for determining a first tone balance parameter in an embodiment. Fig. 9 As shown, the following steps are included:

[0134] S901, obtaining first aging data of a light source host to be upgraded.

[0135] Due to the fact that the upgraded light source host will age with the use time, the intensity of the light emitted / transmitted each time it is used, and the difference in the LED material in the upgraded light source host, the upgraded light source host will age to different degrees. Therefore, the first aging data can be determined by obtaining the working time of the upgraded light source host according to the working time; or, the intensity data and / or light pattern of the light emitted by the upgraded light source host each time it works are obtained, and the first aging data is determined according to the intensity data and / or light pattern; or, the first aging data can be determined by combining the working time, intensity data and / or light pattern at the same time, and the first aging data is used to measure the aging degree of the upgraded light source host.

[0136] S902, determining a first tone balance parameter from a tone balance parameter set of the light source host to be upgraded according to the first aging data; wherein the tone balance parameter set includes a mapping relationship associated with the light source host to be upgraded under at least two aging data, and the mapping relationships associated with different aging data are not completely the same.

[0137] Among them, multiple aging data can be pre-divided to obtain the mapping relationship associated with each aging data, that is, the color tone balance parameter set includes the mapping relationship associated with the light source host to be upgraded under at least two aging data. On the one hand, each aging data (aging degree) corresponds to its own first color tone balance parameter, and each first color tone balance parameter is independent of each other and corresponds to a parameter table. On the other hand, each aging data (aging degree) corresponds to its own first color tone balance parameter, but each first color tone balance parameter is integrated in a parameter table.

[0138] In this embodiment, when determining the first tone balance parameter from the tone balance parameter set of the light source host to be upgraded according to the first aging data, it is possible to determine the first tone balance parameter corresponding to one aging degree, or it is possible to determine the first tone balance parameters corresponding to multiple aging degrees.

[0139] For example, the tone balance parameter set includes four levels of aging: level one aging, level two aging, level three aging, and level four aging, and the aging levels increase in sequence. If the first aging data is level four aging, the first tone balance parameter corresponding to the level four aging is obtained from the tone balance parameter set.

[0140] If the first aging data is the second-level aging degree, the first tone balance parameter corresponding to the second-level aging degree is obtained from the tone balance parameter set. On this basis, the first tone balance parameters corresponding to the third-level aging degree and the fourth-level aging degree can also be obtained, so as to update the first tone balance parameters corresponding to the second-level aging degree, the third-level aging degree and the fourth-level aging degree of the light source host to be upgraded.

[0141] In an embodiment of the present application, first aging data of the light source host to be upgraded is obtained, and a first color tone balance parameter is determined from the color tone balance parameter set of the light source host to be upgraded based on the first aging data, so as to upgrade the first color tone balance parameter with a current aging degree and a higher aging degree, so that the light source host to be upgraded can continuously adapt to the new endoscope.

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

[0143] Based on the same inventive concept, the embodiment of the present application also provides a device for upgrading the tone balance parameters for implementing the above-mentioned method for upgrading the tone balance parameters. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of the device for upgrading one or more tone balance parameters provided below can refer to the limitations of the method for upgrading the tone balance parameters above, and will not be repeated here.

[0144] In an exemplary embodiment, Fig.10 As shown, a device for upgrading tone balance parameters is provided, comprising: a first acquisition module 11, a first determination module 12 and an upgrading module 13, wherein:

[0145] The first acquisition module 11 is used to obtain the conversion relationship between the first spectral transmittance of the original endoscope and the second spectral transmittance of the new endoscope; the first spectral transmittance is the spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and the second spectral transmittance is the spectral transmittance of the new endoscope to each color to be controlled in the light source prototype;

[0146] The first determination module 12 is used to determine the second color tone balance parameter according to the conversion relationship and the first color tone balance parameter; the first color tone balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the original endoscope, and the second color tone balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope;

[0147] The upgrading module 13 is used to upgrade the light source host to be upgraded based on the second color tone balance parameter.

[0148] In one embodiment, the first acquisition module includes:

[0149] A first acquisition unit is used to acquire, for each color to be controlled, a first light output power of the spectrum of the color to be controlled output through the original endoscope under the same control parameters of the light source prototype, and a second light output power of the spectrum of the color to be controlled output through the new endoscope;

[0150] The first determining unit is used to determine the conversion relationship corresponding to each color to be controlled according to the first light output power and the second light output power of each color to be controlled.

[0151] In one embodiment, the first acquisition unit is further used to acquire the third light output power of the spectrum of the color to be controlled under the same control parameters output by each first original endoscope, and the fourth light output power of the spectrum of the color to be controlled under the same control parameters output by each first new endoscope;

[0152] Determine, from the third optical output power and the fourth optical output power, respectively, a fifth optical output power and a sixth optical output power that meet a preset optical output power condition;

[0153] The first optical output power is determined according to the fifth optical output power, and the second optical output power is determined according to the sixth optical output power.

[0154] In one embodiment, the first acquisition module further includes:

[0155] A second acquisition unit is used to acquire the first spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and to acquire the second spectral transmittance of the new endoscope to each color to be controlled in the light source prototype;

[0156] The second determining unit is used to determine, for each color to be controlled, a conversion relationship corresponding to the color to be controlled according to the first spectral transmittance and the second spectral transmittance of the color to be controlled.

[0157] In one embodiment, the second acquisition unit is also used to obtain the third spectral transmittance of the first original endoscope for each color to be controlled, and to obtain the fourth spectral transmittance of the first new endoscope for each color to be controlled; from the third spectral transmittance and the fourth spectral transmittance, respectively determine the fifth spectral transmittance and the sixth spectral transmittance that meet the preset transmittance conditions; determine the first spectral transmittance according to the fifth spectral transmittance, and determine the second spectral transmittance according to the sixth spectral transmittance.

[0158] In one embodiment, the number of colors to be controlled in the light source prototype is consistent with that in the light source host to be upgraded, and the spectrum of the colors to be controlled in the light source prototype is consistent with the spectrum of the colors to be controlled in the light source host to be upgraded.

[0159] In one embodiment, the first determining module includes:

[0160] A third determination unit is used to determine an intermediate tone balance parameter according to the conversion relationship and the first tone balance parameter; the intermediate tone balance parameter is a mapping relationship between the candidate light output power and the candidate control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope;

[0161] The fitting unit is used to fit the candidate output light power and the candidate control parameter to obtain the second color tone balance parameter.

[0162] In one embodiment, the apparatus for updating the tone balance parameter further includes:

[0163] A second acquisition module is used to acquire first aging data of the light source host to be upgraded;

[0164] A second determination module, configured to determine a first color tone balance parameter from a color tone balance parameter set of the light source host to be upgraded according to the first aging data;

[0165] The tone balance parameter set includes mapping relationships associated with the light source host to be upgraded under at least two aging data, and the mapping relationships associated with different aging data are not completely the same.

[0166] Each module in the above-mentioned color balance parameter upgrade device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the upgrade device in the form of hardware, or can be stored in the memory in the upgrade device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0167] Fig.11 Schematic diagram of the structure of an upgrade device in an embodiment of the present application. In one embodiment, Fig.11As shown, an upgrading device 11 is provided, including a memory 1101 and a processor 1102, the memory 1101 stores a computer program 1103, and the processor 1102 implements the steps of the upgrading method of any one of the above-mentioned tone balance parameters when executing the computer program 1103.

[0168] Optionally, the upgrade device may be a light source host or an image processing host, that is, it may be a light source host to be upgraded, a light source prototype, an image processing host connected to the light source host to be upgraded, or an image processing host connected to the light source prototype.

[0169] 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:

[0170] Obtaining a conversion relationship between a first spectral transmittance of the original endoscope and a second spectral transmittance of the new endoscope; the first spectral transmittance is the spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and the second spectral transmittance is the spectral transmittance of the new endoscope to each color to be controlled in the light source prototype;

[0171] Determine the second hue balance parameter according to the conversion relationship and the first hue balance parameter of the light source host to be upgraded; the first hue balance parameter is the mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the original endoscope, and the second hue balance parameter is the mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope;

[0172] The light source host to be upgraded is upgraded based on the second color tone balance parameter.

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

[0174] For each color to be controlled, obtain the first light output power of the spectrum of the color to be controlled output through the original endoscope under the same control parameters of the light source prototype, and the second light output power of the spectrum of the color to be controlled output through the new endoscope;

[0175] According to the first light output power and the second light output power of each color to be controlled, a conversion relationship corresponding to each color to be controlled is determined.

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

[0177] Obtaining the third light output power of the spectrum of the color to be controlled under the same control parameters output by each first original endoscope, and the fourth light output power of the spectrum of the color to be controlled under the same control parameters output by each first new endoscope;

[0178] Determine, from the third optical output power and the fourth optical output power, respectively, a fifth optical output power and a sixth optical output power that meet a preset optical output power condition;

[0179] The first optical output power is determined according to the fifth optical output power, and the second optical output power is determined according to the sixth optical output power.

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

[0181] Obtaining a first spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and obtaining a second spectral transmittance of the new endoscope to each color to be controlled in the light source prototype;

[0182] For each color to be controlled, a conversion relationship corresponding to the color to be controlled is determined according to the first spectral transmittance and the second spectral transmittance of the color to be controlled.

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

[0184] Obtaining a third spectral transmittance of the first original endoscope for each color to be controlled, and obtaining a fourth spectral transmittance of the first new endoscope for each color to be controlled;

[0185] Determining a fifth spectral transmittance and a sixth spectral transmittance that meet a preset transmittance condition from the third spectral transmittance and the fourth spectral transmittance, respectively;

[0186] The first spectral transmittance is determined according to the fifth spectral transmittance, and the second spectral transmittance is determined according to the sixth spectral transmittance.

[0187] In one embodiment, the number of colors to be controlled in the light source prototype is consistent with that in the light source host to be upgraded, and the spectrum of the colors to be controlled in the light source prototype is consistent with the spectrum of the colors to be controlled in the light source host to be upgraded.

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

[0189] Determine the intermediate tone balance parameter according to the conversion relationship and the first tone balance parameter; the intermediate tone balance parameter is a mapping relationship between the candidate light output power and the candidate control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope;

[0190] The candidate output light powers are fitted, and the candidate control parameters are fitted to obtain a second color tone balance parameter.

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

[0192] Acquire first aging data of the light source host to be upgraded;

[0193] Determine a first color tone balance parameter from a color tone balance parameter set of the light source host to be upgraded according to the first aging data;

[0194] The tone balance parameter set includes mapping relationships associated with the light source host to be upgraded under at least two aging data, and the mapping relationships associated with different aging data are not completely the same.

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

[0196] Obtaining a conversion relationship between a first spectral transmittance of the original endoscope and a second spectral transmittance of the new endoscope; the first spectral transmittance is the spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and the second spectral transmittance is the spectral transmittance of the new endoscope to each color to be controlled in the light source prototype;

[0197] Determine the second hue balance parameter according to the conversion relationship and the first hue balance parameter of the light source host to be upgraded; the first hue balance parameter is the mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the original endoscope, and the second hue balance parameter is the mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope;

[0198] The light source host to be upgraded is upgraded based on the second color tone balance parameter.

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

[0200] For each color to be controlled, obtain the first light output power of the spectrum of the color to be controlled output through the original endoscope under the same control parameters of the light source prototype, and the second light output power of the spectrum of the color to be controlled output through the new endoscope;

[0201] According to the first light output power and the second light output power of each color to be controlled, a conversion relationship corresponding to each color to be controlled is determined.

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

[0203] Obtaining the third light output power of the spectrum of the color to be controlled under the same control parameters output by each first original endoscope, and the fourth light output power of the spectrum of the color to be controlled under the same control parameters output by each first new endoscope;

[0204] Determine, from the third optical output power and the fourth optical output power, respectively, a fifth optical output power and a sixth optical output power that meet a preset optical output power condition;

[0205] The first optical output power is determined according to the fifth optical output power, and the second optical output power is determined according to the sixth optical output power.

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

[0207] Obtaining a first spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and obtaining a second spectral transmittance of the new endoscope to each color to be controlled in the light source prototype;

[0208] For each color to be controlled, a conversion relationship corresponding to the color to be controlled is determined according to the first spectral transmittance and the second spectral transmittance of the color to be controlled.

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

[0210] Obtaining a third spectral transmittance of the first original endoscope for each color to be controlled, and obtaining a fourth spectral transmittance of the first new endoscope for each color to be controlled;

[0211] Determining a fifth spectral transmittance and a sixth spectral transmittance that meet a preset transmittance condition from the third spectral transmittance and the fourth spectral transmittance, respectively;

[0212] The first spectral transmittance is determined according to the fifth spectral transmittance, and the second spectral transmittance is determined according to the sixth spectral transmittance.

[0213] In one embodiment, the number of colors to be controlled in the light source prototype is consistent with that in the light source host to be upgraded, and the spectrum of the colors to be controlled in the light source prototype is consistent with the spectrum of the colors to be controlled in the light source host to be upgraded.

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

[0215] Determine the intermediate tone balance parameter according to the conversion relationship and the first tone balance parameter; the intermediate tone balance parameter is a mapping relationship between the candidate light output power and the candidate control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope;

[0216] The candidate output light powers are fitted, and the candidate control parameters are fitted to obtain a second color tone balance parameter.

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

[0218] Acquire first aging data of the light source host to be upgraded;

[0219] Determine a first color tone balance parameter from a color tone balance parameter set of the light source host to be upgraded according to the first aging data;

[0220] The tone balance parameter set includes mapping relationships associated with the light source host to be upgraded under at least two aging data, and the mapping relationships associated with different aging data are not completely the same.

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

[0222] 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 this 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.

[0223] The technical features of the above embodiments may be arbitrarily combined. 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.

[0224] 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 updating tone balance parameters, It is characterized in that The method comprises: Obtaining a conversion relationship between a first spectral transmittance of an original endoscope and a second spectral transmittance of a new endoscope; the first spectral transmittance is the spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and the second spectral transmittance is the spectral transmittance of the new endoscope to each color to be controlled in the light source prototype; Determine the second hue balance parameter according to the conversion relationship and the first hue balance parameter of the light source host to be upgraded; the first hue balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the original endoscope, and the second hue balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope; The light source host to be upgraded is upgraded based on the second color tone balance parameter.

2. The method according to claim 1, It is characterized in that The step of obtaining a conversion relationship between a first spectral transmittance of an original endoscope and a second spectral transmittance of a new endoscope includes: For each color to be controlled, obtaining a first light output power of the spectrum of the color to be controlled output through the original endoscope under the same control parameters of the light source prototype, and a second light output power of the spectrum of the color to be controlled output through the new endoscope; According to the first light output power and the second light output power of each color to be controlled, a conversion relationship corresponding to each color to be controlled is determined.

3. The method according to claim 2, It is characterized in that The original endoscope includes a plurality of first original endoscopes, the new endoscope includes a plurality of first new endoscopes, and the first light output power of the spectrum of the color to be controlled output by the original endoscope under the same control parameters of the light source prototype and the second light output power of the spectrum of the color to be controlled output by the new endoscope include: Acquire the third light output power of the spectrum of the color to be controlled under the same control parameters output by each of the first original endoscopes, and the fourth light output power of the spectrum of the color to be controlled under the same control parameters output by each of the first new endoscopes; Determine, from the third optical output power and the fourth optical output power, respectively, a fifth optical output power and a sixth optical output power that meet a preset optical output power condition; The first optical output power is determined according to the fifth optical output power, and the second optical output power is determined according to the sixth optical output power.

4. The method according to claim 1, It is characterized in that The step of obtaining a conversion relationship between a first spectral transmittance of an original endoscope and a second spectral transmittance of a new endoscope includes: Obtaining a first spectral transmittance of the original endoscope for each color to be controlled in the light source prototype, and obtaining a second spectral transmittance of the new endoscope for each color to be controlled in the light source prototype; For each of the to-be-controlled colors, a conversion relationship corresponding to the to-be-controlled color is determined according to the first spectral transmittance and the second spectral transmittance of the to-be-controlled color.

5. The method according to claim 4, It is characterized in that The original endoscope includes a plurality of first original endoscopes, the new endoscope includes a plurality of first new endoscopes, and the obtaining of a first spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and the obtaining of a second spectral transmittance of the new endoscope to each color to be controlled in the light source prototype, include: Acquire a third spectral transmittance of the first original endoscope for each of the colors to be controlled, and acquire a fourth spectral transmittance of the first new endoscope for each of the colors to be controlled; Determining a fifth spectral transmittance and a sixth spectral transmittance that meet a preset transmittance condition from the third spectral transmittance and the fourth spectral transmittance, respectively; The first spectral transmittance is determined according to the fifth spectral transmittance, and the second spectral transmittance is determined according to the sixth spectral transmittance.

6. The method according to claim 1, It is characterized in that The number of the colors to be controlled in the light source prototype is consistent with that in the light source host to be upgraded, and the spectrum of the colors to be controlled in the light source prototype is consistent with the wavelength band of the spectrum of the colors to be controlled in the light source host to be upgraded.

7. The method according to claim 1, It is characterized in that The step of determining the second color tone balance parameter according to the conversion relationship and the first color tone balance parameter of the light source host to be upgraded includes: Determine an intermediate tone balance parameter according to the conversion relationship and the first tone balance parameter; the intermediate tone balance parameter is a mapping relationship between a candidate light output power and a candidate control parameter of a spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope; The candidate output optical power is fitted, and the candidate control parameter is fitted to obtain the second color tone balance parameter.

8. The method according to claim 1, It is characterized in that The method further comprises: Acquire first aging data of the light source host to be upgraded; Determine the first color tone balance parameter from the color tone balance parameter set of the light source host to be upgraded according to the first aging data; The tone balance parameter set includes mapping relationships associated with the light source host to be upgraded under at least two types of aging data, and the mapping relationships associated with different aging data are not completely the same.

9. A device for upgrading tone balance parameters, It is characterized in that The device comprises: A first acquisition module is used to acquire a conversion relationship between a first spectral transmittance of an original endoscope and a second spectral transmittance of a new endoscope; the first spectral transmittance is the spectral transmittance of the original endoscope to each color to be controlled in the light source prototype, and the second spectral transmittance is the spectral transmittance of the new endoscope to each color to be controlled in the light source prototype; A first determination module is used to determine a second color tone balance parameter according to the conversion relationship and the first color tone balance parameter; the first color tone balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the original endoscope, and the second color tone balance parameter is a mapping relationship between the light output power and the control parameter of the spectrum of each color to be controlled in the light source host to be upgraded through the new endoscope; An upgrading module is used to upgrade the light source host to be upgraded based on the second color tone balance parameter.

10. An upgrade device, comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.