Image processing method and system

By segmenting high-resolution images into sub-picture sets according to colors and generating target image compression models for processing, the problem of low accuracy caused by color differences in image transmission in the prior art is solved, and efficient and accurate image transmission and restoration are achieved. Effect.

CN118890489APending Publication Date: 2024-11-01ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411043333.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The prior art has low image compression accuracy due to color differences in high-resolution image transmission, which affects image transmission efficiency and quality.

Method used

By segmenting the image to be processed into multiple sub-picture sets according to the color, and generating a target image compression model based on the sub-picture position and color information, sub-picture set compression and decompression processing are performed to ensure the accuracy and resolution of the image during transmission.

Benefits of technology

提高了图像压缩准确率和传输效率,确保了高分辨率图像的准确还原效果,降低了网络传输压力。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890489A_ABST
    Figure CN118890489A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an image processing method and system, and the method is applied to a data transmitting end, and comprises the steps: obtaining a to-be-processed image, preset sub-image segmentation information, and an initial image compression model corresponding to the preset sub-image segmentation information; processing the to-be-processed image based on preset sub-image segmentation information to obtain to-be-processed sub-images, and determining a to-be-processed sub-image set according to sub-image position information and sub-image color information corresponding to the to-be-processed sub-images; generating a target image compression model corresponding to the to-be-processed sub-image set according to the to-be-processed sub-image set and the initial image compression model; compressing a to-be-processed sub-image set corresponding to the target image compression model based on the target image compression model to obtain a sub-image set compression result corresponding to the to-be-processed sub-image set; and determining an image compression result corresponding to the to-be-processed image according to the sub-image set compression result. A to-be-processed image is divided into a plurality of to-be-processed sub-image sets according to colors, so that the to-be-processed image is decompressed to obtain a more accurate and high-resolution image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of computer technology, and in particular to an image processing method. Background Art

[0002] With the development of network transmission technology and display technology, the user experience when browsing images has been greatly enhanced. Now, users can directly obtain high-resolution images, which improves the clarity of the images, but this also increases the volume of data received by the user side and increases the network load when image transmission is required.

[0003] Currently, by compressing the sub-image sets of high-resolution images one by one and then packaging them for transmission, the volume of data to be transmitted is reduced, and the pressure on the network when images need to be transmitted is reduced. However, this processing will cause the colors of each image set to be dispersed due to the large color differences in high-resolution images, which will result in low accuracy of the image obtained after restoring the image compression results. Therefore, an image processing method is needed that can improve the image compression accuracy while ensuring the image resolution. Summary of the invention

[0004] In view of this, the embodiments of this specification provide an image processing method applied to a data sending end, an image processing method applied to a data receiving end, and an image processing system. One or more embodiments of this specification also relate to an image processing device, a computing device, a computer-readable storage medium, and a computer program product to solve the technical defects existing in the prior art.

[0005] According to a first aspect of an embodiment of this specification, there is provided an image processing method, which is applied to a data sending end, and includes:

[0006] Obtaining an image to be processed, as well as preset sub-image segmentation information and an initial image compression model corresponding to the preset sub-image segmentation information;

[0007] Processing the image to be processed based on the preset sub-image segmentation information to obtain at least one sub-image to be processed, and determining at least one sub-image set to be processed according to the sub-image position information and sub-image color information corresponding to each sub-image to be processed;

[0008] Generate a target image compression model corresponding to each set of sub-images to be processed according to each set of sub-images to be processed and the initial image compression model;

[0009] Compressing the to-be-processed sub-image sets corresponding to the target image compression models based on the target image compression models, and obtaining the sub-image set compression results corresponding to the to-be-processed sub-image sets;

[0010] The image compression result corresponding to the image to be processed is determined according to the compression results of each sub-image set.

[0011] According to a second aspect of an embodiment of this specification, there is provided an image processing method, which is applied to a data receiving end, and includes:

[0012] receiving an image compression result, and obtaining at least one sub-image set compression result according to the image compression result;

[0013] Parsing the compression result of the reference subgraph set to obtain a subgraph compression information set and a reference decompression network parameter, wherein the compression result of the reference subgraph set is any one of the compression results of each subgraph set;

[0014] Constructing a reference image decompression model according to the reference decompression network parameters;

[0015] The sub-image compression information set is processed based on the reference image decompression model to obtain an original sub-image set corresponding to the compression result of the first sub-image set, and an original image corresponding to the image compression result is obtained according to each original sub-image set.

[0016] According to a third aspect of the embodiments of this specification, there is provided an image processing system, including an image data sending end and a data receiving end;

[0017] The data sending end is configured to obtain an image to be processed, as well as preset sub-image segmentation information and an initial image compression model corresponding to the preset sub-image segmentation information; process the image to be processed based on the preset sub-image segmentation information to obtain at least one sub-image to be processed, and determine at least one sub-image set to be processed according to the sub-image position information and sub-image color information corresponding to each sub-image to be processed; generate a target image compression model corresponding to each sub-image set to be processed according to each sub-image set to be processed and the initial image compression model; compress the sub-image set to be processed corresponding to each target image compression model based on each target image compression model to obtain a sub-image set compression result corresponding to each sub-image set to be processed; determine an image compression result corresponding to the image to be processed according to the compression result of each sub-image set;

[0018] The data receiving end is configured to receive an image compression result, obtain at least one sub-image set compression result according to the image compression result; parse the reference sub-image set compression result to obtain a sub-image compression information set and a reference decompression network parameter, wherein the reference sub-image set compression result is any one of the sub-image set compression results; construct a reference image decompression model according to the reference decompression network parameter; process the sub-image compression information set based on the reference image decompression model, obtain the original sub-image set corresponding to the first sub-image set compression result, and obtain the original image corresponding to the image compression result according to each original sub-image set.

[0019] According to a third aspect of an embodiment of this specification, a computing device is provided, including:

[0020] Memory and processor;

[0021] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned image processing method are implemented.

[0022] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned image processing method are implemented.

[0023] According to a fifth aspect of the embodiments of this specification, a computer program product is provided, comprising a computer program / instruction, which implements the steps of the above-mentioned image processing method when executed by a processor.

[0024] An embodiment of the present specification realizes obtaining an image to be processed, as well as preset sub-image segmentation information and an initial image compression model corresponding to the preset sub-image segmentation information; processing the image to be processed based on the preset sub-image segmentation information to obtain at least one sub-image to be processed, and determining at least one sub-image set to be processed according to the sub-image position information and sub-image color information corresponding to each sub-image to be processed; generating a target image compression model corresponding to each sub-image set to be processed according to each sub-image set to be processed and the initial image compression model; compressing the sub-image set to be processed corresponding to each target image compression model based on each target image compression model to obtain a sub-image set compression result corresponding to each sub-image set to be processed; and determining an image compression result corresponding to the image to be processed according to the compression result of each sub-image set.

[0025] By applying the scheme of the embodiments of the present specification, after dividing the image to be processed into multiple sub-image sets to be processed according to color, multiple target image compression models are obtained according to each sub-image set to be processed, so that the image sets trained to obtain each target image compression model have similar colors, and thus each sub-image set to be processed can be input into its corresponding target image compression model to obtain the corresponding compression information of each sub-image in each sub-image set to be processed more accurately, and then the compressed data containing the corresponding compression information of each sub-image set and the decompression network parameters is transmitted to the receiving end, so that a more accurate and higher resolution image can be obtained after decompression processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is a flow chart of an image processing method applied to a data sending end provided by an embodiment of this specification;

[0027] Figure 2is a flowchart of an image processing method applied to a data receiving end provided by an embodiment of this specification;

[0028] Figure 3 is an architecture diagram of an image processing system provided by an embodiment of this specification;

[0029] Figure 4 is a process flow chart of a method for compressing game textures provided by an embodiment of this specification;

[0030] Figure 5 is a structural schematic diagram of an image processing device applied to a data sending end provided by an embodiment of this specification;

[0031] Figure 6 is a structural schematic diagram of an image processing device applied to a data receiving end provided by an embodiment of the present specification;

[0032] Figure 7 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0033] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0034] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0035] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0036] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0037] In this specification, an image processing method applied to a data sending end, an image processing method applied to a data receiving end, and an image processing system are provided. This specification also involves an image processing device, a computing device, a computer-readable storage medium, and a computer program product, which are described in detail one by one in the following embodiments.

[0038] See also Figure 1 , Figure 1 A flowchart of an image processing method applied to a data sending end provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0039] Step 102: Acquire an image to be processed, preset sub-image segmentation information, and an initial image compression model corresponding to the preset sub-image segmentation information.

[0040] In practical applications, the image to be processed is an image that needs to be compressed, the sub-image segmentation information is information used when segmenting the image to be processed, and the initial image processing model is a neural network model that has not been trained for the image to be processed.

