An endoscopic video wireless transmission method and system

By segmenting, aggregating and timing mutation algorithms of the endoscopic video signals, marker sequences are generated and sampling and extraction are solved, and the data carrying capacity in wireless transmission of endoscopic videos is insufficient, achieving efficient and flexible data transmission.

CN119520728BActive Publication Date: 2025-07-11GUANGDONG HEXIN MEDICAL TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing endoscopic video wireless transmission method has problems such as insufficient data carrying capacity and high transmission link pressure when transmitting high pixel data, and is expensive and not suitable for large-scale promotion.

Method used

By preprocessing the endoscopic video signal, including segmentation, aggregation and timing mutation algorithm calculation, the marker sequence is generated, and sampling and extraction are performed and wireless transmission is performed to reduce data volume and noise interference.

Benefits of technology

It effectively reduces the data pressure of the wireless transmission link, improves the flexibility and stability of signal transmission, and reduces data noise interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520728B_ABST
    Figure CN119520728B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of wireless data transmission, and specifically to an endoscopic video wireless transmission method and system. The method includes inserting an endoscope into a body duct to be examined at a preset advancing speed, reading the static image signals of the endoscope to obtain the first to the Nth endoscopic static image signals, then equally dividing them respectively to obtain the first to the Nth image grid groups, and aggregating them to obtain the first to the Nth grid color value groups; calculating a flag sequence by using a time series mutation algorithm; sampling and extracting the first to the Nth endoscopic static image signals according to the flag sequence, and transmitting them to a receiving end by wireless transmission to combine and obtain an endoscopic received video. By preprocessing the data at the video source end of the endoscope, the present invention reduces the data pressure on the wireless transmission link.
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 particularly to an endoscopic video wireless transmission method and system. Background Art

[0002] An endoscope is used to be inserted into a body duct to be examined for image shooting, and transmits the image video information to the examiner through a local network. However, with the development of telemedicine technology, the examiner and the endoscopic examination location are often far apart, and it is difficult to transmit video information through the local network. Therefore, transmitting the endoscopic video wirelessly to the examiner has become a new development direction for endoscopic video transmission. However, since endoscopic videos often have high pixels and large data volumes, problems such as insufficient data carrying capacity will occur during wireless signal transmission. Especially in the centralized transmission mode, transmitting a large amount of endoscopic video data to the video receiving end will bring great operating pressure to the transmission link. Therefore, how to reduce the pressure of transmitting a large amount of data has become a technical problem to be solved.

[0003] Existing methods mainly achieve this by optimizing the transmission path of the wireless signal and increasing the signal emission intensity. However, these methods have the following disadvantages: First, since they involve optimizing the transmission link and modifying the signal emission equipment, the cost is high and they are not suitable for large-scale promotion. Second, they limit the flexibility of the configuration of the endoscopic video transmitting end.

[0004] To overcome the disadvantages of the above technical solutions, it is necessary to start from the data at the endoscopic video source end, perform adaptive distributed preprocessing of the source end data through big data algorithms, thereby reducing the data pressure on the wireless transmission link and improving the flexibility of signal transmission at the same time. Summary of the Invention

[0005] (1) Technical Problems to be Solved

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

[0007] (2) Technical Solutions

[0008] To achieve the above purpose, the present invention provides an endoscopic video wireless transmission method, and the method includes the following steps:

[0009] S1, insert the endoscope into the body duct to be examined at a preset advancing speed, and read the endoscopic static image signal within a preset sampling interval time in a preset sampling section, and sequentially number the endoscopic static image signals to obtain the first endoscopic static image signal to the Nth endoscopic static image signal; where N represents the number of endoscopic static image signal numbers.

[0010] S2, equally divide the first endoscopic static image signal to the Nth endoscopic static image signal according to the preset horizontal division quantity h1 and vertical division quantity h2, to obtain the first image grid group to the Nth image grid group; calculate the pixel color values within the first image grid group to the Nth image grid group, and perform aggregation 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, use the time series mutation algorithm to calculate the time series mutation quantity, to obtain the flag sequence.

[0012] S4, sample and extract the first endoscopic static image signal to the Nth endoscopic static image signal according to the flag sequence, to obtain the extracted image group; transmit the extracted image group to the receiving end by means of wireless transmission, to obtain the received image group; combine the received image group to obtain the endoscopic received video.

