Data processing method and device, equipment, storage medium and program product

By encoding, compressing and decoding image data on the terminal device, combined with bilinear interpolation technology, the problem of high network resource consumption in image transmission is solved, and efficient image transmission and good display quality are achieved.

CN118803264APending Publication Date: 2024-10-18CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411071802.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

During the image transmission process, existing technologies cannot effectively reduce the pressure of decoded images on network bandwidth, resulting in high consumption of network resources.

Method used

By encoding and compressing image data on the terminal device, and using the encoder and decoder in the processing model to perform encoding and decoding operations, it reduces dependence on the cloud, and combines bilinear interpolation technology to adjust the size of the decoded image to ensure image display quality. .

Benefits of technology

It reduces the consumption of network resources required for image transmission, reduces the amount of compressed data, ensures the display quality of images, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803264A_ABST
    Figure CN118803264A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, equipment, a storage medium and a program product, and is applied to the field of data processing.The method comprises the steps that target data is acquired; in response to the fact that the target data is to-be-transmitted image data, performing first processing of a target number of times on the target data to obtain a compressed image, and transmitting the compressed image to a target device, each first processing including convolution operation processing and batch standardization processing; and in response to the fact that the target data is compressed image data, performing second processing on the target data for a target number of times to obtain a decoded image, performing bilinear interpolation on the decoded image according to the size of the image corresponding to the target data and the size of the decoded image to obtain a target image, and displaying the target image. According to the invention, network resources consumed by image transmission are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and in particular, relates to a data processing method, device, equipment, storage medium and program product. Background Art

[0002] The Internet generates massive amounts of image and video data every day. When transmitting image or video data, the images in the video data need to be compressed before transmission.

[0003] In the exemplary technology, a picture is encoded through an encoding network to compress the picture, and the compressed picture is decoded through a decoding network and can be displayed.

[0004] However, the encoding network is deployed on the terminal device, while the decoding network is deployed on the cloud. The device needs to obtain the decoded image from the cloud. The device cannot reduce the pressure of the decoded image on the network bandwidth during the transmission process, that is, more network resources are required for image transmission. Summary of the invention

[0005] The embodiments of the present application provide a data processing method, apparatus, device, storage medium and program product for solving the problem of large amount of network resources consumed by image transmission.

[0006] In a first aspect, an embodiment of the present application provides a data processing method, the method comprising: being applied to a data processing device, the data processing method comprising:

[0007] Get target data;

[0008] In response to the target data being image data to be transmitted, performing a first process on the target data a target number of times to obtain a compressed image, and transmitting the compressed image to a target device, wherein each first process includes a convolution operation process and a batch normalization process;

[0009] In response to the target data being compressed image data, the target data is subjected to a second processing for a target number of times to obtain a decoded image, and bilinear interpolation is performed on the decoded image according to the size of the image corresponding to the target data and the size of the decoded image to obtain a target image, and the target image is displayed, each time the second processing includes a deconvolution operation and a batch normalization operation.

[0010] In some possible implementations, the data processing device is provided with a processing model, the processing model includes an encoder and a decoder, wherein;

[0011] The encoder is used to perform a first process on the target data for a target number of times;

[0012] The decoder is used to perform a second process on the target data a target number of times.

[0013] In some possible implementations, the training process of the processing model is specifically as follows:

[0014] Acquire each training sample, wherein the training sample includes a training image;

[0015] The preset model is trained according to each of the training samples to obtain the processing model.

[0016] In some possible implementations, the loss function of the preset model is updated based on a mean absolute error, and the mean absolute error is determined based on an image parameter error between a training image in the training sample and an output image of an encoder in the preset model.

[0017] In some possible implementations, a residual connection is formed between a network layer of an encoder of the preset model and a network layer of a decoder of the preset model.

[0018] In some possible implementations, the step of performing bilinear interpolation on the decoded image according to the size of the image corresponding to the target data and the size of the decoded image includes:

[0019] Obtaining a display scene corresponding to the decoded image;

[0020] In response to the display scenario not having any requirement on the size of the displayed image, bilinear interpolation is performed on the decoded image according to the size of the image corresponding to the target data and the size of the decoded image.

[0021] In some possible implementations, after the step of obtaining the display scene corresponding to the decoded image, the method further includes:

[0022] In response to the display scene having a requirement on the size of the image, acquiring a target display size associated with the display scene;

[0023] The size of the decoded image is adjusted to the target display size for display.

[0024] In a second aspect, an embodiment of the present application provides a data processing device, including:

[0025] An acquisition module is used to acquire target data;

[0026] A first processing module, configured to, in response to the target data being image data to be transmitted, perform a first processing on the target data for a target number of times to obtain a compressed image, and transmit the compressed image to a target device, wherein each first processing includes a convolution operation processing and a batch normalization processing;

[0027] A second processing module is used for performing a target number of second processing on the target data to obtain a decoded image in response to the target data being compressed image data, and performing bilinear interpolation on the decoded image according to the size of the image corresponding to the target data and the size of the decoded image to obtain a target image, and displaying the target image, each time the second processing includes a deconvolution operation and a batch normalization operation.

[0028] In a third aspect, an embodiment of the present application provides a data processing device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the data processing method as described above is implemented.

[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that computer program instructions are stored on the computer-readable storage medium, and when the computer program instructions are executed by a processor, the data processing method as described above is implemented.

[0030] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to perform the data processing method as described above.

[0031] The data processing method, device, equipment, storage medium and program product of the embodiment of the present application obtains target data. When the target data is image data to be transmitted, the target data is subjected to a first processing for a target number of times to obtain a compressed image, and then the compressed image is transmitted to the target device. When the target data is compressed image data, the target data is subjected to a second processing for a target number of times to obtain a decoded image, and then the decoded image is subjected to bilinear interpolation based on the size of the image corresponding to the target data and the size of the decoded image to obtain the target image, and then the target image is displayed. In the present application, the device can encode and compress the image data and can decode the encoded image to obtain the decoded image, without obtaining the decoded image from the cloud, thereby reducing the network resources consumed by image transmission. Furthermore, after decoding the compressed data, the decoded image is subjected to bilinear interpolation based on the image size corresponding to the compressed data and the size of the decoded image to adjust the size of the decoded image, so that the size between the decoded image and the initial image is not too large, and compared with the initial image, the decoded image does not lose too much image information, thereby ensuring the display quality of the image. In addition, by performing the first processing on the image data for a target number of times, the amount of compressed data can be greatly reduced, further reducing the network resources consumed by image transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0033] Figure 1 It is a schematic diagram of the scenario involved in the data processing method of this application;

[0034] Figure 2 It is a flowchart of the first embodiment of the data processing method of the present application;

[0035] Figure 3 It is a working schematic diagram of the processing model involved in this application;

[0036] Figure 4 It is a flowchart of the second embodiment of the data processing method of the present application;

[0037] Figure 5 It is a flowchart of the third embodiment of the data processing method of the present application;

[0038] Figure 6 It is a functional module schematic diagram of the data processing device of the present application;

[0039] Figure 7 It is a structural diagram of the data processing device of this application. DETAILED DESCRIPTION

[0040] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0041] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0042] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.

[0043] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0044] The Internet generates massive amounts of image and video data every day. When transmitting image or video data, the images in the video data need to be compressed before transmission.

[0045] In the exemplary technology, a picture is encoded through an encoding network to compress the picture, and the compressed picture is decoded through a decoding network and can be displayed.

[0046] The inventors of the present application discovered that the encoding network is deployed on the terminal device, while the decoding network is deployed on the cloud. The device needs to obtain the decoded image from the cloud, and the device cannot reduce the pressure on the network bandwidth during the transmission of the decoded image, that is, more network resources are required for image transmission.

[0047] The inventor of the present application therefore conceived that the device can encode and compress image data and can decode the encoded image to obtain a decoded image, without having to obtain the decoded image from the cloud, thereby reducing the network resources consumed by image transmission. Furthermore, after decoding the compressed data, bilinear interpolation is performed on the decoded image based on the image size corresponding to the compressed data and the size of the decoded image to adjust the size of the decoded image so that the size difference between the decoded image and the initial image is not too large, and the decoded image does not lose too much image information compared to the initial image, thereby ensuring the display quality of the image. In addition, by performing the first processing of the image data for a target number of times, the amount of compressed data can be greatly reduced, further reducing the network resources consumed by image transmission.