[0041] Specifically, the image to be processed can be understood as a high-resolution colored image that needs to be processed through compression technology to reduce the network resources required for transmission. Take the game scene as an example, where the image to be processed is a high-resolution colored map, which is used for elements such as characters, environments and objects in the game to provide realistic visual effects. In virtual reality and augmented reality applications, high-resolution colored images are used for panoramic views, augmented reality markers and interactive models to provide an immersive experience, which is also a typical application of images to be processed. On image and video streaming platforms, high-resolution colored images and videos use compression technology to reduce bandwidth usage and loading time to ensure a smooth user experience. These high-resolution colored images also belong to the category of images to be processed, etc. This manual does not make any limitations on the comparison.

[0042] It should be noted that the initial image processing model can be obtained according to the type of the image to be processed. For example, the type of the image to be processed includes a pure color map, a normal map, a roughness data map, and other types of maps. The same sub-image segmentation information corresponds to different initial image processing models when the types of the image to be processed are different. Accordingly, the obtained initial image processing model is the initial image processing model corresponding to the corresponding sub-image segmentation information of the image to be processed.

[0043] Step 104: Process the image to be processed based on the preset sub-image segmentation information to obtain at least one sub-image to be processed, and determine at least one sub-image set to be processed according to the sub-image position information and sub-image color information corresponding to each sub-image to be processed.

[0044] In practical applications, the sub-image to be processed is the sub-image obtained after segmenting the image to be processed, the sub-image position information is the position of each sub-image to be processed obtained after segmentation in the original image to be processed, the sub-image color information is the color information of the sub-image, and the set of sub-images to be processed is a set of sub-images with similar corresponding color information.

[0045] Specifically, the sub-image to be processed can be understood as an image with a smaller resolution obtained by processing the image to be processed according to the sub-image segmentation information. The method of obtaining the target sub-image to be processed can be to segment the high-resolution image to be processed into multiple sub-images with the same resolution through a fixed resolution, or to segment the high-resolution image to be processed into a fixed number of small-resolution images through a fixed number, or to segment the high-resolution image to be processed into multiple sub-images with the same resolution through a fixed resolution and then expand the edges of the sub-images according to a preset number of pixels to obtain them, etc. This manual does not impose any restrictions on this.

[0046] It should be noted that the sub-image position information can be understood as the position of the sub-image to be processed after segmentation on the original sub-image to be processed. In one embodiment provided in this specification, the original sub-image to be processed is an image with a resolution of 128*128, and 4 sub-images to be processed are obtained by segmentation with a resolution of 64*64. The sub-image position information of the upper left corner is 0_0, the sub-image position information of the upper right corner is 0_1, the sub-image position information of the lower left corner is 1_0, and the sub-image position information of the lower right corner is 1_1. The sub-image color information can be understood as the information composed of the colors corresponding to each pixel in the sub-image to be processed.

[0047] Further, at least one set of sub-images to be processed is determined according to the sub-image position information and sub-image color information corresponding to each sub-image to be processed, including:

[0048] Based on the sub-image color information corresponding to each sub-image to be processed, the color distance information between the target sub-image to be processed and each reference sub-image to be processed is calculated, wherein the target sub-image to be processed is any one of the sub-images to be processed, and the reference sub-image to be processed is a sub-image to be processed in each sub-image to be processed except the target sub-image to be processed;

[0049] At least one set of sub-images to be processed is determined in each sub-image to be processed according to the sub-image position information corresponding to the sub-image to be processed and the color distance information.

[0050] In practical applications, color distance information represents the color difference between any sub-image and another sub-image.

[0051] Specifically, the sub-image color information can be understood as the color information of each pixel in the sub-image to be processed, and the color information can be represented by any method such as RGB (Red, Green, Blue), HSV (Hue, Saturation, Value), and Lab (CIE ELAB, Lightness, a and b, color space CIE ELAB, lightness, a and b), etc., and this specification does not impose any restrictions on this. Accordingly, the method of calculating the distance between two colors can be to directly calculate the distance between the color information, or it can be through a preset color calculation formula such as CIEDE2000 (Color Difference), Manhattan distance, etc., and this specification does not impose any restrictions on this.

[0052] It should be noted that the method for calculating the color distance information between the target sub-image to be processed and each reference sub-image to be processed can be to directly calculate the color distance between each pixel of the two sub-images based on the sub-image color information and then take the average value or sum of the color distance area between each pixel as the color distance between the two sub-images; it can also be to calculate the representative color of the sub-image based on the color information of the sub-image, and then calculate the distance between the representative colors of the two sub-images as the color distance between the two sub-images, and so on. This manual does not impose any restrictions on this.

[0053] It should be noted that, in order to ensure the efficiency of color distance calculation, it is preferred to remove meaningless color information (all black or all white) in the sub-image color information corresponding to the sub-image to be processed before calculating the color distance.

[0054] By determining the color distance between sub-images, it is convenient to classify them according to the color distance between the sub-images in the future, and thus sub-images with similar colors can be effectively divided into the same sub-image set, so that the problem of low accuracy caused by the existence of images with large color differences in the sub-image set can be avoided during subsequent image compression and restoration.

[0055] Furthermore, based on the sub-image color information corresponding to each sub-image to be processed, the color distance information between the target sub-image to be processed and each reference sub-image to be processed is calculated, including:

[0056] Based on the sub-image color information corresponding to each sub-image to be processed, obtaining the characteristic color information corresponding to each sub-image to be processed;

[0057] According to the characteristic color information corresponding to each sub-image to be processed, the color distance information between the target sub-image to be processed and each reference sub-image to be processed is calculated.

[0058] In practical applications, the characteristic color information is the color information representing the main color corresponding to the sub-image to be processed.

[0059] Specifically, the characteristic color information can be understood as the main color represented in the sub-image to be processed. The method of determining the characteristic color information can be to determine the color information with the most pixels of the same color information in the sub-image color information as the characteristic color information, or to cluster the sub-image color information and take the central color information of the category with the most pixels included in each category after clustering as the characteristic color information, and so on. This manual does not impose any restrictions on the comparison.

[0060] By first obtaining the characteristic color information of each sub-image and then calculating the color distance between each sub-image based on the characteristic color information, it is possible to calculate the color distance between each sub-image by using the characteristic color information that characterizes the main color of the sub-image, thereby improving the efficiency of calculating the color distance, and thereby improving the efficiency of subsequent image compression while ensuring the accuracy of image compression and restoration.

[0061] Further, based on the sub-image color information corresponding to each sub-image to be processed, characteristic color information corresponding to each sub-image to be processed is obtained, including:

[0062] Determine at least one color interval corresponding to the reference sub-image to be processed and the ratio of each color interval according to the sub-image color information corresponding to the reference sub-image to be processed, wherein the reference sub-image to be processed is any one of the sub-images to be processed;

[0063] Determining a reference color interval in each color interval according to a ratio of each color interval;

[0064] The color corresponding to the reference color interval is determined as characteristic color information corresponding to the reference sub-image to be processed.

[0065] In practical applications, the color interval is an interval of approximate color components in the sub-image, and the ratio of the color interval is the ratio of each color interval in the entire sub-image.

[0066] Specifically, the color interval can be confirmed by calculating the difference between the color information of each pixel in the sub-image and other pixels, and setting a difference threshold. When the distance is greater than the difference threshold, it is considered to be a different color interval. In this way, the color interval in the image can be adaptively extracted, and the color ratio of each interval can be calculated; the clustering algorithm can also be used to confirm the color interval. By using the pixel colors in the image as data points, clustering is performed using an algorithm to determine a predefined number of color intervals. Each cluster center represents a color interval, and all pixels are assigned to each interval according to the distance from the cluster center, so as to obtain the color ratio of each interval; the color histogram analysis method can also be used to determine the color interval by constructing the color histogram of the image.

[0067] The color space is divided into several intervals, and the number of pixels in each interval is counted to obtain the distribution of each color interval. By analyzing the histogram, the main color intervals can be identified and their proportions in the overall image can be calculated. Then, the color interval with a larger proportion in the sub-image can be determined, and the representative color of the color interval can be confirmed as the characteristic color information of the sub-image, that is, the main color information.

[0068] Further, according to the sub-image position information and each color distance information corresponding to the sub-image to be processed, at least one sub-image set to be processed is determined in each sub-image to be processed, including:

[0069] Determine the color feature matrix corresponding to the image to be processed according to the sub-image position information and color distance information corresponding to each sub-image to be processed;

[0070] At least one set of sub-images to be processed is determined according to the color feature matrix and the sub-image position information corresponding to each sub-image to be processed.

[0071] In practical applications, the color feature matrix is ​​a matrix of the comprehensive relationship between the color and position of each sub-image in the sub-image divided by the image to be processed. The values ​​in the color feature matrix can be understood as the color distance between the sub-images, and the position of each value in the matrix can be understood as the position of the two sub-images corresponding to each distance in the image to be processed.

[0072] The color feature matrix can clearly reflect the color differences between the sub-images in the image to be processed, which improves the efficiency of the subsequent division of the image set.

[0073] Further, according to the sub-image position information and color distance information corresponding to each sub-image to be processed, a color feature matrix corresponding to the image to be processed is determined, including:

[0074] Determine at least one matrix value according to the color distance information corresponding to each sub-image to be processed;

[0075] Determine the matrix position corresponding to each matrix value based on the sub-graph position information corresponding to each sub-graph to be processed;