[0013] Further, the method for calculating the pixel color values within the first image grid group to the Nth image grid group and performing aggregation to obtain the first grid color value group to the Nth grid color value group includes:

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

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

[0016] Calculate the RGB color values of the M pixel points to obtain the R value, G value, and B value of the M pixel points; perform encoding on the R value, G value, and B value of the M pixel points 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 ranging from 1 to N, representing the endoscopic static image signal number, i2 is an integer variable with a value ranging from 1 to ω1, representing the pixel horizontal number, i3 is an integer variable with a value ranging from 1 to ω2, representing the pixel vertical number, R(i1, i2, i3) represents the R value of the pixel point corresponding to the endoscopic static image signal number i1, pixel horizontal number i2, and pixel vertical number i3, G(i1, i2, i3) represents the G value of the pixel point corresponding to the endoscopic static image signal number i1, pixel horizontal number i2, and pixel vertical number i3, and B(i1, i2, i3) represents the B value of the pixel point corresponding to the endoscopic static image signal number i1, pixel horizontal number i2, and pixel vertical number i3.

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

[0018]

[0019] Among them, represents the ceiling symbol.

[0020] Search for the R value corresponding to the pixel points with the same values of i1, j1, and j2 in the grid pixel numbers, and take the average value to obtain Search for the G value corresponding to the pixel points with the same values of i1, j1, and j2 in the grid pixel numbers, and take the average value to obtain Search for the B value corresponding to the pixel points with the same values of i1, j1, and j2 in the grid pixel numbers, and take the average value to obtain Combine to obtain the first grid color value group to the Nth grid color value group.

[0021] Furthermore, the method for calculating the time series mutation amount according to the first grid color value group to the Nth grid color value group by using the time series mutation algorithm to obtain the flag sequence includes:

[0022] 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 for the first mutation sequence is:

[0023]

[0024] Among them, |·| represents the absolute value symbol; θ 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] Calculate the flag sequence according to the first mutation sequence by using the mutation transformation algorithm.

[0026] Furthermore, the method for calculating the flag sequence according to the first mutation sequence by using the mutation transformation algorithm includes:

[0027] Calculate the flag sequence G(i1) according to the first mutation sequence by using the mutation transformation formula; the mutation transformation formula is:

[0028]

[0029] Among them, μ1 is a preset first threshold value.

[0030] Further, the method for sampling and extracting the first endoscopic static image signal to the Nth endoscopic static image signal according to the flag sequence to obtain an extraction image group includes:

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

[0032] Arrange the first endoscopic static image signal to the Nth endoscopic static image signal on the horizontal coordinate axis. The horizontal axis of the horizontal coordinate axis is the endoscopic 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 use the sampling segmentation points as the center, and extend forward and backward along the horizontal coordinate axis to form an interval with a length of β to combine to obtain a first sampling interval; where β is a preset extension length; traverse the area not covered by the first sampling interval in the horizontal coordinate axis and define it as the second sampling interval.

[0033] In the first sampling interval, uniformly extract the first endoscopic static image signal to the Nth endoscopic static image signal according to a preset first extraction ratio σ1 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; combine the first extracted image and the second extracted image to obtain an extraction image group.

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

[0035] An endoscopic static image signal forming module, configured to insert an endoscope into a body duct to be examined at a preset advancing speed, read the endoscopic static image signal at a preset first sampling interval time, and sequentially number the endoscopic static image signals to obtain the first endoscopic static image signal to the Nth endoscopic static image signal; where N represents the number of endoscopic static image signal numbers.

[0036] The grid color value group calculation module is connected to the endoscopic static image signal formation module and is used to equally divide the first endoscopic static image signal to the Nth endoscopic static image signal according to the preset horizontal segmentation quantity h1 and vertical segmentation quantity h2, so as 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 perform aggregation to obtain the first grid color value group to the Nth grid color value group.

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

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

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

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

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

