Signal processing method and device and endoscope system

By adjusting the resistance-capacitance network parameters for impedance matching and phase gain compensation, the stability and cost problems in long-distance transmission of MIPI signals are solved, and the efficient and low-power transmission of the signal is achieved, and it is suitable for endoscopes and other applications.

CN120342404APending Publication Date: 2025-07-18SUNNY OPTICAL ZHEJIANG RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410077387.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-18
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In the prior art, the long-distance transmission scheme of MIPI signals has problems such as poor stability, high cost, unfavorable for miniaturization design and high power consumption, and is difficult to effectively solve in applications such as endoscopes.

Method used

By obtaining the signal to be compensated with a check code, adjusting the resistance-capacitance network parameters in the termination module and the compensation module, performing impedance matching and phase gain compensation, and optimizing the signal transmission process.

Benefits of technology

It realizes stable and high-quality signal transmission, reduces equipment size and power consumption, adaptively solves the problems of MIPI signal oscillation and distortion, and adapts to a variety of application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120342404A_ABST
    Figure CN120342404A_ABST
Patent Text Reader

Abstract

The invention relates to a signal processing method and device and an endoscope system. The method comprises the following steps: acquiring a to-be-compensated signal containing a check code, and adjusting a first network parameter of a first resistance-capacitance network in a preset terminating module according to the check code to obtain a first target network; wherein the check code corresponds to the signal to be compensated; performing impedance matching processing on the to-be-compensated signal based on the first target network to obtain an initial transmission signal; adjusting a second network parameter of a second resistance-capacitance network in a preset compensation module according to the check code to obtain a second target network; wherein the check code reflects the number of the abnormal signals; and performing phase gain compensation on the initial transmission signal based on the second target network to obtain a target transmission signal. By adopting the method, the long-distance transmission quality of signals can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of mobile communication technologies, and particularly to a signal processing method, apparatus, and endoscope system. Background Art

[0002] Currently, the interfaces of mainstream CMOS (Complementary MOS) image sensors generally adopt MIPI interfaces (Mobile Industry Processor Interface). With the development of video technologies, the resolution and frame rate of image sensors are getting higher and higher, the transmission rate is getting faster and faster, and the quality requirements for MIPI communication are gradually increasing. In applications such as endoscopes, XR devices, and in-vehicle devices, the structural limitations at the image sensor end are relatively large, and the display device is often several meters away from the image sensor. This requires that the overall image transmission solution has a long distance and a small volume, which poses a great challenge to hardware design.

[0003] In related technologies, there are usually the following several solutions to solve the above problems: directly extending the transmission distance; converting into optical signals and using optical fibers for transmission; converting into signals such as LVDS that are conducive to long-distance transmission. Among them, the first solution is only applicable to low-rate scenarios. For graphic sensors with high resolutions and frame rates, the stability of this solution is poor, and problems such as frame loss, line loss, and screen distortion are likely to occur; although the second solution introduces the method of electro-optical conversion to extend the transmission distance, the introduction of electro-optical and opto-electronic conversion chips and the use of optical fibers make the entire solution cost relatively high and are not conducive to miniaturization; the third solution converts MIPI signals into signals such as LVDS, which also adds two-level conversion chips. In most cases, an additional power supply chip is required. In endoscope applications, the number of head-end devices increases, which is not conducive to the miniaturization design of the module, and the newly added conversion chips and the like have relatively high power consumption, which will bring additional temperature rise problems.

[0004] Currently, no effective solution has been proposed for the above problems of long-distance transmission of MIPI signals. Summary of the Invention

[0005] Based on this, it is necessary to provide a signal processing method, apparatus, and endoscope system for the above technical problems.

[0006] In a first aspect, this application provides a signal processing method. The method includes:

[0007] Obtaining a to-be-compensated signal containing a check code, and adjusting a first network parameter of a first resistor-capacitor network in a preset termination module according to the check code to obtain a first target network; wherein, the check code corresponds to the to-be-compensated signal;

[0008] Perform impedance matching processing on the signal to be compensated based on the first target network to obtain an initial transmission signal;

[0009] Adjust the second network parameters of the second resistor-capacitor network in the preset compensation module according to the check code to obtain a second target network; wherein, the check code reflects the number of abnormal signals;

[0010] Perform phase gain compensation on the initial transmission signal based on the second target network to obtain a target transmission signal.

[0011] In one embodiment, adjusting the first network parameters of the first resistor-capacitor network in the preset termination module according to the check code to obtain a first target network includes:

[0012] Based on all the first resistor-capacitor combinations formed by at least two resistance values and at least two capacitance values in the first resistor-capacitor network, obtain the first network parameters corresponding to all the first resistor-capacitor combinations, and determine the first signal quality corresponding to each of all the first network parameters, wherein the first signal quality is determined based on the number of abnormal signals in the initial transmission signal; the first signal quality characterizes the correction degree of the termination module to the signal to be compensated;

[0013] Determine the optimal first target signal quality among all the first signal qualities, and determine the corresponding first target network parameters according to the first target signal quality;

[0014] Adjust the first resistor-capacitor network based on the first target network parameters to obtain a first target network.

[0015] In one embodiment, the first resistor-capacitor network includes at least two resistors and at least two capacitors, each resistor is connected in series with a preset switch, and each capacitor is connected in series with a preset switch; adjusting the first network parameters of the first resistor-capacitor network in the preset termination module according to the check code to obtain a first target network includes:

[0016] Based on the check code, adjust the conduction states of the switches connected in series with the resistors and capacitors respectively; wherein, the conduction states include an open state and a closed state;

[0017] Based on the conduction states of the switches, realize the adjustment of the first network parameters to obtain a first target network.

[0018] In one embodiment, the second resistor-capacitor network includes a sub-resistor-capacitor network and an operational amplifier, and the sub-resistor-capacitor network includes at least two resistors and at least two capacitors; adjusting the second network parameters of the second resistor-capacitor network in the preset compensation module according to the check code to obtain a second target network includes:

[0019] Based on all second resistor-capacitor combinations formed by at least two resistance values and at least two capacitance values in the sub resistor-capacitor network, obtain all second network parameters corresponding to all second resistor-capacitor combinations, and determine the second signal quality corresponding to each second network parameter, where the second signal quality is determined based on the number of abnormal signals of the target transmission signal; the second signal quality characterizes the degree of correction of the compensation module and the termination module to the signal to be compensated;

[0020] Determine the optimal second target signal quality among all second signal qualities, and determine the corresponding second target network parameters according to the second target signal quality;

[0021] Adjust the sub resistor-capacitor network based on the second target network parameters to obtain the second target network.

[0022] In one embodiment, after obtaining the target transmission signal, the above method further includes:

[0023] Based on all third resistor-capacitor combinations formed by at least two resistance values and at least two capacitance values in the first resistor-capacitor network, obtain all third network parameters corresponding to all third resistor-capacitor combinations, and determine the third signal quality corresponding to each third network parameter, where the third signal quality is determined based on the number of abnormal signals of the target transmission signal, and the third signal quality characterizes the degree of correction of the termination module and the compensation module to the signal to be compensated;

[0024] Determine the optimal third target signal quality among all third signal qualities, compare the third target signal quality with the first target signal quality, and if the third target signal quality is greater than the first target signal quality, determine the corresponding third target network parameters according to the third signal quality;

[0025] Adjust the first resistor-capacitor network based on the third target network parameters to obtain the third target network.

[0026] In one embodiment, the termination module includes a first termination channel and a second termination channel, where the first termination channel includes a first termination network, the second termination channel includes a second termination network, the first termination network and the second termination network have the same structure, and the first resistor-capacitor network is composed of the first termination network and the second termination network;

[0027] The compensation module includes a first compensation channel and a second compensation channel, where the first compensation channel includes a first compensation network, the second compensation channel includes a second compensation network, and the first compensation network and the second compensation network have the same structure; the second resistor-capacitor network is composed of the first compensation network and the second compensation network.

[0028] In one embodiment, before adjusting the first resistor-capacitor network in the preset termination module, the method further includes:

[0029] Establish a communication connection with a preset image sensor;

[0030] When it is detected that the image sensor has collected the signal to be compensated, adjust the first resistor-capacitor network based on the signal to be compensated.

[0031] In a second aspect, the present application also provides a signal processing device. The device includes:

[0032] A first adjustment module, configured to obtain a signal to be compensated containing a preset check code, adjust a first network parameter of a first resistor-capacitor network in a preset termination module according to the check code to obtain a first target network; perform impedance matching processing on the signal to be compensated based on the first target network to obtain an initial transmission signal;

[0033] A second adjustment module, configured to adjust a second network parameter of a second resistor-capacitor network in a preset compensation module according to the check code to obtain a second target network; wherein, the check code reflects the number of abnormal signals; perform phase gain compensation on the initial transmission signal based on the second target network to obtain a target transmission signal.

[0034] In a third aspect, the present application also provides an endoscope system, which includes a display end and a signal processor;

[0035] The signal processor is configured to perform the signal processing method as described above on the image to be adjusted obtained;

[0036] The display end is configured to display the target transmission signal generated by the signal processor.

[0037] In one of the embodiments, the system further includes an endoscope handle, an endoscope connection part, and an endoscope bracket;

[0038] The endoscope handle is used to connect the image sensor, wherein the image sensor is used to collect the image to be adjusted;

[0039] The endoscope connection part is connected to the signal processor and is used to transmit the image to be adjusted.

[0040] The above signal processing method, device, and endoscope system first adjust the first resistor-capacitor network in the termination module to obtain a first target network; secondly, perform impedance matching processing on the acquired signal to be compensated based on the first target network to obtain an initial transmission signal; then, adjust the second resistor-capacitor network in the compensation module to obtain a second target network; finally, perform phase gain compensation on the initial transmission signal according to the second target network to obtain a target transmission signal. The above method does not require external adjustment, and can automatically adjust the parameters of the termination module and the compensation module through the acquired signal to be compensated, thereby restoring the data of the transmission signal and enabling it to be stably output. Further, the devices involved in this application are fewer, reducing the volume of the equipment required for long-distance signal transmission, and can effectively reduce power consumption. Moreover, this application adaptively solves the problems of MIPI signal oscillation and distortion, ensuring the stability and quality of the signal during transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is an application environment diagram of the signal processing method in an embodiment;

[0042] Figure 2 It is a schematic flowchart of the signal processing method in an embodiment;

[0043] Figure 3 It is a schematic diagram of the structure of the termination module in an embodiment;

[0044] Figure 4 It is a schematic diagram of the structure of the compensation module in an embodiment;

[0045] Figure 5 It is a schematic flowchart of the signal processing method in a preferred embodiment;

[0046] Figure 6 It is a schematic diagram of the structure of the signal processing system in an embodiment;

