Endoscope video wireless transmission method and system

By converting the endoscopic video data into a grid color value group and using a time series mutation algorithm, the problem of high pressure for wireless data transmission of endoscopic video is solved, and efficient data transmission and flexible signal processing are achieved.

CN119520728AActive Publication Date: 2025-02-25GUANGDONG HEXIN MEDICAL TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411390229.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-02-25
Estimated Expiration
2044-10-08

AI Technical Summary

Technical Problem

During wireless signal transmission, the high pixels and large data volume of the endoscope video lead to insufficient data carrying capacity, which brings great operating pressure to the transmission link.

Method used

By converting the endoscopic static image signal into a grid color value group, and using the timing mutation algorithm to calculate the timing mutation, the mark sequence is obtained, the sampling segment points are located, and data extraction and transmission are performed based on the sampling segment points.

Benefits of technology

It reduces the data pressure of the wireless transmission link, improves the flexibility of signal transmission, reduces the interference of data noise, and realizes the purpose of reducing the data transmission amount in the section where the static image signal of the endoscope is slow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520728A_ABST
    Figure CN119520728A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of wireless data transmission, in particular to an endoscope video wireless transmission method and system.The method comprises the steps that an endoscope is inserted into a to-be-examined body pipeline according to the preset advancing speed, endoscope static image signals are read, and first to Nth endoscope static image signals are obtained; then respectively and equally dividing to obtain a first image grid group to an Nth image grid group, and aggregating to obtain a first grid color value group to an Nth grid color value group; calculating by adopting a time sequence mutation algorithm to obtain a mark sequence; and sampling and extracting the first endoscope static image signal to the Nth endoscope static image signal according to the mark sequence, transmitting the signals to a receiving end in a wireless transmission mode, and combining to obtain an endoscope receiving video. The endoscope video source end data is preprocessed, so that the data pressure of a wireless transmission link is relieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wireless data transmission, and in particular to an endoscope video wireless transmission method and system. Background Art

[0002] An endoscope is used to insert into the body tube to be inspected to take images and transmit the image video information to the inspector through the local network. However, with the development of telemedicine technology, the inspector and the endoscope inspection site are often far apart, making it difficult to transmit video information through the local network. Therefore, transmitting the endoscopic video to the inspector by wireless transmission has become a new development direction for endoscopic video transmission. However, since endoscopic videos often have high pixels and large amounts of data, problems such as insufficient data carrying capacity will occur during wireless signal transmission. Especially in the centralized transmission mode, the transmission of massive endoscopic video data to the video receiving end will bring great operating pressure to the transmission link. Therefore, how to reduce the pressure of massive data transmission has become a technical problem that needs to be solved.

[0003] Existing methods are mainly achieved by optimizing the transmission path of wireless signals and improving the signal transmission strength. However, these methods have the following disadvantages: First, since they involve the optimization of the transmission link and the modification of the signal transmission equipment, they are costly and not suitable for large-scale promotion. Second, they limit the flexibility of the configuration of the endoscope video transmitter.

[0004] In order to overcome the drawbacks of the above technical solutions, it is necessary to start from the source data of the endoscopic video and perform adaptive distributed preprocessing of the source data through big data algorithms, thereby reducing the data pressure of the wireless transmission link and improving the flexibility of signal transmission. Summary of the invention

[0005] (1) Technical issues to be solved

[0006] The object of the present invention is to provide a method and system for wireless transmission of endoscopic video to reduce the data pressure of wireless transmission of endoscopic video.

[0007] (2) Technical solution

[0008] To achieve the above object, the present invention provides a method for wireless transmission of endoscope video, the method comprising the following steps:

[0009] S1, insert the endoscope into the body channel to be inspected at a preset propulsion speed, and read the endoscope static image signal within a preset sampling interval at a preset first sampling interval time, and number the endoscope static image signals in sequence to obtain the first endoscope static image signal to the Nth endoscope static image signal; wherein N represents the number of endoscope static image signal numbers.

[0010] S2, divide the first endoscopic static image signal to the Nth endoscopic static image signal equally according to the preset horizontal division number h1 and vertical division number h2, to obtain the first image grid group to the Nth image grid group; calculate the color values ​​of the pixel points in the first image grid group to the Nth image grid group, and aggregate them to obtain the first grid color value group to the Nth grid color value group.

[0011] S3, according to the first grid color value group to the Nth grid color value group, a temporal mutation algorithm is used to calculate the temporal mutation amount to obtain a marker sequence.

[0012] S4, sampling and extracting the first endoscope static image signal to the Nth endoscope static image signal according to the flag sequence to obtain an extracted image group; transmitting the extracted image group to the receiving end by wireless transmission to obtain a received image group; combining the received image groups to obtain an endoscope received video.

[0013] Furthermore, the method of calculating the color values ​​of pixels in the first image grid group to the Nth image grid group and aggregating to obtain the first grid color value group to the Nth grid color value group includes:

[0014] Obtain the pixel height ω1 and pixel width ω2 of the first endoscope static image signal to the Nth endoscope static image signal; perform pixel decomposition on the first endoscope static image signal to the Nth endoscope static image signal to obtain M pixel points; wherein the calculation formula of M is:

[0015] M = N × ω1 × ω2;

[0016] Calculate the RGB color values ​​of M pixels to obtain the R value, G value and B value of the M pixels; encode the R value, G value and B value of the M pixels to obtain a three-dimensional number; the three-dimensional number is expressed as Color(i1, i2, i3) = [R(i1, i2, i3)G(i1, i2, i3)B(i1, i2, i3)], where i1 is an integer variable with a value of 1 to N, indicating the endoscope static image signal number, i2 is an integer variable with a value of 1 to ω1, indicating the pixel horizontal number, and i3 is an integer variable with a value of 1 to ω2 The variable represents the vertical pixel number, R(i1, i2, i3) represents the R value of the pixel point corresponding to the endoscope static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3, G(i1, i2, i3) represents the G value of the pixel point corresponding to the endoscope static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3, B(i1, i2, i3) represents the B value of the pixel point corresponding to the endoscope static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3.

