Image processing system and capsule endoscope

The image processing system performs HSV conversion and biometric information extraction on the data collected by capsule endoscopy, which solves the problem of reduced image clarity and loss of feature information during the transmission process, and improves the accuracy of lesion identification and the quality of detection results.

CN113920041BActive Publication Date: 2024-09-27SHENZHEN JIFU MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111121530.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-24
Publication Date
2024-09-27
Estimated Expiration
2041-09-24

AI Technical Summary

Technical Problem

Due to the limitations of radio frequency bandwidth and battery power during the transmission process of capsule endoscopes, the clarity of the original image data is reduced after high compression, and important biometric information is lost, which affects the accuracy of lesion identification and diagnosis.

Method used

The image processing system is used to perform HSV conversion, biometric information extraction and compression processing on the image data collected by the capsule endoscope through the image acquisition module and image processing module, and decompression and enhanced fusion processing are performed on the terminal device to ensure that the transmitted data contains Important biometric information, image edges and textures are clear.

Benefits of technology

It improves the accuracy of capsule endoscope detection results, prevents high-frequency information destruction and biometric information loss, and ensures high compression rate and real-time performance of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113920041B
    Figure CN113920041B
Patent Text Reader

Abstract

The present invention discloses an image processing system, including a capsule endoscope and a terminal device. The image acquisition module of the capsule endoscope acquires first image data of a target area to obtain a first RGB image matrix S1, converts the S1 into an HSV space to obtain a first HSV image matrix N1, and obtains V in the N1. channel channel data to obtain first channel data MV; collect the second image data of the target area to obtain a second RGB image matrix S2, extract the biometric information of the matrix S2, and generate a biometric image matrix M; the image processing module of the capsule endoscope compresses the S1, the MV and the M and transmits them outside the body; the terminal device enhances and fuses the decompressed first RGB image matrix S1″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″ to obtain an RGB feature fusion image, which is clear and contains biometric information, is conducive to lesion identification and diagnosis, and improves the accuracy of capsule endoscope detection results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical devices, and in particular to an image processing system and a capsule endoscope. Background Art

[0002] The original image data collected by the capsule endoscope is transmitted to the body due to the limitation of radio frequency transmission bandwidth and battery power. Before transmission, the original image data needs to be highly compressed and then transmitted to the body through the radio frequency module. After that, the original image data is restored by decompression and color enhancement processing by the terminal device to obtain the restored image data. After the above processing, the restored image data has lower clarity and image distortion compared with the original image data, especially the loss of important biometric information, which affects the identification and diagnosis of lesions, and further affects the accuracy of the detection results of the capsule endoscope. Summary of the invention

[0003] In order to solve at least one of the above-mentioned technical problems existing in the prior art, an embodiment of the present invention provides an image processing system and a capsule endoscope, which realizes enhanced processing of the first image data and the second image data taken by the capsule endoscope and transmitted outside the body, prevents the important biometric information in the first image data and the second image data of the target area in the body from being lost due to compression and transmission, and prevents the high-frequency information in the first image data from being destroyed due to high-power compression. The first image data and the second image data transmitted outside the body are facilitated to identify and diagnose the lesions after enhanced processing, thereby improving the accuracy of the detection results of the capsule endoscope. An embodiment of the present invention provides an image processing system, including a capsule endoscope and a terminal device, wherein the capsule endoscope includes an image acquisition module and an image processing module,

[0004] The image acquisition module acquires the first image data of the target area to obtain a first RGB image matrix S1; the image processing module converts the first RGB image matrix S1 into the HSV image space to obtain a first HSV image matrix N1, and obtains V in the first HSV image matrix N1. channel Channel data, obtaining first channel data MV;

[0005] The image acquisition module acquires second image data of the target area to obtain a second RGB image matrix S2;

[0006] The image processing module extracts each pixel RGB2 in the second RGB image matrix S2 ij The biometric information is used to generate a biometric image matrix M, where i∈(1,M), j∈(1,N), M and N are positive integers respectively;

[0007] The image processing module compresses the first RGB image matrix S1, the first channel data MV and the biometric image matrix M respectively to obtain a compressed first RGB image matrix S1′, a compressed first channel data MV′ and a compressed biometric image matrix M′;

[0008] The terminal device decompresses the compressed first RGB image matrix S1′, the compressed first channel data MV′ and the compressed biometric image matrix M′ respectively to obtain a decompressed first RGB image matrix S1″, a decompressed first channel data MV″ and a decompressed biometric image matrix M″;

[0009] The terminal device performs enhanced fusion processing on the decompressed first RGB image matrix S1″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″ to obtain an RGB feature fusion image S target .

[0010] In some embodiments, the capsule endoscope includes a lighting module, and the image acquisition module acquires the second image data of the target area, and before obtaining the second RGB image matrix S2, the method includes:

[0011] The lighting module provides a light source L with a preset light source component ratio. define .

[0012] In some embodiments, the image acquisition module acquires the second image data of the target area to obtain the second RGB image matrix S2, including:

[0013] The image acquisition module is configured to capture the light source L of the preset light source component ratio. define Under the present invention, the AWB (automatic white balance) module and the CCM (color correction matrix) module are turned off, and the second image data of the target area is collected to obtain the second RGB image matrix S2.

[0014] In some embodiments, the image processing module extracts each pixel RGB2 in the second RGB image matrix S2 ij The biometric information of the generated biometric image matrix M includes:

[0015] The image processing module uses a biometric index formula for each pixel in the second RGB image matrix S2 to obtain a biometric value of each pixel and generate an initial biometric image matrix M1;

[0016] The image processing module performs an erosion operation on the initial biometric image matrix M1, and when the biometric morphology disappears after N iterations, an eroded image matrix M2 is obtained;

[0017] The image processing module performs an XOR operation on the initial biometric image matrix M1 and the eroded image matrix M2 to obtain the biometric image matrix M.

[0018] In some embodiments, the image processing module performs an erosion operation on the initial biometric image matrix M1. When the biometric morphology disappears after N iterations, obtaining the eroded image matrix M2 further includes:

[0019] The image processing module filters out the pixel points in the initial biometric image matrix M1 whose deviation from the mean exceeds a first preset threshold value to obtain a filtered initial biometric image matrix M1′.

[0020] In some embodiments, the image processing module performs an erosion operation on the initial biometric image matrix M1. When the biometric morphology disappears after N iterations, obtaining the eroded image matrix M2 further includes:

[0021] The image processing module performs binarization processing on the initial biometric image matrix M1 to obtain a binarized initial biometric image matrix M1″.

[0022] In some embodiments, the image processing module compresses the first RGB image matrix S1, the first channel data MV and the biometric image matrix M respectively to obtain the compressed first RGB image matrix S1′, the compressed first channel data MV′ and the compressed biometric image matrix M′, including:

[0023] The image processing module performs lossy compression processing on the first RGB image matrix S1 to obtain the compressed first RGB image matrix S1′;

[0024] The image processing module performs lossless compression processing on the first channel data MV and the biometric image matrix M to obtain the compressed first channel data MV′ and the compressed biometric image matrix M′.

[0025] In some embodiments, the image processing module performs lossless compression processing on the first channel data MV and the biometric image matrix M to obtain the compressed first channel data MV′ and the compressed biometric image matrix M′, including:

[0026] The image processing module performs dimensionality reduction processing on the first channel data MV to obtain the compressed first channel data MV′, wherein the compressed first channel data MV′ includes a first S sub-matrix S1, a first V sub-matrix V1 and a first D sub-matrix D1;

[0027] The image processing module performs dimensionality reduction processing on the biometric image matrix M to obtain the compressed biometric image matrix M′, and the compressed biometric image matrix M′ includes an S submatrix S*, a V submatrix V* and a D submatrix D*.

[0028] In some embodiments, the capsule endoscope further includes a radio frequency module, and the terminal device decompresses the compressed first RGB image matrix S1′, the compressed first channel data MV′, and the compressed biometric image matrix M′, respectively, to obtain the decompressed first RGB image matrix S1″, the decompressed first channel data MV″, and the decompressed biometric image matrix M″, and further includes:

[0029] The image processing module combines the compressed first RGB image matrix S1′, the first S sub-matrix S1, the first V sub-matrix V1, the first D sub-matrix D1, the S sub-matrix S*, the V sub-matrix V* and the D sub-matrix D* into a data packet;

[0030] The radio frequency module sends the data packet to the outside of the body;

[0031] The terminal device receives the data packet.

[0032] In some embodiments, the terminal device decompresses the compressed first RGB image matrix S1′, the compressed first channel data MV′, and the compressed biometric image matrix M′, respectively, to obtain the decompressed first RGB image matrix S1″, the decompressed first channel data MV″, and the decompressed biometric image matrix M″, including:

[0033] The terminal device decompresses the compressed first RGB image matrix S1′ to obtain the decompressed first RGB image matrix S1″;

[0034] The terminal device performs a matrix multiplication operation on the first S sub-matrix S1, the first V sub-matrix V1 and the first D sub-matrix D1 to obtain the decompressed first channel data MV″;

[0035] The terminal device performs matrix multiplication operation on the S sub-matrix S*, the V sub-matrix V* and the D sub-matrix D* to obtain the decompressed biometric image matrix M″.

[0036] In some embodiments, the terminal device performs enhanced fusion processing on the decompressed first RGB image matrix S1″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″ to obtain an RGB feature fusion image Starget include:

[0037] The terminal device converts the decompressed first RGB image S1″ into a second HSV image N2″, and obtains HSV in the second HSV image N2″. channel , S channel 、V channel Channel data, obtain H channel data H2″, S channel data S2″, V channel data V2″;

[0038] The terminal device performs enhanced fusion processing on the V channel data V2″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″ to obtain an enhanced fusion matrix V enhance The terminal device sends the H channel data H2′, the S channel data S2′ and the matrix V enhance Convert to RGB color space to obtain the RGB feature fusion image S target .

[0039] The embodiment of the present invention provides a capsule endoscope, including an image acquisition module, an image processing module and a radio frequency module.

[0040] The image acquisition module acquires the first image data of the target area to obtain a first RGB image matrix S1; the image processing module converts the first RGB image matrix S1 into the HSV image space to obtain a first HSV image matrix N1, and obtains V in the first HSV image matrix N1. channel Channel data, obtaining first channel data MV;

[0041] The image acquisition module acquires second image data of the target area to obtain a second RGB image matrix S2;

[0042] The image processing module extracts each pixel RGB2 in the second RGB image matrix S2 ij The biometric information is used to generate a biometric image matrix M, where i∈(1,M), j∈(1,N), M and N are positive integers respectively;

[0043] The image processing module compresses the first RGB image matrix S1, the first channel data MV and the biometric image matrix M respectively to obtain a compressed first RGB image matrix S1′, a compressed first channel data MV′ and a compressed biometric image matrix M′;

[0044] The radio frequency module sends the compressed first RGB image matrix S1′, the compressed first channel data MV′, and the compressed biometric image matrix M′ to the outside of the body, so that the terminal device decompresses the compressed first RGB image matrix S1′, the compressed first channel data MV′, and the compressed biometric image matrix M′, respectively, to obtain the decompressed first RGB image matrix S1″, the decompressed first channel data MV″, and the decompressed biometric image matrix M″, and the terminal device performs enhanced fusion processing on the decompressed first RGB image matrix S1″, the decompressed first channel data MV″, and the decompressed biometric image matrix M″ to obtain the RGB feature fusion image S target .

[0045] In some embodiments, the capsule endoscope includes a lighting module, and the image acquisition module acquires the second image data of the target area, and before obtaining the second RGB image matrix S2, the method includes:

[0046] The lighting module provides a light source L with a preset light source component ratio. define .

[0047] In some embodiments, the image acquisition module acquires the second image data of the target area to obtain the second RGB image matrix S2, including:

[0048] The image acquisition module is configured to capture the light source L of the preset light source component ratio. define The AWB module and the CCM module are turned off, and the second image data of the target area is collected to obtain a second RGB image matrix S2.

[0049] In some embodiments, the image processing module extracts each pixel RGB2 in the second RGB image matrix S2 ij The biometric information of the generated biometric image matrix M includes:

[0050] The image processing module uses a biometric index formula for each pixel in the second RGB image matrix S2 to obtain a biometric value of each pixel and generate an initial biometric image matrix M1;

[0051] The image processing module performs an erosion operation on the initial biometric image matrix M1, and when the biometric morphology disappears after N iterations, an eroded image matrix M2 is obtained;

[0052] The image processing module performs an XOR operation on the initial biometric image matrix M1 and the eroded image matrix M2 to obtain the biometric image matrix M.

[0053] In some embodiments, the image processing module compresses the first channel data MV and the biometric image matrix M to obtain the compressed first channel data MV′ and the compressed biometric image matrix M′, including:

[0054] The image processing module performs dimensionality reduction processing on the first channel data MV to obtain the compressed first channel data MV′, wherein the compressed first channel data MV′ includes a first S sub-matrix S1, a first V sub-matrix V1 and a first D sub-matrix D1;

[0055] The image processing module performs dimensionality reduction processing on the biometric image matrix M to obtain the compressed biometric image matrix M′, and the compressed biometric image matrix M′ includes an S submatrix S*, a V submatrix V* and a D submatrix D*.

[0056] An image processing system provided by an embodiment of the present invention collects first image data of a target area under a normal light source with a capsule endoscope to obtain a first RGB image matrix S1, converts the first RGB image matrix S1 into an HSV image space, and extracts V channel channel data, obtain the first channel data MV; in the light source L with the preset light source component ratio define The second image data of the target area is collected to obtain a second RGB image matrix S2. The first RGB image matrix S1, the first channel data MV and the second RGB image matrix S2 are processed by the image processing module of the capsule endoscope and the terminal device to obtain an RGB feature fusion image S target , realizing enhanced processing of the first image data and the second image data transmitted outside the body, preventing important biometric information in the first image data and the second image data of the target area from being lost due to compression and transmission, and preventing high-frequency information in the first image data from being destroyed due to high-multiple compression. The first image data and the second image data transmitted outside the body contain important biometric information after enhanced processing, and the image has clear edges and textures, which is conducive to the identification and diagnosis of lesions, thereby improving the accuracy of the detection results of the capsule endoscope. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The accompanying drawings are used to provide further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementation methods, they are used to explain the embodiments of the present invention, but do not constitute a limitation to the embodiments of the present invention.

[0058] Figure 1 A schematic diagram of an image processing system provided by an embodiment of the present invention;

[0059] Figure 2A schematic diagram of a capsule endoscope in another image processing system provided by an embodiment of the present invention. In the accompanying drawings:

[0060] Capsule endoscope 1, terminal device 2. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0062] like Figure 1 As shown, an embodiment of the present invention provides an image processing system, including a capsule endoscope 1 and a terminal device 2. The capsule endoscope 1 includes an image acquisition module and an image processing module. The image acquisition module acquires first image data of a target area to obtain a first RGB image matrix S1; the image processing module converts the first RGB image matrix S1 into an HSV image space to obtain a first HSV image matrix N1, and obtains V in the first HSV image matrix N1. channel channel data, obtain the first channel data MV; the image acquisition module acquires the second image data of the target area to obtain the second RGB image matrix S2; the image processing module extracts each pixel RGB2 in the second RGB image matrix S2 ij The biometric information is used to generate a biometric image matrix M, where i∈(1,M), j∈(1,N), and M and N are positive integers respectively; the image processing module compresses the first RGB image matrix S1, the first channel data MV and the biometric image matrix M respectively to obtain a compressed first RGB image matrix S1′, a compressed first channel data MV′ and a compressed biometric image matrix M′; the terminal device 2 decompresses the compressed first RGB image matrix S1′, the compressed first channel data MV′ and the compressed biometric image matrix M′ respectively to obtain a decompressed first RGB image matrix S1″, a decompressed first channel data MV″ and a decompressed biometric image matrix M″; the terminal device 2 performs enhanced fusion processing on the decompressed first RGB image matrix S1″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″ to obtain an RGB feature fusion image S target .

[0063] Specifically, the image processing system includes a capsule endoscope 1 and a terminal device 2. The terminal device 2 can be, but is not limited to, various smart phones, tablet computers, laptop computers, desktop computers, etc. The endoscope 1 includes an image acquisition module and an image processing module. The subject swallows the capsule endoscope 1, and the capsule endoscope 1 collects image data in the digestive tract of the subject, and can collect image data of the esophagus, stomach, small intestine, large intestine, etc. The lighting module of the capsule endoscope 1 can be an RGB color LED lamp, which outputs a white light source with the same proportion of RED, GREEN and BLUE through hardware pin control to illuminate the target area of ​​the subject. The target area can be any of the 24 parts of the stomach. The image acquisition module of the capsule endoscope 1 collects the first image data of the target area. The image acquisition module can be a CMOS (Complementary Metal-Oxide-Semiconductor) camera. The image processing module calibrates the image data to obtain a first RGB image matrix with a resolution of M*N. M and N are positive integers respectively, where calibration may include one or more algorithms including BPF (Bayer Pattern Filter, mask array), BLC (Black Level Correction, dark current calibration), LSC (Lens Shading Correction, lens vignetting calibration), BPC (Bad Point Correction, bad point calibration), AE (Auto Exposure, automatic exposure), DNR (Digital Noise Reduction, noise reduction), EE (Edge Enhance, enhancement), Demosaic, AWB (Auto White Balance, automatic white balance), CCM (Color Correction Matix, color correction matrix), and GC (Gamma Correction, non-linear mapping).