[0047] Figure 7 It is a block diagram of the structure of the signal processing device in an embodiment;

[0048] Figure 8 It is a schematic diagram of the structure of an endoscope system;

[0049] Figure 9 It is a schematic diagram of the board-level connection of the endoscope system in an embodiment;

[0050] Figure 10 It is an internal structure diagram of a computer device in an embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0051] To make the objectives, technical solutions, and advantages of this application more clear, the following further details this application in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.

[0052] The signal processing method provided by the embodiments of this application can be applied to an application environment as Figure 1 shown. Among them, the terminal 102 communicates with the server 104 through a network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or can be placed in the cloud or on other network servers. First, according to the acquired compensation signal to be compensated containing a preset check code, adjust the first network parameter of the first resistor-capacitor network in the termination module to obtain a first target network; secondly, perform impedance matching processing on the compensation signal to be compensated based on the first target network to obtain an initial transmission signal; then, adjust the second network parameter of the second resistor-capacitor network in the compensation module according to the check code to obtain a second target network; finally, perform phase gain compensation on the initial transmission signal based on the second target network to obtain a target transmission signal. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and transmission line devices, etc. The server 104 can be implemented by an independent server, an independent control chip, or a server cluster composed of multiple servers.

[0053] In one embodiment, as Figure 2 shown, a signal processing method is provided. Taking the example that this method is applied to the Figure 1 server, the method includes the following steps:

[0054] Step S202, acquire a compensation signal to be compensated containing a check code, and adjust the first network parameter of the first resistor-capacitor network in a preset termination module according to the check code to obtain a first target network; wherein, the check code corresponds to the compensation signal to be compensated.

[0055] Among them, the signal to be compensated is the signal after the original signal is transmitted by the transmission device. In actual applications, due to the aging of the transmission device, the parameter settings of the transmission device not being fully matched with the original signal, etc., situations such as signal attenuation and impedance mismatch of the transmission device usually occur. The check code in the signal to be compensated is obtained by calculating the original signal. It can be understood that if the transmitted data is different, the corresponding check code of the signal is also different, that is, this check code is data strongly related to the original signal to be transmitted. The receiving end can use the check code to determine the number of abnormal data in the received signal compared to the original signal. In some embodiments, this check code is usually several bits of data added after the original signal; among them, the original signal is the original signal to be transmitted over a long distance or a short distance, and this original signal has not been transmitted yet, so there are no phenomena such as signal attenuation.

[0056] In this application, the first resistive-capacitive network in the termination module can be adjusted based on the check code. It can be understood that since the check code reflects the number of abnormal data in the received signal, the fewer the abnormal data, the higher the quality of the received signal. Among them, the first resistive-capacitive network includes multiple resistor networks and multiple capacitor networks. In actual applications, the resistor network is composed of multiple resistors in parallel, and each resistor is in series with a switch for adjusting the impedance. The resistance value of each resistor is different. In some embodiments, the resistance values cover all common resistance values from 100Ω to 1000Ω; similarly, the capacitor network is composed of multiple capacitors in parallel, and each capacitor is in series with a switch for adjusting the capacitive reactance. The capacitance value of each capacitor is different. In some embodiments, the capacitance values cover all common capacitance values from 1pF to 33pF. In this embodiment, based on the check code, the first network parameter of the first resistive-capacitive network is adjusted, and the corresponding capacitive reactance and impedance are set to obtain the first target network.

[0057] Step S204, perform impedance matching processing on the signal to be compensated based on the first target network to obtain the initial transmission signal.

[0058] Among them, after obtaining the signal to be compensated, perform impedance matching processing on the signal to be compensated through the adjusted first target network to obtain the initial transmission signal. In some embodiments, relevant technical personnel can manually adjust the first resistive-capacitive network to achieve impedance matching. Preferably, the above termination module can adaptively adjust the parameters of the first resistive-capacitive network according to the number of abnormal signals characterized by the check code. The specific solution is that the controller adjusts the capacitance value and resistance value, and for each combination of capacitance value and resistance value, judges the number of abnormal signals until all combinations of capacitance value and resistance value are traversed to find the combination of capacitance value and resistance value corresponding to the least number of abnormal signals, so as to complete the adjustment of the first resistive-capacitive network and achieve impedance matching based on the first resistive-capacitive network.

[0059] Step S206: Adjust the second network parameters of the second resistor-capacitor network in the preset compensation module according to the check code to obtain a second target network; wherein, the check code reflects the number of abnormal signals.

[0060] Among them, the initial transmission signal is the signal after the termination network impedance matching is completed. The number of abnormal data characterized by the above check code reflects the signal quality of the initial transmission signal at this time. The compensation module includes a second target network, and the second target network includes a plurality of resistor networks and a plurality of capacitor networks. In order to conveniently control the resistance value and capacitance value of the network, a switch can be connected in series with each resistor, and a switch can be connected in series with each capacitor. In some embodiments, the resistance values cover all common resistance values from 100 Ω to 10 kΩ, and the capacitance values cover all common capacitance values from 10 pF to 1000 pF. Further, the second resistor-capacitor network includes an operational amplifier and a resistor network connected across the input terminal and the output terminal of the operational amplifier. In this embodiment, the number of abnormal data reflected by the check code is used to adjust the second network parameters of the second resistor-capacitor network, set the corresponding impedance and reactance, and obtain the second target network.

[0061] Step S208: Perform phase gain compensation on the initial transmission signal based on the second target network to obtain a target transmission signal.

