Image processing method and device, electronic equipment and storage medium
By acquiring the image rendering parameters of the terminal, processing and converting the image data, the problem of color inconsistency between the cloud server and the terminal was solved, and high-precision image data restoration was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2026-03-13
AI Technical Summary
Due to the variety of terminal devices, the colors displayed on the cloud server are inconsistent with those displayed on the terminal, resulting in color distortion.
By acquiring the image rendering parameters of the target terminal, the initial image data is processed to generate target image data in the first encoding format, which is then converted into target image data in the second encoding format. Finally, it is split into multiple target image data in the third encoding format to match the decoding mode of the terminal for restoration.
It solves the color distortion caused by inconsistent image rendering parameters, improves the accuracy of image data restoration, and avoids the loss of color information.
Smart Images

Figure CN121661166A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technology, and in particular to an image processing method, apparatus, electronic device and storage medium. Background Technology
[0002] In existing technologies, data processing may involve multi-user collaboration and security issues, such as map file processing, image design, model processing, and document editing. Therefore, data processing can be performed on a cloud server. Users can connect to the cloud server through a terminal to process data. The principle is that the cloud server encodes the desktop screen as video and transmits it to the terminal. The terminal can then upload user interaction events to the cloud server to achieve interaction. For example, for image data processing, high image quality and color accuracy are generally required. However, due to the variety of terminal devices, inconsistencies may occur between the colors seen by the cloud server and the colors seen by the terminal, resulting in color distortion. Summary of the Invention
[0003] The technical problem to be solved by this application is to provide an image processing method, apparatus, electronic device and storage medium. On the one hand, by performing image rendering processing on an initial image based on the image rendering parameters of the terminal, the rendered target image data is matched with the image rendering parameters of the terminal, thus solving the color distortion caused by inconsistent image rendering parameters. On the other hand, by converting the target image data in the first encoding format into multiple target image data in the third encoding format, the loss of image color data can be avoided and the accuracy of the restored image data can be improved.
[0004] To address the aforementioned technical problems, this application provides an image processing method, comprising:
[0005] In response to an image acquisition request from the target terminal, the image rendering parameters of the target terminal are obtained;
[0006] Based on the image rendering parameters, the initial image data is processed by image rendering to obtain target image data in a first encoding format; the first encoding format is a format that encodes the color of each pixel.
[0007] Based on the image rendering parameters, the target image data in the first encoding format is converted to obtain the target image data in the second encoding format; the second encoding format is a format that encodes the brightness and chromaticity of each pixel.
[0008] The target image data in the second encoding format is split into multiple target image data in the third encoding format. The third encoding format is a format that encodes the brightness and chromaticity of each pixel. The sampling rate of brightness and chromaticity in the second encoding format during the encoding process is greater than that in the third encoding format. The third encoding format is matched with the decoding mode of the target terminal.
[0009] The target terminal sends the multiple target image data in the third encoding format to the target terminal so that the target terminal can reconstruct the target image data in the first encoding format based on the multiple target image data in the third encoding format.
[0010] On the other hand, embodiments of this application provide an image processing method, including:
[0011] Send an image retrieval request to the server, so that the server:
[0012] In response to the image acquisition request, image rendering parameters corresponding to the image acquisition request are acquired; image rendering processing is performed on the initial image data based on the image rendering parameters to obtain target image data in a first encoding format; the first encoding format is a format that encodes the color of each pixel; the target image data in the first encoding format is converted to a second encoding format based on the image rendering parameters to obtain target image data in a second encoding format; the second encoding format is a format that encodes the brightness and chromaticity of each pixel; the target image data in the second encoding format is split into multiple target image data in a third encoding format; the third encoding format is a format that encodes the brightness and chromaticity of each pixel, and the sampling rate of brightness and chromaticity in the second encoding format during the encoding process is greater than the sampling rate of brightness and chromaticity in the third encoding format during the encoding process; the third encoding format matches the decoding mode of the target terminal;
[0013] Receive the multiple target image data in the third encoding format;
[0014] The target image data in the first encoding format is restored based on the multiple target image data in the third encoding format.
[0015] On the other hand, embodiments of this application also provide an image processing apparatus, including:
[0016] The request-response module is used to respond to the image acquisition request from the target terminal and acquire the image rendering parameters of the target terminal;
[0017] The image rendering module is used to perform image rendering processing on the initial image data based on the image rendering parameters to obtain target image data in a first encoding format; the first encoding format is a format that encodes the color of each pixel.
[0018] The first conversion module is used to convert the target image data of the first encoding format based on the image rendering parameters to obtain the target image data of the second encoding format; the second encoding format is a format that encodes the brightness and chromaticity of each pixel.
[0019] The data splitting module is used to split the target image data based on the second encoding format to obtain multiple target image data in the third encoding format. The third encoding format is a format that encodes the brightness and chromaticity of each pixel, and the sampling rate of brightness and chromaticity in the second encoding format during the encoding process is greater than the sampling rate of brightness and chromaticity in the third encoding format during the encoding process. The third encoding format is matched with the decoding mode of the target terminal.
[0020] The data transmission module is used to send the multiple target image data in the third encoding format to the target terminal, so that the target terminal can restore the target image data in the first encoding format based on the multiple target image data in the third encoding format.
[0021] On the other hand, embodiments of this application also provide an image processing apparatus, including:
[0022] A request sending module is configured to send an image acquisition request to a server, such that the server: in response to the image acquisition request, acquires image rendering parameters corresponding to the image acquisition request; performs image rendering processing on initial image data based on the image rendering parameters to obtain target image data in a first encoding format; the first encoding format is a format that encodes the color of each pixel; performs format conversion on the target image data in the first encoding format based on the image rendering parameters to obtain target image data in a second encoding format; the second encoding format is a format that encodes the brightness and chromaticity of each pixel; performs data splitting on the target image data in the second encoding format to obtain multiple target image data in a third encoding format; the third encoding format is a format that encodes the brightness and chromaticity of each pixel, and the sampling rate of brightness and chromaticity in the second encoding format during encoding is greater than the sampling rate of brightness and chromaticity in the third encoding format during encoding; the third encoding format matches the decoding mode of the target terminal.
[0023] The data receiving module is used to receive the multiple target image data in the third encoding format;
[0024] The data restoration module is used to restore the target image data of the first encoding format based on the multiple target image data of the third encoding format.
[0025] On the other hand, this application provides an electronic device including a processor and a memory, wherein the memory stores at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by the processor to implement the image processing method as described above.
[0026] On the other hand, this application provides a computer storage medium storing at least one instruction or at least one program, wherein the at least one instruction or the at least one program is loaded by a processor and executed as described above in the image processing method.
[0027] On the other hand, this application provides a computer program product including computer instructions stored in a computer-readable storage medium; a processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the electronic device to perform the above-described image processing method.
[0028] Implementing the embodiments of this application has the following beneficial effects:
[0029] In this application, when the data processing server receives an image acquisition request from the target terminal, it can perform image rendering processing on the initial image data based on the target terminal's image rendering parameters to obtain target image data in a first encoding format. This ensures that the rendered target image data matches the terminal's image rendering parameters, solving the color distortion caused by inconsistent image rendering parameters. Furthermore, the target image data in the first encoding format can be converted into target image data in a second encoding format. Since the second encoding format encodes the brightness and chromaticity of each pixel and has a high sampling rate for brightness and chromaticity, it can retain more color information and avoid color distortion. In cases where the target image data in the second encoding format cannot be directly processed by the target terminal, it can be converted into multiple target image data in a third encoding format. This allows the target terminal to directly restore the received target image data in the first encoding format without losing color information, thus avoiding the color loss and color distortion problem caused by directly converting the target image data in the first encoding format into a single target image data in the third encoding format in the prior art, and improving the accuracy of the restored image data. Attached Figure Description
[0030] To more clearly illustrate the technical solutions and advantages in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is a schematic diagram of the implementation environment provided in the embodiments of this application;
[0032] Figure 2 This is a flowchart of an image processing method provided in an embodiment of this application;
[0033] Figure 3 This is a flowchart of a method for image rendering based on image rendering parameters provided in an embodiment of this application;
[0034] Figure 4 This is a schematic diagram of target image data splitting provided in an embodiment of this application;
[0035] Figure 5 This is a flowchart of another image processing method provided in an embodiment of this application;
[0036] Figure 6 This is a flowchart of the image data merging and restoration method provided in the embodiments of this application;
[0037] Figure 7 This is a schematic diagram of the image data processing flow provided in an embodiment of this application;
[0038] Figure 8 This is a schematic diagram of an image processing device provided in an embodiment of this application;
[0039] Figure 9 This is a schematic diagram of another image processing device provided in an embodiment of this application;
[0040] Figure 10 This is a schematic diagram of the terminal structure provided in an embodiment of this application;
[0041] Figure 11 This is a schematic diagram of the server structure provided in an embodiment of this application. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0043] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0044] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0045] It is understood that in the specific embodiments of this application, data such as user information are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0046] Please see Figure 1 The illustration shows an implementation environment provided in the embodiments of this application. The implementation environment may include at least one electronic terminal 110 and a data processing server 120, which can communicate with each other via a network.
[0047] Specifically, when the electronic terminal 110 is connected to the data processing server 120, the user can perform data processing operations based on the electronic terminal 110, which can specifically be image processing operations. The electronic terminal 110 can send an image acquisition request to the data processing server 120. The image acquisition request can be used to acquire the image information displayed on the data processing server 120, and then display the image information acquired from the data processing server 120 on the electronic terminal 110. When the data processing server 120 receives the image acquisition request, it can process the initial image data based on the image rendering parameters of the electronic terminal 110, generate image data in the target encoding format, and send it to the electronic terminal 110 so that the electronic terminal 110 can display the received image data.
[0048] The electronic terminal 110 can communicate with the data processing server 120 based on a browser / server (B / S) or client / server (C / S) model. The electronic terminal 110 may include physical devices such as smartphones, tablets, laptops, digital assistants, smart wearable devices, and in-vehicle terminals, and may also include software running on the physical device, such as applications. The operating system running on the electronic terminal 110 in this embodiment may include, but is not limited to, Android, iOS, Linux, and Windows.
[0049] Furthermore, the acquisition and storage of image rendering parameters of the electronic terminal 110 can both be implemented at the data processing server 120. When the data processing server 120 receives the image rendering parameters, it can directly obtain the image rendering parameters of the electronic terminal 110 from the local machine and perform image rendering operations. The acquisition and storage of image rendering parameters of the electronic terminal 110 can also be implemented at the color difference correction server 130. When the data processing server 120 receives the image rendering parameters, it can obtain the image rendering parameters of the electronic terminal 110 from the color difference correction server 130 and perform image rendering operations.
[0050] The data processing server 120 and the electronic terminal 110 can establish a communication connection via wired or wireless means. The data processing server 120 may include a stand-alone server, a distributed server, or a server cluster consisting of multiple servers, wherein the server may be a cloud server.
[0051] To address the color distortion issue caused by the inconsistency between the colors displayed on the cloud server and those displayed on the terminal in existing technologies, this application provides an image processing method. The execution entity of this method can be the aforementioned data processing server. (See also...) Figure 2 The method may include:
[0052] S210. In response to the image acquisition request of the target terminal, obtain the image rendering parameters of the target terminal.
[0053] In this embodiment, the target terminal can be any terminal that needs to connect to the server and process data. The image acquisition request can carry the terminal identifier of the target terminal, so that the server can obtain the image rendering parameters of the target terminal based on the terminal identifier. The image rendering parameters of the target terminal refer to the parameters used by the target terminal in the process of rendering image data. For the same image data, if different image rendering parameters are used, the resulting rendered image data will be different.
[0054] As described above, in this embodiment, the image rendering parameters of the target terminal can be collected and stored on the data processing server or on the color correction server. Once the image rendering parameters of each terminal have been collected, they can be stored on the data processing server or color correction server in the format of "terminal identifier -- image rendering parameters" to facilitate querying and retrieving image rendering data based on the terminal identifier.
[0055] Here, if an image acquisition request from the target terminal is received and the image rendering parameters of the target terminal have been stored, the image rendering parameters of the target terminal can be obtained directly from the data processing server or the color difference correction server; if an image acquisition request from the target terminal is received but the image rendering parameters of the target terminal have not been stored, the image rendering parameters of the target terminal can be collected first, and then the collected image rendering parameters can be stored.
[0056] Specifically, the method for acquiring image rendering parameters of the target terminal in this embodiment may include:
[0057] Acquire the display image captured by the target terminal;
[0058] The rendering parameters of the displayed image are obtained by performing rendering parameter detection.
[0059] or,
[0060] The image rendering parameters are obtained based on the program interface of the target terminal.
[0061] In one example, the target terminal can capture at least one image to be displayed on the target terminal and send the captured display image to a data processing server or a color difference correction server. The data processing server or color difference correction server can perform parameter detection on the display image sent by the target terminal to obtain the image rendering parameters corresponding to the target terminal.
[0062] In another example, the target terminal can obtain image rendering parameters through its program interface and send the obtained image rendering parameters to a data processing server or a color difference correction server.
[0063] The image rendering parameters in this embodiment may include image brightness parameters, image depth parameters, color space parameters, and color range parameters. The image depth parameter may be 10-bit, 8-bit, etc., the color space may be BT.2020, BT.601, BT.709, etc., and the color range may be full-color mode, restricted mode, etc. In full-color mode, the RGB value ranges from 0 to 255, while in restricted mode, the RGB value has color loss.
[0064] By performing parameter detection on the displayed image of the target terminal, the image rendering parameters corresponding to the target terminal can be obtained; or the image rendering parameters can be obtained through the program interface of the target terminal; thus, the image rendering parameters can be obtained flexibly and conveniently. When the image rendering parameters of the target terminal are determined, it is convenient to perform image rendering processing on the initial image data on the data processing server based on the image rendering parameters, so that the rendered target image data matches the image rendering parameters of the terminal, and solves the color distortion caused by inconsistent image rendering parameters.
[0065] S220. Perform image rendering processing on the initial image data based on the image rendering parameters to obtain target image data in a first encoding format; the first encoding format is a format that encodes the color of each pixel.
[0066] The initial image data is processed by image rendering parameters to make the rendered target image data match the image rendering parameters of the terminal.
[0067] In this embodiment, the first encoding format can be RGB color encoding, where each pixel has three primary colors: red, green, and blue. Further, the image rendering parameters include image brightness parameters and image depth parameters; for details, please refer to [link to relevant documentation]. Figure 3 It illustrates a method for a data processing server to render an image based on image rendering parameters. The execution entity of this method can be the data processing server, and the method may include:
[0068] S310. Set the brightness of the virtual graphics card based on the image brightness parameter, set the acquisition bit depth of the virtual graphics card based on the image depth parameter, and determine the set virtual graphics card.
[0069] S320. The initial image data is processed by the virtual graphics card based on the settings to obtain processed image data.
[0070] S330. The processed image data is acquired to obtain target image data in the first encoding format.
[0071] The data processing server can configure the virtual graphics card based on the target terminal's image rendering parameters. Specifically, it can set the virtual graphics card's brightness parameters based on image brightness parameters and the virtual graphics card's capture bit depth based on image depth parameters, thereby determining the configured virtual graphics card. The configured virtual graphics card can process the initial image data to obtain processed image data, which can then be used for image display on the data processing server. By acquiring images from the processed image data, target image data in a first encoding format can be obtained.
[0072] In this embodiment, the virtual graphics card on the data processing server is set based on the image rendering parameters of the target terminal, which can simulate the rendering effect of the target terminal on the data processing server, thereby making the rendered target image data match the image rendering parameters of the terminal and solving the color distortion caused by inconsistent image rendering parameters.
[0073] S230. Based on the image rendering parameters, the target image data of the first encoding format is converted to obtain the target image data of the second encoding format; the second encoding format is a format that encodes the brightness and chromaticity of each pixel.
[0074] In this embodiment, the second encoding format can be YUV color encoding. YUV color encoding uses luminance and chrominance to specify the color of a pixel, where Y represents luminance, and U and V represent chrominance. Chroma further defines two aspects of color: hue and saturation. Similar to RGB color encoding for representing images, each pixel contains three components: Y, U, and V. Depending on the sampling format, each Y component can correspond to its own U and V components, or several Y components can share the UV components.
[0075] Specifically, in the second encoding format, the Y, U, and V components of each pixel are fully sampled in both the horizontal and vertical directions, meaning that each pixel has its own luminance and chrominance.
[0076] In the process of converting target image data in the first encoding format to the second encoding format, the corresponding first conversion coefficient can be determined based on the color space parameters in the image rendering parameters. Different color space parameters correspond to different conversion coefficients. Based on the first conversion coefficient, the target image data in the first encoding format can be converted to target image data in the second encoding format.
[0077] S240. Based on the target image data in the second encoding format, perform data splitting to obtain multiple target image data in the third encoding format; the third encoding format is a format that encodes the brightness and chromaticity of each pixel, and the sampling rate of brightness and chromaticity in the second encoding format during the encoding process is greater than the sampling rate of brightness and chromaticity in the third encoding format during the encoding process; the third encoding format is matched with the decoding mode of the target terminal.
[0078] The third encoding format can also be YUV color encoding. YUV color encoding uses luminance and chrominance to specify the color of a pixel, where Y represents luminance and U and V represent chrominance. Unlike the second encoding format, the third encoding format can halve the chrominance component in the horizontal direction, meaning that adjacent pixels share the same chrominance information, but each pixel has its own luminance information. This method reduces file size while maintaining relatively high quality. The third encoding format can also halve the chrominance component in both the horizontal and vertical directions, meaning that every four pixels share the same chrominance information, but each pixel still has its own luminance information. This method further reduces file size.
[0079] In this embodiment, the second encoding format may not be directly decoded by the target terminal, so the target image data in the second encoding format can be split into multiple target image data in the third encoding format. The target image data in the third encoding format can be a format that can be directly decoded by the target terminal.
[0080] S250. Send the multiple target image data in the third encoding format to the target terminal so that the target terminal can restore the target image data in the first encoding format based on the multiple target image data in the third encoding format.
[0081] The data processing server can send multiple target image data in third encoding format to the target terminal, so that the target terminal can merge and restore the multiple target image data in third encoding format to obtain target image data in first encoding format, and further display the target image data in first encoding format.
[0082] In this application, when the data processing server receives an image acquisition request from the target terminal, it can perform image rendering processing on the initial image data based on the target terminal's image rendering parameters to obtain target image data in a first encoding format. This ensures that the rendered target image data matches the terminal's image rendering parameters, solving the color distortion caused by inconsistent image rendering parameters. Furthermore, the target image data in the first encoding format can be converted into target image data in a second encoding format. Since the second encoding format encodes the brightness and chromaticity of each pixel and has a high sampling rate for brightness and chromaticity, it can retain more color information and avoid color distortion. In cases where the target image data in the second encoding format cannot be directly processed by the target terminal, it can be converted into multiple target image data in a third encoding format. This allows the target terminal to directly restore the received target image data in the first encoding format without losing color information, thus avoiding the color loss and color distortion problem caused by directly converting the target image data in the first encoding format into a single target image data in the third encoding format in the prior art, and improving the accuracy of the restored image data.
[0083] In this embodiment, the image rendering parameters also include color space parameters. Correspondingly, the step of converting the target image data of the first encoding format based on the image rendering parameters to obtain the target image data of the second encoding format includes:
[0084] Based on the color space parameters, a first conversion coefficient is determined for converting from the first encoding format to the second encoding format;
[0085] Based on the first conversion coefficient, the target image data in the first encoding format is converted to obtain the target image data in the second encoding format.
[0086] In the process of converting target image data in the first encoding format to the second encoding format, the corresponding first conversion coefficient can be determined based on the color space parameters in the image rendering parameters. Different color space parameters correspond to different conversion coefficients. Based on the first conversion coefficient, the target image data in the first encoding format can be converted to target image data in the second encoding format.
[0087] The formula for converting from the first encoding format to the second encoding format is shown in equation (1):
[0088]
[0089] in, The target image data is in the first encoding format. The first conversion factor is... The target image data is in the second encoding format.
[0090] In this embodiment, target image data in a first encoding format based on pixel color is converted into target image data in a second encoding format based on pixel brightness and chromaticity. For the display, it displays images using the RGB encoding format, but the YUV encoding format can be used when transmitting image data because the YUV encoding format can save bandwidth. Therefore, the RGB encoding format is converted to the YUV encoding format when capturing the image, and then the YUV encoding format is converted back to the RGB encoding format when displaying, thereby saving network resource consumption during the network transmission of image data.
[0091] In this embodiment, the target image data of the second encoding format includes a first component data, a second component data, and a third component data for each pixel; the first component data represents the brightness information of each pixel, and the second component data and the third component data represent the chromaticity information of each pixel; wherein the first component data may specifically correspond to the aforementioned component Y, the second component data may correspond to the aforementioned component U, and the third component data may correspond to the aforementioned component V, where Y represents brightness, and U and V represent chromaticity.
[0092] The position identifiers of each component data of each pixel in the target image data of the second encoding format are consistent with the position identifiers of each pixel in the first encoding format; wherein the position identifier of each pixel in the first encoding format can be the position identifier of each pixel in the initial image data. For example, the initial image data can be represented by an m*n matrix, where each element of the matrix corresponds to a pixel in the initial image data, and the position identifier of each element in the matrix can be determined as the position identifier of each pixel in the initial image data; and in this embodiment, for the same pixel, its position identifier is consistent in the first encoding format, the second encoding format, and the third encoding format. Accordingly, the target image data of the third encoding format can be split based on the position identifier of each pixel, and the specific splitting method may include:
[0093] Extract the first component data of each pixel in the target image data of the second encoding format, extract the second component data of the first pixel and the third component data of the first pixel to obtain a target image data of the third encoding format; the position identifier of the first pixel indicates that the corresponding pixel is in an even row and an even column.
[0094] Extract the second component data and the third component data of the second pixel, extract the second component data and the third component data of the third pixel to obtain a target image data of the third encoding format; the position identifier of the second pixel indicates that the corresponding pixel is in an odd column, and the position identifier of the third pixel indicates that the corresponding pixel is in an odd row and an even column.
[0095] Please see Figure 4 It shows a schematic diagram of target image data splitting, in which the target image data in the second encoding format is shown in matrix form, including the arrangement of each component from pixel 0 to pixel 1. Even-numbered rows include rows starting with Y0U0V0 and rows starting with Y8U8V8. Even-numbered columns include columns starting with Y0U0V0 and columns starting with Y2U2V2. Odd-numbered rows include rows starting with Y4U4V4 and rows starting with Y12U12V12. Cardinal columns include columns starting with Y1U1V1 and columns starting with Y3U3V3.
[0096] Specifically, during the splitting process, the Y component of each pixel can be extracted, as well as the U and V components of pixels in even rows and even columns (pixels 0, 2, 8, 10), thereby generating a target image data in a third encoding format, i.e., data stream 1. Furthermore, the U and V components of pixels in odd columns (pixels 1, 3, 5, 7, 9, 11, 13, 15) and pixels in odd rows and even columns (pixels 4, 6, 12, 14) can also be extracted, thereby generating a target image data in a third encoding format, i.e., data stream 2.
[0097] In this embodiment, the hardware decoder of the target terminal generally supports a third encoding format, such as YUV420. Directly converting the target image data in the first encoding format into one channel of the third encoding format may cause color loss, losing half of the color data. One channel of the target image data in the third encoding format can restore the image information, but the red areas and colored text will be blurry. Therefore, the target image data in the second encoding format can be converted into two channels of the third encoding format to avoid color loss and improve the restoration accuracy of the image data and the clarity of the displayed image.
[0098] Furthermore, this application embodiment also provides another image processing method, the execution subject of which can be the aforementioned electronic terminal; please refer to the relevant documentation for details. Figure 5 Specifically, it may include:
[0099] S510. Send an image acquisition request to the server, so that the server: in response to the image acquisition request, acquires the image rendering parameters corresponding to the image acquisition request; performs image rendering processing on the initial image data based on the image rendering parameters to obtain target image data in a first encoding format; the first encoding format is a format that encodes the color of each pixel; performs format conversion on the target image data in the first encoding format based on the image rendering parameters to obtain target image data in a second encoding format; the second encoding format is a format that encodes the brightness and chromaticity of each pixel; performs data splitting on the target image data in the second encoding format to obtain multiple target image data in a third encoding format; the third encoding format is a format that encodes the brightness and chromaticity of each pixel, and the sampling rate of brightness and chromaticity in the second encoding format during the encoding process is greater than the sampling rate of brightness and chromaticity in the third encoding format during the encoding process; the third encoding format matches the decoding mode of the target terminal.
[0100] The image rendering parameters corresponding to the image acquisition request are also the image rendering parameters corresponding to the executing electronic terminal, and the target terminal is also the executing electronic terminal. The image rendering parameters of the target terminal can refer to the parameters used by the target terminal in the process of rendering image data. For the same image data, if different image rendering parameters are used, the resulting rendered image data will be different.
[0101] In one example, the target terminal can capture at least one image to be displayed on the target terminal and send the captured display image to a data processing server or a color difference correction server. The data processing server or color difference correction server can perform parameter detection on the display image sent by the target terminal to obtain the image rendering parameters corresponding to the target terminal.
[0102] In another example, the target terminal can obtain image rendering parameters through its program interface and send the obtained image rendering parameters to a data processing server or a color difference correction server.
[0103] The image rendering parameters in this embodiment may include image brightness parameters, image depth parameters, color space parameters, and color range parameters. The image depth parameter may be 10-bit, 8-bit, etc., the color space may be BT.2020, BT.601, BT.709, etc., and the color range may be full-color mode, restricted mode, etc. In full-color mode, the RGB value ranges from 0 to 255, while in restricted mode, the RGB value has color loss.
[0104] In this embodiment, the first encoding format can be RGB color encoding, where each pixel has three primary colors: red, green, and blue. The second encoding format can be YUV color encoding. YUV color encoding uses luminance and chrominance to specify the color of a pixel, where Y represents luminance, and U and V represent chrominance. Chroma further defines two aspects of color: hue and saturation. Specifically, in the second encoding format, the Y, U, and V components of each pixel are fully sampled in both the horizontal and vertical directions, meaning each pixel has its own luminance and chrominance.
[0105] S520. Receive the multiple target image data in the third encoding format.
[0106] The third encoding format can also be YUV color encoding. YUV color encoding uses luminance and chrominance to specify the color of a pixel, where Y represents luminance and U and V represent chrominance. Unlike the second encoding format, the third encoding format can halve the chrominance component in the horizontal direction, meaning that adjacent pixels share the same chrominance information, but each pixel has its own luminance information. This method reduces file size while maintaining relatively high quality. The third encoding format can also halve the chrominance component in both the horizontal and vertical directions, meaning that every four pixels share the same chrominance information, but each pixel still has its own luminance information. This method further reduces file size.
[0107] S530. Restore the target image data of the first encoding format based on the multiple target image data of the third encoding format.
[0108] Accordingly, when the target terminal receives multiple target image data in a third encoding format, it can merge and restore the multiple target image data in the third encoding format, and then display them; please refer to [link / reference] for details. Figure 6 It illustrates a method for merging and restoring image data, which may include:
[0109] S610. Merge the multiple target image data in the third encoding format to obtain target image data in the second encoding format.
[0110] The process of merging multiple target image data in the third encoding format can be seen as the reverse process of splitting the target image data in the second encoding format, as described above. (See also...) Figure 4 The data merging can be achieved by reversing the splitting method shown.
[0111] S620. Based on the color space parameters, determine the second conversion coefficient for converting from the second encoding format to the first encoding format.
[0112] S630. Based on the second conversion coefficient, the target image data of the second encoding format is converted to obtain the target image data of the first encoding format.
[0113] In this application, when the data processing server receives an image acquisition request from the target terminal, it can perform image rendering processing on the initial image data based on the target terminal's image rendering parameters to obtain target image data in a first encoding format. This ensures that the rendered target image data matches the terminal's image rendering parameters, solving the color distortion caused by inconsistent image rendering parameters. Furthermore, the target image data in the first encoding format can be converted into target image data in a second encoding format. Since the second encoding format encodes the brightness and chromaticity of each pixel and has a high sampling rate for brightness and chromaticity, it can retain more color information and avoid color distortion. In cases where the target image data in the second encoding format cannot be directly processed by the target terminal, it can be converted into multiple target image data in a third encoding format. This allows the target terminal to directly restore the received target image data in the first encoding format without losing color information, thus avoiding the color loss and color distortion problem caused by directly converting the target image data in the first encoding format into a single target image data in the third encoding format in the prior art, and improving the accuracy of the restored image data.
[0114] In the process of converting target image data in the second encoding format to target image data in the first encoding format, the corresponding second conversion coefficient can be determined based on the color space parameters in the image rendering parameters. Different color space parameters correspond to different conversion coefficients. Based on the second conversion coefficient, the target image data in the second encoding format can be converted to target image data in the first encoding format.
[0115] The formula for converting from the second encoding format to the first encoding format is shown in equation (2):
[0116]
[0117] in, The target image data is in the first encoding format. The second conversion factor, The target image data is in the second encoding format.
[0118] For monitors, images are displayed using the RGB encoding format, but the YUV encoding format can be used when transmitting image data because it saves bandwidth. Therefore, the RGB encoding format is converted to the YUV encoding format when capturing images, and then the YUV encoding format is converted back to the RGB encoding format when displaying them, which saves network resource consumption during the transmission of image data over the network.
[0119] The implementation process of this application is illustrated below with a specific example. Please refer to [link / reference]. Figure 7 It illustrates a schematic diagram of the image data processing flow, where the data processing server can be a cloud server, and the electronic terminal can specifically be a terminal device. The implementation flow includes:
[0120] 1. When the terminal starts up, it captures a desktop image and uploads it to the color correction server in RGB format. The color correction server detects the image rendering parameters used in the image: image brightness, image depth (10-bit, 8-bit), color space (BT.601 or BT.709, etc.), and color gamut (global or limited mode). If the terminal device's program can obtain these rendering parameters through the API, it will also upload them to the color correction server for correction. At the same time, the color correction server saves the currently used rendering parameters to the database according to the terminal type for easy querying by the cloud server. The format is: device ID + image rendering parameters.
[0121] 2. The cloud server retrieves the image rendering parameters of the terminal device from the color difference correction server based on the connected device ID.
[0122] 3. The cloud server captures images from the computer desktop in RGB format, which needs to be converted to YUV format for encoding by the encoder. The encoder generally supports YUV420 format. The cloud server sets the virtual graphics card brightness and bit depth according to the image rendering parameters of the terminal device, converting the captured RGB image to YUV444 format. The specific conversion factor is determined by the color space in the terminal rendering parameters. For example, the conversion factors for BT.2020, BT.709, and BT.601 color spaces are different. To prevent differences in color conversion and restoration between the cloud server and the terminal, the color space needs to be kept consistent.
[0123] 4. Terminal device hardware decoders generally support the YUV420 format. YUV444 is not a universal format. Usually, RGB is directly converted to YUV420, which means that half of the color data is lost. For example, RGB is 3 bytes, but YUV420 only requires 1.5 bytes, and there will still be corresponding color loss. Therefore, after converting RGB to YUV444, the YUV444 format is split into two YUV420 formats for encoding by the encoder. That is, one video stream is converted into two YUV420 video streams. After arriving at the terminal, it is decoded and restored to YUV444, and then converted to RGB for rendering. In this way, there is no color loss.
[0124] 5. After the terminal device decodes the dual-channel YUV420 transmitted from the cloud server, it restores it to YUV444. Then, based on the color space matching coefficients uploaded back from the color difference correction server, it restores the RGB format and renders it. The color is completely restored in the whole process.
[0125] This application addresses color differences caused by decoding and rendering on various terminals by using a split-stream encoding method and adding image rendering parameter detection and storage mechanisms. This solves the problem of high color precision requirements for artists. Improvements include: 1. Splitting the RGB image into two YUV420 images for encoding and transmission before decoding and restoration prevents color loss and also solves the problem that most terminals can only decode YUV420 and not YUV444; 2. Color differences caused by varying rendering capabilities of different terminals can be addressed by adding image rendering parameter detection and storage mechanisms to achieve rendering matching between the terminal and cloud services.
[0126] It should be noted that any of the methods in this embodiment can be combined based on the actual implementation situation and have corresponding beneficial effects, which will not be elaborated here.
[0127] Please see Figure 8 This embodiment also provides an image processing apparatus, which may include:
[0128] The request response module 810 is used to obtain the image rendering parameters of the target terminal in response to the image acquisition request of the target terminal;
[0129] The image rendering module 820 is used to perform image rendering processing on the initial image data based on the image rendering parameters to obtain target image data in a first encoding format; the first encoding format is a format that encodes the color of each pixel.
[0130] The first conversion module 830 is used to convert the target image data of the first encoding format based on the image rendering parameters to obtain the target image data of the second encoding format; the second encoding format is a format that encodes the brightness and chromaticity of each pixel.
[0131] The data splitting module 840 is used to split the target image data based on the second encoding format to obtain multiple target image data in the third encoding format; the third encoding format is a format that encodes the brightness and chromaticity of each pixel, and the sampling rate of brightness and chromaticity in the second encoding format during the encoding process is greater than the sampling rate of brightness and chromaticity in the third encoding format during the encoding process; the third encoding format is matched with the decoding mode of the target terminal.
[0132] The data sending module 850 is used to send the multiple target image data in the third encoding format to the target terminal, so that the target terminal can restore the target image data in the first encoding format based on the multiple target image data in the third encoding format.
[0133] Furthermore, the device also includes a rendering parameter acquisition module, used for:
[0134] Acquire the display image captured by the target terminal;
[0135] The rendering parameters of the displayed image are obtained by performing rendering parameter detection.
[0136] or,
[0137] The image rendering parameters are obtained based on the program interface of the target terminal.
[0138] Furthermore, the image rendering module includes:
[0139] The virtual graphics card setting module is used to set the brightness of the virtual graphics card based on the image brightness parameters, set the acquisition bit depth of the virtual graphics card based on the image depth parameters, and determine the set virtual graphics card.
[0140] The data processing module is used to process the initial image data based on the virtual graphics card after the settings are configured, so as to obtain processed image data;
[0141] The image acquisition module is used to acquire images from the processed image data to obtain target image data in the first encoding format.
[0142] Furthermore, the image rendering parameters also include color space parameters;
[0143] The first conversion module includes:
[0144] The first conversion coefficient determination module is used to determine the first conversion coefficient for converting from the first encoding format to the second encoding format based on the color space parameters;
[0145] The second conversion module is used to convert the target image data of the first encoding format based on the first conversion coefficient to obtain the target image data of the second encoding format.
[0146] Furthermore, the target image data in the second encoding format includes a first component data, a second component data, and a third component data for each pixel; the first component data represents the brightness information of each pixel, and the second component data and the third component data represent the chromaticity information of each pixel; the position identifier of each component data of each pixel in the target image data of the second encoding format is consistent with the position identifier of each pixel in the first encoding format;
[0147] The data splitting module includes:
[0148] The first extraction module is used to extract the first component data of each pixel in the target image data of the second encoding format, extract the second component data of the first pixel and the third component data of the first pixel, and obtain a target image data of the third encoding format; the position identifier of the first pixel indicates that the corresponding pixel is in an even row and an even column.
[0149] The second extraction module is used to extract the second component data and the third component data of the second pixel, extract the second component data and the third component data of the third pixel, and obtain a target image data of the third encoding format; the position identifier of the second pixel indicates that the corresponding pixel is in an odd column, and the position identifier of the third pixel indicates that the corresponding pixel is in an odd row and an even column.
[0150] Please see Figure 9 This embodiment also provides another image processing device, which can be implemented by hardware and / or software and is generally integrated into the client for use in conjunction with a server providing resources. This device may include:
[0151] The request sending module 910 is used to send an image acquisition request to the server, so that the server: in response to the image acquisition request, acquires the image rendering parameters corresponding to the image acquisition request; performs image rendering processing on the initial image data based on the image rendering parameters to obtain target image data in a first encoding format; the first encoding format is a format that encodes the color of each pixel; performs format conversion on the target image data in the first encoding format based on the image rendering parameters to obtain target image data in a second encoding format; the second encoding format is a format that encodes the brightness and chromaticity of each pixel; performs data splitting on the target image data in the second encoding format to obtain multiple target image data in a third encoding format; the third encoding format is a format that encodes the brightness and chromaticity of each pixel, and the sampling rate of brightness and chromaticity in the second encoding format during the encoding process is greater than the sampling rate of brightness and chromaticity in the third encoding format during the encoding process; the third encoding format matches the decoding mode of the target terminal.
[0152] Data receiving module 920 is used to receive the multiple target image data in the third encoding format;
[0153] The data restoration module 930 is used to restore the target image data of the first encoding format based on the multiple target image data of the third encoding format.
[0154] Furthermore, the image rendering parameters also include color space parameters; the data restoration module 930 includes:
[0155] The data merging module is used to merge multiple target image data in the third encoding format to obtain target image data in the second encoding format.
[0156] The second conversion coefficient determination module is used to determine a second conversion coefficient for converting from the second encoding format to the first encoding format based on the color space parameters.
[0157] The third conversion module is used to perform format conversion on the target image data of the second encoding format based on the second conversion coefficient to obtain the target image data of the first encoding format.
[0158] The apparatus provided in the above embodiments can execute the methods provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects for executing the method. Technical details not described in detail in the above embodiments can be found in the methods provided in any embodiment of this application.
[0159] This embodiment also provides a computer-readable storage medium storing at least one instruction or at least one program, which is loaded by a processor and executed as any of the methods described above in this embodiment.
[0160] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform any of the methods described above.
[0161] Figure 10 This is a block diagram illustrating an electronic device for image processing according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as follows: Figure 10 As shown, the electronic device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements an image processing method. The display screen can be a liquid crystal display (LCD) or an e-ink display. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the device's casing, or an external keyboard, touchpad, or mouse.
[0162] Figure 11 This is a block diagram illustrating an electronic device for image processing according to an exemplary embodiment. The electronic device may be a server, and its internal structure diagram may be as follows: Figure 11 As shown, the electronic device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements an image processing method.
[0163] Those skilled in the art will understand that Figure 10 and Figure 11The structure shown is merely a block diagram of a portion of the structure related to the present disclosure and does not constitute a limitation on the electronic device to which the present disclosure is applied. A specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0164] This specification provides the operational steps of the methods described in the embodiments or flowcharts, but more or fewer operational steps may be included based on conventional or non-inventive labor. The steps and order listed in the embodiments are merely one possible execution order among many steps and do not represent the only execution order. In actual system or interrupt product execution, the methods shown in the embodiments or drawings can be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment).
[0165] The structure shown in this embodiment is only a partial structure related to the solution of this application and does not constitute a limitation on the device to which the solution of this application is applied. Specific devices may include more or fewer components than shown, or combinations of certain components, or arrangements of different components. It should be understood that the methods, apparatuses, etc., disclosed in this embodiment can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between devices or unit modules through some interfaces.
[0166] Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0167] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this specification can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0168] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. An image processing method, characterized in that, include: In response to an image acquisition request from the target terminal, the image rendering parameters of the target terminal are obtained; Based on the image rendering parameters, the initial image data is processed by image rendering to obtain target image data in a first encoding format; the first encoding format is a format that encodes the color of each pixel. Based on the image rendering parameters, the target image data in the first encoding format is converted to obtain the target image data in the second encoding format; the second encoding format is a format that encodes the brightness and chromaticity of each pixel. Data splitting is performed on the target image data based on the second encoding format to obtain multiple target image data in the third encoding format; the third encoding format is a format that encodes the brightness and chromaticity of each pixel, and the sampling rate of brightness and chromaticity in the second encoding format during the encoding process is greater than the sampling rate of brightness and chromaticity in the third encoding format during the encoding process. The third encoding format is matched with the decoding mode of the target terminal; The target terminal sends the multiple target image data in the third encoding format to the target terminal so that the target terminal can reconstruct the target image data in the first encoding format based on the multiple target image data in the third encoding format.
2. The method according to claim 1, characterized in that, The method further includes: Acquire the display image captured by the target terminal; The rendering parameters of the displayed image are obtained by performing rendering parameter detection. or, The image rendering parameters are obtained based on the program interface of the target terminal.
3. The method according to claim 1, characterized in that, The image rendering parameters include image brightness parameters and image depth parameters; The step of performing image rendering processing on the initial image data based on the image rendering parameters to obtain target image data in a first encoding format includes: The brightness of the virtual graphics card is set based on the image brightness parameter, and the sampling bit depth of the virtual graphics card is set based on the image depth parameter to determine the virtual graphics card after setting. Based on the virtual graphics card settings, the initial image data is processed to obtain processed image data; The processed image data is then used for image acquisition to obtain target image data in the first encoding format.
4. The method according to claim 3, characterized in that, The image rendering parameters also include color space parameters; The step of converting the target image data in the first encoding format based on the image rendering parameters to obtain the target image data in the second encoding format includes: Based on the color space parameters, a first conversion coefficient is determined for converting from the first encoding format to the second encoding format; Based on the first conversion coefficient, the target image data in the first encoding format is converted to obtain the target image data in the second encoding format.
5. The method according to claim 1, characterized in that, The target image data in the second encoding format includes a first component data, a second component data, and a third component data for each pixel; the first component data represents the brightness information of each pixel, and the second component data and the third component data represent the chromaticity information of each pixel; The position identifier of each component data of each pixel in the target image data of the second encoding format is consistent with the position identifier of each pixel in the first encoding format; The target image data based on the second encoding format is split to obtain multiple target image data in the third encoding format, including: Extract the first component data of each pixel in the target image data of the second encoding format, extract the second component data of the first pixel and the third component data of the first pixel to obtain a target image data of the third encoding format; the position identifier of the first pixel indicates that the corresponding pixel is in an even row and an even column. Extract the second component data and the third component data of the second pixel, extract the second component data and the third component data of the third pixel to obtain a target image data of the third encoding format; the position identifier of the second pixel indicates that the corresponding pixel is in an odd column, and the position identifier of the third pixel indicates that the corresponding pixel is in an odd row and an even column.
6. An image processing method, characterized in that, include: Send an image retrieval request to the server, so that the server: In response to the image acquisition request, obtain the image rendering parameters corresponding to the image acquisition request; Based on the image rendering parameters, the initial image data is processed to obtain target image data in a first encoding format. The first encoding format is a format that encodes the color of each pixel. Based on the image rendering parameters, the target image data in the first encoding format is converted to obtain target image data in a second encoding format. The second encoding format is a format that encodes the brightness and chromaticity of each pixel. Based on the target image data in the second encoding format, the data is split to obtain multiple target image data in a third encoding format. The third encoding format is a format that encodes the brightness and chromaticity of each pixel, and the sampling rate of brightness and chromaticity in the second encoding format during the encoding process is greater than the sampling rate of brightness and chromaticity in the third encoding format during the encoding process. The third encoding format matches the decoding mode of the target terminal. Receive the multiple target image data in the third encoding format; The target image data in the first encoding format is restored based on the multiple target image data in the third encoding format.
7. The method according to claim 6, characterized in that, The image rendering parameters also include color space parameters; The process of restoring the target image data in the first encoding format based on the multiple target image data in the third encoding format includes: Data merging is performed on the multiple target image data in the third encoding format to obtain target image data in the second encoding format; Based on the color space parameters, a second conversion coefficient is determined for converting from the second encoding format to the first encoding format; Based on the second conversion coefficient, the target image data of the second encoding format is converted to obtain the target image data of the first encoding format.
8. An image processing apparatus, characterized in that, include: The request-response module is used to respond to the image acquisition request from the target terminal and acquire the image rendering parameters of the target terminal; The image rendering module is used to perform image rendering processing on the initial image data based on the image rendering parameters to obtain target image data in a first encoding format; the first encoding format is a format that encodes the color of each pixel. The first conversion module is used to convert the target image data of the first encoding format based on the image rendering parameters to obtain the target image data of the second encoding format; the second encoding format is a format that encodes the brightness and chromaticity of each pixel. The data splitting module is used to split the target image data based on the second encoding format to obtain multiple target image data in the third encoding format. The third encoding format is a format that encodes the brightness and chromaticity of each pixel, and the sampling rate of brightness and chromaticity in the second encoding format during the encoding process is greater than the sampling rate of brightness and chromaticity in the third encoding format during the encoding process. The third encoding format is matched with the decoding mode of the target terminal. The data transmission module is used to send the multiple target image data in the third encoding format to the target terminal, so that the target terminal can restore the target image data in the first encoding format based on the multiple target image data in the third encoding format.
9. An image processing apparatus, characterized in that, include: A request sending module is configured to send an image acquisition request to a server, such that the server: in response to the image acquisition request, acquires image rendering parameters corresponding to the image acquisition request; performs image rendering processing on initial image data based on the image rendering parameters to obtain target image data in a first encoding format; the first encoding format is a format that encodes the color of each pixel; performs format conversion on the target image data in the first encoding format based on the image rendering parameters to obtain target image data in a second encoding format; the second encoding format is a format that encodes the brightness and chromaticity of each pixel; performs data splitting on the target image data in the second encoding format to obtain multiple target image data in a third encoding format; the third encoding format is a format that encodes the brightness and chromaticity of each pixel, and the sampling rate of brightness and chromaticity in the second encoding format during the encoding process is greater than the sampling rate of brightness and chromaticity in the third encoding format during the encoding process. The third encoding format is matched with the decoding mode of the target terminal; The data receiving module is used to receive the multiple target image data in the third encoding format; The data restoration module is used to restore the target image data of the first encoding format based on the multiple target image data of the third encoding format.
10. An electronic device, characterized in that, The device includes a processor and a memory, the memory storing at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by the processor to implement the image processing method as claimed in any one of claims 1 to 5, or the image processing method as claimed in any one of claims 6 to 7.
11. A computer storage medium, characterized in that, The storage medium stores at least one instruction or at least one program, which is loaded and executed by a processor according to any one of claims 1 to 5, or according to any one of claims 6 to 7.