[0064] Because the image data collected by the capsule endoscope 1 needs to be highly compressed before being transmitted to the outside of the body, the high-frequency information of the image data may be destroyed during the compression process, resulting in blurred edges and unclear textures of the image data transmitted to the outside of the body, thereby affecting the accuracy of judgment and recognition based on this feature. Therefore, this feature is extracted and the image data transmitted to the outside of the body is optimized. The image processing module converts the first RGB image matrix S1 to the HSV image space to obtain the first HSV image matrix N1, and obtains the V channelIn some embodiments, the MV' matrix is ​​traversed according to the spatial pixel point (i, j), the gradient map is generated by Laplacian operator enhancement, and the convolution operation is superimposed on the Gaussian denoising to filter out unnecessary noise, and the first channel data is obtained. M and N are positive integers respectively.

[0065] In some embodiments, the lighting module provides a light source L having a preset light source component ratio. define The image acquisition module is configured to capture the light source L of the preset light source component ratio. define Under the present invention, the AWB module and the CCM module are turned off, and the second image data of the target area is collected to obtain the second RGB image matrix S2. Specifically, the biometric information in the embodiment of the present invention can be blood vessel characteristic information or other biometric information. According to the distribution depth of blood vessels in the biological body and the difference in the absorption coefficient of hemoglobin on the blood vessels to blue and green wavelength light sources, a light source with a preset component ratio is used to collect the second image data. The lighting module controls the RGB pin power supply system to output the light source L after the special color temperature is adjusted according to the preset light source component ratio, that is, the RED, GREEN and BLUE components are according to the preset proportions. define , where the preset proportions of RED, GREEN and BLUE components can be set as needed. In a very short time, that is, the shortest time when the field of view scene corresponding to the first image data remains unchanged, the light source L is used. define , turn off the AWB (automatic white balance) module and the CCM (color correction matrix) module, and collect the second image data of the target area to obtain a second RGB image matrix with the same M*N resolution The second RGB image matrix S2 is a hemoglobin preprocessing image matrix. define The second image data of the target area is collected to obtain a hemoglobin preprocessed image, which improves the effect of image enhancement processing, is more conducive to the identification and diagnosis of lesions, and further improves the accuracy of the detection results of the capsule endoscope 1.

[0066] The image processing module extracts each pixel RGB2 in the second RGB image matrix S2 ij The biometric information is used to generate a biometric image matrix M, where i∈(1,M), j∈(1,N), M and N are positive integers respectively, and the biometric information, for example, can be blood vessel feature information.

[0067] The image processing module compresses the first RGB image matrix S1, the first channel data MV and the biometric image matrix M respectively to obtain a compressed first RGB image matrix S1′, a compressed first channel data MV′ and a compressed biometric image matrix M′.

[0068] The terminal device 2 decompresses the compressed first RGB image matrix S1′, the compressed first channel data MV′ and the compressed biometric image matrix M′ respectively to obtain a decompressed first RGB image matrix S1″, a decompressed first channel data MV″ and a decompressed biometric image matrix M″.

[0069] The terminal device 2 performs enhanced fusion processing on the decompressed first RGB image matrix S1″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″ to obtain an RGB feature fusion image S target .

[0070] An image processing system provided by an embodiment of the present invention, wherein a capsule endoscope 1 collects first image data of a target area under a normal light source, obtains a first RGB image matrix S1, converts the first RGB image matrix S1 into an HSV image space, and extracts V channel channel data, obtain the first channel data MV; in the light source L with the preset light source component ratio define The second image data of the target area is collected to obtain a second RGB image matrix S2. The first RGB image matrix S1, the first channel data MV and the second RGB image matrix S2 are processed by the image processing module of the capsule endoscope 1 and the terminal device 2 to obtain an RGB feature fusion image S target , realizing enhanced processing of the first image data and the second image data transmitted outside the body, preventing important biometric information in the first image data and the second image data of the target area from being lost due to compression and transmission, and preventing high-frequency information in the first image data from being destroyed due to high-multiple compression. The first image data and the second image data transmitted outside the body contain important biometric information after enhanced processing, and the image has clear edges and textures, which is conducive to the identification and diagnosis of lesions, thereby improving the accuracy of the detection results of the capsule endoscope 1.

[0071] In some embodiments, the image processing module extracts each pixel RGB2 in the second RGB image matrix S2 ijThe biometric information of the second RGB image matrix S2 is used to generate the biometric image matrix M, including: the image processing module uses the biometric index formula for each pixel in the second RGB image matrix S2 to obtain the biometric value of each pixel and generate an initial biometric image matrix M1; the image processing module performs an erosion operation on the initial biometric image matrix M1, and when the biometric form disappears after N iterations, the eroded image matrix M2 is obtained; the image processing module performs an XOR operation on the initial biometric image matrix M1 and the eroded image matrix M2 to obtain the biometric image matrix M.

[0072] Specifically, in the embodiment of the present invention, the biometric information takes blood vessel characteristics as an example, and the biometric index formula is as follows:

[0073]

[0074] Among them, IHb ij is the hemoglobin absorption index, R ij is the Red value of the pixel, G ij It is the Green value of the pixel.

[0075] For the pixel RGB2 in the second RGB image matrix S2 ij Apply the above biometric index formula to perform traversal operations and obtain the IHb of each pixel point in turn ij value, and generate the initial biometric image matrix

[0076] The image processing module performs an erosion operation on the initial biometric image matrix M1. When the biometric morphology disappears after N iterations, the eroded image matrix M2 is obtained. Specifically, the image processing module performs an erosion operation of a preset neighborhood size on the initial biometric image matrix M1. The preset neighborhood can be set as needed, such as a 3*3 neighborhood, and iterates n times until the initial biometric image M1 is completely eroded. Count the number of pixels that disappear in each iteration Pdie _n , we get the point cloud W[log(n),log(Pdie _n )] and mark it in the spatial coordinate system. Take the initial point of the point cloud as the origin of the polar coordinates, transform the point cloud to the polar coordinate system ρ-θ, count the variance of the polar angle, obtain the point set W* with a variance less than a certain threshold, so that the distribution of W* has a consistent direction, and record the iteration number N at this time die , the mapping relationship at this time satisfies linearity and can be fitted as a straight line in the spatial coordinate system.