[0062] Among them, after obtaining the initial transmission signal, phase gain compensation is performed on the initial transmission signal through the adjusted second target network. It can be understood that the gain is adjusted through the resistor network in the second target network, and the phase is adjusted through the capacitor network to implement the corresponding phase gain compensation scheme. Preferably, the above compensation module can control the switches corresponding to the capacitors and resistors according to the number of abnormal data reflected by the check code, and adaptively complete the required phase gain compensation.

[0063] Through steps S202 to S208, the network parameters corresponding to the termination module and the compensation module can be adaptively adjusted according to actual application needs, so as to flexibly adapt to a variety of different application scenarios. Further, through the termination module and the compensation module, problems such as signal oscillation and distortion that occur during long-distance signal transmission can be solved, and long-distance signal transmission can be achieved with a small design cost.

[0064] In one of the embodiments, the above method further includes:

[0065] Based on all first resistor-capacitor combinations composed of at least two resistance values and at least two capacitance values in the first resistor-capacitor network, obtain the first network parameters corresponding to all first resistor-capacitor combinations, and determine the first signal quality corresponding to all first network parameters respectively, wherein the first signal quality is determined based on the number of abnormal signals of the initial transmission signal; the first signal quality characterizes the correction degree of the termination module to the signal to be compensated;

[0066] Determine the optimal first target signal quality among all the first signal qualities, and determine the corresponding first target network parameters according to the first target signal quality;

[0067] Adjust the first resistor-capacitor network based on the first target network parameters to obtain the first target network.

[0068] Specifically, Figure 3 It is a schematic structural diagram of a termination module in an embodiment, including at least two resistor networks, namely resistor network 311 and resistor network 312; and at least two capacitor networks, namely capacitor network 321 and capacitor network 322, as well as a pull-up power supply Vcc and a pull-down ground GND. The first resistor-capacitor network includes various adjustable capacitance values and various adjustable resistance values, that is, the adjustment of the resistance value is completed comprehensively through resistor network 311 and resistor network 312, and the adjustment of the capacitance value is completed comprehensively through capacitor network 321 and capacitor network 322. By combining different capacitance values and different resistance values, the above-mentioned first resistor-capacitor combination is obtained. Further, the above-mentioned first network parameters are the capacitance setting parameters and resistance setting parameters corresponding to the first resistor-capacitor combination.

[0069] Further, the above-mentioned first signal quality can be determined by the number of abnormal signals in the initial transmission signal reflected by the check code. In practical applications, first, turn on all the switches corresponding to the resistors and capacitors. At this time, the first resistor-capacitor network does not work. Correspondingly, the initial transmission signal is the same as the signal to be compensated, and the signal quality in this state is determined; secondly, by closing different switches of the resistors, the impedance changes from large to small, such as 1000Ω, 910Ω, 820Ω..., and at the same time, by closing different switches of the capacitors, the capacitive reactance changes from large to small, such as 1pF, 1.2pF, 1.5pF... Repeat the above steps until all resistor-capacitor parameters are traversed to obtain the above-mentioned multiple first network parameters. At the same time, record the different signal qualities corresponding to the combinations of different capacitance values and resistance values to obtain the above-mentioned multiple first signal qualities. It can be understood that in practical applications, those skilled in the art can also traverse all capacitance values and resistance values according to other adjustment methods. The specific combination method is not limited here.

[0070] Determine the optimal first target signal quality among the first signal qualities, and determine the corresponding first target network parameters according to the first target signal quality. Adjust the first resistor-capacitor network based on the first target network parameters to obtain the first target network. In some embodiments, the above-mentioned first signal quality can be obtained through Cyclic Redundancy Check (abbreviated as CRC), that is, each time the capacitance value or the resistance value is switched, the first signal quality is calculated through CRC verification.

[0071] Through the above method, the impedance mismatch can be adaptively adjusted, and the optimal parameter scheme of the first resistor-capacitor network corresponding to the signal to be compensated can be quickly found to improve the signal transmission quality.

[0072] In some embodiments, the first resistor-capacitor network includes at least two resistors and at least two capacitors, each resistor is connected in series with a preset switch, and each capacitor is connected in series with a preset switch; the above method further includes:

[0073] Based on the check code, adjust the conduction states of the switches connected in series with the resistors and capacitors respectively; wherein, the conduction states include an open state and a closed state;

[0074] Based on the conduction states of the switches, adjust the first network parameters to obtain a first target network.

[0075] Specifically, the first resistor-capacitor network includes a plurality of resistors and a plurality of capacitors. The above first network parameters are obtained by adjusting the resistance values of the resistors and the capacitance values of the capacitors. In order to facilitate the adjustment of the capacitance values and resistance values, in this application, each capacitor is connected in series with a switch unit, and each resistor is connected in series with a switch unit. By controlling the conduction states of the switches, the adjustment of the resistance values and capacitance values can be completed, thereby obtaining the above first target network. Through the method in this embodiment, the network parameters can be efficiently adjusted through the switch unit to complete the adjustment of the first target network.

[0076] In some embodiments, the second resistor-capacitor network includes a sub resistor-capacitor network and an operational amplifier, and the sub resistor-capacitor network includes at least two resistors and at least two capacitors; the above method further includes:

[0077] Based on all second resistor-capacitor combinations composed of at least two resistance values and at least two capacitance values in the sub resistor-capacitor network, obtain all second network parameters corresponding to all second resistor-capacitor combinations, and determine the second signal quality corresponding to all second network parameters respectively, wherein the second signal quality is determined based on the number of abnormal signals of the target transmission signal; the second signal quality characterizes the correction degree of the compensation module and the termination module to the signal to be compensated;