[0042] A color value calculation module, connected to the pixel point acquisition module, is used to calculate the RGB color values of M pixel points to obtain the R value, G value, and B value of the M pixel points; encode the R value, G value, and B value of the M pixel points 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 range from 1 to N, representing the endoscope static image signal number, i2 is an integer variable with a value range from 1 to ω1, representing the pixel horizontal number, i3 is an integer variable with a value range from 1 to ω2, representing the pixel vertical number, R(i1, i2, i3) represents the R value of the pixel point corresponding to the endoscope static image signal number i1, pixel horizontal number i2, and pixel vertical number i3, G(i1, i2, i3) represents the G value of the pixel point corresponding to the endoscope static image signal number i1, pixel horizontal number i2, and pixel vertical number i3, and B(i1, i2, i3) represents the B value of the pixel point corresponding to the endoscope static image signal number i1, pixel horizontal number i2, and pixel vertical number i3.

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

[0044]

[0045] where, represents the ceiling symbol.

[0046] A grid color value group generation module, connected to the pixel point dispersion module, is used to search for the R value corresponding to the pixel points with the same values of i1, j1, and j2 in the grid pixel numbers and take the average value to obtain search for the G value corresponding to the pixel points with the same values of i1, j1, and j2 in the grid pixel numbers and take the average value to obtain search for the B value corresponding to the pixel points with the same values of i1, j1, and j2 in the grid pixel numbers and take the average value to obtain Combine to generate the first grid color value group to the Nth grid color value group.

[0047] Further, 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) based on the first raster color value group to the Nth raster color value group; the calculation formula of the first mutation sequence is:

[0049]

[0050] where, |·| represents the absolute value symbol; θ 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 flag sequence generation module is connected to the first mutation sequence calculation module and is used to calculate the flag sequence according to the first mutation sequence by using the mutation transformation algorithm.

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

[0053] The mutation transformation module is used to calculate the flag sequence G(i1) according to the first mutation sequence by using the mutation transformation formula; the mutation transformation formula is:

[0054]

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

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

[0057] The sampling array cloning module is used to sequentially search for the values of G(1) to G(N), traverse i1 = 1 to i1 = N, and clone all the 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 endoscopic static image signal to the Nth endoscopic static image signal on the horizontal coordinate axis. The horizontal axis of the horizontal coordinate axis is the endoscopic 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, with the sampling segmentation points as the center, extend forward and backward along the horizontal coordinate axis to form an interval with a length of β, and combine to obtain the first sampling interval; where β is a preset extension length; traverse the area not covered by the first sampling interval in the horizontal coordinate axis and define it as the second sampling interval.

[0059] An extraction image group generation module, connected to the sampling interval generation module, is used to uniformly extract the first endoscope static image signal to the Nth endoscope static image signal in the first sampling interval according to a preset first extraction ratio σ1 to obtain a first extracted image; in the second sampling interval, uniformly extract the first endoscope static image signal to the Nth endoscope 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 extraction image group.

[0060] (3) Beneficial effects

[0061] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0062] 1. By converting the endoscope static image signal into the first grid color value group to the Nth grid color value group, and then calculating the time series mutation amount to obtain a flag sequence to locate the sampling segmentation point. Then, different extraction ratios are used to extract and transmit the endoscope static image signal 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 on 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. Description of the drawings

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

[0065] Figure 2 It is a schematic diagram of the module composition of a system for wireless transmission of endoscope video according to Embodiment 2 of the present invention. Detailed implementation manners

[0066] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0067] Before giving examples, it is necessary to elaborate on the application scenario of the inventive concept of the present invention. The present invention is applied to the wireless transmission of medical endoscope video.

[0068] Embodiment 1: As Figure 1As shown in the figure, this embodiment provides an endoscopic video wireless transmission method, and the method includes the following steps:

[0069] S1. Insert the endoscope into the body duct to be examined at a preset advancing speed, and read the endoscopic static image signals within a preset sampling interval period in a preset sampling interval segment, and sequentially number the endoscopic static image signals to obtain the first endoscopic static image signal to the Nth endoscopic static image signal; where N represents the number of endoscopic static image signal numbers.

[0070] Exemplarily, the preset advancing speed is 5 mm / s, the preset first sampling interval time is 0.025 s, and the preset sampling interval segment is 30 s, that is, insert the endoscope into the body duct to be examined at a speed of 5 mm / s, and take image snapshots in the body duct within 30 s at intervals of 0.025 s through the photographing function of the endoscope, and number them to obtain the first endoscopic static image signal to the 1200th endoscopic 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 respectively to obtain the first image grid group to the Nth image grid group; calculate the pixel point color values within the first image grid group to the Nth image grid group, and perform aggregation to obtain the first grid color value group to the Nth grid color value group.