[0017] According to the three-dimensional numbering, M pixel points are distributed to the first image grid group to the Nth image grid group to obtain the grid pixel numbering; the grid pixel numbering is expressed as Grid(i1, j1, j2) = [R(i1, j1, j2)G(i1, j1, j2)B(i1, j1, j2)], where j1 represents the horizontal grid numbering and j2 represents the vertical grid numbering; the calculation formulas for j1 and j2 are:

[0018]

[0019] in, Indicates the round-up symbol.

[0020] Search for the R value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Search for the G value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Search for the B value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Will The first grid color value group to the Nth grid color value group are obtained by combination.

[0021] Furthermore, the method of calculating the timing mutation amount using a timing mutation algorithm according to the first grid color value group to the Nth grid color value group to obtain the marker sequence includes:

[0022] The first mutation sequence T(i1, j1, j2) is calculated based on the first grid color value group to the Nth grid color value group; the calculation formula of the first mutation sequence is:

[0023]

[0024] Among them, |·| represents the absolute value sign; θ is an integer variable with values ​​from 1 to i1; T1(i1, j1, j2) is the R-value mutation sequence; T2(i1, j1, j2) is the G-value mutation sequence; T3(i1, j1, j2) is the B-value mutation sequence.

[0025] A marker sequence is calculated based on the first mutation sequence using a mutation conversion algorithm.

[0026] Furthermore, the method of calculating the marker sequence using a mutation conversion algorithm according to the first mutation sequence includes:

[0027] The marker sequence G(i1) is calculated using a mutation conversion formula according to the first mutation sequence; the mutation conversion formula is:

[0028]

[0029] Wherein, μ1 is a preset first threshold.

[0030] Furthermore, the method of sampling and extracting the first endoscope static image signal to the Nth endoscope static image signal according to the flag sequence to obtain the extracted image group includes:

[0031] Search the values ​​of G(1) to G(N) in sequence, traverse i1=1 to i1=N, and clone all i1 values ​​corresponding to G(i1)=1 into the sampling array.

[0032] Arrange the first endoscope static image signal to the Nth endoscope static image signal on a horizontal coordinate axis, wherein the horizontal axis of the horizontal coordinate axis is the endoscope static image signal number, the starting number of the horizontal coordinate axis is 1, and the ending number is N; scatter the elements in the sampling array on the horizontal coordinate axis to obtain sampling segmentation points; respectively, with the sampling segmentation points as the center, extend forward and backward along the horizontal coordinate axis into intervals of length β, and combine to obtain a first sampling interval; wherein β is a pre-set extension length; traverse the area in the horizontal coordinate axis that is not covered by the first sampling interval, and define it as a second sampling interval.

[0033] In a first sampling interval, the first endoscopic static image signal to the Nth endoscopic static image signal are uniformly extracted according to a preset first extraction ratio σ1 to obtain a first extracted image; in a second sampling interval, the first endoscopic static image signal to the Nth endoscopic static image signal are uniformly extracted according to a preset second extraction ratio σ2 to obtain a second extracted image; the first extracted image and the second extracted image are combined to obtain an extracted image group.

[0034] Based on the same inventive concept, on the other hand, the present invention also provides an endoscope video wireless transmission system, the system comprising:

[0035] An endoscope static image signal forming module is used to insert the endoscope into the body channel to be inspected at a preset propulsion speed, and read the endoscope static image signal at a preset first sampling interval, and number the endoscope static image signals in sequence to obtain the first endoscope static image signal to the Nth endoscope static image signal; wherein N represents the number of endoscope static image signal numbers.

[0036] The grid color value group calculation module is connected to the endoscope static image signal forming module, and is used to equally divide the first endoscope static image signal to the Nth endoscope static image signal according to the preset horizontal division number h1 and the vertical division number h2, so as to obtain the first image grid group to the Nth image grid group; calculate the color values ​​of the pixels in the first image grid group to the Nth image grid group, and aggregate them to obtain the first grid color value group to the Nth grid color value group.

[0037] The mark sequence calculation module is connected to the grid color value group calculation module and is used to calculate the time series mutation amount using the time series mutation algorithm according to the first grid color value group to the Nth grid color value group to obtain the mark sequence.

[0038] The image extraction and transmission module is connected to the mark sequence calculation module, and is used to sample and extract the first endoscope static image signal to the Nth endoscope static image signal according to the mark sequence to obtain an extracted image group; transmit the extracted image group to the receiving end by wireless transmission to obtain a received image group; and combine the received image groups to obtain an endoscope received video.

[0039] Furthermore, the grid color value group calculation module includes:

[0040] The pixel point acquisition module is used to obtain the pixel height ω1 and pixel width ω2 of the first endoscope static image signal to the Nth endoscope static image signal; pixel decomposition of the first endoscope static image signal to the Nth endoscope static image signal is performed to obtain M pixel points; wherein the calculation formula of M is:

[0041] M = N × ω1 × ω2;

[0042] The color value calculation module is connected to the pixel acquisition module and is used to calculate the RGB color values ​​of M pixels to obtain the R value, G value and B value of the M pixels; the R value, G value and B value of the M pixels are encoded to obtain a three-dimensional number; the three-dimensional number is expressed as Color(i1, i2, i3) = [R(i1, i2, i3)G(i1, i2, i3)B(i1, i2, i3)], wherein i1 is an integer variable with a value of 1 to N, indicating the endoscope static image signal number, i2 is an integer variable with a value of 1 to ω1, indicating the pixel horizontal number, and i3 is an integer variable with values ​​ranging from 1 to ω2, indicating the vertical pixel number, R(i1, i2, i3) represents the R value of the pixel point corresponding to the endoscope static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3, G(i1, i2, i3) represents the G value of the pixel point corresponding to the endoscope static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3, B(i1, i2, i3) represents the B value of the pixel point corresponding to the endoscope static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3.

