Method and system for repairing blurred screen of endoscope image

By splitting the endoscope image signal in the time domain and parsing the preset transmission protocol, combined with counters and level chip detection, the problem of endoscopic image distortion was solved, achieving accurate image display and cost savings.

CN121887935APending Publication Date: 2026-04-17MACROLUX MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
MACROLUX MEDICAL TECH CO LTD
Filing Date
2025-12-31
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Endoscopic images are prone to sampling errors and screen distortion during diagnosis due to external interference signals. Existing technologies that address this issue through impedance matching are ineffective and costly in terms of manpower and resources.

Method used

The image signal acquired by the endoscope is split into multiple row-cycle pixel signals in the time domain, transmitted and parsed using a preset transmission protocol, and combined with counters and level chip detection to ensure that the signal receiver accurately parses the pixel signal position and color components.

Benefits of technology

It effectively avoids screen flickering, reduces the requirements for endoscope consistency, reduces the cost of manpower and resources, and ensures normal image display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121887935A_ABST
    Figure CN121887935A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of endoscope image processing, in particular to a method and a system for repairing a blurred screen of an endoscope image. According to the scheme, after the image signals are acquired, the image signals of each frame are split into the pixel signals of the plurality of line periods in the time domain, and then the pixel signals of each line period are transmitted to the signal receiving end according to the preset transmission protocol; and the signal receiving end sequentially analyzes the pixel signals in each row period according to the corresponding relationship between the period number and the positions of the pixel signals in the preset transmission protocol to obtain a final analysis result, and the analysis result displays an image signal. By adopting the scheme, the system can accurately judge the color component of the pixel corresponding to the current row period and the position of the pixel, so that the color component of the pixel can be accurately judged even if the initial position of the row period is interfered by an external signal in a transmission process; and a receiving end can analyze the correct pixel signal of the current row period according to the rule and the period number specified in the protocol, so that the problem of blurred screen is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of endoscopic image processing technology, specifically to a method and system for repairing distorted endoscopic images. Background Technology

[0002] In the field of medical endoscopy, image sensors often produce "screen distortion" in output images due to hardware failures, signal interference, software errors, or insufficient bandwidth. Screen distortion typically manifests as mosaic-like patterns, color blocks, lines, tears, or color distortion on parts or the entire screen, severely impacting visual experience and information acquisition. Analog image sensors are widely used due to their small size, reducing pain for patients when inserted into the body. Endoscopic analog imaging is primarily determined by the number of sampling clock cycles within the sampling time. The number of cycles determines the color component type, transmitting images sequentially in B, Gb, Gr, R. The sampling time also serves for image data synchronization. If external interference signals cause sampling errors during the diagnostic process, one color component may be missing, resulting in screen distortion. Summary of the Invention

[0003] The present invention provides a method and system for repairing endoscopic image distortion, which effectively solves the problem in the prior art that sampling errors and subsequent distorted images are easily caused by external interference signals during endoscopic diagnosis.

[0004] According to the first aspect, one embodiment provides a method for repairing distorted endoscopic images, comprising: The image signal acquired by the endoscope is obtained, and each frame of the image signal is split into multiple row-period pixel signals in the time domain; The pixel signal of each row cycle is transmitted to the signal receiving end according to a preset transmission protocol; the preset transmission protocol includes the correspondence between the position of the pixel signal and the number of cycles. The signal receiving end parses the pixel signal in each row period sequentially according to the preset transmission protocol to obtain the parsing result; The image signal is displayed based on the analysis results.

[0005] In one feasible implementation, after transmitting the pixel signal of each line period to the signal receiving end according to a preset transmission protocol, the method further includes: At the beginning of each row cycle, a counter is used to accumulate the count once every preset time interval.

[0006] In one feasible implementation, the signal receiving end sequentially parses the pixel signal in each row period according to the preset transmission protocol to obtain the parsing result, including: Obtain the count value of the counter; Based on the count value and the correspondence between the position and the number of cycles of the pixel signal in the preset transmission protocol, the color component and the position of the pixel signal in the current transmission row cycle are determined.