[0077] In the mapping diagram, as n increases, the vascular morphology is continuously eroded, and is linearly related to the logarithm of the vanishing pixels. die , where N die is the total number of times the vascular morphology in the human body disappears iteratively. When this linear relationship is destroyed, it means that the vascular morphology is completely corroded, and the corroded image matrix M2 is obtained. It can be understood that N die =N.

[0078] The initial biometric feature image matrix M1 and the corroded image matrix M2 are subjected to matrix element XOR operation according to row and column coordinates to segment the vascular morphology feature image matrix M.

[0079] In some embodiments, the image processing module performs an erosion operation on the initial biometric image matrix M1. When the biometric morphology disappears after N iterations, before obtaining the eroded image matrix M2, it also includes: the image processing module filters the pixel points in the initial biometric image matrix M1 that deviate from the mean by more than a first preset threshold value to obtain the filtered initial biometric image matrix M1′.

[0080] Specifically, the image processing module performs average statistics on all values ​​in the initial biometric image matrix M1 according to the following formula to obtain mean(M1):

[0081]

[0082] Traverse each element in the initial biometric image matrix M1, use the conditional threshold algorithm to filter out the elements that deviate from the mean mean(M) by more than a first preset threshold, the first preset threshold can be set as needed, and the positions of the filtered elements are replaced with 0 to obtain the filtered initial biometric image matrix M1′, Filtering out elements that deviate from the mean can improve the image enhancement effect. In some embodiments, the image processing module performs an erosion operation on the initial biometric image matrix M1. When the biometric form disappears after N iterations, the image matrix M2 after erosion is obtained further includes: the image processing module performs a binarization operation on the initial biometric image matrix M1 to obtain a binarized initial biometric image matrix M1″.

[0083] In some embodiments, the image processing module compresses the first RGB image matrix S1, the first channel data MV and the biometric image matrix M respectively to obtain the compressed first RGB image matrix S1′, the compressed first channel data MV′ and the compressed biometric image matrix M′, including: the image processing module performs lossy compression on the first RGB image matrix S1 to obtain the compressed first RGB image matrix S1′; the image processing module performs lossless compression on the first channel data MV and the biometric image matrix M to obtain the compressed first channel data MV′ and the compressed biometric image matrix M′. Lossy compression can be jpeg compression, and lossless compression can be singular value decomposition (SVD). In some embodiments, the image processing module performs lossless compression processing on the first channel data MV and the biometric image matrix M to obtain the compressed first channel data MV′ and the compressed biometric image matrix M′, including: the image processing module performs dimensionality reduction processing on the first channel data MV to obtain the compressed first channel data MV′, and the compressed first channel data MV′ includes a first S sub-matrix S1, a first V sub-matrix V1 and a first D sub-matrix D1; the image processing module performs dimensionality reduction processing on the biometric image matrix M to obtain the compressed biometric image matrix M′, and the compressed biometric image matrix M′ includes an S sub-matrix S*, a V sub-matrix V* and a D sub-matrix D*.

[0084] Specifically, the first channel data MV is subjected to SVD decomposition to generate a highly compressed first S sub-matrix S1, a first V sub-matrix V1 and a first D sub-matrix D1. The biometric image matrix M is subjected to SVD decomposition to generate a highly compressed S sub-matrix S*, a V sub-matrix V* and a D sub-matrix D*.

[0085] In some embodiments, the capsule endoscope 1 also includes a radio frequency module, and the terminal device 2 decompresses the compressed first RGB image matrix S1′, the compressed first channel data MV′ and the compressed biometric image matrix M′ respectively to obtain the decompressed first RGB image matrix S1″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″, and further includes: the image processing module combines the compressed first RGB image matrix S1′, the first S sub-matrix S1, the first V sub-matrix V1, the first D sub-matrix D1, the S sub-matrix S*, the V sub-matrix V* and the D sub-matrix D* into a data packet; the radio frequency module sends the data packet to the outside of the body; and the terminal device 2 receives the data packet.

[0086] In some embodiments, the terminal device 2 decompresses the compressed first RGB image matrix S1′, the compressed first channel data MV′ and the compressed biometric image matrix M′ respectively to obtain the decompressed first RGB image matrix S1″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″, including: the terminal device 2 decompresses the compressed first RGB image matrix S1′ to obtain the decompressed first RGB image matrix S1″; the terminal device 2 performs matrix multiplication operation on the first S sub-matrix S1, the first V sub-matrix V1 and the first D sub-matrix D1 to obtain the decompressed first channel data MV″; the terminal device 2 performs matrix multiplication operation on the S sub-matrix S*, the V sub-matrix V* and the D sub-matrix D* to obtain the decompressed biometric image matrix M″.

[0087] Specifically, the terminal device 2 can decompress the compressed first RGB image matrix S1′ through decodeJPEG to obtain the decompressed first RGB image matrix S1″. The terminal device 2 performs matrix multiplication operation on the first S sub-matrix S1, the first V sub-matrix V1 and the first D sub-matrix D1 through the SVD algorithm to obtain the decompressed first channel data MV″. It can be understood that the decompressed first channel data MV″ is the same as the first channel data MV. The terminal device 2 performs matrix multiplication operation on the S sub-matrix S*, the V sub-matrix V* and the D sub-matrix D* through the SVD algorithm to obtain the decompressed biometric image matrix M″. It can be understood that the decompressed biometric image matrix M″ is the same as the biometric image matrix M.

[0088] In some embodiments, the terminal device 2 performs enhanced fusion processing on the decompressed first RGB image matrix S1″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″ to obtain an RGB feature fusion image S target The terminal device 2 converts the decompressed first RGB image S1″ into a second HSV image N2″, obtains the HSV image in the second HSV image N2″, channel , S channel 、V channel The terminal device 2 performs enhanced fusion processing on the V channel data V2", the decompressed first channel data MV" and the decompressed biometric image matrix M", and obtains the enhanced fusion matrix V enhanceThe terminal device 2 sends the H channel data H2′, the S channel data S2′ and the matrix V enhance Convert to RGB color space to obtain the RGB feature fusion image S target .