[0043] The pixel point scattering module is connected to the color value calculation module and is used to scatter M pixel points to the first image grid group to the Nth image grid group according to the three-dimensional numbering to obtain the grid pixel numbering; the grid pixel numbering is expressed as Grid(i1, j1, j2)=[R(i1, j1, j2)G(i1, j1, j2)B(i1, j1, j2)], where j1 represents the horizontal grid numbering and j2 represents the vertical grid numbering; the calculation formulas of j1 and j2 are:

[0044]

[0045] in, Indicates the round-up symbol.

[0046] The grid color value group generation module is connected to the pixel point scattering module to search for the R value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to obtain Search for the G value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Search for the B value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Will The first grid color value group to the Nth grid color value group are obtained by combination.

[0047] Furthermore, the flag sequence calculation module includes:

[0048] The first mutation sequence calculation module is used to calculate the first mutation sequence T(i1, j1, j2) according to the first grid color value group to the Nth grid color value group; the calculation formula of the first mutation sequence is:

[0049]

[0050] Among them, |·| represents the absolute value sign; θ is an integer variable with values ​​from 1 to i1; T1(i1, j1, j2) is the R-value mutation sequence; T2(i1, j1, j2) is the G-value mutation sequence; T3(i1, j1, j2) is the B-value mutation sequence.

[0051] The marker sequence generation module is connected to the first mutation sequence calculation module and is used to calculate the marker sequence according to the first mutation sequence using a mutation conversion algorithm.

[0052] Furthermore, the flag sequence generation module includes:

[0053] The mutation conversion module is used to calculate the marker sequence G(i1) according to the first mutation sequence using a mutation conversion formula; the mutation conversion formula is:

[0054]

[0055] Wherein, μ1 is a preset first threshold.

[0056] Furthermore, the image extraction and transmission module includes:

[0057] The sampling array cloning module is used to search the values ​​of G(1) to G(N) in sequence, traverse i1=1 to i1=N, and clone all i1 values ​​corresponding to G(i1)=1 to the sampling array.

[0058] The sampling interval generation module is connected to the sampling array cloning module, and is used to arrange the first endoscope static image signal to the Nth endoscope static image signal on a horizontal coordinate axis, wherein the horizontal axis of the horizontal coordinate axis is the endoscope static image signal number, and the starting number of the horizontal coordinate axis is 1 and the ending number is N; the elements in the sampling array are scattered on the horizontal coordinate axis to obtain sampling segmentation points; with the sampling segmentation points as the center, the intervals of length β are extended forward and backward along the horizontal coordinate axis to obtain the first sampling interval; wherein β is a pre-set extension length; and the area not covered by the first sampling interval in the horizontal coordinate axis is traversed, which is defined as the second sampling interval.

[0059] The extracted image group generation module is connected to the sampling interval generation module, and is used to uniformly extract the first endoscopic static image signal to the Nth endoscopic static image signal according to a preset first extraction ratio σ1 in the first sampling interval to obtain a first extracted image; in the second sampling interval, uniformly extract the first endoscopic static image signal to the Nth endoscopic static image signal according to a preset second extraction ratio σ2 to obtain a second extracted image; and combine the first extracted image and the second extracted image to obtain an extracted image group.

[0060] (3) Beneficial effects

[0061] Compared with the prior art, the present invention has the following beneficial effects:

[0062] 1. The endoscope static image signal is converted into the first grid color value group to the Nth grid color value group, and then the time series mutation amount is calculated to obtain the mark sequence and locate the sampling segmentation point. Then, the endoscope static image signal is extracted and transmitted using different extraction ratios according to the sampling segmentation point. Since the sampling segmentation point reflects the mutation point of the endoscope static image signal, the present invention achieves the purpose of reducing the data transmission volume in the section where the endoscope static image signal changes slowly, thereby reducing the data pressure of the wireless transmission link.

[0063] 2. In the process of calculating the time series mutation amount, weights with time attributes are assigned to the first grid color value group to the Nth grid color value group, thereby reducing the interference caused by data noise and making the time series mutation amount calculation process more stable. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 This is a flowchart of a method for wireless transmission of endoscope video according to Embodiment 1 of the present invention;

[0065] Figure 2 This is a schematic diagram of the module composition of an endoscope video wireless transmission system according to Example 2 of the present invention. DETAILED DESCRIPTION

[0066] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0067] Before giving examples, it is necessary to explain the application scenarios of the present invention. The present invention is applied to wireless transmission of medical endoscope videos.

[0068] Example 1: Figure 1As shown, this embodiment provides a method for wireless transmission of endoscope video, the method comprising the following steps:

[0069] S1, insert the endoscope into the body channel to be inspected at a preset propulsion speed, and read the endoscope static image signal within a preset sampling interval at a preset first sampling interval time, and number the endoscope static image signals in sequence to obtain the first endoscope static image signal to the Nth endoscope static image signal; wherein N represents the number of endoscope static image signal numbers.

[0070] Exemplarily, the propulsion speed is preset to 5 mm / s, the first sampling interval is preset to 0.025 seconds, and the sampling interval is preset to 30 seconds. That is, the endoscope is inserted into the body channel to be inspected at a propulsion speed of 5 mm / s, and the camera function of the endoscope takes snapshots of the image inside the body channel at intervals of 0.025 seconds within 30 seconds, and the snapshots are numbered to obtain the first endoscope static image signal to the 1200th endoscope static image signal.