[0007] In one feasible implementation, the endoscope includes a level chip for detecting an analog level corresponding to each pixel signal in each row cycle, and the method further includes: Obtain the analog level corresponding to each pixel signal in each row cycle, and obtain the reference level for each row cycle; The target level corresponding to each pixel signal in each row period is obtained by subtracting the analog level corresponding to each pixel signal in each row period from the reference level of the corresponding row period. The image signal is displayed according to the target level corresponding to each pixel signal in each row cycle.

[0008] In one feasible implementation, the step of subtracting the analog level corresponding to each pixel signal in each row cycle from the current reference level to obtain the target level corresponding to each pixel signal in each row cycle includes: The target level corresponding to each pixel signal in the current row period is obtained by subtracting the analog level corresponding to each pixel signal in the current row period from the reference level of the current row period. The target level corresponding to each pixel signal in the next line cycle is obtained by subtracting the analog level corresponding to the reference level of the corresponding line cycle from the analog level corresponding to each pixel signal in the next line cycle. Repeat the previous step until the target level corresponding to each pixel signal in each row period is obtained.

[0009] According to a second aspect, one embodiment provides a system for repairing endoscopic image distortion, comprising: The acquisition module is used to acquire the image signals collected by the endoscope and to split each frame of the image signal into multiple row period pixel signals in the time domain; A transmission module is used to transmit the pixel signal of each row cycle to a signal receiving end according to a preset transmission protocol; the preset transmission protocol includes the correspondence between the position of the pixel signal and the number of cycles. The parsing module is used by the signal receiving end to parse the pixel signal in each row period sequentially according to the preset transmission protocol to obtain the parsing result; The display module is used to display the image signal based on the analysis result.

[0010] In one feasible implementation, the repair system further includes: The counting module is used to accumulate a count once at the beginning of each row cycle, after a preset sampling clock cycle.

[0011] In one feasible implementation, in the parsing module, the signal receiving end sequentially parses the pixel signal in each row period according to the preset transmission protocol to obtain the parsing result, including: Obtain the count value of the counter; Based on the count value and the correspondence between the position and the number of cycles of the pixel signal in the preset transmission protocol, the color component and the position of the pixel signal in the current transmission row cycle are determined.

[0012] According to a third aspect, one embodiment provides a computer-readable storage medium storing a computer program that can be executed by a processor to implement the method described above.

[0013] According to a fourth aspect, one embodiment provides a computer program product including a computer program and / or instructions that, when executed by a processor, implement the method described above.

[0014] According to the above embodiment of the method / system for repairing endoscopic image distortion, after acquiring the image signal collected by the endoscope, each frame of the image signal is divided into multiple row-cycle pixel signals in the time domain, where each pixel signal is a color component. Then, according to a preset transmission protocol, the pixel signals of each row cycle are transmitted to the signal receiving end. The signal receiving end parses the pixel signals in each row cycle sequentially according to the correspondence between the number of cycles and the position of the pixel signals in the preset transmission protocol to obtain the final parsing result. Finally, the image signal is displayed according to the parsing result. Using the above scheme of this application, the system can accurately determine the color component of the pixel corresponding to the current row cycle and the position of the pixel according to the preset transmission protocol. Even if the starting position of the row cycle is interfered with by external signals during transmission, the receiving end can still parse the correct pixel signal of the current row cycle according to the rules and number of cycles specified in the protocol, thereby avoiding the problem of distorted images. Attached Figure Description

[0015] Figure 1 This is a flowchart of a method for repairing distorted endoscopic images provided in this embodiment; Figure 2 A flowchart of another method for repairing endoscopic image distortion provided in this embodiment; Figure 3A time-level sampling curve of a pixel signal with two color components (B and Gb) in a row period, as provided in this embodiment. Figure 4 This is a structural block diagram of an endoscope image distortion repair system provided in this embodiment.

[0016] Reference numerals: 100, acquisition module; 200, transmission module; 300, parsing module; 400, display module. Detailed Implementation

[0017] The present invention will now be described in further detail with reference to specific embodiments and accompanying drawings. Similar elements in different embodiments are referred to by associated similar element reference numerals. In the following embodiments, many details are described to facilitate a better understanding of this application. However, those skilled in the art will readily recognize that some features may be omitted in different situations, or may be replaced by other elements, materials, or methods. In some cases, certain operations related to this application are not shown or described in the specification. This is to avoid obscuring the core parts of this application with excessive description. For those skilled in the art, detailed description of these related operations is not necessary; they can fully understand the related operations based on the description in the specification and general technical knowledge in the art.