[0089] Specifically, based on the HSV-RGB mutual conversion operation, the decompressed first RGB image S1″ is converted to the HSV space to obtain the second HSV image N2″, and the HSV image in the second HSV image N2″ is obtained. channel , S channel 、V channel Channel data, H channel data H2", S channel data S2", V channel data V2". The V channel data V2", the decompressed first channel data MV" and the decompressed biometric image matrix M" are enhanced and fused according to the following formula to obtain the enhanced fused matrix V enhance :

[0090] V enhance (i,j)=δ1V2″(i,j)+δ2MV″(i,j)+δ3M″(i,j),

[0091] Among them, δ1 is the fusion coefficient of the V channel data V2″, δ2 is the fusion coefficient of the decompressed first channel data MV″, δ3 is the fusion coefficient of the decompressed biometric image matrix M″, and δ1+δ2+δ3=1.

[0092] It is understandable that Based on the HSV-RGB mutual conversion operation, the terminal device 2 converts the H channel data H2″, the S channel data S2″ and the matrix V enhance Convert to RGB color space to obtain the RGB feature fusion image S target .

[0093] An image processing system provided by an embodiment of the present invention includes a capsule endoscope 1 and a terminal device 2. The capsule endoscope 1 collects first image data of a target area under a normal light source, obtains a first RGB image matrix S1, converts the first RGB image matrix S1 into an HSV image space, and extracts V channel channel data, obtain the first channel data MV; in the light source L with the preset light source component ratio define The second image data of the target area is collected to obtain a second RGB image matrix S2. The first channel data MV of the first RGB image matrix S1 and the second RGB image matrix S2 are processed by the image processing module of the capsule endoscope 1 and the terminal device 2 to obtain an RGB feature fusion image S target, realizing enhanced processing of the first image data and the second image data transmitted outside the body, preventing important biometric information in the first image data and the second image data of the target area from being lost due to compression and transmission, and preventing high-frequency information in the first image data from being destroyed due to high-multiple compression. The first image data and the second image data transmitted outside the body contain important biometric information after enhanced processing, and the image has clear edges and textures, which is conducive to the identification and diagnosis of lesions, thereby improving the accuracy of the detection results of the capsule endoscope 1; at the same time, ensuring the high compression rate and real-time performance of data transmission from inside the body to outside the body.

[0094] like Figure 2 As shown, an embodiment of the present invention provides a capsule endoscope 1, including an image acquisition module, an image processing module and a radio frequency module. The image acquisition module acquires first image data of a target area to obtain a first RGB image matrix S1; the image processing module converts the first RGB image matrix S1 into an HSV image space to obtain a first HSV image matrix N1, and obtains V in the first HSV image matrix N1. channel channel data, obtain the first channel data MV; the image acquisition module acquires the second image data of the target area to obtain the second RGB image matrix S2; the image processing module extracts each pixel RGB2 in the second RGB image matrix S2 ij The biometric information is used to generate a biometric image matrix M, where i∈(1,M), j∈(1,N), and M and N are positive integers respectively; the image processing module compresses the first RGB image matrix S1, the first channel data MV and the biometric image matrix M respectively to obtain a compressed first RGB image matrix S1′, a compressed first channel data MV′ and a compressed biometric image matrix M′; the radio frequency module converts the compressed first RGB image matrix S1′, the compressed first channel data MV′ and the compressed biometric image matrix M′ The compressed first RGB image matrix S1′, the compressed first channel data MV′ and the compressed biometric image matrix M′ are respectively decompressed by the terminal device 2 to obtain the decompressed first RGB image matrix S1″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″, and the terminal device 2 performs enhanced fusion processing on the decompressed first RGB image matrix S1″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″ to obtain the RGB feature fusion image S target .

[0095] In some embodiments, the capsule endoscope 1 includes a lighting module, and the image acquisition module acquires the second image data of the target area, and before obtaining the second RGB image matrix S2, the lighting module provides a light source L with a preset light source component ratio. define .

[0096] In some embodiments, the image acquisition module acquires the second image data of the target area to obtain the second RGB image matrix S2, which includes: ...; define Under the present invention, the AWB module and the CCM module are turned off, and the second image data of the target area is collected to obtain the second RGB image matrix S2.

[0097] In some embodiments, the image processing module extracts each pixel RGB2 in the second RGB image matrix S2 ij The biometric information of the second RGB image matrix S2 is used to generate the biometric image matrix M, including: the image processing module uses the biometric index formula for each pixel in the second RGB image matrix S2 to obtain the biometric value of each pixel and generate an initial biometric image matrix M1; the image processing module performs an erosion operation on the initial biometric image matrix M1, and when the biometric form disappears after N iterations, the eroded image matrix M2 is obtained; the image processing module performs an XOR operation on the initial biometric image matrix M1 and the eroded image matrix M2 to obtain the biometric image matrix M.

[0098] In some embodiments, the image processing module compresses the first channel data MV and the biometric image matrix M to obtain the compressed first channel data MV′ and the compressed biometric image matrix M′, including: the image processing module performs dimensionality reduction processing on the first channel data MV to obtain the compressed first channel data MV′, and the compressed first channel data MV′ includes a first S sub-matrix S1, a first V sub-matrix V1 and a first D sub-matrix D1; the image processing module performs dimensionality reduction processing on the biometric image matrix M to obtain the compressed biometric image matrix M′, and the compressed biometric image matrix M′ includes an S sub-matrix S*, a V sub-matrix V* and a D sub-matrix D*.

[0099] For details on how the various functional modules of the capsule endoscope 1 and the terminal device 2 implement the above functions, please refer to the description of the above-mentioned embodiment of the image processing system, which will not be repeated here.