[0076] Construct a color feature matrix based on the matrix positions corresponding to each matrix value.

[0077] In practical applications, the matrix value is the value of a single position in the color feature matrix, and the matrix position is the position corresponding to the matrix value in the color feature matrix.

[0078] Specifically, determining the matrix position corresponding to each matrix value based on the sub-graph position information corresponding to each sub-graph to be processed can be understood as first determining the sequence information of the sub-graphs to be processed according to the sub-graph position information corresponding to each sub-graph to be processed, and then obtaining the distance information between each sub-graph to be processed according to the above sequence information and placing it into the corresponding position in the matrix.

[0079] It should be noted that in some special cases, for example, color distance calculation based on illumination direction, color distance calculation based on motion perception, etc., the method for calculating color distance may be based on direction.

[0080] In one embodiment provided in the present specification, the sub-image to be processed is divided into four sub-images to be processed, and their respective position information is as follows: the sub-image position information of the sub-image A in the upper left corner is 0_0, the sub-image position information of the sub-image B in the upper right corner is 0_1, the sub-image position information of the sub-image C in the lower left corner is 1_0, the sub-image position information of the sub-image D in the lower right corner is 1_1, the color distance information between sub-image A and sub-image B is 8, the color distance information between sub-image A and sub-image C is 7, and the color distance information between sub-image A and sub-image D is 3; the color distance information between sub-image B and sub-image A is 3, the color distance information between sub-image B and sub-image C is 6, and the color distance information between sub-image B and sub-image D is 1_1. The color distance information between sub-images D is 14; the color distance information between sub-images C and sub-images B is 1, the color distance information between sub-images C and sub-images A is 4, and the color distance information between sub-images C and sub-images D is 16; the color distance information between sub-images D and sub-images B is 4, the color distance information between sub-images D and sub-images A is 1, and the color distance information between sub-images D and sub-images C is 17, then the corresponding color feature matrix is ​​a 4*4 matrix, the values ​​of the first row are [0, 8, 7, 3], the values ​​of the second row are [3,0,6,14], the values ​​of the third row are [4,1,0,16], and the values ​​of the fourth row are [1,4,17,0].

[0081] By using the color feature matrix, the color differences between the sub-images in the image to be processed can be clearly reflected, and then in the subsequent division of the sub-image set, the image set can be divided only by the above-mentioned color feature matrix, and then compared with comparing the color distance of each sub-image one by one, the efficiency of dividing the sub-image set can be further improved.

[0082] Further, determining at least one set of sub-images to be processed according to the color feature matrix and the sub-image position information corresponding to each sub-image to be processed includes:

[0083] Determine at least one initial sub-image set to be processed according to the color feature matrix;

[0084] Determine at least one isolated subgraph in each initial set of subgraphs to be processed according to the subgraph position information corresponding to each subgraph to be processed;

[0085] Determine the subgraph sets to be processed corresponding to each isolated subgraph in each initial subgraph set to be processed according to the subgraph position information corresponding to each isolated subgraph;

[0086] Each isolated subgraph is stored in a to-be-processed subgraph set corresponding to each isolated subgraph, and at least one to-be-processed subgraph set is determined.

[0087] In practical applications, an isolated subgraph is an isolated subgraph that has no connected images adjacent to its subgraph position information (ie, up, down, left, or right) in the current directory.

[0088] Specifically, the current set of subgraphs to be processed is traversed to check whether each image is an isolated subgraph (no connected image) in the current set of subgraphs to be processed, and the isolated subgraphs of each set of subgraphs to be processed are recorded. Then, the isolated subgraphs under each category are connected to all images under other categories to determine the set of subgraphs to be processed corresponding to each isolated subgraph, and then migration is performed (each isolated subgraph is stored in the set of subgraphs to be processed corresponding to each isolated subgraph). The method for confirming the set of subgraphs to be processed corresponding to the isolated subgraphs is to first find a set of subgraphs whose subgraph position distance to the above-mentioned isolated subgraph is less than or equal to a preset threshold subgraph, and then confirm that the subgraph set whose absolute distance to the central image of the above-mentioned subgraph set is closest to the isolated subgraph is the set of subgraphs to be processed corresponding to the isolated subgraph, that is, the method for confirming the set of subgraphs to be processed corresponding to the isolated subgraphs can also be to determine the set of subgraphs to be processed corresponding to each isolated subgraph in each initial set of subgraphs to be processed according to the color feature matrix and the subgraph position information corresponding to each isolated subgraph.

[0089] It should be noted that since isolated subgraphs of different types may have connectivity, it is necessary to confirm and correct the transfer situation again. Therefore, when determining the set of subgraphs to be processed corresponding to each isolated subgraph, the path that each isolated subgraph needs to be copied to the set of subgraphs to be processed is recorded. Figure 1 After step 2, the goal is to process the subgraph set A, and there are isolated subgraphs Figure 3 , the destination is the subgraph set B to be processed, because in the above steps, the isolated subgraph Figure 3 Think and solitons Figure 1 The solution is: first, in the isolated subgraph Figure 1 Migrate to the pending subgraph set A and record the current migration history; then Figure 3 In the migration summary, we query the history and find that the subgraph location information has been transferred to the pending subgraph set B. Finally, we modify the isolated subgraph Figure 3 The migration destination is the solitary Figure 1 The target subgraph set A is to be processed.

[0090] In one embodiment provided in the present specification, the method of determining at least one initial set of sub-images to be processed according to the color feature matrix is ​​as follows: first, any sub-image in the sub-image list after cutting is determined as the central image C, and the images adjacent to the central image are obtained according to the position information of the sub-image, and the images adjacent to the central image C are put into the candidate image list. The absolute distance between the central image C and the current confirmed image D for the single color map is calculated using the distance matrix, and when the absolute distance is less than a preset threshold, the current confirmed image D and the central image C are determined to be similar images.

[0091] Afterwards, remove the current picture D from the candidate picture list. Determine whether the candidate picture list is empty. If so, execute the step of removing the central picture C from the sub-picture list after cutting. If not, execute the step of obtaining the current confirmed picture D from the above candidate picture list, and also put the pictures adjacent to the previous confirmed picture D into the candidate picture list. Remove the central picture C from the sub-picture list after cutting, and determine whether the sub-picture list after cutting is empty. If so, execute the step of determining the similar pictures corresponding to each central picture, divide the similar pictures corresponding to each central picture into the set corresponding to the central picture, and determine the absolute distance between each central picture. If not, execute the step of determining any sub-picture in the sub-picture list after cutting as the central picture C, obtain the pictures adjacent to the central picture according to the position information of the sub-picture, and put the pictures adjacent to the central picture C into the candidate picture list.

[0092] Subsequently, similar pictures corresponding to each central picture are determined, and similar pictures corresponding to each central picture are divided into a set corresponding to the central picture. The absolute distance between each central picture is determined, and the sets corresponding to the central pictures whose absolute distances are less than a threshold are merged.

[0093] It should be noted that in the above embodiment, the absolute distance between the center image C and the currently confirmed image D is calculated using the distance matrix by sorting the sub-images according to the color distance between the center image C and all the sub-images of the corresponding color map (that is, selecting the row corresponding to the center image C in the distance matrix, and sorting the sub-images according to the value on the row vector), and the ranking of each sub-image after sorting is the absolute distance between each image and the center image C. The method for determining similar images to the current center image C is that the sub-images whose distance ranking from the center image C is less than a preset threshold among all sub-images are similar images. In the case where the absolute distance between a picture and multiple center images is less than a threshold, the picture is determined to be a similar picture corresponding to the center image with the smallest distance threshold.

[0094] Since the sub-images are divided only according to color, there may be several sub-images in a picture set with no connectivity at all. In use, although the color tendency of such isolated sub-images may be closer to the classification results, due to the lack of texture correlation, they may lead to more obvious small blocks of color after training, which in turn leads to reduced accuracy in image compression and restoration. Therefore, the above problems can be effectively avoided by dividing the isolated sub-images into their corresponding sets of sub-images to be processed.

[0095] Moreover, because the compression rate will be reduced when the number of sub-images in the sub-image set is small, after the above-mentioned sub-image set division is performed, the sub-images in the sub-image set whose number of sub-images is less than the threshold are combined into a set for processing; if the number of sub-images in the set is still less than the threshold after the combination, the sub-images therein are processed in accordance with the above-mentioned isolated sub-image processing method, which can further improve the image compression efficiency.

[0096] Step 106: Generate a target image compression model corresponding to each sub-image set to be processed according to each sub-image set to be processed and the initial image compression model.

[0097] In practical applications, the target image compression model is a network model obtained by training each sub-image in the corresponding sub-image set to be processed.

[0098] Specifically, the method of generating the target image compression model corresponding to each sub-image set to be processed according to each sub-image set to be processed and the initial image compression model can be understood as training the initial image compression model according to each sub-image set to be processed respectively, and obtaining the target image processing model corresponding to each sub-image set to be processed respectively.