[0018] Furthermore, the features, operations, or characteristics described in the specification can be combined in any suitable manner to form various embodiments. At the same time, the steps or actions in the method description can be rearranged or adjusted in a manner obvious to those skilled in the art. Therefore, the various orders in the specification and drawings are only for the clear description of a particular embodiment and do not imply a necessary order, unless otherwise stated that a particular order must be followed.

[0019] The serial numbers assigned to components in this document, such as "first" and "second," are used only to distinguish the described objects and have no sequential or technical meaning. The terms "connection" and "linkage" used in this application, unless otherwise specified, include both direct and indirect connections (linkages).

[0020] In existing technologies, to avoid screen distortion, a sliding rheostat is placed inside the endoscope handle to achieve impedance matching, thereby preventing screen distortion issues in endoscopic analog image sensors. However, impedance matching requires high consistency in wiring, soldering, and assembly, making it difficult to match all endoscopes with a single value. Therefore, it needs to be matched to each endoscope individually, requiring significant manpower and resources. Furthermore, adjusting the sliding rheostat with particularly poor consistency can lead to other abnormal phenomena. Thus, existing solutions still have problems. In view of this, this application offers a novel approach, providing a method for repairing endoscopic image screen distortion, as described below.

[0021] refer to Figure 1 This embodiment provides a method for repairing distorted endoscopic images, which specifically includes the following steps: Step 100: Acquire the image signal collected by the endoscope through the acquisition module, and split each frame of image signal into multiple row period pixel signals in the time domain.

[0022] The time domain describes how a signal changes over time. This step specifically involves meticulously decomposing each frame of the acquired image signal in the time domain, transforming the originally continuous image signal into individual pixel signals for transmission. In other words, in image transmission, decomposing each frame of the image signal in the time domain means dividing a complete image frame into multiple time segments along the time axis, with each time segment corresponding to a pixel signal within one line period. For example, if a frame of the image contains m line periods, it can be decomposed into m line periods of pixel signals in the time domain, with each line period occupying a specific time interval. In practical applications, one line period can be used to transmit two color components (such as B, Gb or Gr, R), with one color component representing one pixel signal. One line period can contain multiple pixel signals. When a line period includes two color components, the sampling curves corresponding to both color components need to be transmitted during the data transmission of one line period. Figure 3 The diagram shows the time-level sampling curves (including the sampling curves of the B color component and the Gb color component) in one line cycle (with two color components). Each sampling curve includes a Tc stage (i.e., the recognition stage), a Tb stage (i.e., the reference level sampling stage), and a Td stage (i.e., the analog level sampling stage).

[0023] Step 200: The transmission module transmits the pixel signal of each row cycle to the signal receiving end according to the preset transmission protocol; the preset transmission protocol includes the correspondence between the position of the pixel signal and the number of cycles.

[0024] In this step, the preset transmission protocol is a set of rules that specifies how image signals are transmitted. It includes information such as signal format, transmission order, and synchronization method. This transmission protocol ensures that the signal sender and receiver follow the same rules during image transmission, enabling the receiver to accurately interpret the received signal. For example, the transmission protocol might specify transmitting the image's row information first, followed by the pixel information within each row, and also clearly define the transmission order of the color components for each pixel. Under the transmission protocol, pixel signals are transmitted sequentially in a certain order. Typically, this starts from the top left corner of the image and transmits pixels row by row. The transmission of each row of pixels also has a specific time period, called the row period. Within each row period, the pixel signals in that row are transmitted sequentially according to the order specified by the protocol. This sequential transmission method ensures the orderliness and integrity of the image signal.

[0025] Step 300: The parsing module parses the pixel signals in each row period sequentially according to the preset transmission protocol through the signal receiver to obtain the parsing results.