[0100] The embodiment of the present invention provides a capsule endoscope 1. The capsule endoscope 1 collects first image data of a target area under a normal light source to obtain a first RGB image matrix S1, converts the first RGB image matrix S1 into an HSV image space, and extracts V channel channel data, obtain the first channel data MV; in the light source L with the preset light source component ratio define The second image data of the target area is collected to obtain a second RGB image matrix S2, and the biometric information in the second RGB image matrix S2 is extracted to obtain a biometric image matrix M. The capsule endoscope 1 compresses the first RGB image matrix S1, the first channel data MV and the biometric image matrix M respectively to obtain a compressed first RGB image matrix S1′, a compressed first channel data MV′ and a compressed biometric image matrix M′, and transmits them to the outside of the body, so that the terminal device 2 decompresses and enhances the fusion process of the compressed first RGB image matrix S1′, the compressed first channel data MV′ and the compressed biometric image matrix M′ to obtain an RGB feature fusion image S target , the RGB feature fusion image S target It contains obvious biometric information, and the image has clear edges and textures, which is conducive to the identification and diagnosis of lesions, thereby improving the accuracy of the detection results of the capsule endoscope 1; at the same time, it ensures the high compression rate and real-time transmission of data from inside the body to outside the body.

[0101] Those skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or by instructing related hardware through a program, and the program can be stored in a computer storage medium, and the storage medium mentioned above can be a read-only memory, a disk or an optical disk, etc. The optional implementation methods of the embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the embodiments of the present invention are not limited to the specific details of the above implementation methods. Within the technical concept of the embodiments of the present invention, the technical solutions of the embodiments of the present invention can be subjected to a variety of simple modifications, and these simple modifications all belong to the protection scope of the embodiments of the present invention.

[0102] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, the embodiments of the present invention will not further describe various possible combinations.

[0103] In addition, various implementation modes of the embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the embodiments of the present invention, they should also be regarded as the contents disclosed by the embodiments of the present invention.

Claims

1. An image processing system, characterized in that: It includes a capsule endoscope and a terminal device, wherein the capsule endoscope includes an image acquisition module and an image processing module. The image acquisition module acquires the first image data of the target area to obtain a first RGB image matrix S1; the image processing module converts the first RGB image matrix S1 into the HSV image space to obtain a first HSV image matrix N1, and obtains V in the first HSV image matrix N1. channel Channel data, obtaining first channel data MV; The image acquisition module acquires second image data of the target area to obtain a second RGB image matrix S2; The image processing module extracts each pixel RGB2 in the second RGB image matrix S2 ij The biometric information is used to generate a biometric image matrix M, where i∈(1,M), j∈(1,N), M and N are positive integers respectively; The image processing module compresses the first RGB image matrix S1, the first channel data MV and the biometric image matrix M respectively to obtain a compressed first RGB image matrix S1′, a compressed first channel data MV′ and a compressed biometric image matrix M′; The terminal device decompresses the compressed first RGB image matrix S1′, the compressed first channel data MV′ and the compressed biometric image matrix M′ respectively to obtain a decompressed first RGB image matrix S1″, a decompressed first channel data MV″ and a decompressed biometric image matrix M″; The terminal device performs enhanced fusion processing on the decompressed first RGB image matrix S1″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″ to obtain an RGB feature fusion image S target .

2. The image processing system according to claim 1, characterized in that The capsule endoscope includes a lighting module, and the image acquisition module acquires the second image data of the target area, and before obtaining the second RGB image matrix S2, the following steps are included: The lighting module provides a light source L with a preset light source component ratio. define .

3. The image processing system according to claim 2, characterized in that: The image acquisition module acquires the second image data of the target area to obtain the second RGB image matrix S2, including: the ... wherein the image acquisition module acquires the second image data of the target area to obtain the second RGB image matrix S2. define Under the present invention, the AWB (automatic white balance) module and the CCM (color correction matrix) module are turned off, and the second image data of the target area is collected to obtain the second RGB image matrix S2.

4. The image processing system according to claim 1, characterized in that: The image processing module extracts each pixel RGB2 in the second RGB image matrix S2 ij The biometric information of the generated biometric image matrix M includes: The image processing module uses a biometric index formula for each pixel in the second RGB image matrix S2 to obtain a biometric value of each pixel and generate an initial biometric image matrix M1; The image processing module performs an erosion operation on the initial biometric image matrix M1, and when the biometric morphology disappears after N iterations, an eroded image matrix M2 is obtained; The image processing module performs an XOR operation on the initial biometric image matrix M1 and the eroded image matrix M2 to obtain the biometric image matrix M.

5. The image processing system according to claim 4, characterized in that: The image processing module performs an erosion operation on the initial biometric image matrix M1. When the biometric form disappears after N iterations, the eroded image matrix M2 is obtained, and the following steps are also included: The image processing module filters out the pixel points in the initial biometric image matrix M1 that deviate from the mean value by more than a first preset threshold value, and obtains a filtered initial biometric image matrix M1′.

6. The image processing system according to claim 4, characterized in that: The image processing module performs an erosion operation on the initial biometric image matrix M1. When the biometric form disappears after N iterations, the eroded image matrix M2 is obtained, and the following steps are also included: The image processing module performs binarization processing on the initial biometric image matrix M1 to obtain a binarized initial biometric image matrix M1″.

7. The image processing system according to claim 1, characterized in that: The image processing module compresses the first RGB image matrix S1, the first channel data MV and the biometric image matrix M respectively to obtain the compressed first RGB image matrix S1′, the compressed first channel data MV′ and the compressed biometric image matrix M′, including: The image processing module performs lossy compression processing on the first RGB image matrix S1 to obtain the compressed first RGB image matrix S1′; The image processing module performs lossless compression processing on the first channel data MV and the biometric image matrix M to obtain the compressed first channel data MV′ and the compressed biometric image matrix M′.