[0072] Exemplarily, the preset horizontal division number h1 is 96, and the vertical division number h2 is 54. Divide the first endoscopic static image signal to the 1200th endoscopic static image signal equally to obtain the first image grid group to the 1200th image grid group. Calculate the pixel point color values within the first image grid group to the 1200th image grid group, and perform aggregation to obtain the first grid color value group to the 1200th grid color value group.

[0073] S3. According to the first grid color value group to the Nth grid color value group, use the time series mutation algorithm to calculate the time series mutation amount to obtain a flag sequence.

[0074] S4. Sample and extract the first endoscopic static image signal to the Nth endoscopic static image signal according to the flag 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; combine the received image group to obtain an endoscopic received video.

[0075] Further, the method for calculating the pixel point color values within the first image grid group to the Nth image grid group and performing aggregation to obtain the first grid color value group to the Nth grid color value group includes:

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

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

[0078] Exemplarily, the pixel width ω1 of the first endoscopic static image signal to the 1200th endoscopic static image signal is 3840, and the pixel height ω2 is 2160. Performing pixel decomposition on the first endoscopic static image signal to the 1200th endoscopic static image signal obtains 9953280000 pixel points.

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

[0080] Exemplarily, the RGB color value is an internationally common color standard system that decomposes each color into three-dimensional numerical values of R value, G value, and B value. The R values, G values, and B values of 9953280000 pixel points can be obtained through the Photoshop image processing software. The R values, G values, and B values of 9953280000 pixel points are encoded to obtain three-dimensional numbers. 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 values from 1 to 1200, i2 is an integer variable with values from 1 to 3840, and i3 is an integer variable with values from 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 point corresponding to the endoscopic 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 within the range of 0 to 255.

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

[0082]

[0083] Among them, represents the ceiling symbol.

[0084] Exemplarily, 9953280000 pixel points are scattered into 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 point 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, j1 = 1 and j2 = 1 are calculated, so the grid pixel number of the pixel point 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 values of i1, j1, and j2 in the grid pixel number and take the average value to obtain Search for the G values corresponding to the pixel points where the values of i1, j1, and j2 are the same in the raster pixel numbers, and obtain the average value Search for the B values corresponding to the pixel points where the values of i1, j1, and j2 are the same in the raster pixel numbers, and obtain the average value Combine to obtain the first raster color value group to the Nth raster color value group.

[0086] Exemplarily, search for the R value corresponding to the pixel point where i1 = 1, j1 = 1, and j2 = 1 in the raster pixel numbers, and obtain the average value Search for the G value corresponding to the pixel point where i1 = 1, j1 = 1, and j2 = 1 in the raster pixel numbers, and obtain the average value Search for the B value corresponding to the pixel point where i1 = 1, j1 = 1, and j2 = 1 in the raster pixel numbers, and obtain the average value Similarly, it can be obtained to to to Combine to to to to obtain the first raster color value group. Combine to to to to obtain the second raster color value group. Similarly, the third raster color value group to the 1200th raster color value group can be obtained.

[0087] Furthermore, the method for calculating the time series mutation amount according to the first raster color value group to the Nth raster color value group by using the time series mutation algorithm to obtain the flag sequence includes:

[0088] Calculate the first mutation sequence T(i1, j1, j2) according to the first raster color value group to the Nth raster color value group; the calculation formula of the first mutation sequence is:

[0089]

[0090] where, |·| represents the absolute value symbol; θ 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, taking two sets of parameters i1 = 1, j1 = 1, j2 = 1 and i1 = 2, j1 = 1, j2 = 1 as examples, substitute them 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] The flag sequence is calculated by using a mutation transformation algorithm according to the first mutation sequence.

[0095] Further, the method for calculating the flag sequence by using the mutation transformation algorithm according to the first mutation sequence includes:

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

[0097]

[0098] where μ1 is a preset first threshold.

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