[0026] Specifically, the pre-defined transmission protocol includes the correspondence between pixel signal positions and cycle numbers. For example, the transmission protocol might specify that the cycle number is determined during the Tc recognition phase of each line cycle, and subsequent line cycles transmit the pixel signals of that line sequentially (e.g., B, Gb, Gr, R). Image colors are typically composed of red (R), green (G), and blue (B) components combined in different proportions. In endoscopic imaging systems, to more accurately acquire and process color information, a more detailed division of color components is used, such as B (blue), Gb (green-blue correlated component), Gr (green-red correlated component), and R (red). These color components are sampled and transmitted sequentially in a certain order, ultimately combining to form a complete color image. Based on these rules defined in the transmission protocol, the signal receiver can accurately determine which stage of the current line cycle it is in, and the corresponding pixel position. Figure 3 Taking this as an example, regardless of whether the starting position of the current row cycle is affected by external signals, the transmission module transmits the pixel signal of the current row cycle according to the transmission protocol and the number of clock cycles in the Tc stage of each sampling curve in the current row cycle. For example, when it is determined that the number of clock cycles in the Tc stage of the sampling curve is 3, the signal receiver can determine the corresponding position of the pixel signal with color component B in the current row cycle according to the transmission protocol; when it is determined that the number of clock cycles in the Tc stage of the sampling curve is 5, the signal receiver can determine the corresponding position of the pixel signal with color component Gb in the current row cycle according to the transmission protocol.

[0027] Step 400: The display module displays the image signal based on the analysis results.

[0028] Specifically, the above-described solution of this application, by combining a preset transmission protocol and precise cycle count statistics, enables the system to more accurately determine the pixel corresponding to the current line cycle. Even if the starting position of a certain line cycle is interfered with during transmission, the receiving end can still resolve the correct pixel signal position corresponding to the current line cycle according to the rules specified in the protocol and the number of cycles in the Tc phase of the current line cycle. Furthermore, adopting the above-described solution of this application also reduces the requirements for endoscope consistency, avoids matching a single-value sliding rheostat to each endoscope, and reduces the cost of manpower and resources.

[0029] As one implementation method, after transmitting the pixel signal of each line cycle to the signal receiving end according to the preset transmission protocol, the method further includes: at the beginning of each line cycle, counting once by a counter after a preset time interval.

[0030] To accurately determine pixel positions, the system precisely counts the number of cycles during transmission. At the start of each line cycle, a counter begins counting, and the counter increments by 1 every fixed time interval (i.e., one sampling clock cycle, which is also the sampling clock cycle of one pixel signal).

[0031] Furthermore, the signal receiver sequentially parses the pixel signals in each line period according to a preset transmission protocol to obtain the parsing results, including: Obtain the counter value; based on the counter value and the correspondence between the position and the number of cycles of the pixel signal in the preset transmission protocol, determine the color component and the position of the pixel signal in the current transmission row cycle.

[0032] Specifically, the counter counts during the Tc phase. By analyzing the counter value and combining it with the correspondence between the number of cycles and pixel positions specified in the transmission protocol, it is possible to determine which color component's pixel signal is currently being transmitted and its position. For example, the transmission protocol specifies that within a certain line cycle, a counter value within the range of 1-100 (e.g., 6) corresponds to the transmission of the second color component's pixel signal in that line, a value within the range of 1-100 (e.g., 11) corresponds to the transmission of the first color component's pixel in that line, and so on.

[0033] The following is a specific example. Suppose that an image frame is divided into 10 line periods of pixel signals in the time domain, with each line having 100 pixel signals. The transmission protocol is as follows: each frame of the image contains 10 line periods; each line period represents two color components of the current row of pixels, and the data of the 1st to 10th rows are transmitted in the order of B, Gb and Gr, R.

[0034] During transmission, the system transmits signals for each line cycle sequentially according to the protocol. At the beginning of each line cycle, the receiving end starts a counter and determines which color component of the current line is being transmitted based on the counter's value and the protocol specifications. For example, when the counter value is 3, the protocol indicates that the pixel signal for color component B and its position are being transmitted; when the counter value is 5, the pixel signal for color component Gr and its position are being transmitted. Even if a line cycle is interfered with during transmission, the receiving end can still deduce the correct pixel signal for the current line cycle using the protocol and cycle count, ensuring correct image display and preventing screen tearing.

[0035] In practical applications, impedance mismatch can occur due to inconsistencies in the endoscope transmission link. This mismatch can also cause the voltage level of some endoscope cameras to rise across the entire sampling period. This situation prevents the level sensor from detecting the corresponding acquisition level for each pixel signal, resulting in screen flickering. To address this problem, this application proposes the following solution.