[0048] Reference Figure 1 , Figure 1 This is a schematic diagram of the scenario of the data processing method of this application. Figure 1 , the data processing device 100 obtains the target data. When the target data is image data to be transmitted, the data processing device 100 performs a first processing on the image data for a target number of times to obtain a compressed image, and transmits the compressed image to the target device, the first processing includes a convolution operation processing and a batch normalization processing, and the data processing device 100 then transmits the data to the target device 200. When the target data is compressed image data, the target data is subjected to a second processing for a target number of times to obtain a decoded image, and then the decoded image is subjected to bilinear interpolation according to the size of the image corresponding to the target data and the size of the decoded image to obtain the target image, and then the target image is displayed.

[0049] The following combination Figure 1 , the data processing method of this application is described in detail.

[0050] Reference Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a data processing method of the present application. The data processing method includes:

[0051] Step S201, obtaining target data.

[0052] In this embodiment, the execution subject is a data processing device. For the convenience of description, the term "device" is used to refer to the data processing device. The device can be a terminal device with data transmission capability, such as a mobile phone, a computer, etc.

[0053] The device obtains target data. In one example, the target data may be video data generated by the device using an instant messaging function. For example, the device runs a social application to make a remote video call, and then generates video data as the target data. In another example, the target data is compressed video data or image data transmitted from another device. In yet another example, the target data is image data to be sent.

[0054] Step S202, in response to the target data being image data to be transmitted, performing a first processing on the target data a target number of times to obtain a compressed image, and transmitting the compressed image to a target device, wherein each first processing includes a convolution operation processing and a batch normalization processing.

[0055] After the device acquires the target data, it performs corresponding processing based on the type of the target data. Specifically, when the target data is image data to be transmitted, it can be determined that the image data needs to be encoded.

[0056] In this regard, the device performs a first processing on the target data for a target number of times to obtain a compressed image, and each first processing includes a convolution operation and a batch normalization process. The convolution operation refers to the convolution operation performed on the target data by the convolution kernel configured by the device itself. The convolution kernel is, for example, a 3×3 convolution kernel, and the number of convolution kernels is 8. The convolution operation is to perform a convolution operation with a step size of 2 on 8 3×3 convolution kernels, and after the convolution operation, batch normalization needs to be performed. Batch normalization refers to standardizing the data, that is, adjusting the mean and variance of the data so that the input data of each layer of the network maintains a relatively stable distribution. The target number of times can be any appropriate number, for example, the target number of times is 5 times.

[0057] After obtaining the compressed image, the compressed image is transmitted to the target device, which refers to the device to which the compressed image is to be transmitted. For example, if the apparatus makes a remote video call with device A, device A is the target device. The number of compressed images can be multiple, that is, a video composed of multiple images is compressed into multiple compressed images.

[0058] Step S203, in response to the target data being compressed image data, performing a second processing on the target data a target number of times to obtain a decoded image, and performing bilinear interpolation on the decoded image according to the size of the image corresponding to the target data and the size of the decoded image to obtain the target image, and displaying the target image, each second processing includes a deconvolution operation and a batch normalization operation.

[0059] When the target data is compressed image data, the device needs to decode the compressed image data. Specifically, the device performs the second processing on the target data for a target number of times to obtain a decoded image. Each second processing includes a deconvolution operation and a batch normalization operation. The deconvolution operation is performed by a convolution kernel, for example, a deconvolution operation is performed on the compressed image data by 64 3×3 convolution kernels.

[0060] After obtaining the decoded image, the device performs bilinear interpolation on the decoded image based on the size of the image corresponding to the target data and the size of the decoded image to obtain the target image, and then displays the target image. Specifically, the image corresponding to the target data refers to the image before the encoded image in the target data is encoded. Generally speaking, the size of the image decoded by the device will be larger than the size of the original image (the original image refers to the image before the encoded image in the target data is encoded). In order to make the size of the decoded image close to the size of the original image, the original image and the decoded image are bilinearly interpolated to obtain the target size, and the size of the decoded image is adjusted to the target size to obtain the target image.

[0061] It should be noted that if there are multiple target images and the target data indicates compressed video data, the multiple target images are spliced ​​together to obtain a video, and then the video is played.