[0078] Determine the optimal second target signal quality among all second signal qualities, and determine the corresponding second target network parameters according to the second target signal quality;

[0079] Based on the second target network parameters, adjust the sub resistor-capacitor network to obtain a second target network.

[0080] Specifically, Figure 4Schematic diagram of the compensation module structure in an embodiment. Among them, the second resistor-capacitor network includes at least two sub resistor-capacitor networks, namely 411, 421, 412, and 422 in the figure; and an operational amplifier 44 and at least two resistor networks 431 and 432 connected across the operational amplifier 44. In this embodiment, by adjusting different resistance values and capacitance values in the second resistor-capacitor network, all combinations between the resistance value and the capacitance value can be obtained, and then the above-mentioned second resistor-capacitor combination can be obtained. Furthermore, the second network parameters corresponding to the second resistor-capacitor combination can be determined. It can be understood that the second network parameters are the capacitance setting parameters and resistance setting parameters corresponding to the second resistor-capacitor combination, and the capacitance setting parameters and resistance setting parameters include the setting of the resistance value and capacitance value in the above-mentioned second resistor-capacitor network.

[0081] Furthermore, the second signal quality can be determined through the check code corresponding to the target transmission signal adjusted by the compensation module. In practical applications, first, turn on all the switches corresponding to the resistors and capacitors. At this time, the second resistor-capacitor network does not work. Correspondingly, the initial transmission signal is the same as the target transmission signal, and the signal quality of the target transmission signal in this state is determined; secondly, by closing different switches of the resistors, the impedance changes from large to small, such as 10 kΩ, 9.1 kΩ, 8.2 kΩ..., and at the same time, by closing different switches of the capacitors, the capacitive reactance changes from large to small, such as 10 pF, 12 pF, 15 pF... Repeat the above steps until all resistor-capacitor parameters are traversed to obtain the above-mentioned multiple second network parameters. At the same time, record the different signal qualities corresponding to the combinations of different capacitance values and resistance values to obtain the above-mentioned multiple second signal qualities.

[0082] Determine the optimal second target signal quality among the second signal qualities, and determine the corresponding second target network parameters according to the second target signal quality. Based on the second target network parameters, adjust the second resistor-capacitor network to obtain the second target network. In some embodiments, the above-mentioned second signal quality can be obtained through CRC (Cyclic Redundancy Check), that is, each time the capacitance value or the resistance value is switched, the second signal quality is calculated through CRC. Through the above method, the gain can be adjusted through the resistor network, and the phase can be adjusted through the capacitor network, so as to flexibly implement various phase-gain compensation schemes.

[0083] In some embodiments, the above method further includes:

[0084] Based on all third resistor-capacitor combinations composed of at least two resistance values and at least two capacitance values in the first resistor-capacitor network, obtain all third network parameters corresponding to the third resistor-capacitor combinations, and determine the third signal quality corresponding to each of the all third network parameters, where the third signal quality is determined based on the number of abnormal signals of the target transmission signal, and the third signal quality characterizes the correction degree of the termination module and the compensation module to the signal to be compensated;

[0085] Determine the optimal third target signal quality among all the third signal qualities, compare the third target signal quality with the first target signal quality, and when the third target signal quality is greater than the first target signal quality, determine the corresponding third target network parameters according to the third signal quality;

[0086] Adjust the first resistor-capacitor network based on the third target network parameters to obtain the third target network.

[0087] Specifically, after the termination module and the compensation module are corrected in sequence for the first time according to the acquired signal to be compensated, traverse all the resistance values and capacitance values of the first resistor-capacitor network in the termination module again, perform permutations and combinations on all different resistance values and capacitance values to obtain the above-mentioned third resistor-capacitor combination. Among them, the above-mentioned third network parameters are the capacitance setting parameters and resistance setting parameters corresponding to the third resistor-capacitor combination, and the termination module is set according to all the third network parameters to obtain the third signal quality corresponding one-to-one to the third network parameters. It should be noted that the third signal quality characterizes the correction degree of the termination module and the compensation module to the signal to be compensated, while the first signal quality in the above text only characterizes the correction degree of the termination module to the signal to be compensated (because the compensation module is not connected when calculating the first signal quality). Therefore, it can be understood that after the compensation module is connected, when calculating the signal quality corresponding to different resistor-capacitor combinations of the termination module again, it is usually different from the signal quality corresponding to different resistor-capacitor combinations of the termination module calculated for the first time, that is, the third signal quality is different from the first signal quality. And because the compensation module corrects the signal, the optimal third target signal quality in the third signal quality will be greater than the optimal first target signal quality in the first signal quality. Therefore, when the third target signal quality is greater than the first target signal quality, the first resistor-capacitor network needs to be corrected according to the third target network parameters corresponding to the third signal quality to obtain the third target network.

[0088] In practical applications, considering the calculation cost, usually only the resistor-capacitor settings of the termination module need to be adjusted again after the termination module and the compensation module are adjusted for the first time. However, those skilled in the art can also perform secondary or multiple adjustments on the resistor-capacitor settings of both the termination module and the compensation module according to the actual application needs to obtain the network parameters with the best transmission effect. Through the above method, the correction effects of the termination module and the compensation module on the signal to be compensated are comprehensively considered, and the network parameters of the termination module are updated in a timely manner, so that a better-quality target transmission signal can be obtained.