[0036] Furthermore, the endoscope includes a level chip, which is used to detect the analog level corresponding to the signal of each pixel in each row cycle, referenced to... Figure 2 The method for repairing distorted endoscopic images also includes the following steps: Step 500: Obtain the analog level corresponding to each pixel signal in each line cycle, and obtain the reference level for each line cycle.

[0037] The reference level is a crucial reference level in image signals, providing a stable reference point for the entire image signal system. During image signal transmission and processing, various other signal levels (such as analog levels) are defined and measured relative to the reference level. The stability of the reference level is essential for accurate video signal interpretation, ensuring correct signal interaction and processing between different devices.

[0038] Image acquisition level (also known as analog level) refers to the level signal directly related to image information acquired from the image signal. It contains key information such as the image's brightness and color, and is the raw data ultimately used by the display device to present the image. The accuracy and stability of the image acquisition level directly determine the quality of the displayed image; if the image acquisition level is disturbed and changes, it will lead to abnormal image display.

[0039] Step 600: Subtract the analog level corresponding to each pixel signal in each row cycle from the reference level of the corresponding row cycle to obtain the target level corresponding to each pixel signal in each row cycle.

[0040] In practical applications, the analog level corresponding to each pixel signal in the current row period is subtracted from the reference level of the current row period to obtain the target level corresponding to each pixel signal in the current row period. The target level for each pixel signal in the next line cycle is obtained by subtracting the analog level corresponding to each pixel signal in the next line cycle from the reference level of the corresponding line cycle. Repeat the previous step until the target level corresponding to each pixel signal in each row period is obtained.

[0041] Step 700: Display the image signal according to the target level corresponding to each pixel signal in each row cycle.

[0042] In practical applications, the horizontal synchronization signal plays a crucial role in video signal transmission and processing. It identifies the start position of each line of image data, ensuring that the receiving end can accurately synchronize and interpret the image data. When interference occurs in the horizontal synchronization area, it affects the signal voltage in that area. Under normal circumstances, various levels in the video signal (including the reference level and the image acquisition level) have their specific numerical ranges and stable states to ensure that the image can be displayed correctly. When interference enters the horizontal synchronization area, it may cause the overall signal voltage in that area and related areas to rise. This results in the originally stable reference level and image acquisition level being affected by interference in the same direction (i.e., the direction of voltage rise). This interference is common-mode interference, causing an abnormal increase in value (the original characteristics of the signal are destroyed). Since image display is based on the precise interpretation and conversion of these level signals, abnormal voltage changes can cause image data to be misinterpreted, resulting in a distorted or garbled screen on the display device. This distorted screen usually manifests as messy stripes, color blocks, flickering, or image distortion, severely affecting the viewing experience.

[0043] In this implementation, regardless of whether interference occurs in the horizontal synchronization region, the analog level corresponding to each pixel signal in each horizontal cycle and the reference level for each horizontal cycle are acquired through an ADC voltage sampling circuit (it should be noted that the ADC voltage sampling circuit in this solution can be implemented using existing circuit structures). Then, differential-mode calculation is performed, that is, by subtracting the reference level from the analog level. Since common-mode interference acts on both the analog level and the reference level simultaneously, and the magnitude and direction of the interference are the same, the common-mode interference will cancel each other out during the subtraction of the two levels in the differential-mode calculation. For example, suppose the original analog level is V... image After being subjected to common-mode interference, it becomes V image +ΔV; The original reference level was V. ref After being subjected to common-mode interference, it becomes V ref +ΔV. Then perform differential operation (V) image+ΔV)−(V ref +ΔV)=V image -V ref As can be seen, the common-mode interference ΔV has been eliminated, and the result is the difference between the original image signal and the reference signal. This difference accurately reflects the true information of the image. In other words, after suppressing common-mode interference through differential-mode operation, the resulting signal can more accurately reflect the original information of the image. The receiver can then perform correct image parsing and display based on this accurate signal, thereby avoiding screen distortion caused by common-mode interference and ensuring the normal display quality of the image.