[0062] In this embodiment, the target data is obtained. When the target data is the image data to be transmitted, the target data is subjected to the first processing for the target number of times to obtain a compressed image, and then the compressed image is transmitted to the target device. When the target data is compressed image data, the target data is subjected to the second processing for the target number of times to obtain a decoded image, and then the decoded image is subjected to bilinear interpolation based on the size of the image corresponding to the target data and the size of the decoded image to obtain the target image, and then the target image is displayed. In this embodiment, the device can encode and compress the image data and can decode the encoded image to obtain the decoded image, without obtaining the decoded image from the cloud, thereby reducing the network resources consumed by the image transmission. Furthermore, after decoding the compressed data, the decoded image is subjected to bilinear interpolation based on the image size corresponding to the compressed data and the size of the decoded image to adjust the size of the decoded image, so that the size difference between the decoded image and the initial image is not too large, and compared with the initial image, the decoded image does not lose too much image information, thereby ensuring the display quality of the image. In addition, by performing the first processing for the target number of times on the image data, the amount of compressed data can be greatly reduced, further reducing the network resources consumed by the image transmission.

[0063] In one embodiment, a processing model is provided in the device, and the processing model includes an encoder and a decoder. The encoder is used to perform a first processing of the target data for a target number of times, and the decoder is used to perform a second processing of the target data for a target number of times. Exemplarily, a plurality of network layers are provided in the encoder, and each network layer is used to perform convolution operation processing and batch normalization processing. If the target number of times is 5 times, then there are 5 network layers, and each network layer includes a plurality of convolution kernels. Exemplarily, the first network layer includes 8 3×3 convolution kernels, the second network layer includes 16 3×3 convolution kernels, the third network layer includes 32 3×3 convolution kernels, the fourth network layer includes 64 3×3 convolution kernels, and the fifth network layer includes 128 3×3 convolution kernels.

[0064] The decoder is provided with multiple network layers, and the number of network layers in the encoder is equal to that in the decoder. The network layer in the decoder is used for the second processing, that is, each network layer in the decoder is used for deconvolution operation processing and batch normalization processing. Exemplarily, if there are 5 network layers in the decoder, the decoder performs the second processing on the target data 5 times. In addition, the convolution kernel included in the network layer of the decoder performs a deconvolution operation. The first network layer of the decoder includes 64 3×3 convolution kernels, the second network layer includes 32 3×3 convolution kernels, the third network layer includes 16 3×3 convolution kernels, the fourth network layer includes 8 3×3 convolution kernels, and the fifth network layer includes 3 3×3 convolution kernels.

[0065] Reference Figure 3 , Figure 3 The network structure diagram of the processing model is shown in Figure 3 Taking the processing model in the figure as an example, the encoding and decoding of the image are explained in detail.

[0066] 1. For an original RGB three-channel image of size 1026×342×3, without any preprocessing, the original image is input to the encoder. The original image is first convolved with 8 3×3 convolution kernels of the first layer of the encoder with a step size of 2, and batch normalization is performed to obtain a 513×171×8 encoding result;

[0067] 2. Input the encoding results into the following 4-layer network in sequence, perform convolution operation and batch normalization, and obtain 513×171×8 encoding results, 257×86×16 encoding results, 129×43×32 encoding results and 33×11×128 encoding results in sequence. The 33×11×128 encoding result can be saved and transmitted as the compression result of the original image;

[0068] 3. Taking the encoding result of step 2 as an example, the decoding of the decoder is described. The encoding result is input to the first layer of the decoder, and the 33×11×128 encoding result is deconvolved by 64 3×3 convolution kernels and batch normalized to obtain a 66×22×64 decoding result;

[0069] 4. The encoding result obtained by the fourth layer of the encoder is merged into the 66×22×64 decoding result through the skip connection mechanism. The size difference between the encoding result and the decoding result is aligned by bilinear interpolation. After alignment, they are merged and the merged result is input into the 32 3×3 convolution kernels of the second layer of the decoder for deconvolution and batch normalization operations to obtain a 132×44×32 decoding result.

[0070] 5. The encoding result obtained by the third layer of the encoder is merged into the 132×44×32 decoding result through the skip connection mechanism. The size difference between the encoding result and the decoding result is aligned by bilinear interpolation. After alignment, they are merged and the merged result is input into the 16 3×3 convolution kernels of the third layer of the decoder for deconvolution and batch normalization operations to obtain a 264×88×16 decoding result.