[0099] The target image processing model can be understood as a neural network model or network unit that processes each sub-image in the corresponding set of sub-images to be processed into the corresponding features of each sub-image in the corresponding set of sub-images to be processed. The corresponding features of each sub-image in the corresponding set of sub-images to be processed after being processed by the target image processing model are stored in the form of a matrix or a vector, and the corresponding features of each sub-image in the set of sub-images to be processed have a smaller volume than the sub-image before being processed, thereby achieving the effect of reducing the volume of the image to achieve compression.

[0100] Considering that in this scheme, it is necessary to encode the sub-image to realize the compression of the sub-image, and obtain the parameters required for decoding the compressed features to realize the restoration of the sub-image, the initial image processing model includes an initial image encoding layer and an initial image decoding layer;

[0101] According to each set of sub-images to be processed and the initial image compression model, a target image compression model corresponding to each set of sub-images to be processed is generated, including:

[0102] Determine a sample to-be-processed sub-image set, determine a sample to-be-processed sub-image in the sample to-be-processed sub-image set, and input the sample to-be-processed sub-image into the initial image coding layer to obtain sample image coding feature information generated by the initial image coding layer, wherein the sample to-be-processed sub-image set is any one of the to-be-processed sub-image sets, and the sample to-be-processed sub-image is any one of the to-be-processed sub-images in the sample to-be-processed sub-image set;

[0103] Inputting the sample image coding feature information into the initial image decoding layer, and obtaining the predicted sub-image generated by the initial image decoding layer;

[0104] The initial image processing model is adjusted according to the sample to-be-processed sub-image and the predicted sub-image to obtain a target image processing model.

[0105] In practical applications, the initial image encoding layer is a neural network layer that has not been trained for encoding images, and the initial image decoding layer is a neural network layer that has not been trained for decoding image feature information to generate images. The sample sub-image to be processed is an image obtained by adjusting the initial image processing model to obtain the target image processing model, the sample image coding feature information is the image coding feature corresponding to the sample sub-image to be processed obtained by processing the sample sub-image to be processed using the image coding layer, and the predicted sub-image is the image corresponding to the sample image predicted by the initial image processing model.

[0106] The target image encoding layer is a neural network layer that has been trained for encoding images, and the target image decoding layer is a neural network layer that has been trained for decoding image feature information to generate images.

[0107] Since the image processing model is used to compress images in this scheme, the more similar the image obtained by the model is to the input image, the better the effect of the model is, and the parameters of each layer in the model meet expectations. Therefore, by processing the initial image model with sample sub-images to be processed and predicted sub-images, the target image processing model and image decompression parameters (parameters of the target image decoding layer) for subsequent compression processing of each image can be obtained.

[0108] Considering that the volume of the encoded image features is still large, in order to further reduce the network pressure for image transmission, the initial image processing model also includes an initial encoding quantization layer;

[0109] Furthermore, after determining the sample sub-image to be processed, inputting the sample sub-image to be processed into the initial image coding layer, and obtaining the sample image coding feature information generated by the initial image coding layer, the method further includes:

[0110] Inputting the sample image coding feature information into the initial coding quantization layer, and obtaining the sample image quantization feature information output by the initial coding quantization layer;

[0111] Inputting the sample image quantization feature information into the initial image decoding layer to obtain the prediction sub-graph generated by the initial image decoding layer;

[0112] The initial image processing model is adjusted according to the sample to-be-processed sub-image and the predicted sub-image to obtain a target image processing model.

[0113] In practical applications, the initial coding quantization layer is a layer that has not been trained for quantizing image coding, the sample image quantization feature information is the information obtained by quantizing the image coding features corresponding to the sample sub-image to be processed, and the target coding quantization layer is a layer that has been trained for quantizing image coding.

[0114] Specifically, the method of quantizing through the coding quantization layer can be to compare each vector in the image coding feature information with a predefined codebook vector, and use the nearest neighbor search to map the weight vector to the nearest vector in the codebook; it can also be by clustering the vectors corresponding to the image coding feature information, and quantizing each vector corresponding to each image coding feature information into the center vector of the cluster to which it belongs; vector quantization technology can also be used to divide the high-dimensional feature space into multiple regions, each region is represented by a codebook vector, so that each vector corresponding to the image coding feature information is mapped to the corresponding codebook vector, and so on. This specification does not impose any restrictions on this.

[0115] The target image processing model obtained by the initial image processing model including the initial coding quantization layer can effectively reduce the data to be transmitted compared to directly transmitting the encoded features as the compression results of the sub-image, and can further improve the efficiency of image transmission while ensuring the accuracy of image compression and restoration.

[0116] Step 108: compressing the to-be-processed sub-image sets corresponding to the target image compression models based on the target image compression models, and obtaining the sub-image set compression results corresponding to the to-be-processed sub-image sets.

[0117] In practical applications, the compression result of a sub-graph set is the features of each sub-graph in the sub-graph set after being compressed by the target image compression model corresponding to the sub-graph set and the decompression network parameters corresponding to the sub-graph set.

[0118] Specifically, the sub-image set compression result can be understood as the compression result corresponding to a single sub-image set, which includes vectors or matrices obtained after each sub-image in the set is processed by the target image processing model.

[0119] Further, the target image processing model includes a target image coding layer and a target coding quantization layer;

[0120] Compressing the to-be-processed sub-image sets corresponding to the to-be-processed sub-image compression models based on the target image compression models, and obtaining the sub-image set compression results corresponding to the to-be-processed sub-image sets, including:

[0121] Determine a reference sub-graph set to be processed, and determine a reference sub-graph to be processed in the reference sub-graph set to be processed, wherein the reference sub-graph set to be processed is any one of the sub-graph sets to be processed, and the reference sub-graph to be processed is any one of the sub-graphs to be processed in the reference sub-graph set to be processed;

[0122] Inputting the reference sub-image to be processed into the target image coding layer, obtaining a sub-image compression result, and obtaining reference decompression network parameters, wherein the reference decompression network parameters are obtained by the reference sub-image set to be processed and the image processing model;

[0123] According to the sub-graph compression results corresponding to each sub-graph to be processed in the reference sub-graph set to be processed, a sub-graph set compression result corresponding to the reference sub-graph set to be processed is obtained.

[0124] In practical applications, the reference sub-image to be processed is any one of the sub-images to be processed, and the reference sub-image encoding feature information is feature information obtained by the reference sub-image to be processed through the target image encoding layer.

[0125] Specifically, the image coding layer can be understood as a neural network layer that encodes the image to obtain image features. The image feature information obtained by encoding the image can be understood as information that represents the corresponding features of the image in the form of a matrix. The image coding layer can be any neural network layer that performs image encoding, and this specification does not impose any limitations on this.

[0126] By compressing the reference sub-image to be processed by a target image coding layer obtained by training a sub-image set including the reference sub-image to be processed, the knowledge learned in the deep learning model can be used when compressing the image, so that less data can be transmitted in the subsequent image transmission process to achieve high-resolution image transmission, thereby reducing the pressure on the network during image transmission.

[0127] Considering that the volume of the encoded image features is still large, in order to further reduce the network pressure for image transmission, the target image processing model also includes a target encoding quantization layer;

[0128] After inputting the reference sub-image to be processed into the target image coding layer and obtaining the reference sub-image coding feature information, the method further includes:

[0129] Determining a reference sub-image to be processed, and inputting the reference sub-image to be processed into the target image coding layer to obtain coding feature information of the reference sub-image;

[0130] The reference sub-image encoding feature information is input into the target encoding quantization layer to obtain a sub-image compression result corresponding to the reference sub-image to be processed.

[0131] In practical applications, the target coding quantization layer can be understood as the process of mapping the feature vector in the sub-image coding feature information to the discrete codebook vector by using a predefined codebook, thereby realizing the model quantization process. The target coding quantization layer can reduce the storage requirements and computational complexity of the model while maintaining the performance of the model as much as possible. Through the target coding quantization layer, the original continuous sub-image coding feature information is replaced with the discrete value closest to the vector in the codebook to achieve more efficient storage and calculation.

[0132] By compressing the reference sub-image to be processed using a target image coding layer and a target coding quantization layer obtained by training a sub-image set including the reference sub-image to be processed, the knowledge learned in the deep learning model can be utilized when compressing the image, and further quantizing the coding features using the target coding quantization layer can transmit less data in the subsequent image transmission process to achieve high-resolution image transmission, thereby reducing the pressure on the network during image transmission.

[0133] Step 110: Determine the image compression result corresponding to the image to be processed according to the compression results of each sub-image set.

[0134] In practical applications, the image compression result is a compressed package obtained by combining the compression results of each sub-image set.

[0135] By applying the scheme of the embodiments of the present specification, after the image to be processed is divided into multiple sub-graph sets to be processed according to color, multiple target image compression models are obtained according to each sub-graph set to be processed, so that the image sets for training each target image compression model have similar colors, and then each sub-graph set to be processed can be input into its corresponding target image compression model to obtain more accurate compression information corresponding to each sub-graph in each sub-graph set to be processed, and sub-graphs in the sub-graph set that are not adjacent to other sub-graphs are divided into sets corresponding to their vector sub-graphs according to the position information of the image, avoiding the problem of poor image restoration effect caused by the fact that although the color is the same, the set includes another part of the original image, resulting in the inability to consider the connectivity information of the image when compressing and restoring the image, and then transmitting the compressed data containing the compression information corresponding to each sub-graph set and the decompression network parameters to the receiving end, so that a more accurate and higher resolution image is obtained after decompression processing.

