Cloud-based collaborative image super-resolution analysis method and system based on edge density
Through the cloud collaborative image super-resolution analysis method based on edge density, the edge density of the image is detected and processed in blocks, which solves the problem of real-time performance and image quality compression of image super-resolution, and achieves efficient image super-resolution effect.
Patent Information
- Application Number
- CN202111480454.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-06
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-06
AI Technical Summary
Existing image super-resolution methods suffer from the problems of excessive end-to-end latency and image quality compression, especially when running on mobile devices, high computational complexity and reduced image quality.
The cloud collaborative image super-resolution analysis method based on edge density is used to detect the edge density of the image through the Canny edge detection algorithm. The parts with high edge density are uploaded in blocks to the cloud for deep learning processing, and processed using the bicubic interpolation method on the mobile device. For parts with low edge density, the SURF algorithm is used to fuse high-definition image blocks.
It improves the real-time performance of image super-resolution and reduces the end-to-end delay while maintaining image quality and avoiding high-definition image compression caused by insufficient bandwidth.
Smart Images

Figure CN114140326B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image super-resolution technology, and more specifically to a cloud-based collaborative image super-resolution analysis method and system based on edge density. Background Art
[0002] Since the fifth generation of information technology revolution, human society has entered the digital information age. With the development of smart devices, high-definition displays have reached a new level, and the screen resolution of the devices people use is getting higher and higher, such as 1920*1080 for HDTV, 3840*2160 for some ultra-high-definition TVs, and 2048*1536 for some mobile devices. Nevertheless, in order to ensure the normal operation of the equipment, we still sacrifice the resolution to some extent in some image scenes, such as some digital monitoring products. It can be seen that low-latency super-resolution of images has become an urgent problem to be solved.
[0003] In the field of image super-resolution, many scholars have conducted extensive research and developed many models. Among them, the espcn model extracts features in the LR (low-definition) space and introduces a sub-pixel convolution layer, which effectively reduces the computational complexity of super-resolution restoration (SR).
[0004] Currently, existing image super-resolution methods have the following problems: end-to-end latency is too high and image quality is compressed when cloud processing is offloaded. Summary of the invention
[0005] The embodiment of the present invention provides a cloud-based collaborative image super-resolution analysis method based on edge density, including:
[0006] Get low-resolution images;
[0007] Detect the edge density of the low-definition image and calculate the edge density value of the low-definition image;
[0008] Divide the low-definition image into blocks according to the edge density value range of the low-definition image, upload the low-definition image blocks with edge density values greater than the threshold to the cloud, and keep the low-definition image blocks with edge density values less than the threshold locally;
[0009] The cloud uses a deep learning super-resolution model to process low-definition image blocks with large edge density values to generate high-definition image blocks, and the local uses a bicubic interpolation method to process low-definition image blocks with small edge density values to generate high-definition image blocks;
[0010] The high-definition image blocks from the cloud server are downloaded to the local computer, and then fused with the locally generated high-definition image blocks using the SURF algorithm to form a high-definition image.
[0011] Furthermore, the edge density of the low-definition image is detected, including:
[0012] The Canny edge detection algorithm is used to detect the edge density of low-definition images.
[0013] Furthermore, the Canny edge detection algorithm includes:
[0014] The low-definition image is grayed out and denoised using a Gaussian filter. The calculation formula for the Gaussian filter includes:
[0015] The formula is:
[0016]
[0017] Among them, (m,n) is the pixel position, f(m,n) is the gray value;
[0018] Calculate the low-definition image gradient amplitude and corresponding direction;
[0019] Use non-maximum suppression algorithm to exclude non-edge pixels;
[0020] The double threshold method is used to suppress false edges and connect true edges. The ratio of high to low threshold is generally between 2:1 and 3:1.
[0021] Returns the edge density of a low-resolution image.
[0022] Furthermore, the low-definition image is divided into blocks according to the edge density value range of the low-definition image, including:
[0023] Low-definition images with edge density values of 0.3 and below are divided into 16*16 blocks, low-definition images with edge density values of 0.3 to 0.6 are divided into 4*4 blocks, and low-definition images with edge density values greater than 0.6 are divided into 4*4 blocks. Low-definition images with edge density values greater than 0.8 are not divided into blocks.
[0024] Furthermore, uploading low-definition image blocks with edge density values greater than a threshold to a cloud server includes:
[0025] The threshold is set to 0.6, and low-resolution tiles with a density greater than the edge density threshold are uploaded to the cloud.
[0026] Furthermore, the high-definition image blocks from the cloud server are downloaded to the local computer, and fused with the high-definition image blocks generated locally into a high-definition image using a SURF algorithm, including:
[0027] Perform Gaussian filtering on the pixels of the HD image blocks downloaded from the cloud server and the local HD image blocks, construct the Hessian matrix, calculate the eigenvalues, find the feature points, and locate the key points;
[0028] The scale space is constructed by constructing a Gaussian pyramid;
[0029] Use non-maximum suppression method to locate feature points and select stable feature points;
[0030] Determine the main direction of the feature points and construct feature descriptors;
[0031] The matching degree of two feature points is determined by calculating the Euclidean distance between the two features;
[0032] Furthermore, it also includes:
[0033] The Hessian matrix trace is used to determine the matching degree of two feature points.
[0034] This application provides a cloud-based collaborative image super-resolution system based on edge density, including:
[0035] An edge density extraction module is used to detect the edge density of a low-definition image and calculate the edge density value of the low-definition image;
[0036] An image segmentation module is used to divide the low-definition image into blocks according to the edge density value range of the low-definition image, and upload the low-definition image blocks with edge density values greater than a threshold to the cloud, and keep the low-definition image blocks with edge density values less than the threshold locally;
[0037] Image super-resolution processing module: In the cloud, a deep learning-based super-resolution model is used to process low-definition image blocks with large edge density values to generate high-definition image blocks. In the local area, a bicubic interpolation method is used to process low-definition image blocks with small edge density values to generate high-definition image blocks.
[0038] The image fusion module downloads the high-definition image blocks from the cloud to the local computer, and fuses them with the locally generated high-definition image blocks into a high-definition image based on the SURF algorithm.
[0039] Furthermore, it also includes:
[0040] The cloud server deploys the deep learning super-resolution model espcn to process low-definition image blocks with large edge density values and generate high-definition image blocks;
[0041] Mobile terminal, used to perform bicubic interpolation processing on low-definition image blocks to generate high-definition image blocks.
[0042] The embodiment of the present invention provides a cloud-based collaborative image super-resolution analysis method and system based on edge density. Compared with the prior art, the beneficial effects thereof are as follows:
[0043] The present invention aims at the problem of insufficient real-time performance of image super-resolution, and based on image edge detection technology, improves the previous image super-resolution method, thereby further improving the real-time performance of image super-resolution. The real-time performance of image super-resolution has always been an urgent problem to be solved, because the computational complexity of image super-resolution is very high, and it is extremely challenging to run SR on a mobile device; however, uploading the entire image to the cloud for processing not only still has inference delay, but also downloading high-definition images from the cloud will also cause image quality degradation due to insufficient bandwidth for high-definition image compression. By comparison, a deep neural network structure and bicubic interpolation are applied to low-definition images, and the residuals of the two are compared. Only the edge part has a large difference, that is, the part of the image that is expected to have the greatest impact by super-resolution is the part with the most concentrated edges. Considering the above characteristics of image super-resolution, the present invention adopts a method of uploading only the part of the image containing the edge to the cloud for processing, and running bicubic interpolation on the rest of the image on the mobile device. While ensuring image quality, this method also greatly reduces end-to-end latency.
[0044] The edge density extraction module of the present invention adopts the Canny algorithm, which is a perfect edge detection algorithm with strong noise resistance. It uses Gaussian filtering to smooth the image, uses the finite difference of the first-order partial derivative to calculate the amplitude and direction of the gradient, performs non-maximum suppression on the gradient amplitude, and uses double thresholds to detect and connect edges. Two different thresholds are used to detect strong edges and weak edges respectively, and when the weak edge is connected to the strong edge, the weak edge is included in the output image.
[0045] The image segmentation module of the present invention performs different segmentation operations according to the image edge density, which is more targeted and avoids the loss of image quality during fusion caused by the segmentation of blocks with larger edge density, and at the same time avoids the risk of some blocks with concentrated edge density not being detected.
[0046] The image super-resolution processing module of the present invention uses the espcn model in the cloud, which directly extracts features on the low-resolution image size and calculates the high-resolution image. Its core is the sub-pixel convolutional layer. The interpolation function is implicitly included in the previous convolutional layer. The image size is only transformed in the last layer. The previous convolution operation is performed on the low-resolution image, so the efficiency will be higher. The inference delay is effectively reduced.
[0047] The image fusion module of the present invention uses the SURF algorithm, which is an improvement on the SIFT algorithm and is 3 times faster than the SIFT algorithm. The algorithm uses the Hessian matrix determinant approximation to generate image stable edge points, and then performs feature point matching. SURF reduces the feature descriptors, adds the judgment of the Hessian matrix trace, and improves the efficiency of the algorithm.
[0048] The present invention provides an edge density extraction module, an image segmentation module, an image super-resolution processing module and an image fusion module; an image super-resolution model is deployed on the server side, accepts uploaded low-definition image blocks, and performs bicubic interpolation locally at the same time, and the collaborative work greatly shortens the delay BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic diagram of the structure of an edge density extraction module of a cloud-based collaborative image super-resolution system based on edge density provided by an embodiment of the present invention;
[0050] Figure 2 A schematic diagram of the structure of an image segmentation module of a cloud-based collaborative image super-resolution system based on edge density provided by an embodiment of the present invention;
[0051] Figure 3 A schematic diagram of an image super-resolution processing structure of a cloud-based collaborative image super-resolution system based on edge density provided in an embodiment of the present invention;
[0052] Figure 4 A schematic diagram of the structure of an image fusion module of a cloud-based collaborative image super-resolution system based on edge density provided by an embodiment of the present invention;
[0053] Figure 5 A schematic diagram of the workflow of the edge density-based cloud-based collaborative image super-resolution analysis method and system provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] See also Figures 1 to 5 , an embodiment of the present invention provides a cloud-based collaborative image super-resolution analysis method based on edge density, the method comprising:
[0056] Step S1, using a Canny edge detector to detect the edge density of the low-definition image;
[0057] Step S2, segmenting the image according to the image edge density obtained in step S1 and uploading low-definition image blocks with larger edge density;
[0058] Step S3, processing the low-definition image blocks uploaded to the cloud and the local image blocks to generate high-definition image blocks;
[0059] Step S4, downloading the high-definition image blocks from the cloud to the local computer, and using an algorithm based on SURF (Speeded Up Robust Feature) to merge the high-definition image blocks to generate a high-definition image.
[0060] The specific steps of step S1 are as follows:
[0061] Step S11, graying the image and using a Gaussian filter to denoise the image, that is, performing a convolution operation on the original data and the Gaussian template;
[0062] Step S12, calculating the image gradient amplitude and the corresponding direction;
[0063] Step S13, eliminating non-edge pixels using a non-maximum suppression algorithm;
[0064] Step S14, using a double threshold method to suppress false edges and connect true edges from the suspected edges obtained in step S13, wherein the ratio of high to low thresholds is generally between 2:1 and 3:1;
[0065] Step S15, returning the edge density of the image.
[0066] The specific method of step S2 is as follows:
[0067] Step S21, dividing the image into blocks according to the image edge density, dividing the image into 16*16 blocks if the image edge density is 0.3 or less, dividing the image into 4*4 blocks if the edge density is 0.3 to 0.6, dividing the image into 4*4 blocks if the edge density is greater than 0.6, and not dividing the image into blocks if the edge density is greater than 0.8;
[0068] Step S22: Upload low-definition image blocks with a density greater than 0.6 to the cloud.
[0069] The specific method of step S3 is as follows:
[0070] Step S311, deploying the espcn model on the server side;
[0071] Step S312, using the espcn model to generate a high-definition image block;
[0072] Step S32, the local low-definition image block is processed by a bicubic interpolation method to generate a high-definition image block;
[0073] Step S31 and step S32 are executed in coordination.
[0074] The specific method of step S4 is as follows:
[0075] Step S41, downloading the high-definition image blocks processed in the cloud to the local computer;
[0076] Step S42, constructing a Hessian matrix, performing feature extraction and feature point matching on the image block;
[0077] Step S43, constructing a scale space;
[0078] Step S44, feature point positioning;
[0079] Step S45, determining the main direction of the feature point and constructing a feature point descriptor;
[0080] Step S46, matching is performed according to the Euclidean distance of the feature points, and a high-definition image is generated.
[0081] The present invention will be further described in detail below in conjunction with the accompanying drawings.
[0082] A cloud-based collaborative image super-resolution analysis method based on edge density realizes a low-latency image super-resolution method, which includes an edge density extraction module, an image segmentation module, an image super-resolution processing module, and an image fusion module; the edge density extraction module is used to detect the number of edges in an image; the image segmentation module is used to cut an image into blocks and partially upload the image blocks to the cloud; the image super-resolution processing module is used to process low-definition image blocks to generate high-definition image blocks; the image fusion module is used to merge high-definition image blocks to generate high-definition images.
[0083] The edge density extraction module comprises:
[0084] The core of this method is edge detection of the image. We use the Canny edge detector to extract the edge of the image. This detector can robustly detect the edges in the image.
[0085] 1) Gaussian filtering: The main purpose of this step is to reduce noise. Compared with other filtering methods, Gaussian filtering can make the image smoother. Its formula is:
[0086]
[0087] Where (m,n) is the pixel position and f(m,n) is the grayscale value
[0088] 2) Calculate the gradient value and gradient direction. In the image, the gradient value represents the degree and direction of change of the gray value. The gradient value g in different directions is obtained by multiplying the canny operator. x (m,n),g y (m,n).
[0089] Non-maximum suppression: Because edges may be magnified during Gaussian filtering, this step is used to filter out points that are not edges.
[0090] Double threshold edge detection. The edge detection algorithm we use is different from the previous edge detection algorithms that only use one threshold for filtering. We use two upper and lower thresholds, namely maxVal (upper threshold) and minVal (lower threshold), which can improve accuracy.
[0091] The image segmentation module comprises:
[0092] 1) Image segmentation: The image is segmented according to the image edge density. For images with edge density of 0.3 or less, 16*16 segmentation is performed; for images with edge density of 0.3 to 0.6, 8*8 segmentation is performed; for images with edge density greater than 0.6, 4*4 segmentation is performed; for images with edge density greater than 0.8, no segmentation is performed;
[0093] 2) Image block upload: The present invention no longer adopts the method of uploading the entire image to the cloud, but adopts the method of uploading in blocks. According to the edge density of the image block, the threshold is set to 0.6, and the edge-dense part of the image is selectively uploaded, that is, the image with an edge density greater than the threshold is uploaded, which greatly reduces network consumption.
[0094] The image super-resolution processing module comprises:
[0095] Local Image Processing,For image blocks with less edge density, we adopt the most basic,bicubic interpolation method.
[0096] Cloud image processing,For image blocks with high edge density, we upload them to the cloud and use the espcn model for processing.,Before this, we also need to deploy the espcn model on the server.
[0097] The core of the image fusion module is the merging of high-definition image blocks. The present invention adopts the SURF algorithm to merge high-definition image blocks. The SURF algorithm is more real-time among similar image merging algorithms.
[0098] A low-latency image super-resolution method is implemented by using a cloud-based collaborative image super-resolution analysis method based on edge density, including the following steps:
[0099] Step S1, using a Canny edge detector to detect the edge density of the low-definition image;
[0100] Step S2, segmenting the image according to the image edge density detected in step S1 and uploading low-definition image blocks with larger edge density;
[0101] Step S3, processing the low-definition image blocks uploaded to the cloud and locally to generate high-definition image blocks;
[0102] Step S4, downloading the high-definition image blocks from the cloud to the local computer, and using an algorithm based on SURF (Speeded Up Robust Feature) to merge the high-definition image blocks to generate a high-definition image.
[0103] like Figure 1 The edge density extraction module structure of the present invention is shown, which includes the following steps: in step S11, the image is first grayed and Gaussian filtered; in step S12, the gradient value and gradient direction are calculated, and the degree and direction of change of the gray value are recorded; in step S13, the non-maximum suppression algorithm is used to filter points that are not edges; in step S14, the dual threshold method is used to detect edges, and the edges between the high threshold and the low threshold are the detected edges, and finally the edge density of the image is returned.
[0104] like Figure 2 The image segmentation module structure of the present invention is shown, which includes the following steps: step S21 divides the image into blocks according to the image edge density, 16*16 blocks are performed for images with edge density of 0.3 or less, 4*4 blocks are performed for images with edge density of 0.3 to 0.6, 4*4 blocks are performed for images with edge density greater than 0.6, and no blocks are performed for images with edge density greater than 0.8; step S22 sets the threshold to 0.6, and uploads images with edge density greater than the threshold to the cloud.
[0105] like Figure 3 The structure of the image super-resolution processing module of the present invention is shown, which includes the following steps: step S311, deploying the trained espcn model on the server; step S312, processing the low-definition image blocks uploaded to the cloud on the server; step S3-2 locally using the bicubic interpolation method to process the low-definition image blocks. In this module, S3-1 and S3-2 run synchronously at the same time.
[0106] like Figure 4 The image fusion module structure of the present invention is shown, which includes the following steps: step S41, only the high-definition image blocks processed by the cloud need to be downloaded, which greatly reduces the network bandwidth demand; step S42, Gaussian filtering is performed on the pixel points, the Hessian matrix is constructed, the eigenvalues are calculated, the feature points are found, and the key point positions are located; in step S43, the scale space is constructed by constructing a Gaussian pyramid; in step S44, the non-maximum suppression method is used to locate the feature points and stable feature points are screened; step S45 determines the main direction of the feature points and constructs a feature descriptor; step S46 determines the match of the two feature points by calculating the Euclidean distance of the two features, and also uses the judgment of the Hessian matrix trace to better judge the match of the two feature points.
[0107] A low-latency image super-resolution method is implemented by using a cloud-based collaborative image super-resolution analysis method based on edge density, including the following steps:
[0108] like Figure 5 The figure shows the collaborative workflow of the above four modules. First, we extract the edge density features of the image and use the Canny detector to return the edge density value of the image. Then, we perform different block operations based on the edge density of the image, and after block division, we selectively upload some low-definition image blocks based on the edge density threshold. For the low-definition image blocks on the mobile terminal and the cloud, we perform different processing and generate high-definition image blocks. Finally, we download the high-definition image blocks on the cloud to the mobile terminal and fuse all the image blocks to generate a high-definition image.
[0109] Disclosed above are only a few specific embodiments of the present invention. Those skilled in the art may make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the present invention. However, the embodiments of the present invention are not limited thereto. Any changes that can be conceived by those skilled in the art should fall within the scope of protection of the present invention.
Claims
1. A cloud-based collaborative image super-resolution analysis method based on edge density, It is characterized in that include: Get low-resolution images; Detect the edge density of the low-definition image and calculate the edge density value of the low-definition image; Divide the low-definition image into blocks according to the edge density value range of the low-definition image, upload the low-definition image blocks with edge density values greater than the threshold to the cloud, and keep the low-definition image blocks with edge density values less than the threshold locally; In the cloud, a deep learning-based super-resolution model is used to process low-definition image blocks with large edge density values to generate high-definition image blocks. Locally, a bicubic interpolation method is used to process low-definition image blocks with small edge density values to generate high-definition image blocks. Download the high-definition image blocks from the cloud to the local computer, and fuse them with the locally generated high-definition image blocks using the SURF algorithm to form a high-definition image. The method of downloading the high-definition image blocks in the cloud to the local computer and fusing them with the high-definition image blocks generated locally into a high-definition image based on the SURF algorithm includes: Perform Gaussian filtering on the pixels of the HD image blocks downloaded from the cloud and the local HD image blocks, construct the Hessian matrix, calculate the eigenvalues, find the feature points, and locate the key points; The scale space is constructed by constructing a Gaussian pyramid; Use non-maximum suppression method to locate feature points and select stable feature points; Determine the main direction of the feature points and construct feature descriptors; The matching degree of two feature points is determined by calculating the Euclidean distance between the two features.
2. The cloud-based collaborative image super-resolution analysis method based on edge density as claimed in claim 1, It is characterized in that The detecting the edge density of the low-definition image comprises: The Canny edge detection algorithm is used to detect the edge density of low-definition images.
3. The cloud-based collaborative image super-resolution analysis method based on edge density as claimed in claim 2, It is characterized in that The Canny edge detection algorithm comprises: The low-definition image is grayed out and denoised using a Gaussian filter. The calculation formula for the Gaussian filter includes: The formula is: Among them, (m, n) is the pixel position, f(m, n) is the gray value; Calculate the low-definition image gradient amplitude and corresponding direction; Use non-maximum suppression algorithm to exclude non-edge pixels; The double threshold method is used to suppress false edges and connect true edges. The ratio of high to low threshold is generally between 2:1 and 3:
1. Returns the edge density of a low-resolution image.
4. The cloud-based collaborative image super-resolution analysis method based on edge density as claimed in claim 1, It is characterized in that The step of dividing the low-definition image into blocks according to the edge density value range of the low-definition image comprises: Low-definition images with edge density values of 0.3 and below are divided into 16*16 blocks, low-definition images with edge density values of 0.3 to 0.6 are divided into 4*4 blocks, and low-definition images with edge density values greater than 0.6 are divided into 4*4 blocks. Low-definition images with edge density values greater than 0.8 are not divided into blocks.
5. The cloud-based collaborative image super-resolution analysis method based on edge density as claimed in claim 4, It is characterized in that The uploading of the low-definition image blocks whose edge density values are greater than the threshold to the cloud includes: The threshold is set to 0.6, and low-resolution tiles with a density greater than the edge density threshold are uploaded to the cloud.
6. The edge density-based cloud collaborative image super-resolution analysis method according to claim 1, It is characterized in that Also includes: The Hessian matrix trace is used to determine the matching degree of two feature points.
7. A cloud-based collaborative image super-resolution analysis system based on edge density, It is characterized in that include: An edge density extraction module is used to detect the edge density of a low-definition image and calculate the edge density value of the low-definition image; An image segmentation module is used to divide the low-definition image into blocks according to the edge density value range of the low-definition image, and upload the low-definition image blocks with edge density values greater than a threshold to the cloud, and keep the low-definition image blocks with edge density values less than the threshold locally; Image super-resolution processing module: In the cloud, a deep learning-based super-resolution model is used to process low-definition image blocks with large edge density values to generate high-definition image blocks. In the local area, a bicubic interpolation method is used to process low-definition image blocks with small edge density values to generate high-definition image blocks. Image fusion module, which downloads the high-definition image blocks from the cloud to the local computer and fuses them with the locally generated high-definition image blocks into a high-definition image based on the SURF algorithm; The image fusion module is specifically used for: Perform Gaussian filtering on the pixels of the HD image blocks downloaded from the cloud and the local HD image blocks, construct the Hessian matrix, calculate the eigenvalues, find the feature points, and locate the key points; The scale space is constructed by constructing a Gaussian pyramid; Use non-maximum suppression method to locate feature points and select stable feature points; Determine the main direction of the feature points and construct feature descriptors; The matching degree of two feature points is determined by calculating the Euclidean distance between the two features.
8. The edge density-based cloud-based collaborative image super-resolution analysis system according to claim 7, It is characterized in that Also includes: The cloud server deploys the deep learning super-resolution model espcn to process low-definition image blocks with large edge density values and generate high-definition image blocks; The mobile terminal is used to perform bicubic interpolation processing on low-definition image blocks to generate high-definition image blocks, download high-definition image blocks from the cloud, and fuse all high-definition image blocks to generate high-definition images.