[0071] 6. The encoding result obtained by the second layer of the encoder is merged into the 264×88×16 decoding result through the skip connection mechanism. The size difference between the encoding result and the decoding result is aligned by bilinear interpolation. After alignment, they are merged and the merged result is input into the 8 3×3 convolution kernels of the fourth layer of the decoder for deconvolution and batch normalization operations to obtain a 538×176×8 decoding result.

[0072] 7. Input the decoded result of 538×176×8 into the fifth layer of the encoder. After deconvolution and batch normalization of the 8 3×3 convolution kernels of the fifth layer, the encoded result of 1076×352×3 can be obtained.

[0073] 8. Perform bilinear interpolation on 1076×352×3 to obtain a decoded image of 1026×342×3, which is the same size as the original image.

[0074] It should be noted that the above-mentioned convolution kernel size and number, and the number of layers of the decoder and encoder are only used to describe the scheme, but not to limit it.

[0075] According to tests, the compression rate of the compressed data obtained by encoding the image data in the above manner is about 4.41%, which can save more than 95% of the storage space.

[0076] In this embodiment, a processing model is provided in the device, and target data is processed by an encoder and a decoder of the processing model, thereby realizing encoding and decoding of the data.

[0077] Reference Figure 4 , Figure 4 This is a flow chart of the second embodiment of the data processing method of the present application. Based on the first embodiment, before step S201, it also includes:

[0078] Step S401, obtaining various training samples, where the training samples include training images.

[0079] In step S402, each training sample is trained on a preset model to obtain a processing model, and the processing model is used to encode and decode data.

[0080] The preset model includes an encoder and a decoder, which means training the codec.

[0081] Specifically, the preset model may be an autoencoder, and the type of the autoencoder is not limited. For example, the type of the autoencoder is a U-type autoencoder. The training process of the autoencoder is as follows:

[0082] 1. The first half of the network of the autoencoder is used as the encoder part. Each layer of the first half of the network uses a 3×3 convolution kernel, performs a convolution operation with a step size of 2 and a batch normalization process on the training image to obtain a compressed encoding result. For example, the first network layer of the encoder includes 8 3×3 convolution kernels, the second network layer includes 16 3×3 convolution kernels, the third network layer includes 32 3×3 convolution kernels, the fourth network layer includes 64 3×3 convolution kernels, and the fifth network layer includes 128 3×3 convolution kernels;

[0083] 2. The second half of the autoencoder network serves as the decoder part. Each layer of the second half of the network uses a 3×3 convolution kernel. The encoding result is subjected to a deconvolution operation with a step size of 2 and batch normalization to obtain a decoded output image. Exemplarily, the first network layer of the decoder includes 64 3×3 convolution kernels, the second network layer includes 32 3×3 convolution kernels, the third network layer includes 16 3×3 convolution kernels, the fourth network layer includes 8 3×3 convolution kernels, and the fifth network layer includes 3 3×3 convolution kernels.

[0084] Furthermore, the loss function of the preset model is updated based on the mean absolute error, which is determined based on the image parameter error between the training image in the training sample and the output image of the encoder in the preset model. The image parameter error is, for example, the difference in pixel values ​​between the original image and the output image.

[0085] Furthermore, a residual connection is formed between the network layer of the encoder of the preset model and the network layer of the decoder of the preset model, that is, the shallow encoding result in the encoder is directly input into the decoder through a skip connection mechanism to participate in the decoding process, and the size difference is adjusted by linear interpolation. The encoding result participates in the decoding process of the decoder, and the linear interpolation of the size is specifically referred to the above-mentioned description of "detailed description of image encoding and decoding", which will not be repeated here.

[0086] It can be understood that the first half of the network in the processing model is the encoder part, and the second half of the network is the decoder part. The device transmits the image data to be compressed to the encoder part, and the encoder part outputs the compressed image. The device transmits the encoded image data to the decoder part for decoding to obtain the output image. It should be noted that since the processing model is provided with a jump connection mechanism, the encoded image data at the sender needs to carry the encoding results of each layer of the convolution kernel output of the encoder at the sender, so as to merge the encoding results with the decoding results of the decoder at the receiving end, thereby obtaining a decoded image with less image information loss. That is, when the device acts as a sender, it will aggregate the encoding results of each layer of the convolution kernel output of the encoder with the final encoding results to obtain the compressed image data to be transmitted.