[0136] Corresponding to the above method embodiment, this specification also provides an image processing method embodiment applied to a data receiving end, see Figure 2 , Figure 2 A flowchart of an image processing method applied to a data receiving end provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0137] Step 202: receiving an image compression result, and obtaining at least one sub-image set compression result according to the image compression result.

[0138] Step 204: parsing the reference subgraph set compression result to obtain a subgraph compression information set and a reference decompression network parameter, wherein the reference subgraph set compression result is any one of the subgraph set compression results.

[0139] Step 206: construct a reference image decompression model according to the reference decompression network parameters.

[0140] Step 208: Process the sub-image compression information set based on the reference image decompression model, obtain an original sub-image set corresponding to the compression result of the first sub-image set, and obtain an original image corresponding to the image compression result according to each original sub-image set.

[0141] In practical applications, the reference decompression network parameters include the network parameters corresponding to the target image decoding layer, and the image decompression model is a neural network model that restores the compression results of each sub-image in the corresponding sub-image set to an image. The target image decompression model can be understood as a neural network model that includes the target image decoding parameters in the above image compression results to construct the image decoding layer.

[0142] Considering the need to decompress the sent sub-image compression results, the reference image decompression model includes an image decoding layer;

[0143] Processing the sub-image compression information set based on the reference image decompression model to obtain an original sub-image set corresponding to the compression result of the first sub-image set includes:

[0144] Determine a target subgraph compression result, wherein the target subgraph compression result is any one of the subgraph compression results in the subgraph compression information set;

[0145] The target sub-image compression result is input into the image decoding layer to obtain an initial restored sub-image corresponding to the target sub-image compression result.

[0146] In practical applications, the image decoding layer is a neural network layer that restores image coding features to an image, and the initial restored sub-graph is an image generated using the image coding features.

[0147] Specifically, since the target quantization vectors and their corresponding quantization indexes are constructed by training the uncompressed sub-image, the image coding features obtained by the coding feature restoration layer can have a high degree of similarity with the original image coding features. The image decoding layer can be understood as being constructed using the target image decoding parameters in the above image compression results. Since the parameters are constructed by training the uncompressed sub-image, the initial restored sub-image obtained by the image decoding layer can have a high degree of similarity with the original target sub-image.

[0148] Since the parameters in the target image decompression model are obtained by training the uncompressed sub-image to be compressed, the initial restored sub-image obtained by the target image decompression model can have a high similarity with the original target sub-image to be compressed.

[0149] Considering that in the above data transmission process, in order to further reduce the data required for image transmission, the quantized features are used as sub-image compression results for transmission, so the reference image decompression model also includes a coding feature restoration layer;

[0150] After determining the target subgraph compression result, the method further includes:

[0151] Inputting the target sub-image compression result into the coding feature restoration layer to obtain the target sub-image coding feature information;

[0152] The target sub-image encoding feature restoration information is input into the image decoding layer to obtain an initial restored sub-image corresponding to the target sub-image compression result.

[0153] In practical applications, the coding feature restoration layer is a layer that restores the sub-image compression results to image coding features. The coding feature restoration layer can be understood as a layer constructed using the compression results of each sub-image in the above reference sub-image set and their corresponding quantization indices. The image decompression model can be understood as constructing an image decoding layer using the target image decoding parameters in the above image compression results and constructing a coding feature restoration layer using the target quantization vectors in the above image compression results and their corresponding quantization indices.

[0154] In the process of data transmission, in order to further reduce the data required to be transmitted when transmitting the image, the quantized features are used as the sub-image compression results for transmission. Therefore, the target sub-image encoding feature information in matrix form is obtained by combining the above-mentioned reference sub-image with the data corresponding to each target quantization layer in the corresponding sub-image compression result (for example, each target quantization vector and its corresponding quantization index replaces each quantization index with the target quantization vector). This can make the obtained initial restored sub-image more accurate, and thus make the subsequent image restoration more accurate.

[0155] The above is a schematic scheme of an image processing method for a data receiving end of this embodiment. It should be noted that the technical scheme of the image processing method for the data receiving end and the technical scheme of the image processing method for the data sending end are of the same concept, and the details not described in detail in the technical scheme of the image processing method for the data receiving end can be referred to the description of the technical scheme of the image processing method for the data sending end.

[0156] By applying the scheme of the embodiments of the present specification, compression results of each sub-image set are received, and reference image decompression models corresponding to the compression results of the sub-image set are constructed. Since the compression results of the sub-image set and the parameters for constructing the reference image decompression model are obtained based on a sub-image set composed of similar colors, the compression results corresponding to the image to be compressed with multiple colors can have a better restoration effect, thereby obtaining a more accurate and higher resolution image.

[0157] See also Figure 3 , Figure 3 An architecture diagram of an image processing system provided by an embodiment of the present specification is shown, and the image processing system may include a client 100 and a server 200;

[0158] The client 100 is used to send a data download request to the server 200;

[0159] The server 200 is used to obtain an image to be processed, as well as preset sub-image segmentation information and an initial image compression model corresponding to the preset sub-image segmentation information; process the image to be processed based on the preset sub-image segmentation information to obtain at least one sub-image to be processed, and determine at least one sub-image set to be processed according to the sub-image position information and sub-image color information corresponding to each sub-image to be processed; generate a target image compression model corresponding to each sub-image set to be processed according to each sub-image set to be processed and the initial image compression model; compress the sub-image set to be processed corresponding to each target image compression model based on each target image compression model to obtain a sub-image set compression result corresponding to each sub-image set to be processed; determine an image compression result corresponding to the image to be processed according to the compression result of each sub-image set; and send the image compression result to the client 100;

[0160] The client 100 is also used to receive the image compression result sent by the server 200, and obtain at least one sub-image set compression result based on the image compression result; parse the reference sub-image set compression result to obtain a sub-image compression information set and a reference decompression network parameter, wherein the reference sub-image set compression result is any one of the sub-image set compression results; construct a reference image decompression model based on the reference decompression network parameter; process the sub-image compression information set based on the reference image decompression model, obtain the original sub-image set corresponding to the first sub-image set compression result, and obtain the original image corresponding to the image compression result based on each original sub-image set.

[0161] In actual applications, a data download request is a request for obtaining a corresponding image to be processed. When a client needs to obtain at least one image to be processed stored in a server, a data download request is sent to the server. The data download request includes information of the specified image to be processed.

[0162] By applying the scheme of the embodiments of the present specification, the server divides the image to be processed into multiple sub-image sets to be processed according to color, and then obtains multiple target image compression models according to each sub-image set to be processed, so that the image sets trained to obtain each target image compression model have similar colors, and each sub-image set to be processed is input into its corresponding target image compression model to obtain more accurate compression information corresponding to each sub-image in each sub-image set to be processed, and then transmits compressed data containing compression information corresponding to each sub-image set and decompression network parameters to the client, so that the client can have a better restoration effect on the compression results corresponding to the image to be compressed with multiple colors by receiving the compression results of each sub-image set, thereby obtaining more accurate and higher resolution images.

[0163] The image processing system may include multiple clients 100 and a server 200, wherein the client 100 may be referred to as a client-side device and the server 200 may be referred to as a cloud-side device. Multiple clients 100 may establish a communication connection through the server 200. In the image processing scenario, the server 200 is used to provide image processing services between multiple clients 100. Multiple clients 100 may serve as a sender or a receiver, respectively, and realize communication through the server 200.

[0164] The user can interact with the server 200 through the client 100 to receive data sent by other clients 100, or send data to other clients 100, etc. In the image processing scenario, the user can publish a data stream to the server 200 through the client 100, and the server 200 generates an image compression result according to the data stream and pushes the image compression result to other clients that have established communication.

[0165] The client 100 and the server 200 are connected via a network. The network provides a medium for a communication link between the client 100 and the server 200. The network may include various connection types, such as wired or wireless communication links or optical fiber cables, etc. The data transmitted by the client 100 may need to be compressed, transcoded, compressed, etc. before being released to the server 200.

[0166] The client 100 can be a browser, an APP (Application), or a web application such as an H5 (HyperText Markup Language 5, Hypertext Markup Language Version 5) application, or a light application (also known as a mini-program, a lightweight application) or a cloud application, etc. The client 100 can be based on the software development kit (SDK, Software Development Kit) of the corresponding service provided by the server 200, such as based on the real-time communication (RTC, Real Time Communication) SDK development and acquisition. The client 100 can be deployed in an electronic device, and needs to rely on the device to run or some APPs in the device to run. For example, the electronic device can have a display screen and support information browsing, such as a personal mobile terminal such as a mobile phone, a tablet computer, a personal computer, etc. Various other types of applications can also be configured in the electronic device, such as human-computer dialogue applications, model training applications, text processing applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0167] The server 200 may include servers that provide various services, such as servers that provide communication services to multiple clients, servers for background training that provide support for models used on clients, and servers that process data sent by clients. It should be noted that the server 200 can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. The server can also be a server of a distributed system, or a server combined with a blockchain. The server can also be a cloud server for basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN, Content De l ivery Network), and big data and artificial intelligence platforms, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0168] It is worth noting that the image processing method provided in the embodiments of this specification is generally executed by the server, but in other embodiments of this specification, the client may also have similar functions to the server, thereby executing the image processing method provided in the embodiments of this specification. In other embodiments, the image processing method provided in the embodiments of this specification may also be jointly executed by the client and the server.