[0100] Further, the method for sampling and extracting the first endoscopic static image signal to the Nth endoscopic static image signal according to the flag sequence to obtain an 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 the i1 values corresponding to G(i1) = 1 to the sampling array.

[0102] Arrange the first endoscopic static image signal to the Nth endoscopic static image signal on the horizontal coordinate axis. The horizontal axis of the horizontal coordinate axis is the endoscopic 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 extend forward and backward along the horizontal coordinate axis with a length of β centered on the sampling segmentation points to form a first sampling interval; where β is a preset extension length; traverse the area not covered by the first sampling interval in the horizontal coordinate axis and define it as the second sampling interval.

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

[0104] Exemplarily, traverse G(1) to G(1200), clone the i1 values corresponding to all 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 984 985 986]. Therefore, 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. Preset β = 21, and respectively extend it into an interval with a length of 21 along the horizontal coordinate axis before and after with the sampling segmentation point as the center. Taking the sampling segmentation point 187 as an example, extend it 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 to extend all sampling segmentation points, and finally combine to obtain the first sampling interval as 177 - 211, 972 - 996. Therefore, the second sampling interval is obtained as 1 - 176, 212 - 971, 997 - 1200. In the first sampling interval, the first endoscopic static image signal to the 1200th endoscopic static image signal are uniformly sampled according to a preset first sampling ratio σ1 = 100% to obtain a first sampled image. That is, sample the 177th endoscopic static image signal to the 211th endoscopic static image signal, the 972nd endoscopic static image signal to the 996th endoscopic static image signal to obtain a first sampled image. In the second sampling interval, the first endoscopic static image signal to the Nth endoscopic static image signal are uniformly sampled according to a preset second sampling ratio σ2 = 50% to obtain a second sampled image. That is, sample the first endoscopic static image signal, the third endoscopic static image signal, the fifth endoscopic static image signal... the 175th endoscopic static image signal, the 212th endoscopic static image signal, the 214th endoscopic static image signal... the 970th endoscopic static image signal, the 977th endoscopic static image signal, the 979th endoscopic static image signal... the 1199th endoscopic static image signal to obtain a second sampled image. The first sampled image and the second sampled image are combined to obtain a sampled image group.

[0105] Embodiment 2: Based on the same inventive concept, as Figure 2 shown, this embodiment also provides an endoscopic video wireless transmission system, and the system includes:

[0106] An endoscopic static image signal forming module, configured to insert an endoscope into a body duct to be examined at a preset advancing speed, read endoscopic static image signals at a preset first sampling interval time, number the endoscopic static image signals in sequence, and obtain a first endoscopic static image signal to an Nth endoscopic static image signal; where N represents the number of endoscopic static image signal numbers.

[0107] A grid color value group calculation module, connected to the endoscopic static image signal forming module, configured to equally divide the first endoscopic static image signal to the Nth endoscopic static image signal according to a preset horizontal segmentation number h1 and a preset vertical segmentation number h2 respectively, to obtain a first image grid group to an Nth image grid group; calculate the pixel color values within the first image grid group to the Nth image grid group, and perform aggregation to obtain a first grid color value group to an Nth grid color value group.

[0108] A flag sequence calculation module, connected to the grid color value group calculation module, configured to perform a time series mutation amount calculation on the basis of the first grid color value group to the Nth grid color value group by using a time series mutation algorithm, to obtain a flag sequence.

[0109] An image extraction and transmission module, connected to the flag sequence calculation module, configured to sample and extract the first endoscopic static image signal to the Nth endoscopic static image signal according to the flag sequence, to obtain an extraction image group; transmit the extraction image group to a receiving end by wireless transmission to obtain a received image group; and combine the received image group to obtain an endoscopic received video.

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

[0111] A pixel point acquisition module, configured to acquire a pixel width ω1 and a pixel height ω2 of the first endoscopic static image signal to the Nth endoscopic static image signal; perform pixel decomposition on the first endoscopic static image signal to the Nth endoscopic static image signal to obtain M pixel points; where the calculation formula of M is:

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