[0087] In this embodiment, the preset model is trained by using the mean absolute error as the loss function, which can effectively guide the network learning of the autoencoder to output an image that is close to the input image, thereby ensuring that the image decoded by the processing model does not lose too much image information.

[0088] In addition, during the training process, the use of the skip connection mechanism can retain the underlying original image information and reduce the loss of image information caused by the convolution operation.

[0089] In addition, the processing model is simple and the parameters are simple, so it can be deployed on terminal devices with limited computing power, such as mobile phones, so as to achieve fast compression processing of video files, reduce the latency of remote real-time video, and improve user experience.

[0090] Reference Figure 5 , Figure 5 This is a flow chart of the third embodiment of the data processing method of the present application. Based on the first or second embodiment, step S203 includes:

[0091] Step S501, obtaining a display scene corresponding to a decoded image.

[0092] Step S502 , in response to the display scenario not having any requirement on the size of the displayed image, bilinear interpolation is performed on the decoded image according to the size of the image corresponding to the target data and the size of the decoded image.

[0093] In this embodiment, after the device obtains the decoded image, it is necessary to determine the display scene corresponding to the decoded image, such as full screen display, half screen display or window display.

[0094] When the display scene is full screen display, there is no requirement for the size of the displayed image, that is, there is no need to scale the image. If the device determines that the display scene does not have any requirement for the size of the displayed image, bilinear interpolation is performed on the decoded image according to the size of the image corresponding to the target data and the size of the decoded image, that is, the size of the decoded image is made as close as possible to the size of the original image to avoid excessive loss of image information in the decoded image.

[0095] When the display scene has requirements on the size of the displayed image, for example, the display scene is half-screen display or window display, the size of the decoded image needs to be adjusted to half the size of the display screen of the device, or the size of the decoded image needs to be adjusted to the size of the window. In this regard, the device obtains the target display size associated with the display scene, for example, if the display scene is half-screen display, the size of the half-screen display is used as the target display size. After obtaining the target display size, the size of the decoded image is adjusted to the target display size for display.

[0096] In this embodiment, there is no need to perform any preprocessing on the original image, and there is no restriction on the size of the original image, and the decoded image will be resized to adaptively display the decoded image.

[0097] See also Figure 6 , the data processing device 600 provided in the embodiment of the present application, the data processing device 600 includes:

[0098] An acquisition module 610 is used to acquire target data;

[0099] A first processing module 620 is used for, in response to the target data being image data to be transmitted, performing a first processing on the target data a target number of times to obtain a compressed image, and transmitting the compressed image to a target device, wherein each first processing includes a convolution operation processing and a batch normalization processing;

[0100] The second processing module 630 is used to perform a second processing on the target data a target number of times to obtain a decoded image in response to the target data being compressed image data, and to perform bilinear interpolation on the decoded image according to the size of the image corresponding to the target data and the size of the decoded image to obtain the target image, and to display the target image, each second processing including a deconvolution operation and a batch normalization operation, and the size of the target image is the size after linear interpolation.

[0101] In one embodiment, a processing model is provided in the data processing device, and the processing model includes an encoder and a decoder, wherein;

[0102] An encoder, configured to perform a first processing of the target data a target number of times;

[0103] The decoder is used to perform a second process on the target data a target number of times.

[0104] In one embodiment, the data processing device 600 is specifically configured to:

[0105] Obtaining various training samples, where the training samples include training images;

[0106] The preset model is trained according to each training sample to obtain a processing model.

[0107] In one embodiment, the loss function of the preset model is updated based on a mean absolute error, where the mean absolute error is determined based on an image parameter error between a training image in a training sample and an output image of an encoder in the preset model.

[0108] In one embodiment, a network layer of an encoder of a preset model is residually connected to a network layer of a decoder of a preset model.

[0109] In one embodiment, the data processing device 600 is specifically configured to:

[0110] Get the display scene corresponding to the decoded image;

[0111] In response to the display scenario not having any requirement on the size of the displayed image, bilinear interpolation is performed on the decoded image according to the size of the image corresponding to the target data and the size of the decoded image.

[0112] In one embodiment, the data processing device 600 is specifically configured to:

[0113] In response to the display scene having a requirement on the size of the image, obtaining a target display size associated with the display scene;

[0114] Resize the decoded image to the target display size for display.

[0115] Each module of the data processing device provided in the embodiment of the present application can realize Figures 2 to 4 Any embodiment provides the functions of each step of the data processing method and can achieve its corresponding technical effect. For the sake of concise description, it will not be repeated here.

[0116] Figure 7 A schematic diagram of the hardware structure of a data processing device provided in an embodiment of the present application is shown.

[0117] The data processing device may include a processor 701 and a memory 702 storing computer program instructions.

[0118] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0119] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 702 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 702 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 702 is a non-volatile solid-state memory.

[0120] In certain embodiments, the memory 702 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0121] The processor 701 implements any one of the authentication methods in the above embodiments by reading and executing computer program instructions stored in the memory 702 .

[0122] In one example, the data processing device may further include a communication interface 703 and a bus 710. Figure 7 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 710 and communicate with each other.

[0123] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0124] Bus 710 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 710 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0125] The data processing method in the above embodiment can be implemented by providing a computer storage medium in the present application embodiment. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the data processing methods in the above embodiment is implemented.

[0126] An embodiment of the present application also provides a computer program product, including a computer program, which implements any one of the data processing methods in the above embodiments when the computer program is processed and executed.

[0127] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0128] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0129] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A data processing method, characterized in that: Applied to a data processing device, the data processing method comprises: Get target data; In response to the target data being image data to be transmitted, performing a first process on the target data a target number of times to obtain a compressed image, and transmitting the compressed image to a target device, wherein each first process includes a convolution operation process and a batch normalization process; In response to the target data being compressed image data, the target data is subjected to a second processing for a target number of times to obtain a decoded image, and bilinear interpolation is performed on the decoded image according to the size of the image corresponding to the target data and the size of the decoded image to obtain a target image, and the target image is displayed, each time the second processing includes a deconvolution operation and a batch normalization operation.

2. The data processing method according to claim 1, characterized in that: The data processing device is provided with a processing model, and the processing model includes an encoder and a decoder, wherein; The encoder is used to perform a first process on the target data for a target number of times; The decoder is used to perform a second process on the target data a target number of times.

3. The data processing method according to claim 2, characterized in that: The training process of the processing model is as follows: Acquire each training sample, wherein the training sample includes a training image; The preset model is trained according to each of the training samples to obtain the processing model.

4. The data processing method according to claim 3, characterized in that: The loss function of the preset model is updated based on a mean absolute error, and the mean absolute error is determined based on an image parameter error between a training image in the training sample and an output image of an encoder in the preset model.

5. The data processing method according to claim 1, characterized in that: A residual connection is provided between a network layer of the encoder of the preset model and a network layer of the decoder of the preset model.

6. The data processing method according to any one of claims 1 to 5, characterized in that: The step of performing bilinear interpolation on the decoded image according to the size of the image corresponding to the target data and the size of the decoded image comprises: Obtaining a display scene corresponding to the decoded image; In response to the display scenario not having any requirement on the size of the displayed image, bilinear interpolation is performed on the decoded image according to the size of the image corresponding to the target data and the size of the decoded image.

7. The data processing method according to claim 6, characterized in that: After the step of obtaining the display scene corresponding to the decoded image, the method further includes: In response to the display scene having a requirement on the size of the image, acquiring a target display size associated with the display scene; The size of the decoded image is adjusted to the target display size for display.

8. A data processing device, characterized in that: include: An acquisition module is used to acquire target data; A first processing module is used for, in response to the target data being image data to be transmitted, performing a first processing on the target data for a target number of times to obtain a compressed image, and transmitting the compressed image to a target device, wherein each first processing includes a convolution operation processing and a batch normalization processing; A second processing module is used for performing a target number of second processing on the target data to obtain a decoded image in response to the target data being compressed image data, and performing bilinear interpolation on the decoded image according to the size of the image corresponding to the target data and the size of the decoded image to obtain a target image, and displaying the target image, each time the second processing includes a deconvolution operation and a batch normalization operation.

9. A data processing device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the data processing method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the data processing method according to any one of claims 1 to 7 is implemented.

11. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the data processing method as described in any one of claims 1 to 7.