[0169] The following combination Figure 4 , taking the application of the image processing method provided in this specification in game texture compression as an example, the game texture compression method is further described. Figure 4 A flowchart of a processing process of a game texture compression method provided by an embodiment of this specification is shown, which specifically includes the following steps.

[0170] Step 402: Determine a plurality of color maps corresponding to the target game.

[0171] Step 404: Cut the single color map into multiple sub-maps, and obtain the distance matrix corresponding to the single color map according to the main colors of the sub-maps.

[0172] Step 406: Determine any sub-image in the sub-image list after cutting as the central image C, obtain the images adjacent to the central image according to the position information of the sub-image, and put the images adjacent to the central image C into the candidate image list.

[0173] Step 408: Obtain the current confirmed picture D from the above candidate picture list, and also put the pictures adjacent to the previous confirmed picture D into the candidate picture list.

[0174] Step 410: Calculate the absolute distance between the central image C and the current confirmed image D for the single color map using the distance matrix. When the absolute distance is less than a preset threshold, determine that the current confirmed image D and the central image C are similar images.

[0175] In practical applications, the absolute distance between the central image C and the currently confirmed image D is calculated using the distance matrix by sorting the sub-images according to the color distance between the central image C and all sub-images of the corresponding color map (that is, selecting the row corresponding to the central image C in the distance matrix, and sorting the sub-images according to the value on the row vector). The ranking of each sub-image after sorting is the absolute distance between each image and the central image C.

[0176] It should be noted that the method of determining similar pictures to the current central picture C is that the sub-pictures whose distance ranking from the central picture C is less than a preset threshold among all sub-pictures are similar pictures.

[0177] Step 412: Remove the current picture D from the candidate picture list.

[0178] Step 414: Determine whether the candidate image list is empty, if so, execute step 416, if not, execute step 408.

[0179] Step 416: Remove the central image C from the list of sub-images after cutting

[0180] Step 418: Determine whether the sub-image list after cutting is empty, if so, execute step 420, if not, execute step 406.

[0181] Step 420: Determine similar pictures corresponding to each central picture, and divide the similar pictures corresponding to each central picture into a set corresponding to the central picture.

[0182] In practical applications, when the absolute distance between a picture and multiple center pictures is less than a threshold, it is determined that the picture belongs to a similar picture corresponding to the center picture with the smallest distance threshold.

[0183] Step 422: Determine the absolute distance between each center image, and merge the corresponding sets between two center images whose absolute distance is less than a threshold.

[0184] Step 424: Determine in each sub-graph set an isolated sub-graph whose position distance from position information of other pictures in the set is greater than a preset threshold.

[0185] Step 426: Find a sub-graph set having a sub-graph position distance less than or equal to a preset threshold from the isolated sub-graph, and divide the isolated sub-graph into a sub-graph set whose absolute distance between the corresponding central image of the sub-graph set and the isolated sub-graph is the shortest.

[0186] Step 428: Determine whether there is a set in each set whose number of pictures is less than the threshold. If so, execute step 430; if not, execute step 432.

[0187] Step 430: Consider the images in the set smaller than the threshold as isolated sub-images, and search for a sub-image set with a sub-image position distance less than or equal to a preset threshold from the isolated sub-image, and divide the isolated sub-image into the sub-image set whose absolute distance between the corresponding central image of the sub-image set and the isolated sub-image is the closest.

[0188] Step 432: Train the data processing model in each subgraph set to obtain the target data processing model and decompression network parameters.

[0189] Step 434: input each image in each sub-image set into the target data processing model corresponding to each sub-image set, and obtain the sub-image compression result of each image in each sub-image set.

[0190] Step 436: Combining the compression results of each subgraph set corresponding to each subgraph set and the decompression network parameters corresponding to the subgraph set, generate subgraph set compression results corresponding to each subgraph set.

[0191] Step 438: Generate an image compression result of a single color map corresponding to the target game based on the compression result of the sub-image set.

[0192] By applying the scheme of the embodiments of the present specification, the server divides the image to be processed into multiple sub-image sets to be processed according to color, and then obtains multiple target image compression models according to each sub-image set to be processed, so that the image sets trained to obtain each target image compression model have similar colors, and each sub-image set to be processed is input into its corresponding target image compression model to obtain more accurate compression information corresponding to each sub-image in each sub-image set to be processed, and then transmits compressed data containing compression information corresponding to each sub-image set and decompression network parameters to the client, so that subsequent clients can receive compression results of each sub-image set, and have a better restoration effect on the compression results corresponding to the images to be compressed with multiple colors, thereby obtaining more accurate and higher resolution images, thereby improving the efficiency of game operation while ensuring the accuracy of game maps in the client running the game.

[0193] Corresponding to the above method embodiment, this specification also provides an image processing device embodiment applied to a data sending end, Figure 5 FIG. 2 shows a schematic diagram of a structure of an image processing device applied to a data sending end provided by an embodiment of the present specification. Figure 5 As shown, the device comprises:

[0194] A first acquisition module 502 is configured to acquire an image to be processed, preset sub-image segmentation information, and an initial image compression model corresponding to the preset sub-image segmentation information;

[0195] The sub-image set determination module 504 is configured to process the image to be processed based on the preset sub-image segmentation information to obtain at least one sub-image to be processed, and determine at least one sub-image set to be processed according to the sub-image position information and sub-image color information corresponding to each sub-image to be processed;

[0196] A model generation module 506 is configured to generate a target image compression model corresponding to each set of sub-images to be processed according to each set of sub-images to be processed and the initial image compression model;

[0197] The second acquisition module 508 is configured to compress the to-be-processed sub-image sets corresponding to the target image compression models based on the target image compression models, and obtain the sub-image set compression results corresponding to the to-be-processed sub-image sets;

[0198] The result determination module 510 is configured to determine the image compression result corresponding to the to-be-processed image according to the compression results of each sub-image set.

[0199] Optionally, the subgraph set determining module 504 is further configured to:

[0200] Based on the sub-image color information corresponding to each sub-image to be processed, the color distance information between the target sub-image to be processed and each reference sub-image to be processed is calculated, wherein the target sub-image to be processed is any one of the sub-images to be processed, and the reference sub-image to be processed is a sub-image to be processed in each sub-image to be processed except the target sub-image to be processed;

[0201] At least one set of sub-images to be processed is determined in each sub-image to be processed according to the sub-image position information corresponding to the sub-image to be processed and the color distance information.

[0202] Optionally, the subgraph set determining module 504 is further configured to:

[0203] Based on the sub-image color information corresponding to each sub-image to be processed, obtaining the characteristic color information corresponding to each sub-image to be processed;

[0204] According to the characteristic color information corresponding to each sub-image to be processed, the color distance information between the target sub-image to be processed and each reference sub-image to be processed is calculated.

[0205] Optionally, the subgraph set determining module 504 is further configured to:

[0206] Determine at least one color interval corresponding to the reference sub-image to be processed and the ratio of each color interval according to the sub-image color information corresponding to the reference sub-image to be processed, wherein the reference sub-image to be processed is any one of the sub-images to be processed;

[0207] Determining a reference color interval in each color interval according to a ratio of each color interval;

[0208] The color corresponding to the reference color interval is determined as characteristic color information corresponding to the reference sub-image to be processed.

[0209] Optionally, the subgraph set determining module 504 is further configured to:

[0210] Determine the color feature matrix corresponding to the image to be processed according to the sub-image position information and color distance information corresponding to each sub-image to be processed;

[0211] At least one set of sub-images to be processed is determined according to the color feature matrix and the sub-image position information corresponding to each sub-image to be processed.

[0212] Optionally, the subgraph set determining module 504 is further configured to:

[0213] Determine at least one matrix value according to the color distance information corresponding to each sub-image to be processed;

[0214] Determine the matrix position corresponding to each matrix value based on the sub-graph position information corresponding to each sub-graph to be processed;

[0215] Construct a color feature matrix based on the matrix positions corresponding to each matrix value.

[0216] Optionally, the subgraph set determining module 504 is further configured to:

[0217] Determine at least one initial sub-image set to be processed according to the color feature matrix;

[0218] Determine at least one isolated subgraph in each initial set of subgraphs to be processed according to the subgraph position information corresponding to each subgraph to be processed;

[0219] Determine the subgraph sets to be processed corresponding to each isolated subgraph in each initial subgraph set to be processed according to the subgraph position information corresponding to each isolated subgraph;

[0220] Each isolated subgraph is stored in a to-be-processed subgraph set corresponding to each isolated subgraph, and at least one to-be-processed subgraph set is determined.