[0089] In some embodiments, the above method further includes:

[0090] The termination module includes a first termination channel and a second termination channel. Among them, the first termination channel includes a first termination network, and the second termination channel includes a second termination network. The first termination network and the second termination network have the same structure, and the first resistor-capacitor network is composed of the first termination network and the second termination network;

[0091] The compensation module includes a first compensation channel and a second compensation channel. Among them, the first compensation channel includes a first compensation network, and the second compensation channel includes a second compensation network. The first compensation network and the second compensation network have the same structure; the second resistor-capacitor network is composed of the first compensation network and the second compensation network.

[0092] Specifically, in the termination module, there are usually a first termination channel and a second termination channel. The first termination network is a resistor-capacitor network connected to the first termination channel. Similarly, the second termination network is a resistor-capacitor network connected to the second termination channel. In practical applications, the first termination network and the second termination network have the same structure, and their network parameter settings are also exactly the same.

[0093] Similarly, the compensation module also includes a first compensation channel and a second compensation channel. The first compensation network is a resistor-capacitor network connected to the first compensation channel, and the second compensation network is a resistor-capacitor network connected to the second compensation channel. In practical applications, the first compensation network and the second compensation network have the same structure, and their network parameter settings are also exactly the same.

[0094] In some embodiments, the above method further includes:

[0095] Establish a communication connection with a preset image sensor;

[0096] When it is detected that the image sensor has acquired the signal to be compensated, adjust the first resistor-capacitor network based on the signal to be compensated.

[0097] Specifically, in some embodiments, an I2C signal (Inter-Integrated Circuit, interconnect communication circuit) can be sent to the image sensor to establish communication. When it is detected that the image sensor has acquired the signal to be compensated, then adjust the first resistor-capacitor network based on the signal to be compensated, that is, adjust the termination module. In practical applications, the above signal to be compensated can be a MIPI signal, that is, when it is detected that a MIPI signal is accessed, adjust the termination module based on the acquired signal.

[0098] This embodiment also provides a preferred embodiment of a signal processing method, Figure 5 which is a schematic diagram of the signal processing method flow in an embodiment.

[0099] Step S510: The control module 65 establishes a communication connection with the image sensor. After the communication connection is established, it continuously monitors whether there is a signal access to the image sensor. If a signal to be compensated is obtained, the termination module 63 is started to be adjusted.

[0100] Among them, the method for adjusting the termination module 63 is to traverse all the resistance values and the permutations and combinations of resistors and capacitors in the first resistor-capacitor network in the termination module 63, which is the first resistor-capacitor combination, and determine the first network parameters corresponding to all the first resistor-capacitor combinations, and verify the signal quality through CRC, that is, calculate the bit error rate. The lower the bit error rate, the higher the signal quality. Determine the first signal quality corresponding to the first network parameters, and determine the optimal first target signal quality among all the first signal qualities, and adjust the first resistor-capacitor network according to the first target network parameters corresponding to the first target signal quality, so as to complete the adjustment of the termination module 63.

[0101] Step S520: After the adjustment of the termination module 63 is completed, impedance matching processing is performed on the signal to be compensated based on the termination module 63 to obtain an initial transmission signal, and then the compensation module 64 is adjusted. Figure 6 It is a schematic structural diagram of a signal processing system in an embodiment, which includes an image sensor 61, a signal transmission line 62, a termination module 63, a compensation module 64, a core processor 66, and a control module 65. The control module 65 is respectively connected to the termination module 63 and the compensation module 64, and is used to control the termination module 63 and the compensation module 64. It can be understood that the image processing method in this application is applied to the control module 65. Further, the core processor 66 is used to process and display the target transmission signal after processing. The method for adjusting the compensation module 64 is to traverse all the resistance values and the permutations and combinations of resistors and capacitors in the second resistor-capacitor network in the compensation module 64, which is the second resistor-capacitor combination, and determine the second network parameters corresponding to all the second resistor-capacitor combinations, verify the signal quality through CRC, that is, calculate the bit error rate. The lower the bit error rate, the higher the signal quality, so as to determine the second signal quality corresponding to the second network parameters, and determine the optimal second target signal quality among all the second signal qualities, and adjust the second resistor-capacitor network according to the network parameters corresponding to the second target signal quality, so as to complete the adjustment of the compensation module 64, and compensate the initial transmission signal according to the adjusted compensation module 64 to obtain the target transmission signal.

[0102] Step S530: After the initial adjustment of the termination module 63 and the compensation module 64 is completed, traverse each parameter of the termination module 63 again to obtain the above-mentioned third resistor-capacitor combination, determine the third network parameters corresponding to all the third resistor-capacitor combinations, check the signal quality through CRC, that is, calculate the bit error rate, so as to determine the third signal quality corresponding to the third network parameters, and determine the optimal third target signal quality among all the third signal qualities. When the third target signal quality is greater than the first target signal quality, adjust the first resistor-capacitor network according to the third target network parameters corresponding to the third target signal quality to obtain the third target network, thereby completing the secondary adjustment of the termination module 63.

[0103] Step S540: The compensation module 64 or the termination module 63 can be adjusted twice or multiple times according to actual needs until the overall signal quality is optimal.

[0104] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps does not have a strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or steps or stages in other steps.

[0105] Based on the same inventive concept, an embodiment of the present application also provides a signal processing device for implementing the signal processing method described above. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the signal processing device provided below can refer to the limitations on the signal processing method in the above text, and will not be repeated here.