[0071] S2, divide the first endoscopic static image signal to the Nth endoscopic static image signal equally according to the preset horizontal division number h1 and vertical division number h2, to obtain the first image grid group to the Nth image grid group; calculate the color values ​​of the pixel points in the first image grid group to the Nth image grid group, and aggregate them to obtain the first grid color value group to the Nth grid color value group.

[0072] Exemplarily, the preset horizontal segmentation number h1 is 96, and the vertical segmentation number h2 is 54, and the first endoscope static image signal to the 1200th endoscope static image signal are equally divided to obtain the first image grid group to the 1200th image grid group. The color values ​​of the pixels in the first image grid group to the 1200th image grid group are calculated, and the first grid color value group to the 1200th grid color value group are obtained by aggregation.

[0073] S3, according to the first grid color value group to the Nth grid color value group, a temporal mutation algorithm is used to calculate the temporal mutation amount to obtain a marker sequence.

[0074] S4, sampling and extracting the first endoscope static image signal to the Nth endoscope static image signal according to the flag sequence to obtain an extracted image group; transmitting the extracted image group to the receiving end by wireless transmission to obtain a received image group; combining the received image groups to obtain an endoscope received video.

[0075] Furthermore, the method of calculating the color values ​​of pixels in the first image grid group to the Nth image grid group and aggregating to obtain the first grid color value group to the Nth grid color value group includes:

[0076] Obtain the pixel height ω1 and pixel width ω2 of the first endoscope static image signal to the Nth endoscope static image signal; perform pixel decomposition on the first endoscope static image signal to the Nth endoscope static image signal to obtain M pixel points; wherein the calculation formula of M is:

[0077] M = N × ω1 × ω2;

[0078] Exemplarily, the pixel height ω1 of the first endoscope static image signal to the 1200th endoscope static image signal is 3840, and the pixel width ω2 is 2160. The first endoscope static image signal to the 1200th endoscope static image signal is pixel-decomposed to obtain 9953280000 pixels.

[0079] Calculate the RGB color values ​​of M pixels to obtain the R value, G value and B value of the M pixels; encode the R value, G value and B value of the M pixels to obtain a three-dimensional number; the three-dimensional number is expressed as Color(i1, i2, i3)=R(i1, i2, i3)G(i1, i2, i3)B(i1, i2, i3)], where i1 is an integer variable with a value of 1 to N, representing the endoscope static image signal number, i2 is an integer variable with a value of 1 to ω1, representing the pixel horizontal number, and i3 is an integer variable with a value of 1 to ω2. The quantity represents the vertical pixel number, R(i1, i2, i3) represents the R value of the pixel point corresponding to the endoscope static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3, G(i1, i2, i3) represents the G value of the pixel point corresponding to the endoscope static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3, B(i1, i2, i3) represents the B value of the pixel point corresponding to the endoscope static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3.

[0080] Exemplarily, RGB color value is an internationally used color standard system, which decomposes each color into three dimensional values ​​of R value, G value and B value. The R value, G value and B value of 9953280000 pixels can be obtained by Photoshop image processing software. The R value, G value and B value of 9953280000 pixels are encoded to obtain a three-dimensional number. The three-dimensional number is represented by Color(i1, i2, i3)=[R(i1, i2, i3)G(i1, i2, i3)B(i1, i2, i3)], where i1 is an integer variable with a value of 1 to 1200, i2 is an integer variable with a value of 1 to 3840, and i3 is an integer variable with a value of 1 to 2160. For example, the three-dimensional number Color(1,1,1)=[R(1,1,1)G(1,1,1)B(1,1,1)] represents the R value, G value, and B value of the pixel corresponding to the endoscope static image signal number 1, the pixel horizontal number 1, and the pixel vertical number 1. The R value, G value, and B value are all integers in the range of 0 to 255.

[0081] According to the three-dimensional numbering, M pixel points are distributed to the first image grid group to the Nth image grid group to obtain the grid pixel numbering; the grid pixel numbering is expressed as Grid(i1, j1, j2) = [R(i1, j1, j2)G(i1, j1, j2)B(i1, j1, j2)], where j1 represents the horizontal grid numbering and j2 represents the vertical grid numbering; the calculation formulas for j1 and j2 are:

[0082]

[0083] in, Indicates the round-up symbol.

[0084] Exemplarily, 9953280000 pixels are distributed to the first image grid group to the 1200th image grid group to obtain the grid pixel number Grid(i1, j1, j2) = [R(i1, j1, j2) G(i1, j1, j2) B(i1, j1, j2)]. For example, for the pixel corresponding to the three-dimensional number Color(1, 1, 1) = [R(1, 1, 1) G(1, 1, 1) B(1, 1, 1)], since i2 = 1 and i3 = 1, it is calculated that j1 = 1 and j2 = 1, so the grid pixel number of the pixel corresponding to the three-dimensional number Color(1, 1, 1) is expressed as Grid(1, 1, 1) = [R(1, 1, 1) G(1, 1, 1) B(1, 1, 1)].

[0085] Search for the R value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Search for the G value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Search for the B value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Will The first grid color value group to the Nth grid color value group are obtained by combination.

[0086] For example, the R value corresponding to the pixel point with i1=1, j1=1, j2=1 in the grid pixel number is searched, and the average value is obtained. Search for the G value corresponding to the pixel points with i1=1, j1=1, j2=1 in the grid pixel number, and take the average value to get Search for the B value corresponding to the pixel points with i1=1, j1=1, j2=1 in the grid pixel number, and take the average value to get Similarly, we can obtain to to to Will to to to Combine to get the first grid color value group. to to to The second grid color value group is obtained by combining. Similarly, the third grid color value group to the 1200th grid color value group can be obtained.

[0087] Furthermore, the method of calculating the timing mutation amount using a timing mutation algorithm according to the first grid color value group to the Nth grid color value group to obtain the marker sequence includes:

[0088] The first mutation sequence T(i1, j1, j2) is calculated based on the first grid color value group to the Nth grid color value group; the calculation formula of the first mutation sequence is:

[0089]

[0090] Among them, |·| represents the absolute value sign; θ is an integer variable with values ​​from 1 to i1; T1(i1, j1, j2) is the R-value mutation sequence; T2(i1, j1, j2) is the G-value mutation sequence; T3(i1, j1, j2) is the B-value mutation sequence.

[0091] Exemplarily, two sets of parameters, i1=1, j1=1, j2=1 and i1=2, j1=1, j2=1, are used as examples and substituted into the calculation formula of the first mutation sequence:

[0092]

[0093] Similarly, the values ​​of other elements of the first mutation sequence can be obtained.

[0094] A marker sequence is calculated based on the first mutation sequence using a mutation conversion algorithm.

[0095] Furthermore, the method of calculating the marker sequence using a mutation conversion algorithm according to the first mutation sequence includes:

[0096] The marker sequence G(i1) is calculated using a mutation conversion formula according to the first mutation sequence; the mutation conversion formula is:

[0097]

[0098] Wherein, μ1 is a preset first threshold.

[0099] For example, μ1 can be set according to actual needs. If the wireless transmission transmission power is large and the transmission distance is short, it means that the data carrying capacity of the wireless transmission link is strong, and μ1 can take a smaller value; if the wireless transmission transmission power is small and the transmission distance is long, it means that the data carrying capacity of the wireless transmission link is weak, and μ1 can take a larger value. In this embodiment, μ1 is set to 25.

[0100] Furthermore, the method of sampling and extracting the first endoscope static image signal to the Nth endoscope static image signal according to the flag sequence to obtain the extracted image group includes:

[0101] Search the values ​​of G(1) to G(N) in sequence, traverse i1=1 to i1=N, and clone all i1 values ​​corresponding to G(i1)=1 into the sampling array.

[0102] Arrange the first endoscope static image signal to the Nth endoscope static image signal on a horizontal coordinate axis, wherein the horizontal axis of the horizontal coordinate axis is the endoscope static image signal number, the starting number of the horizontal coordinate axis is 1, and the ending number is N; scatter the elements in the sampling array on the horizontal coordinate axis to obtain sampling segmentation points; respectively, with the sampling segmentation points as the center, extend forward and backward along the horizontal coordinate axis into intervals of length β, and combine to obtain a first sampling interval; wherein β is a pre-set extension length; traverse the area in the horizontal coordinate axis that is not covered by the first sampling interval, and define it as a second sampling interval.

[0103] In a first sampling interval, the first endoscopic static image signal to the Nth endoscopic static image signal are uniformly extracted according to a preset first extraction ratio σ1 to obtain a first extracted image; in a second sampling interval, the first endoscopic static image signal to the Nth endoscopic static image signal are uniformly extracted according to a preset second extraction ratio σ2 to obtain a second extracted image; the first extracted image and the second extracted image are combined to obtain an extracted image group.

[0104] Exemplarily, traverse G(1) to G(1200), clone all i1 values ​​corresponding to G(i1)=1 to the sampling array, and obtain [187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 982 983 984985 986], so the sampling segmentation points are 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 982, 983, 984, 985, 986. β=21 is preset, and the sampling segmentation points are respectively taken as the center and extended forward and backward along the horizontal coordinate axis to intervals of length 21. Taking the sampling segmentation point 187 as an example, it is extended to 177-197; the sampling segmentation point 188 is extended to 178-198; the sampling segmentation point 189 is extended to 179-199, and so on. All the sampling segmentation points are extended separately, and finally the first sampling interval is obtained by combining 177-211, 972-996. Therefore, the second sampling interval is 1-176, 212-971, 997-1200. In the first sampling interval, the first endoscope static image signal to the 1200th endoscope static image signal is uniformly extracted according to the pre-set first extraction ratio σ1=100% to obtain the first extracted image. That is, the 177th endoscope static image signal to the 211th endoscope static image signal, the 972nd endoscope static image signal to the 996th endoscope static image signal are extracted to obtain the first extracted image. In the second sampling interval, the first endoscope static image signal to the Nth endoscope static image signal are uniformly extracted according to the preset second extraction ratio σ2=50% to obtain a second extracted image. That is, the first endoscope static image signal, the third endoscope static image signal, the fifth endoscope static image signal...the 175th endoscope static image signal, the 212th endoscope static image signal, the 214th endoscope static image signal...the 970th endoscope static image signal, the 977th endoscope static image signal, the 979th endoscope static image signal...the 1199th endoscope static image signal are extracted to obtain the second extracted image. The first extracted image and the second extracted image are combined to obtain an extracted image group.

[0105] Embodiment 2: Based on the same inventive concept, Figure 2 As shown, this embodiment also provides an endoscope video wireless transmission system, the system comprising:

[0106] An endoscope static image signal forming module is used to insert the endoscope into the body channel to be inspected at a preset propulsion speed, and read the endoscope static image signal at a preset first sampling interval, and number the endoscope static image signals in sequence to obtain the first endoscope static image signal to the Nth endoscope static image signal; wherein N represents the number of endoscope static image signal numbers.

[0107] The grid color value group calculation module is connected to the endoscope static image signal forming module, and is used to equally divide the first endoscope static image signal to the Nth endoscope static image signal according to the preset horizontal division number h1 and the vertical division number h2, so as to obtain the first image grid group to the Nth image grid group; calculate the color values ​​of the pixels in the first image grid group to the Nth image grid group, and aggregate them to obtain the first grid color value group to the Nth grid color value group.