[0221] Optionally, the initial image processing model includes an initial image encoding layer and an initial image decoding layer;

[0222] The model generation module 506 is further configured to:

[0223] Determine a sample to-be-processed sub-image set, determine a sample to-be-processed sub-image in the sample to-be-processed sub-image set, and input the sample to-be-processed sub-image into the initial image coding layer to obtain sample image coding feature information generated by the initial image coding layer, wherein the sample to-be-processed sub-image set is any one of the to-be-processed sub-image sets, and the sample to-be-processed sub-image is any one of the to-be-processed sub-images in the sample to-be-processed sub-image set;

[0224] Inputting the sample image coding feature information into the initial image decoding layer, and obtaining the predicted sub-image generated by the initial image decoding layer;

[0225] The initial image processing model is adjusted according to the sample to-be-processed sub-image and the predicted sub-image to obtain a target image processing model.

[0226] Optionally, the initial image processing model further includes an initial coding quantization layer;

[0227] The model generation module 506 is further configured to:

[0228] Inputting the sample image coding feature information into the initial coding quantization layer, and obtaining the sample image quantization feature information output by the initial coding quantization layer;

[0229] Inputting the sample image quantization feature information into the initial image decoding layer to obtain the prediction sub-graph generated by the initial image decoding layer;

[0230] The initial image processing model is adjusted according to the sample to-be-processed sub-image and the predicted sub-image to obtain a target image processing model.

[0231] The above is a schematic scheme of an image processing device applied to a data sending end of this embodiment. It should be noted that the technical scheme of the image processing device applied to the data sending end and the technical scheme of the image processing method applied to the data sending end belong to the same concept, and the details not described in detail in the technical scheme of the image processing device applied to the data sending end can all refer to the description of the technical scheme of the image processing method applied to the data sending end.

[0232] Optionally, the target image processing model includes a target image coding layer and a target coding quantization layer;

[0233] The second acquisition module 508 is further configured to:

[0234] Determine a reference sub-graph set to be processed, and determine a reference sub-graph to be processed in the reference sub-graph set to be processed, wherein the reference sub-graph set to be processed is any one of the sub-graph sets to be processed, and the reference sub-graph to be processed is any one of the sub-graphs to be processed in the reference sub-graph set to be processed;

[0235] Inputting the reference sub-image to be processed into the target image coding layer, obtaining a sub-image compression result, and obtaining reference decompression network parameters, wherein the reference decompression network parameters are obtained by the reference sub-image set to be processed and the image processing model;

[0236] According to the sub-graph compression results corresponding to each sub-graph to be processed in the reference sub-graph set to be processed, a sub-graph set compression result corresponding to the reference sub-graph set to be processed is obtained.

[0237] Optionally, the target image processing model further includes a target coding quantization layer;

[0238] The second acquisition module 508 is further configured to:

[0239] Determining a reference sub-image to be processed, and inputting the reference sub-image to be processed into the target image coding layer to obtain coding feature information of the reference sub-image;

[0240] The reference sub-image encoding feature information is input into the target encoding quantization layer to obtain a sub-image compression result corresponding to the reference sub-image to be processed.

[0241] By applying the scheme of the embodiments of the present specification, after the image to be processed is divided into multiple sub-graph sets to be processed according to color, multiple target image compression models are obtained according to each sub-graph set to be processed, so that the image sets for training each target image compression model have similar colors, and thus the compression information corresponding to each sub-graph in each sub-graph set to be processed can be obtained more accurately by inputting each sub-graph set to its corresponding target image compression model. In addition, sub-graphs in the sub-graph set that are not adjacent to other sub-graphs are divided into sets corresponding to their vector sub-graphs according to the position information of the image, thereby avoiding the problem of poor image restoration effect caused by the fact that the connectivity information of the image cannot be considered when compressing and restoring the image because the set includes another part of the original image although the color is the same. Subsequently, the compressed data containing the compression information corresponding to each sub-graph set and the decompression network parameters is transmitted to the receiving end, so that a more accurate and higher resolution image is obtained after decompression processing.

[0242] Corresponding to the above method embodiment, this specification also provides an image processing device embodiment applied to a data receiving end, Figure 6 FIG. 1 is a schematic diagram showing a structure of an image processing device applied to a data receiving end provided by an embodiment of the present specification. Figure 6 As shown, the device comprises:

[0243] A receiving module 602 is configured to receive an image compression result, and obtain at least one sub-image set compression result according to the image compression result;

[0244] A parsing module 604 is configured to parse the reference subgraph set compression result to obtain a subgraph compression information set and a reference decompression network parameter, wherein the reference subgraph set compression result is any one of the subgraph set compression results;

[0245] A construction module 606 is configured to construct a reference image decompression model according to the reference decompression network parameters;

[0246] The restoration module 608 is configured to process the sub-image compression information set based on the reference image decompression model, obtain the original sub-image set corresponding to the compression result of the first sub-image set, and obtain the original image corresponding to the image compression result according to each original sub-image set.

[0247] Optionally, the reference image decompression model includes an image decoding layer;

[0248] The restoration module 608 is further configured to:

[0249] Determine a target subgraph compression result, wherein the target subgraph compression result is any one of the subgraph compression results in the subgraph compression information set;

[0250] The target sub-image compression result is input into the image decoding layer to obtain an initial restored sub-image corresponding to the target sub-image compression result.

[0251] Optionally, the reference image decompression model further includes a coding feature restoration layer;

[0252] The restoration module 608 is further configured to:

[0253] Inputting the target sub-image compression result into the coding feature restoration layer to obtain the target sub-image coding feature information;

[0254] The target sub-image encoding feature restoration information is input into the image decoding layer to obtain an initial restored sub-image corresponding to the target sub-image compression result.

[0255] The above is a schematic scheme of an image processing device applied to a data receiving end of this embodiment. It should be noted that the technical scheme of the image processing device applied to the data receiving end and the technical scheme of the image processing method applied to the data receiving end belong to the same concept, and the details not described in detail in the technical scheme of the image processing device applied to the data receiving end can all refer to the description of the technical scheme of the image processing method applied to the data receiving end.

[0256] By applying the scheme of the embodiments of the present specification, compression results of each sub-image set are received, and reference image decompression models corresponding to the compression results of the sub-image set are constructed. Since the compression results of the sub-image set and the parameters for constructing the reference image decompression model are obtained based on a sub-image set composed of similar colors, the compression results corresponding to the image to be compressed with multiple colors can have a better restoration effect, thereby obtaining a more accurate and higher resolution image.

[0257] Figure 7 The block diagram of a computing device 700 according to an embodiment of the present specification is shown. The components of the computing device 700 include but are not limited to a memory 710 and a processor 720. The processor 720 is connected to the memory 710 via a bus 730, and the database 750 is used to store data.

[0258] The computing device 700 also includes an access device 740 that enables the computing device 700 to communicate via one or more networks 760. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 740 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).

[0259] In one embodiment of the present specification, the above components of the computing device 700 and Figure 7 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 7 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0260] The computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 700 may also be a mobile or stationary server.

[0261] The processor 720 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned image processing method applied to the data sending end or the image processing method applied to the data receiving end.

[0262] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the image processing method applied to the data sending end or the image processing method applied to the data receiving end belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the image processing method applied to the data sending end or the image processing method applied to the data receiving end.

[0263] An embodiment of the present specification also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned image processing method applied to a data sending end or the image processing method applied to a data receiving end.

[0264] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the image processing method applied to the data sending end or the image processing method applied to the data receiving end belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the image processing method applied to the data sending end or the image processing method applied to the data receiving end.

[0265] An embodiment of the present specification also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned image processing method applied to a data sending end or the image processing method applied to a data receiving end.

[0266] The above is a schematic scheme of a computer program of this embodiment. It should be noted that the technical scheme of the computer program and the technical scheme of the image processing method applied to the data sending end or the image processing method applied to the data receiving end belong to the same concept, and the details not described in detail in the technical scheme of the computer program can be referred to the description of the technical scheme of the image processing method applied to the data sending end or the image processing method applied to the data receiving end.

[0267] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0268] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0269] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0270] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0271] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. An image processing method, characterized in that: Applied to the data sending end, including: Obtaining an image to be processed, as well as preset sub-image segmentation information and an initial image compression model corresponding to the preset sub-image segmentation information; Processing the image to be processed based on the preset sub-image segmentation information to obtain at least one sub-image to be processed, and determining at least one sub-image set to be processed according to the sub-image position information and sub-image color information corresponding to each sub-image to be processed; Generate a target image compression model corresponding to each set of sub-images to be processed according to each set of sub-images to be processed and the initial image compression model; Compressing the to-be-processed sub-image sets corresponding to the target image compression models based on the target image compression models, and obtaining the sub-image set compression results corresponding to the to-be-processed sub-image sets; The image compression result corresponding to the image to be processed is determined according to the compression results of each sub-image set.