[0113] A color value calculation module, connected to the pixel acquisition module, for calculating the RGB color values of M pixels to obtain the R values, G values, and B values of the M pixels; encoding the R values, G values, and B values 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 values from 1 to N, representing the endoscope static image signal number, i2 is an integer variable with values from 1 to ω1, representing the pixel horizontal number, i3 is an integer variable with values from 1 to ω2, representing the pixel vertical number, R(i1, i2, i3) represents the R value of the pixel corresponding to the endoscope static image signal number i1, pixel horizontal number i2, and pixel vertical number i3, G(i1, i2, i3) represents the G value of the pixel corresponding to the endoscope static image signal number i1, pixel horizontal number i2, and pixel vertical number i3, and B(i1, i2, i3) represents the B value of the pixel corresponding to the endoscope static image signal number i1, pixel horizontal number i2, and pixel vertical number i3.

[0114] A pixel dispersion module, connected to the color value calculation module, for dispersing M pixels into the first image grid group to the Nth image grid group according to the three-dimensional number to obtain grid pixel numbers; the grid pixel numbers are expressed as Grid(i1, j1, j2)=[R(i1, j1, j2)G(i1, j1, j2)B(i1, j1, j2)], where j1 represents the grid horizontal number and j2 represents the grid vertical number; the calculation formulas for j1 and j2 are:

[0115]

[0116] Where, represents the ceiling symbol.

[0117] A grid color value group generation module, connected to the pixel dispersion module, for searching for the R values corresponding to the pixels with the same i1, j1, and j2 values in the grid pixel numbers and taking the average value to obtain Searching for the G values corresponding to the pixels with the same i1, j1, and j2 values in the grid pixel numbers and taking the average value to obtain Searching for the B values corresponding to the pixels with the same i1, j1, and j2 values in the grid pixel numbers and taking the average value to obtain Combining to obtain the first grid color value group to the Nth grid color value group.