[0044] refer to Figure 4 This embodiment provides a system for repairing endoscopic image distortion, including an acquisition module 100, a transmission module 200, a parsing module 300, and a display module 400. The acquisition module 100 acquires image signals collected by the endoscope and divides each frame of the image signal into multiple row-period pixel signals in the time domain. The transmission module 200 transmits the pixel signals of each row-period to a signal receiving end according to a preset transmission protocol, which includes the correspondence between the position of the pixel signals and the number of periods. The parsing module 300 parses the pixel signals in each row-period sequentially at the signal receiving end according to the preset transmission protocol to obtain the parsing results. The display module 400 displays the image signal based on the parsing results.

[0045] This embodiment of an endoscopic image distortion repair system, after acquiring the image signal collected by the endoscope through the acquisition module 100, divides each frame of the image signal into multiple row-cycle pixel signals in the time domain, where each pixel signal is a color component. Then, the transmission module 200 transmits the pixel signals of each row-cycle to the signal receiving end according to a preset transmission protocol. The signal receiving end parses the pixel signals in each row-cycle sequentially according to the correspondence between the number of cycles and the position of the pixel signals in the preset transmission protocol to obtain the final parsing result. Finally, the display module 400 displays the image signal according to the parsing result. Using the repair system of this application, the system can accurately determine the color component and position of the pixel corresponding to the current row-cycle according to the preset transmission protocol. Even if the starting position of the row-cycle is interfered with by external signals during transmission, the receiving end can still parse the correct pixel signal of the current row-cycle according to the rules and number of cycles specified in the protocol, thereby avoiding the problem of distorted images.

[0046] Furthermore, the repair system also includes a counting module, which is used to accumulate a count once at the beginning of each row cycle after a preset sampling clock cycle.

[0047] To accurately determine pixel positions, the system precisely counts the number of cycles during transmission. At the beginning of each line cycle, a counter starts counting, and after a fixed time interval (i.e., one sampling clock cycle, which is also the sampling clock cycle of one pixel signal), the counter increments by 1.

[0048] Furthermore, in the parsing module 300, the signal receiving end parses the pixel signal in each row period sequentially according to a preset transmission protocol to obtain the parsing result, including: Obtain the counter value; based on the counter value and the correspondence between the position and the number of cycles of the pixel signal in the preset transmission protocol, determine the color component and the position of the pixel signal in the current transmission row cycle.

[0049] Specifically, the counter counts during the Tc phase. By analyzing the counter value and combining it with the correspondence between the number of cycles and pixel positions specified in the transmission protocol, it is possible to determine which color component's pixel signal is currently being transmitted and its position. For example, the transmission protocol specifies that within a certain line cycle, a counter value within the range of 1-100 (e.g., 6) corresponds to the transmission of the second color component's pixel signal in that line, a value within the range of 1-100 (e.g., 11) corresponds to the transmission of the first color component's pixel in that line, and so on.

[0050] The following is a specific example. Suppose that an image frame is divided into 10 line periods of pixel signals in the time domain, with each line having 100 pixel signals. The transmission protocol is as follows: each frame of the image contains 10 line periods; each line period represents two color components of the current row of pixels, and the data of the 1st to 10th rows are transmitted in the order of B, Gb and Gr, R.

[0051] During transmission, the system transmits signals for each line cycle sequentially according to the protocol. At the beginning of each line cycle, the receiving end starts a counter and determines which color component of the current line is being transmitted based on the counter's value and the protocol specifications. For example, when the counter value is 3, the protocol indicates that the pixel signal for color component B and its position are being transmitted; when the counter value is 5, the pixel signal for color component Gr and its position are being transmitted. Even if a line cycle is interfered with during transmission, the receiving end can still deduce the correct pixel signal for the current line cycle using the protocol and cycle count, ensuring correct image display and preventing screen tearing.

[0052] This embodiment provides a computer-readable storage medium storing a computer program that can be executed by a processor to implement the method described above. Since the method for repairing endoscopic image distortion has been described in detail in the above embodiments, it will not be repeated here.

[0053] This embodiment provides a computer program product, including a computer program and / or instructions, which, when executed by a processor, implement the method described above. Since the method for repairing endoscopic image distortion has been described in detail in the above embodiments, it will not be repeated here.