[0108] The mark sequence calculation module is connected to the grid color value group calculation module and is used to calculate the time series mutation amount using the time series mutation algorithm according to the first grid color value group to the Nth grid color value group to obtain the mark sequence.

[0109] The image extraction and transmission module is connected to the mark sequence calculation module, and is used to sample and extract the first endoscope static image signal to the Nth endoscope static image signal according to the mark sequence to obtain an extracted image group; transmit the extracted image group to the receiving end by wireless transmission to obtain a received image group; and combine the received image groups to obtain an endoscope received video.

[0110] Furthermore, the grid color value group calculation module includes:

[0111] The pixel point acquisition module is used to obtain the pixel height 1 and pixel width ω2 of the first endoscope static image signal to the Nth endoscope static image signal; pixel decomposition of the first endoscope static image signal to the Nth endoscope static image signal is performed to obtain M pixel points; wherein the calculation formula of M is:

[0112] M = N × ω1 × ω2;

[0113] The color value calculation module is connected to the pixel acquisition module and is used to calculate the RGB color values ​​of M pixels to obtain the R value, G value and B value of the M pixels; the R value, G value and B value of the M pixels are encoded to obtain a three-dimensional number; the three-dimensional number is expressed as Color(i1, i2, i3) = [R(i1, i2, i3)G(i1, i2, i3)B(i1, i2, i3)], wherein i1 is an integer variable with a value of 1 to N, indicating the endoscope static image signal number, i2 is an integer variable with a value of 1 to ω1, indicating the pixel horizontal number, and i3 is an integer variable with values ​​ranging from 1 to ω2, indicating the vertical pixel number, R(i1, i2, i3) represents the R value of the pixel point corresponding to the endoscope static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3, G(i1, i2, i3) represents the G value of the pixel point corresponding to the endoscope static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3, B(i1, i2, i3) represents the B value of the pixel point corresponding to the endoscope static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3.

[0114] The pixel point scattering module is connected to the color value calculation module and is used to scatter M pixel points to the first image grid group to the Nth image grid group according to the three-dimensional numbering to obtain the grid pixel numbering; the grid pixel numbering is expressed as Grid(i1, j1, j2)=[R(i1, j1, j2)G(i1, j1, j2)B(i1, j1, j2)], where j1 represents the horizontal grid numbering and j2 represents the vertical grid numbering; the calculation formulas of j1 and j2 are:

[0115]

[0116] in, Indicates the round-up symbol.

[0117] The grid color value group generation module is connected to the pixel point scattering module to search for the R value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to obtain Search for the G value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Search for the B value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Will The first grid color value group to the Nth grid color value group are obtained by combination.

[0118] Furthermore, the flag sequence calculation module includes:

[0119] The first mutation sequence calculation module is used to calculate the first mutation sequence T(i1, j1, j2) according to the first grid color value group to the Nth grid color value group; the calculation formula of the first mutation sequence is:

[0120]

[0121] Among them, |·| represents the absolute value sign; θ is an integer variable with values ​​from 1 to i1; T1(i1, j1, j2) is the R-value mutation sequence; T2(i1, j1, j2) is the G-value mutation sequence; T3(i1, j1, j2) is the B-value mutation sequence.

[0122] The marker sequence generation module is connected to the first mutation sequence calculation module and is used to calculate the marker sequence according to the first mutation sequence using a mutation conversion algorithm.

[0123] Furthermore, the flag sequence generation module includes:

[0124] The mutation conversion module is used to calculate the marker sequence G(i1) according to the first mutation sequence using a mutation conversion formula; the mutation conversion formula is:

[0125]

[0126] Wherein, μ1 is a preset first threshold.

[0127] Furthermore, the image extraction and transmission module includes:

[0128] The sampling array cloning module is used to search the values ​​of G(1) to G(N) in sequence, traverse i1=1 to i1=N, and clone all i1 values ​​corresponding to G(i1)=1 to the sampling array.

[0129] The sampling interval generation module is connected to the sampling array cloning module, and is used to arrange the first endoscope static image signal to the Nth endoscope static image signal on a horizontal coordinate axis, wherein the horizontal axis of the horizontal coordinate axis is the endoscope static image signal number, and the starting number of the horizontal coordinate axis is 1 and the ending number is N; the elements in the sampling array are scattered on the horizontal coordinate axis to obtain sampling segmentation points; with the sampling segmentation points as the center, the intervals of length β are extended forward and backward along the horizontal coordinate axis to obtain the first sampling interval; wherein β is a pre-set extension length; and the area not covered by the first sampling interval in the horizontal coordinate axis is traversed, which is defined as the second sampling interval.

[0130] The extracted image group generation module is connected to the sampling interval generation module, and is used to uniformly extract the first endoscopic static image signal to the Nth endoscopic static image signal according to a preset first extraction ratio σ1 in the first sampling interval to obtain a first extracted image; in the second sampling interval, uniformly extract the first endoscopic static image signal to the Nth endoscopic static image signal according to a preset second extraction ratio σ2 to obtain a second extracted image; and combine the first extracted image and the second extracted image to obtain an extracted image group.

[0131] It should be noted that, regarding the system in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0132] Finally, it should be noted that: Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for wireless transmission of endoscope video, characterized in that: The method comprises the following steps: S1, inserting an endoscope into a body channel to be inspected at a preset propulsion speed, and reading an endoscope static image signal within a preset sampling interval at a preset first sampling interval, and sequentially numbering the endoscope static image signals to obtain a first endoscope static image signal to an Nth endoscope static image signal; wherein N represents the number of the endoscope static image signal numbers; S2, dividing the first endoscope static image signal to the Nth endoscope static image signal equally according to the preset horizontal division number h1 and the vertical division number h2, to obtain the first image grid group to the Nth image grid group; calculating the color values ​​of the pixels in the first image grid group to the Nth image grid group, and aggregating them to obtain the first grid color value group to the Nth grid color value group; S3, according to the first grid color value group to the Nth grid color value group, using the time series mutation algorithm to calculate the time series mutation amount to obtain a marker sequence; S4, sampling and extracting the first endoscope static image signal to the Nth endoscope static image signal according to the flag sequence to obtain an extracted image group; transmitting the extracted image group to the receiving end by wireless transmission to obtain a received image group; combining the received image groups to obtain an endoscope received video.