2. The method according to claim 1, characterized in that Determining at least one sub-image set to be processed according to the sub-image position information and the sub-image color information corresponding to each sub-image to be processed includes: Based on the sub-image color information corresponding to each sub-image to be processed, the color distance information between the target sub-image to be processed and each reference sub-image to be processed is calculated, wherein the target sub-image to be processed is any one of the sub-images to be processed, and the reference sub-image to be processed is a sub-image to be processed in each sub-image to be processed except the target sub-image to be processed; At least one set of sub-images to be processed is determined in each sub-image to be processed according to the sub-image position information corresponding to the sub-image to be processed and the color distance information.

3. The method according to claim 2, characterized in that Based on the sub-image color information corresponding to each sub-image to be processed, the color distance information between the target sub-image to be processed and each reference sub-image to be processed is calculated, including: Based on the sub-image color information corresponding to each sub-image to be processed, obtaining the characteristic color information corresponding to each sub-image to be processed; According to the characteristic color information corresponding to each sub-image to be processed, the color distance information between the target sub-image to be processed and each reference sub-image to be processed is calculated.

4. The method according to claim 3, characterized in that Based on the sub-image color information corresponding to each sub-image to be processed, the characteristic color information corresponding to each sub-image to be processed is obtained, including: Determine at least one color interval corresponding to the reference sub-image to be processed and the ratio of each color interval according to the sub-image color information corresponding to the reference sub-image to be processed, wherein the reference sub-image to be processed is any one of the sub-images to be processed; Determining a reference color interval in each color interval according to a ratio of each color interval; The color corresponding to the reference color interval is determined as characteristic color information corresponding to the reference sub-image to be processed.

5. The method according to claim 2, characterized in that According to the sub-image position information corresponding to the sub-image to be processed and the color distance information, at least one sub-image set to be processed is determined in each sub-image to be processed, including: Determine the color feature matrix corresponding to the image to be processed according to the sub-image position information and color distance information corresponding to each sub-image to be processed; At least one set of sub-images to be processed is determined according to the color feature matrix and the sub-image position information corresponding to each sub-image to be processed.

6. The method according to claim 5, characterized in that Determining a color feature matrix corresponding to the image to be processed according to the sub-image position information and color distance information corresponding to each sub-image to be processed includes: Determine at least one matrix value according to the color distance information corresponding to each sub-image to be processed; Determine the matrix position corresponding to each matrix value based on the sub-graph position information corresponding to each sub-graph to be processed; Construct a color feature matrix based on the matrix positions corresponding to each matrix value.

7. The method according to claim 5, characterized in that Determining at least one set of sub-images to be processed according to the color feature matrix and the sub-image position information corresponding to each sub-image to be processed includes: Determine at least one initial sub-image set to be processed according to the color feature matrix; Determine at least one isolated subgraph in each initial set of subgraphs to be processed according to the subgraph position information corresponding to each subgraph to be processed; Determine the subgraph sets to be processed corresponding to each isolated subgraph in each initial subgraph set to be processed according to the subgraph position information corresponding to each isolated subgraph; Each isolated subgraph is stored in a to-be-processed subgraph set corresponding to each isolated subgraph, and at least one to-be-processed subgraph set is determined.

8. The method according to claim 1, characterized in that The initial image processing model includes an initial image encoding layer and an initial image decoding layer; According to each set of sub-images to be processed and the initial image compression model, a target image compression model corresponding to each set of sub-images to be processed is generated, including: Determine a sample to-be-processed sub-image set, determine a sample to-be-processed sub-image in the sample to-be-processed sub-image set, and input the sample to-be-processed sub-image into the initial image coding layer to obtain sample image coding feature information generated by the initial image coding layer, wherein the sample to-be-processed sub-image set is any one of the to-be-processed sub-image sets, and the sample to-be-processed sub-image is any one of the to-be-processed sub-images in the sample to-be-processed sub-image set; Inputting the sample image coding feature information into the initial image decoding layer, and obtaining the predicted sub-image generated by the initial image decoding layer; The initial image processing model is adjusted according to the sample to-be-processed sub-image and the predicted sub-image to obtain a target image processing model.

9. The method according to claim 8, characterized in that The initial image processing model also includes an initial coding quantization layer; After determining the sample sub-image to be processed, inputting the sample sub-image to be processed into the initial image coding layer, and obtaining the sample image coding feature information generated by the initial image coding layer, the method further includes: Inputting the sample image coding feature information into the initial coding quantization layer, and obtaining the sample image quantization feature information output by the initial coding quantization layer; Inputting the sample image quantized feature information into the initial image decoding layer to obtain a predicted sub-graph generated by the initial image decoding layer; The initial image processing model is adjusted according to the sample to-be-processed sub-image and the predicted sub-image to obtain a target image processing model.

10. The method according to claim 1, characterized in that The target image processing model includes a target image coding layer; Compressing the to-be-processed sub-image sets corresponding to the to-be-processed sub-image compression models based on the target image compression models, and obtaining the sub-image set compression results corresponding to the to-be-processed sub-image sets, including: Determine a reference sub-graph set to be processed, and determine a reference sub-graph to be processed in the reference sub-graph set to be processed, wherein the reference sub-graph set to be processed is any one of the sub-graph sets to be processed, and the reference sub-graph to be processed is any one of the sub-graphs to be processed in the reference sub-graph set to be processed; Inputting the reference sub-image to be processed into the target image coding layer, obtaining a sub-image compression result, and obtaining reference decompression network parameters, wherein the reference decompression network parameters are obtained by the reference sub-image set to be processed and the image processing model; According to the sub-graph compression results corresponding to each sub-graph to be processed in the reference sub-graph set to be processed, a sub-graph set compression result corresponding to the reference sub-graph set to be processed is obtained.

11. The method according to claim 10, characterized in that The target image processing model also includes a target coding quantization layer; After inputting the reference sub-image to be processed into the target image coding layer and obtaining the reference sub-image coding feature information, the method further includes: Determining a reference sub-image to be processed, and inputting the reference sub-image to be processed into the target image coding layer to obtain coding feature information of the reference sub-image; The reference sub-image encoding feature information is input into the target encoding quantization layer to obtain a sub-image compression result corresponding to the reference sub-image to be processed.

12. An image processing method, characterized in that: Applied to the data receiving end, including: receiving an image compression result, and obtaining at least one sub-image set compression result according to the image compression result; Parsing the compression result of the reference subgraph set to obtain a subgraph compression information set and a reference decompression network parameter, wherein the compression result of the reference subgraph set is any one of the compression results of each subgraph set; Constructing a reference image decompression model according to the reference decompression network parameters; The sub-image compression information set is processed based on the reference image decompression model to obtain an original sub-image set corresponding to the compression result of the first sub-image set, and an original image corresponding to the image compression result is obtained according to each original sub-image set.

13. The method according to claim 12, characterized in that The reference image decompression model includes an image decoding layer; Processing the sub-image compression information set based on the reference image decompression model to obtain an original sub-image set corresponding to the compression result of the first sub-image set includes: Determine a target subgraph compression result, wherein the target subgraph compression result is any one of the subgraph compression results in the subgraph compression information set; The target sub-image compression result is input into the image decoding layer to obtain an initial restored sub-image corresponding to the target sub-image compression result.

14. The method according to claim 13, characterized in that The reference image decompression model also includes a coding feature restoration layer; After determining the target subgraph compression result, the method further includes: Inputting the target sub-image compression result into the coding feature restoration layer to obtain the target sub-image coding feature information; The target sub-image encoding feature restoration information is input into the image decoding layer to obtain an initial restored sub-image corresponding to the target sub-image compression result.

15. An image processing system, characterized in that: It includes an image data sending end and a data receiving end; The data sending end is configured to obtain an image to be processed, preset sub-image segmentation information, and an initial image compression model corresponding to the preset sub-image segmentation information; Processing the image to be processed based on the preset sub-image segmentation information to obtain at least one sub-image to be processed, and determining at least one sub-image set to be processed according to the sub-image position information and sub-image color information corresponding to each sub-image to be processed; Generate target image compression models corresponding to each sub-image set to be processed according to each sub-image set to be processed and the initial image compression model; compress the sub-image set to be processed corresponding to each target image compression model based on each target image compression model to obtain a sub-image set compression result corresponding to each sub-image set to be processed; Determine the image compression result corresponding to the image to be processed according to the compression results of each sub-image set, and send the image compression result to the data receiving end; The data receiving end is configured to receive an image compression result, and obtain at least one sub-image set compression result according to the image compression result; Parsing the compression result of the reference subgraph set to obtain a subgraph compression information set and a reference decompression network parameter, wherein the compression result of the reference subgraph set is any one of the compression results of each subgraph set; A reference image decompression model is constructed according to the reference decompression network parameters; the sub-image compression information set is processed based on the reference image decompression model, an original sub-image set corresponding to the compression result of the first sub-image set is obtained, and an original image corresponding to the image compression result is obtained according to each original sub-image set.

16. A computing device, characterized in that: include: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer program / instructions are executed by the processor, the steps of the method according to any one of claims 1 to 14 are implemented.

17. A computer-readable storage medium storing a computer program / instruction, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented.

18. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented.

Citation Information

Cited By

  • VQ-VAE-based frequency height graph similarity retrieval system and method

    CN120104820A