[0054] Those skilled in the art will understand that all or part of the functions of the various methods in the above embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, which may include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to achieve the above functions. For example, the program can be stored in the memory of a device, and when the program in the memory is executed by the processor, all or part of the above functions can be achieved. In addition, when all or part of the functions in the above embodiments are implemented by computer programs, the program can also be stored in a server, another computer, disk, optical disk, flash drive, or external hard drive, etc., and can be downloaded or copied to the memory of a local device, or the system of the local device can be updated. When the program in the memory is executed by the processor, all or part of the functions in the above embodiments can be achieved.

[0055] The above examples illustrate the present invention only to aid in understanding it and are not intended to limit the scope of the invention. Those skilled in the art can make various simple deductions, modifications, or substitutions based on the principles of this invention.

Claims

1. A method of repairing an artifact in an endoscopic image, the method comprising: include: The image signal acquired by the endoscope is obtained, and each frame of the image signal is split into multiple row-period pixel signals in the time domain; The pixel signal of each row cycle is transmitted to the signal receiving end according to a preset transmission protocol; the preset transmission protocol includes the correspondence between the position of the pixel signal and the number of cycles. The signal receiving end parses the pixel signal in each row period sequentially according to the preset transmission protocol to obtain the parsing result; The image signal is displayed based on the analysis results.

2. The repair method as described in claim 1, characterized in that, After transmitting the pixel signal of each row period to the signal receiving end according to the preset transmission protocol, the method further includes: At the beginning of each row cycle, a counter is used to accumulate the count once every preset time interval.

3. The repair method as described in claim 2, characterized in that, The signal receiving end parses the pixel signal in each row period sequentially according to the preset transmission protocol to obtain the parsing result, including: Obtain the count value of the counter; Based on the count value and the correspondence between the position and the number of cycles of the pixel signal in the preset transmission protocol, the color component and the position of the pixel signal in the current transmission row cycle are determined.

4. The repair method as described in claim 1, characterized in that, The endoscope includes a level chip, which is used to detect the analog level corresponding to each pixel signal in each row cycle. The method further includes: Obtain the analog level corresponding to each pixel signal in each row cycle, and obtain the reference level for each row cycle; The target level corresponding to each pixel signal in each row period is obtained by subtracting the analog level corresponding to each pixel signal in each row period from the reference level of the corresponding row period. The image signal is displayed according to the target level corresponding to each pixel signal in each row cycle.

5. The repair method as described in claim 4, characterized in that, The step of subtracting the analog level corresponding to each pixel signal in each row period from the current reference level to obtain the target level corresponding to each pixel signal in each row period includes: The target level corresponding to each pixel signal in the current row period is obtained by subtracting the analog level corresponding to each pixel signal in the current row period from the reference level of the current row period. The target level corresponding to each pixel signal in the next line cycle is obtained by subtracting the analog level corresponding to the reference level of the corresponding line cycle from the analog level corresponding to each pixel signal in the next line cycle. Repeat the previous step until the target level corresponding to each pixel signal in each row period is obtained.

6. A system for repairing distorted endoscopic images, characterized in that, include: The acquisition module is used to acquire the image signals collected by the endoscope and to split each frame of the image signal into multiple row period pixel signals in the time domain; A transmission module is used to transmit the pixel signal of each row cycle to a signal receiving end according to a preset transmission protocol; the preset transmission protocol includes the correspondence between the position of the pixel signal and the number of cycles. The parsing module is used by the signal receiving end to parse the pixel signal in each row period sequentially according to the preset transmission protocol to obtain the parsing result; The display module is used to display the image signal based on the analysis result.

7. The repair system as described in claim 6, characterized in that, Also includes: The counting module is used to accumulate a count once at the beginning of each row cycle, after a preset sampling clock cycle.

8. The repair system as described in claim 7, characterized in that, In the parsing module, the signal receiving end parses the pixel signal in each row period sequentially according to the preset transmission protocol to obtain the parsing result, including: Obtain the count value of the counter; Based on the count value and the correspondence between the position and the number of cycles of the pixel signal in the preset transmission protocol, the color component and the position of the pixel signal in the current transmission row cycle are determined.

9. A computer-readable storage medium, characterized in that, The medium stores a computer program that can be executed by a processor to implement the method as described in any one of claims 1-5.

10. A computer program product comprising a computer program and / or instructions, characterized in that, When the computer program and / or instructions are executed by the processor, they implement the method of any one of claims 1-5.