2. The method for wireless transmission of endoscope video according to claim 1, characterized in that: The method of calculating the color values ​​of pixels in the first image grid group to the Nth image grid group and aggregating to obtain the first grid color value group to the Nth grid color value group includes: Obtain the pixel height ω1 and pixel width ω2 of the first endoscope static image signal to the Nth endoscope static image signal; perform pixel decomposition on the first endoscope static image signal to the Nth endoscope static image signal to obtain M pixel points; wherein the calculation formula of M is: M = N × ω1 × ω2; Calculate the RGB color values ​​of M pixels to obtain the R value, G value and B value of the M pixels; encode the R value, G value and B value of the M pixels to obtain a three-dimensional number; the three-dimensional number is expressed as Color(i1, i2, i3) = [R(i1, i2, i3)G(i1, i2, i3)B(i1, i2, i3)], where i1 is an integer variable with a value of 1 to N, indicating the endoscope static image signal number, i2 is an integer variable with a value of 1 to ω1, indicating the pixel horizontal number, and i3 is an integer variable with a value of 1 to ω2 Variable, indicating the vertical number of the pixel, R(i1, i2, i3) indicates the R value of the pixel corresponding to the endoscopic static image signal number i1, the horizontal number i2, and the vertical number i3, G(i1, i2, i3) indicates the G value of the pixel corresponding to the endoscopic static image signal number i1, the horizontal number i2, and the vertical number i3, B(i1, i2, i3) indicates the B value of the pixel corresponding to the endoscopic static image signal number i1, the horizontal number i2, and the vertical number i3; According to the three-dimensional numbering, M pixel points are distributed to the first image grid group to the Nth image grid group to obtain the grid pixel numbering; the grid pixel numbering is expressed as Grid(i1, j1, j2) = [R(i1, j1, j2)G(i1, j1, j2)B(i1, j1, j2)], where j1 represents the horizontal grid numbering and j2 represents the vertical grid numbering; the calculation formulas for j1 and j2 are: in, Indicates the rounding up symbol; Search for the R value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Search for the G value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Search for the B value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Will The first grid color value group to the Nth grid color value group are obtained by combination.

3. The method for wireless transmission of endoscope video according to claim 2, characterized in that: The method of calculating the timing mutation amount using a timing mutation algorithm according to the first grid color value group to the Nth grid color value group to obtain a marker sequence includes: The first mutation sequence T(i1, j1, j2) is calculated based on the first grid color value group to the Nth grid color value group; the calculation formula of the first mutation sequence is: Among them, |·| represents the absolute value symbol; θ is an integer variable with a value from 1 to i1; T1(i1, j1, j2) is the R-value mutation sequence; T2(i1, j1, j2) is the G-value mutation sequence; T3(i1, j1, j2) is the B-value mutation sequence; A marker sequence is calculated based on the first mutation sequence using a mutation conversion algorithm.

4. The method for wireless transmission of endoscope video according to claim 3, characterized in that: The method for calculating the marker sequence using a mutation conversion algorithm according to the first mutation sequence comprises: The marker sequence G(i1) is calculated using a mutation conversion formula according to the first mutation sequence; the mutation conversion formula is: Wherein, μ1 is a preset first threshold.

5. The method for wireless transmission of endoscope video according to claim 4, characterized in that: The method of sampling and extracting the first endoscope static image signal to the Nth endoscope static image signal according to the flag sequence to obtain the extracted image group includes: Search the values ​​of G(1) to G(N) in sequence, traverse i1=1 to i1=N, and clone all i1 values ​​corresponding to G(i1)=1 into the sampling array; Arrange the first endoscope static image signal to the Nth endoscope static image signal on a horizontal coordinate axis, wherein the horizontal axis of the horizontal coordinate axis is the endoscope static image signal number, wherein the starting number of the horizontal coordinate axis is 1 and the ending number is N; scatter the elements in the sampling array on the horizontal coordinate axis to obtain sampling segmentation points; respectively, take the sampling segmentation points as the center, extend forward and backward along the horizontal coordinate axis into intervals of length β, and combine to obtain a first sampling interval; wherein β is a preset extension length; traverse the area in the horizontal coordinate axis that is not covered by the first sampling interval, and define it as a second sampling interval; In a first sampling interval, the first endoscopic static image signal to the Nth endoscopic static image signal are uniformly extracted according to a preset first extraction ratio σ1 to obtain a first extracted image; in a second sampling interval, the first endoscopic static image signal to the Nth endoscopic static image signal are uniformly extracted according to a preset second extraction ratio σ2 to obtain a second extracted image; the first extracted image and the second extracted image are combined to obtain an extracted image group.

6. An endoscope video wireless transmission system, characterized in that: The system comprises: An endoscope static image signal forming module is used to insert the endoscope into the body channel to be inspected at a preset propulsion speed, read the endoscope static image signal at a preset first sampling interval, and number the endoscope static image signals in sequence to obtain the first endoscope static image signal to the Nth endoscope static image signal; wherein N represents the number of the endoscope static image signal numbers; The grid color value group calculation module is connected to the endoscope static image signal forming module, and is used to equally divide the first endoscope static image signal to the Nth endoscope static image signal according to the preset horizontal division number h1 and the vertical division number h2, respectively, to obtain the first image grid group to the Nth image grid group; calculate the color values ​​of the pixels in the first image grid group to the Nth image grid group, and aggregate them to obtain the first grid color value group to the Nth grid color value group; The sign sequence calculation module is connected to the grid color value group calculation module and is used to calculate the time series mutation amount using the time series mutation algorithm according to the first grid color value group to the Nth grid color value group to obtain the sign sequence; The image extraction and transmission module is connected to the mark sequence calculation module, and is used to sample and extract the first endoscope static image signal to the Nth endoscope static image signal according to the mark sequence to obtain an extracted image group; transmit the extracted image group to the receiving end by wireless transmission to obtain a received image group; and combine the received image groups to obtain an endoscope received video.