[0106] In one embodiment, as Figure 7 shown, a signal processing device is provided, including: a first adjustment module 71 and a second adjustment module 72, where:

[0107] The first adjustment module 71 is configured to obtain a signal to be compensated containing a preset check code, adjust the first network parameters of the first resistor-capacitor network in the preset termination module according to the check code to obtain a first target network; perform impedance matching processing on the signal to be compensated based on the first target network to obtain an initial transmission signal;

[0108] The second adjustment module 72 is configured to adjust the second network parameters of the second resistor-capacitor network in the preset compensation module according to the check code to obtain a second target network, where the check code reflects the number of abnormal signals; and perform phase gain compensation on the initial transmission signal based on the second target network to obtain a target transmission signal.

[0109] Specifically, the first adjustment module 71 acquires a signal to be compensated containing a check code, adjusts the first network parameters of the first resistor-capacitor network in the termination module to obtain a first target network, and performs impedance matching processing on the signal to be compensated based on the first target network to obtain an initial transmission signal; then, based on the second adjustment module 72, the second network parameters of the second resistor-capacitor network are adjusted according to the check code to obtain a second target network, and then phase gain compensation is performed on the initial transmission signal based on the second target network to obtain a target transmission signal.

[0110] Each module in the above signal processing device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.

[0111] In one embodiment, an endoscope system is further provided, and the system includes a display end and a signal processor;

[0112] The signal processor is configured to perform the signal processing method as described above on the acquired image to be adjusted;

[0113] The display end is configured to display the target transmission signal generated by the signal processor.

[0114] Specifically, the endoscope system includes a display end and a signal processor. The signal processor is configured to acquire the signal to be compensated as described above, and perform impedance matching processing and phase gain compensation on the signal to be compensated based on the termination module and the compensation module in the signal processor to obtain a target transmission signal, and then send the target transmission signal to the display end, and the display end displays the target transmission signal.

[0115] In one of the embodiments, the above system further includes: an endoscope handle and an endoscope connection part;

[0116] The endoscope handle is used to connect an image sensor, where the image sensor is used to collect an image to be adjusted;

[0117] The endoscope connection part is connected to the signal processor and is used to transmit the image to be adjusted;

[0118] Specifically, Figure 8Schematic structural diagram of an endoscope system in an embodiment, including an endoscope insertion part 81, an endoscope handle 82, an inner diameter connection part 83, an endoscope bracket 84, an endoscope bracket cart 85, a signal processor 86, and a display end 87. Among them, the endoscope insertion part 81 is the main part of the gastroscope, and the front end is a module section, which is connected to the endoscope handle 82 through the MIPI transmission line built in the endoscope hose. The endoscope handle 82 is the position where the doctor holds and operates, and is connected to the signal processor 6 through the inner diameter connection part 83. The MIPI transmission line is still inside the inner diameter connection part 83. The endoscope bracket 84 and the endoscope bracket cart 85 together form a support system. The signal processor 86 is used to process and transmit signals, and the signal processor 86 is connected to the display end 87. The display end 87 is used to display the image captured by the head module of the endoscope insertion part 81 in real time.

[0119] Furthermore, Figure 9 Schematic diagram of board-level connection of an endoscope system in an embodiment. The camera 901 is the image sensor described above, which is used to convert optical signals into electrical signals and transmit them to the wiring board 903 through the MIPI transmission line 902. The wiring board 903 is connected to the CAM3 adapter board 904 and then to the main board 905. Among them, the main board 905 includes the above-mentioned termination module, compensation module, control module, core processor, and other peripheral circuits, which are responsible for receiving and processing image signals and connecting other peripherals at the same time. Furthermore, the main board 905, the 220V power supply input 908, the AC-DC 12V conversion module 907, and the power-on button 906 are installed in the mainframe shell 912 together. Among them, the working voltage provided by the 220V power supply input 908 is connected to the power-on button 906 through the AC-DC 12V conversion module 907, and the main board 905 is powered on and off through the power-on button 906. Peripherals 909 (such as mice, keyboards, USB flash drives, etc.), switches 910, and monitors 911 are all connected to the main board 905 for controlling the host, data exchange, and displaying images.

[0120] In this embodiment, by selecting a suitable MIPI transmission line and enabling the adaptive termination and compensation functions, the MIPI signal to be compensated obtained is emitted by the camera 901, and is connected to the termination and compensation network of the main board 905 through the MIPI transmission line 902, the wiring board 903, and the CAM3 adapter board 904. By adaptively configuring the termination and compensation parameters, the MIPI signal is optimized, so that a stable and clear image is output on the monitor 911.

[0121] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 10As shown. The computer device includes a processor, a memory, and a network interface connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store signal processing algorithm data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, it implements a signal processing method.

[0122] Those skilled in the art can understand that Figure 10 the structure shown in is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component arrangement.

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

[0124] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memories can include read-only memory (ROM), magnetic tapes, floppy disks, flash memories, optical memories, high-density embedded non-volatile memories, resistive random access memories (ReRAMs), magnetoresistive random access memories (MRAMs), ferroelectric random access memories (FRAMs), phase change memories (PCMs), graphene memories, etc. Volatile memories can include random access memory (RAM) or external cache memories, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., without limitation.