[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 raster color value group to the Nth raster color value group; the calculation formula of the first mutation sequence is:

[0120]

[0121] where |·| represents the absolute value symbol; θ 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 flag sequence generation module is connected to the first mutation sequence calculation module and is used to calculate the flag sequence according to the first mutation sequence by using the mutation transformation algorithm.

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

[0124] The mutation transformation module is used to calculate the flag sequence G(i1) according to the first mutation sequence by using the mutation transformation formula; the mutation transformation formula is:

[0125]

[0126] where μ1 is a preset first threshold.

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

[0128] The sampling array cloning module is used to sequentially search for the values of G(1) to G(N), traverse i1 = 1 to i1 = N, and clone all the 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 endoscopic static image signal to the Nth endoscopic static image signal on the horizontal coordinate axis. The horizontal axis of the horizontal coordinate axis is the endoscopic 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, with the sampling segmentation points as the center, extend forward and backward along the horizontal coordinate axis to form an interval with a length of β, and combine to obtain the first sampling interval; where β is a preset extension length; traverse the area not covered by the first sampling interval in the horizontal coordinate axis and define it as the second sampling interval.

[0130] The extraction image group generation module, connected to the sampling interval generation module, is used to uniformly extract the first endoscope static image signal to the Nth endoscope static image signal in the first sampling interval according to a preset first extraction ratio σ1 to obtain a first extracted image; in the second sampling interval, uniformly extract the first endoscope static image signal to the Nth endoscope 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 extraction image group.

[0131] It should be noted that for the system in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to 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 foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A wireless transmission method for endoscopic video, characterized in that, The method includes the following steps: S1. Insert the endoscope into the body duct to be examined at a preset advancing speed, and read the static image signal of the endoscope within a preset sampling interval in a preset sampling section, and sequentially number the static image signals of the endoscope to obtain the first static image signal of the endoscope to the Nth static image signal of the endoscope; where N represents the number of static image signal numbers of the endoscope. S2. Divide the first static image signal of the endoscope to the Nth static image signal of the endoscope into equal parts according to a preset horizontal division number h1 and a preset vertical division number h2 respectively to obtain the first image grid group to the Nth image grid group; calculate the pixel color values within the first image grid group to the Nth image grid group, and perform aggregation 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, use the time series mutation algorithm to calculate the time series mutation amount to obtain a flag sequence. S4. Sample and extract the first static image signal of the endoscope to the Nth static image signal of the endoscope according to the flag 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; combine the received image group to obtain an endoscope received video. The method for calculating the pixel color values within the first image grid group to the Nth image grid group and performing aggregation to obtain the first grid color value group to the Nth grid color value group includes: Obtain the pixel width ω1 and pixel height ω2 of the first static image signal of the endoscope to the Nth static image signal of the endoscope; perform pixel decomposition on the first static image signal of the endoscope to the Nth static image signal of the endoscope to obtain M pixel points; where the calculation formula of M is: M = N×ω1×ω2; Calculate the RGB color values of the M pixel points to obtain the R value, G value and B value of the M pixel points; encode the R value, G value and B value of the M pixel points 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 from 1 to N, representing the static image signal number of the endoscope, i2 is an integer variable with a value from 1 to ω1, representing the pixel horizontal number, i3 is an integer variable with a value from 1 to ω2, representing the pixel vertical number, R(i1, i2, i3) represents the R value of the pixel point corresponding to the static image signal number of the endoscope being i1, the pixel horizontal number being i2, and the pixel vertical number being i3, G(i1, i2, i3) represents the G value of the pixel point corresponding to the static image signal number of the endoscope being i1, the pixel horizontal number being i2, and the pixel vertical number being i3, and B(i1, i2, i3) represents the B value of the pixel point corresponding to the static image signal number of the endoscope being i1, the pixel horizontal number being i2, and the pixel vertical number being i3. Scatter M pixel points into the first image grid group to the Nth image grid group according to the three-dimensional numbering to obtain grid pixel numbers; the grid pixel numbers are expressed as Grid(i1, j1, j2) = R(i1, j1, j2)G(i1, j1, j2)B(i1, j1, j2), where j1 represents the horizontal grid number and j2 represents the vertical grid number; the calculation formulas for j1 and j2 are: Among them, represents the ceiling symbol; Search for the R values corresponding to the pixel points where the values of i1, j1, and j2 in the raster pixel numbers are the same, and obtain the average value Search for the G values corresponding to the pixel points where the values of i1, j1, and j2 in the raster pixel numbers are the same, and obtain the average value Search for the B values corresponding to the pixel points where the values of i1, j1, and j2 in the raster pixel numbers are the same, and obtain the average value Combine to obtain the first raster color value group to the Nth raster color value group; The method for calculating the time series mutation amount according to the first grid color value group to the Nth grid color value group by using the time series mutation algorithm to obtain the flag sequence includes: 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 for the first mutation sequence is: Where, |·| represents the absolute value symbol; θ 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; Calculate the flag sequence according to the first mutation sequence by using the mutation transformation algorithm; The method for calculating the flag sequence according to the first mutation sequence by using the mutation transformation algorithm includes: Calculate the flag sequence G(i1) according to the first mutation sequence by using the mutation transformation formula; the mutation transformation formula is: Where, μ1 is a preset first threshold.

2. The endoscopic video wireless transmission method according to claim 1, wherein The method for sampling and extracting the first endoscopic static image signal to the Nth endoscopic 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 the i1 values corresponding to G(i1) = 1 to the sampling array; Arrange the first endoscopic static image signal to the Nth endoscopic static image signal on the horizontal coordinate axis. The horizontal axis of the horizontal coordinate axis is the endoscopic 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 extend forward and backward along the horizontal coordinate axis with a length of β centered on the sampling segmentation points to form a first sampling interval; where β is a preset extension length; traverse the area not covered by the first sampling interval in the horizontal coordinate axis and define it as the second sampling interval; In the first sampling interval, uniformly extract the first endoscopic static image signal to the Nth endoscopic static image signal according to a preset first extraction ratio σ1 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; combine the first extracted image and the second extracted image to obtain the extracted image group.

3. An endoscopic video wireless transmission system, characterized in that, The system includes: An endoscope static image signal forming module is used to insert the endoscope into the body duct to be examined at a preset advancing speed, read the endoscope static image signal at a preset first sampling interval time, number the endoscope static image signals in sequence, and obtain the first endoscope static image signal to the Nth endoscope static image signal; where N represents the number of endoscope static image signal numbers. A 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 a preset horizontal segmentation number h1 and a preset vertical segmentation number h2 respectively, to obtain the first image grid group to the Nth image grid group; calculate the pixel point color values within the first image grid group to the Nth image grid group, and perform aggregation to obtain the first grid color value group to the Nth grid color value group. A flag sequence calculation module is connected to the grid color value group calculation module and is used to calculate the temporal mutation amount according to the first grid color value group to the Nth grid color value group by using the temporal mutation algorithm to obtain the flag sequence. An image extraction and transmission module is connected to the flag 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 flag sequence to obtain an extraction image group; transmit the extraction image group to the receiving end by wireless transmission to obtain a received image group; combine the received image group to obtain an endoscope received video. The grid color value group calculation module includes: A pixel point acquisition module is used to acquire the pixel width ω1 and pixel height ω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; where the calculation formula of M is: M = N × ω1 × ω2; A color value calculation module is connected to the pixel point acquisition module and is used to calculate the RGB color values of M pixel points to obtain the R values, G values, and B values of M pixel points; encode the R values, G values, and B values of M pixel points 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 values from 1 to N, representing the endoscope static image signal number, i2 is an integer variable with values from 1 to ω1, representing the pixel horizontal number, i3 is an integer variable with values from 1 to ω2, representing the pixel vertical number, R(i1, i2, i3) represents the R value of the pixel point corresponding to the endoscope static image signal number i1, pixel horizontal number i2, and pixel vertical number i3, G(i1, i2, i3) represents the G value of the pixel point corresponding to the endoscope static image signal number i1, pixel horizontal number i2, and pixel vertical number i3, and B(i1, i2, i3) represents the B value of the pixel point corresponding to the endoscope static image signal number i1, pixel horizontal number i2, and pixel vertical number i3. A pixel point scattering module, connected to the color value calculation module, is used to scatter M pixel points into the first image grid group to the Nth image grid group according to the three-dimensional number to obtain grid pixel numbers; the grid pixel numbers are represented as Grid(i1, j1, j2) = [R(i1, j1, j2)G(i1, j1, j2)B(i1, j1, j2)], where j1 represents the horizontal grid number and j2 represents the vertical grid number; the calculation formulas for j1 and j2 are: Among them, represents the ceiling symbol; The raster color value group generation module, connected to the pixel point dispersion module, is used to search for the R values corresponding to the pixel points with the same i1, j1, and j2 values in the raster pixel numbers, and obtain the average value to get Search for the G values corresponding to the pixel points with the same i1, j1, and j2 values in the raster pixel numbers, and obtain the average value to get Search for the B values corresponding to the pixel points with the same i1, j1, and j2 values in the raster pixel numbers, and obtain the average value to get Combine to obtain the first raster color value group to the Nth raster color value group; The flag sequence calculation module includes: A first mutation sequence calculation module, 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 for the first mutation sequence is: Where, |·| represents the absolute value symbol; θ 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; A flag sequence generation module, connected to the first mutation sequence calculation module, is used to calculate the flag sequence using the mutation transformation algorithm according to the first mutation sequence; The flag sequence generation module includes: A mutation transformation module, used to calculate the flag sequence G(i1) according to the first mutation sequence using the mutation transformation formula; the mutation transformation formula is: Where, μ1 is a preset first threshold.

4. The endoscopic video wireless transmission system according to claim 3, wherein, The image extraction and transmission module includes: A sampling array cloning module, used to sequentially search for the values of G(1) to G(N), traverse i1 = 1 to i1 = N, and clone all the i1 values corresponding to G(i1) = 1 to the sampling array; A sampling interval generation module, connected to the sampling array cloning module, is used to arrange the first endoscope static image signal to the Nth endoscope static image signal on the horizontal coordinate axis. 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; scatter the elements in the sampling array on the horizontal coordinate axis to obtain sampling segmentation points; respectively extend β in length forward and backward along the horizontal coordinate axis with the sampling segmentation points as the center to combine to obtain the first sampling interval; where β is a preset extension length; traverse the area not covered by the first sampling interval in the horizontal coordinate axis and define it as the second sampling interval; An extracted image group generation module, connected to the sampling interval generation module, is used to uniformly extract the first endoscope static image signal to the Nth endoscope static image signal in the first sampling interval according to a preset first extraction ratio σ1 to obtain the first extracted image; uniformly extract the first endoscope static image signal to the Nth endoscope static image signal in the second sampling interval according to a preset second extraction ratio σ2 to obtain the second extracted image; 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

  • 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