7. The endoscope video wireless transmission system according to claim 6, characterized in that: The grid color value group calculation module includes: The pixel point acquisition module is used to obtain the pixel height ω1 and pixel width ω2 of the first endoscope static image signal to the Nth endoscope static image signal; pixel decomposition of the first endoscope static image signal to the Nth endoscope static image signal is performed to obtain M pixel points; wherein the calculation formula of M is: M = N × ω1 × ω2; The color value calculation module is connected to the pixel acquisition module and is used to calculate the RGB color values ​​of M pixels to obtain the R value, G value and B value of the M pixels; the R value, G value and B value of the M pixels are encoded to obtain a three-dimensional number; the three-dimensional number is expressed as Color(i1, i2, i3) = [R(i1, i2, i3)G(i1, i2, i3)B(i1, i2, i3)], wherein i1 is an integer variable with a value of 1 to N, indicating the endoscope static image signal number, i2 is an integer variable with a value of 1 to ω1, indicating the pixel horizontal number, and i3 is an integer variable with a value of 1 to ω2, indicating the vertical number of the pixel, R(i1, i2, i3) indicates the R value of the pixel corresponding to the endoscopic static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3, G(i1, i2, i3) indicates the G value of the pixel corresponding to the endoscopic static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3, B(i1, i2, i3) indicates the B value of the pixel corresponding to the endoscopic static image signal number i1, the horizontal pixel number i2, and the vertical pixel number i3; The pixel point scattering module is connected to the color value calculation module and is used to scatter M pixel points to the first image grid group to the Nth image grid group according to the three-dimensional numbering to obtain the grid pixel numbering; the grid pixel numbering is expressed as Grid(i1, j1, j2)=[R(i1, j1, j2)G(i1, j1, j2)B(i1, j1, j2)], where j1 represents the horizontal grid numbering and j2 represents the vertical grid numbering; the calculation formulas of j1 and j2 are: in, Indicates the rounding up symbol; The grid color value group generation module is connected to the pixel point scattering module to search for the R value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to obtain Search for the G value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Search for the B value corresponding to the pixel points with the same i1, j1, and j2 values ​​in the grid pixel number, and take the average value to get Will The first grid color value group to the Nth grid color value group are obtained by combination.

8. The endoscope video wireless transmission system according to claim 7, characterized in that: The flag sequence calculation module comprises: The first mutation sequence calculation module is used to calculate the first mutation sequence T(i1, j1, j2) according to the first grid color value group to the Nth grid color value group; the calculation formula of the first mutation sequence is: Among them, |·| represents the absolute value symbol; θ is an integer variable with a value from 1 to i1; T1(i1, j1, j2) is the R-value mutation sequence; T2(i1, j1, j2) is the G-value mutation sequence; T3(i1, j1, j2) is the B-value mutation sequence; The marker sequence generation module is connected to the first mutation sequence calculation module and is used to calculate the marker sequence according to the first mutation sequence using a mutation conversion algorithm.

9. The endoscope video wireless transmission system according to claim 8, characterized in that: The flag sequence generation module comprises: The mutation conversion module is used to calculate the marker sequence G(i1) according to the first mutation sequence using a mutation conversion formula; the mutation conversion formula is: Wherein, μ1 is a preset first threshold.

10. The endoscope video wireless transmission system according to claim 9, characterized in that: The image extraction and transmission module comprises: The sampling array cloning module is used to search the values ​​of G(1) to G(N) in sequence, traverse i1=1 to i1=N, and clone all i1 values ​​corresponding to G(i1)=1 to the sampling array; The sampling interval generation module is connected to the sampling array cloning module, and is used to arrange the first endoscope static image signal to the Nth endoscope static image signal on a horizontal coordinate axis, wherein the horizontal axis of the horizontal coordinate axis is the endoscope static image signal number, and the starting number of the horizontal coordinate axis is 1 and the ending number is N; the elements in the sampling array are scattered on the horizontal coordinate axis to obtain sampling segmentation points; respectively, the sampling segmentation points are used as the center, and the intervals of length β are extended forward and backward along the horizontal coordinate axis to obtain the first sampling interval; wherein β is a preset extension length; the area not covered by the first sampling interval in the horizontal coordinate axis is traversed, and defined as the second sampling interval; The extracted image group generation module is connected to the sampling interval generation module, and is used to uniformly extract the first endoscopic static image signal to the Nth endoscopic static image signal according to a preset first extraction ratio σ1 in the first sampling interval to obtain a first extracted image; in the second sampling interval, uniformly extract the first endoscopic static image signal to the Nth endoscopic static image signal according to a preset second extraction ratio σ2 to obtain a second extracted image; and combine the first extracted image and the second extracted image to obtain an extracted image group.

Citation Information

Patent Citations

  • Terminal and abbreviated video creation method

    CN106791480A

  • New face recognition big data training system

    CN113627524A

  • Medical video real-time compression method and system based on deep learning

    CN117061757A

  • Adaptive control method and device of endoscope, endoscope and storage medium

    CN117918769A

  • Image processing method of capsule endoscope, capsule endoscope apparatus, receiver interworking with capsule endoscope, image processing method of the receiver, and capsule endoscope system

    KR1020180024717A