[0125] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0126] The above-described embodiments merely represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the patent of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A signal processing method, characterized in that The method includes: Obtaining a signal to be compensated containing a check code, and adjusting a first network parameter of a first resistor-capacitor network in a preset termination module according to the check code to obtain a first target network; wherein, the check code corresponds to the signal to be compensated; Performing impedance matching processing on the signal to be compensated based on the first target network to obtain an initial transmission signal; Adjusting a second network parameter of a second resistor-capacitor network in a preset compensation module according to the check code to obtain a second target network; wherein, the check code reflects the quantity of abnormal signals; Performing phase gain compensation on the initial transmission signal based on the second target network to obtain a target transmission signal.

2. The method according to claim 1, wherein The step of adjusting a first network parameter of a first resistor-capacitor network in a preset termination module according to the check code to obtain a first target network includes: Based on all first resistor-capacitor combinations formed by at least two resistance values and at least two capacitance values in the first resistor-capacitor network, obtaining all the first network parameters corresponding to the first resistor-capacitor combinations, and determining the first signal quality corresponding to each of the first network parameters, wherein the first signal quality is determined based on the quantity of abnormal signals in the initial transmission signal; the first signal quality characterizes the correction degree of the termination module to the signal to be compensated; Determining the optimal first target signal quality among all the first signal qualities, and determining the corresponding first target network parameter according to the first target signal quality; Adjusting the first resistor-capacitor network based on the first target network parameter to obtain the first target network.

3. The method according to claim 1, wherein The first resistor-capacitor network includes at least two resistors and at least two capacitors, each resistor is connected in series with a preset switch, and each capacitor is connected in series with a preset switch; The step of adjusting a first network parameter of a first resistor-capacitor network in a preset termination module according to the check code to obtain a first target network includes: Based on the check code, adjusting the conduction states of the switches connected in series with the resistor and the capacitor respectively; wherein, the conduction states include an open state and a closed state; Adjusting the first network parameter based on the conduction states of the switches to obtain the first target network.

4. The method according to claim 1, wherein The second resistor-capacitor network includes a sub-resistor-capacitor network and an operational amplifier, and the sub-resistor-capacitor network includes at least two resistors and at least two capacitors; the step of adjusting a second network parameter of a second resistor-capacitor network in a preset compensation module according to the check code to obtain a second target network includes: Based on all second resistor-capacitor combinations formed by at least two resistance values and at least two capacitance values in the sub-resistor-capacitor network, obtaining all the second network parameters corresponding to the second resistor-capacitor combinations, and determining the second signal quality corresponding to each of the second network parameters, wherein the second signal quality is determined based on the quantity of abnormal signals in the target transmission signal; the second signal quality characterizes the correction degree of the compensation module and the termination module to the signal to be compensated; Determining the optimal second target signal quality among all the second signal qualities, and determining the corresponding second target network parameter according to the second target signal quality; Adjust the sub-resistor-capacitor network based on the second target network parameters to obtain the second target network.

5. The method according to claim 1, wherein After obtaining the target transmission signal, the method further includes: Based on all third resistor-capacitor combinations formed by at least two resistance values and at least two capacitance values in the first resistor-capacitor network, obtain the third network parameters corresponding to all the third resistor-capacitor combinations, and determine the third signal quality corresponding to each of the third network parameters, where the third signal quality is determined based on the number of abnormal signals of the target transmission signal, and the third signal quality characterizes the correction degree of the termination module and the compensation module to the signal to be compensated; Determine the optimal third target signal quality among all the third signal qualities, compare the third target signal quality with the first target signal quality, and when the third target signal quality is greater than the first target signal quality, determine the corresponding third target network parameters according to the third signal quality; Adjust the first resistor-capacitor network based on the third target network parameters to obtain the third target network.

6. The method according to any one of claims 1 to 5, characterized in that, The termination module includes a first termination channel and a second termination channel, where the first termination channel includes a first termination network, the second termination channel includes a second termination network, the first termination network and the second termination network have the same structure, and the first resistor-capacitor network is composed of the first termination network and the second termination network; The compensation module includes a first compensation channel and a second compensation channel, where the first compensation channel includes a first compensation network, the second compensation channel includes a second compensation network, the first compensation network and the second compensation network have the same structure; the second resistor-capacitor network is composed of the first compensation network and the second compensation network.

7. The method according to claim 1, wherein Before adjusting the first resistor-capacitor network in the preset termination module, the method further includes: Establish a communication connection with a preset image sensor; When it is detected that the image sensor has collected the signal to be compensated, adjust the first resistor-capacitor network based on the signal to be compensated.

8. A signal processing device, characterized in that, The device includes: A first adjustment module, configured to obtain a signal to be compensated containing a preset check code, adjust the first network parameters of the first resistor-capacitor network in the preset termination module according to the check code to obtain a first target network; perform impedance matching processing on the signal to be compensated based on the first target network to obtain an initial transmission signal; A second adjustment module, configured to adjust the second network parameters of the second resistor-capacitor network in the preset compensation module according to the check code to obtain a second target network; where the check code reflects the number of abnormal signals; perform phase gain compensation on the initial transmission signal based on the second target network to obtain a target transmission signal.

9. An endoscope system, characterized in that, The endoscope system includes a display end and a signal processor; The signal processor is configured to execute the method according to any one of claims 1 to 7 on the to-be-adjusted image obtained; The display end is configured to display the target transmission signal generated by the signal processor.

10. The system according to claim 9, wherein The system further includes an endoscope handle and an endoscope connection part; The endoscopic handle is used to connect an image sensor, wherein the image sensor is used to collect the image to be adjusted; The endoscopic connecting part is connected to the signal processor and is used to transmit the image to be adjusted.