8. The image processing system according to claim 7, characterized in that: The image processing module performs lossless compression processing on the first channel data MV and the biometric image matrix M to obtain the compressed first channel data MV′ and the compressed biometric image matrix M′, which includes: The image processing module performs dimensionality reduction processing on the first channel data MV to obtain the compressed first channel data MV′, wherein the compressed first channel data MV′ includes a first S sub-matrix S1, a first V sub-matrix V1 and a first D sub-matrix D1; The image processing module performs dimensionality reduction processing on the biometric image matrix M to obtain the compressed biometric image matrix M′, and the compressed biometric image matrix M′ includes an S submatrix S*, a V submatrix V* and a D submatrix D*.

9. The image processing system according to claim 8, characterized in that: The capsule endoscope further includes a radio frequency module, and the terminal device decompresses the compressed first RGB image matrix S1′, the compressed first channel data MV′, and the compressed biometric image matrix M′, respectively, to obtain the decompressed first RGB image matrix S1″, the decompressed first channel data MV″, and the decompressed biometric image matrix M″, and further includes: The image processing module combines the compressed first RGB image matrix S1′, the first S sub-matrix S1, the first V sub-matrix V1, the first D sub-matrix D1, the S sub-matrix S*, the V sub-matrix V* and the D sub-matrix D* into a data packet; The radio frequency module sends the data packet to the outside of the body; The terminal device receives the data packet.

10. The image processing system according to claim 9, characterized in that: The terminal device decompresses the compressed first RGB image matrix S1′, the compressed first channel data MV′ and the compressed biometric image matrix M′ respectively, and obtains the decompressed first RGB image matrix S1″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″, including: The terminal device decompresses the compressed first RGB image matrix S1′ to obtain the decompressed first RGB image matrix S1″; The terminal device performs a matrix multiplication operation on the first S sub-matrix S1, the first V sub-matrix V1 and the first D sub-matrix D1 to obtain the decompressed first channel data MV″; The terminal device performs matrix multiplication operation on the S sub-matrix S*, the V sub-matrix V* and the D sub-matrix D* to obtain the decompressed biometric image matrix M″.

11. The image processing system according to claim 10, characterized in that: The terminal device performs enhanced fusion processing on the decompressed first RGB image matrix S1″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″ to obtain an RGB feature fusion image S target The terminal device converts the decompressed first RGB image S1″ into a second HSV image N2″, obtains the HSV image in the second HSV image N2″, channel , S channel 、V channel Channel data, obtain H channel data H2″, S channel data S2″, V channel data V2″; The terminal device performs enhanced fusion processing on the V channel data V2″, the decompressed first channel data MV″ and the decompressed biometric image matrix M″ to obtain an enhanced fusion matrix V enhance The terminal device sends the H channel data H2′, the S channel data S2′ and the matrix V enhance Convert to RGB color space to obtain the RGB feature fusion image S target .

12. A capsule endoscope, characterized in that: Including image acquisition module, image processing module and radio frequency module, The image acquisition module acquires the first image data of the target area to obtain a first RGB image matrix S1; the image processing module converts the first RGB image matrix S1 into the HSV image space to obtain a first HSV image matrix N1, and obtains V in the first HSV image matrix N1. channel Channel data, obtaining first channel data MV; The image acquisition module acquires second image data of the target area to obtain a second RGB image matrix S2; The image processing module extracts each pixel RGB2 in the second RGB image matrix S2 ij The biometric information is used to generate a biometric image matrix M, where i∈(1,M), j∈(1,N), M and N are positive integers respectively; The image processing module compresses the first RGB image matrix S1, the first channel data MV and the biometric image matrix M respectively to obtain a compressed first RGB image matrix S1′, a compressed first channel data MV′ and a compressed biometric image matrix M′; The radio frequency module sends the compressed first RGB image matrix S1′, the compressed first channel data MV′, and the compressed biometric image matrix M′ to the outside of the body, so that the terminal device decompresses the compressed first RGB image matrix S1′, the compressed first channel data MV′, and the compressed biometric image matrix M′, respectively, to obtain the decompressed first RGB image matrix S1″, the decompressed first channel data MV″, and the decompressed biometric image matrix M″, and the terminal device performs enhanced fusion processing on the decompressed first RGB image matrix S1″, the decompressed first channel data MV″, and the decompressed biometric image matrix M″ to obtain the RGB feature fusion image S target .

13. The capsule endoscope according to claim 12, characterized in that: The capsule endoscope includes a lighting module, and the image acquisition module acquires the second image data of the target area, and before obtaining the second RGB image matrix S2, the following steps are included: The lighting module provides a light source L with a preset light source component ratio. define .

14. The capsule endoscope according to claim 13, characterized in that: The image acquisition module acquires the second image data of the target area to obtain the second RGB image matrix S2, which includes: The image acquisition module is configured to capture the light source L of the preset light source component ratio. define The AWB module and the CCM module are turned off, and the second image data of the target area is collected to obtain a second RGB image matrix S2.

15. The capsule endoscope according to claim 13, characterized in that: The image processing module extracts each pixel RGB2 in the second RGB image matrix S2 ij The biometric information of the generated biometric image matrix M includes: The image processing module uses a biometric index formula for each pixel in the second RGB image matrix S2 to obtain a biometric value of each pixel and generate an initial biometric image matrix M1; The image processing module performs an erosion operation on the initial biometric image matrix M1, and when the biometric morphology disappears after N iterations, an eroded image matrix M2 is obtained; The image processing module performs an XOR operation on the initial biometric image matrix M1 and the eroded image matrix M2 to obtain the biometric image matrix M.

16. The capsule endoscope according to claim 13, characterized in that: The image processing module compresses the first channel data MV and the biometric image matrix M to obtain the compressed first channel data MV′ and the compressed biometric image matrix M′, which includes: The image processing module performs dimensionality reduction processing on the first channel data MV to obtain the compressed first channel data MV′, wherein the compressed first channel data MV′ includes a first S sub-matrix S1, a first V sub-matrix V1 and a first D sub-matrix D1; The image processing module performs dimensionality reduction processing on the biometric image matrix M to obtain the compressed biometric image matrix M′, and the compressed biometric image matrix M′ includes an S submatrix S*, a V submatrix V* and a D submatrix D*.