Data processing method and device, image data processing method and device, equipment and medium

By saving information with larger data bits into data with smaller data bits during data processing, the problem of reduced device performance caused by insufficient data bits is solved, and memory savings and increased transmission speed are achieved.

CN120725850APending Publication Date: 2025-09-30BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410381490.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-29
Publication Date
2025-09-30

AI Technical Summary

Technical Problem

In the existing technology, when the number of data bits is insufficient, information cannot be accurately represented, resulting in reduced device performance, and increasing the number of data bits will increase memory usage and transmission power consumption.

Method used

By extracting information from a data set and adding it to data with smaller data bits, the data set with smaller data bits can be used to store information of data with larger data bits, thereby achieving optimized encoding and decoding of data bits.

Benefits of technology

While ensuring data integrity, it reduces memory usage and transmission power consumption, increases transmission rate, and improves device performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120725850A_ABST
    Figure CN120725850A_ABST
Patent Text Reader

Abstract

The invention relates to a data processing method and device, an image data processing method and device, equipment and a medium. The method comprises the steps that first target data and second target data are determined, the first target data are data, larger than a first threshold value, in multiple pieces of first data included in a first data set, and the second target data are data, smaller than a second threshold value, in multiple pieces of second data included in a second data set; extracting first information from the first target data, and adding the first information to the second target data; determining a third data set based on the first data except the first target data and the first target data after the first information is extracted; and determining a fourth data set based on second data except the second target data and the second target data added with the first information. The data in the first data set and the second data set are guaranteed to be completely stored, meanwhile, the use of a memory is reduced, and during data transmission, the transmission rate can be increased, and the equipment performance can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a data processing method, an image data processing method, an apparatus, a device, and a medium. Background Art

[0002] Data processing is essential in electronic devices. In order to better use data to represent some information, the maximum data bit of the data is usually fixed. However, for some data, the maximum data bit may no longer be able to accurately represent the corresponding information. For example, for image data, the maximum data bit of the image data is 10 bits, but the actual information to be represented may be 12 bits. In this case, 10 bits of data cannot be used to represent the information of 12 bits of data.

[0003] In related technologies, in order to better represent the corresponding information, when the data bits are insufficient, the data bits are increased. However, increasing the data bits will use more memory. Moreover, when transmitting data, the large amount of data will increase the power consumption of the transmission and reduce the transmission rate, thereby reducing the performance of the device. Summary of the Invention

[0004] To overcome the problems existing in the related art, the present disclosure provides a data processing method, an image data processing method, an apparatus, a device and a medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, the method comprising:

[0006] Determine first target data and second target data, where the first target data is data greater than a first threshold value among a plurality of first data included in the first data set, and the second target data is data less than a second threshold value among a plurality of second data included in the second data set;

[0007] extracting first information from the first target data and adding the first information to the second target data, wherein the first information is used to indicate a value of a first preset position in the first target data, the first preset position being located before the least significant bit, and the value of the first preset position being not 0;

[0008] determining a third data set based on the first data excluding the first target data and the first target data after extracting the first information;

[0009] A fourth data set is determined based on the second data excluding the second target data and the second target data to which the first information is added.

[0010] In some embodiments, when the first preset position is the highest bit, extracting the first information from the first target data includes:

[0011] When the value of the second highest bit in the first target data is 0, swapping the value of the second highest bit and the value of the lowest bit in the first target data to obtain swapped first target data;

[0012] The first information is extracted from the swapped first target data.

[0013] In some embodiments, before determining the first target data, the method further includes:

[0014] When the value of the least significant bit in the first data is 0, the first data is added to or subtracted from a preset value to obtain updated first data, and the preset value is an odd number.

[0015] In some embodiments, determining the third data set based on the first data other than the first target data and the first target data after extracting the first information includes:

[0016] converting the type of first data other than the first target data into a first type;

[0017] Converting the type of the first target data after extracting the first information into a second type;

[0018] determining the third data set based on the converted first data and the converted first target data;

[0019] When the first type is an even number, the second type is an odd number; when the first type is an odd number, the second type is an even number.

[0020] In some embodiments, converting the type of the first data other than the first target data into the first type includes:

[0021] When the type of the first data is the second type, the first data is added to or subtracted from a preset value to obtain the converted first data, wherein the preset value is an odd number, and when the first type is an even number and the first preset position is the highest bit, the value of the lowest bit in the converted first data is not 0.

[0022] In some embodiments, when the first preset position is the highest bit, converting the type of the first target data after extracting the first information into the second type includes:

[0023] When the value of the least significant bit in the first target data after the first information is extracted is 0, the first target data after the first information is extracted remains unchanged; or

[0024] When the value of the lowest bit in the first target data after extracting the first information is not 0, and the type of the first target data after extracting the first information is the first type, the first target data after extracting the first information is added to or subtracted from a preset value to obtain the converted first target data, and the preset value is an odd number.

[0025] In some embodiments, determining the fourth data set based on the second data excluding the second target data and the second target data after adding the first information includes:

[0026] converting the type of the second data other than the second target data into a third type;

[0027] determining the fourth data set based on the converted second data and the second target data after the first information is added, wherein the type of the second target data after the first information is added is a fourth type;

[0028] When the third type is an even number, the fourth type is an odd number; when the third type is an odd number, the fourth type is an even number.

[0029] In some embodiments, adding the first information to the second target data includes:

[0030] When the type of the second target data is the third type, adding the second target data to a preset value or subtracting the preset value to obtain converted second target data, the preset value being an odd number;

[0031] The first information is added to the converted second target data to obtain the second target data after the first information is added.

[0032] In some embodiments, converting the type of the second data other than the second target data into a third type includes:

[0033] When the type of the second data is the fourth type, the second data is added to or subtracted from a preset value to obtain converted second data, and the preset value is an odd number.

[0034] In some embodiments, when there are multiple first target data and multiple second target data, extracting first information from the first target data and adding the first information to the second target data includes:

[0035] extracting first information from each first target data;

[0036] Each piece of first information is sequentially added to the corresponding second target data according to the arrangement order of the plurality of first target data in the first data set and the arrangement order of the plurality of second target data in the second data set.

[0037] In some embodiments, when there are multiple first data sets and there are multiple first target data in each first data set, sequentially adding each first information to the corresponding second target data according to the arrangement order of the multiple first target data in the first data set and the arrangement order of the multiple second target data in the second data set includes:

[0038] Each first information is sequentially added to the corresponding second target data according to the arrangement order of the multiple first data sets, the arrangement order of the multiple first target data in each first data set, and the arrangement order of the multiple second target data in the second data set.

[0039] According to a second aspect of an embodiment of the present disclosure, a data processing method is provided, the method comprising:

[0040] Determining third target data and fourth target data, wherein the third target data is data belonging to the second type among the plurality of third data included in the third data set, and the fourth target data is data belonging to the fourth type among the plurality of fourth data included in the fourth data set;

[0041] extracting second information from the fourth target data and adding the second information to the third target data, wherein the second information is used to indicate a value of a second preset position in the fourth target data;

[0042] determining a fifth data set based on the third data excluding the third target data and the third target data after the second information is added;

[0043] A sixth data set is determined based on the fourth data excluding the fourth target data and the fourth target data after the second information is extracted.

[0044] In some embodiments, determining the third target data further includes:

[0045] When the second type is an odd number, if the value of the least significant bit in the third data is 0, the third data is determined as the third target data.

[0046] In some embodiments, determining the fifth data set based on the third data other than the third target data and the third target data after adding the second information includes:

[0047] When the value of the lowest bit in the third target data after the second information is added is 0, swapping the value of the lowest bit with the value of the second highest bit in the third target data after the second information is added to obtain swapped third target data;

[0048] The fifth data set is determined based on the third data excluding the third target data and the swapped third target data.

[0049] In some embodiments, when the number of the third target data is plural and the number of the fourth target data is plural, extracting the second information from the fourth target data and adding the second information to the third target data includes:

[0050] extracting second information from each fourth target data;

[0051] Each second information is sequentially added to the corresponding third target data according to the arrangement order of the plurality of third target data in the third data set and the arrangement order of the plurality of fourth target data in the fourth data set.

[0052] In some embodiments, when there are multiple third data sets and each third data set contains multiple third target data, sequentially adding each second information to the corresponding third target data according to the arrangement order of the multiple third target data in the third data set and the arrangement order of the multiple fourth target data in the fourth data set includes:

[0053] Each second information is sequentially added to the corresponding third target data according to the arrangement order of the plurality of third data sets, the arrangement order of the plurality of third target data in each third data set, and the arrangement order of the plurality of fourth target data in the fourth data set.

[0054] According to a third aspect of an embodiment of the present disclosure, there is provided an image data processing method, the method comprising:

[0055] capturing a plurality of exposure images having different exposure levels, the plurality of exposure images including at least a first exposure image and a second exposure image, wherein the exposure level of the first exposure image is greater than the exposure level of the second exposure image, the first image data being used to represent the first exposure image, and the second image data being used to represent the second exposure image;

[0056] determining a first target pixel parameter and a second target pixel parameter, wherein the first target pixel parameter is data greater than a first parameter threshold value among a plurality of first pixel parameters included in the first image data, and the second target pixel parameter is data less than a second parameter threshold value among a plurality of second pixel parameters included in the second image data, wherein different image data are used to represent different exposure images;

[0057] extracting first information from the first target pixel parameter and adding the first information to the second target pixel parameter, wherein the first information is used to indicate a value of a first preset position in the first target pixel parameter, the first preset position being located before the least significant bit, and the value of the first preset position being not 0;

[0058] determining third image data based on the first pixel parameters other than the first target pixel parameters and the first target pixel parameters after extracting the first information;

[0059] Based on the second pixel parameter excluding the second target pixel parameter and the second target pixel parameter after adding the first information, fourth image data is determined, and the third image data and the fourth image data are used to represent the first exposure image and the second exposure image.

[0060] In some embodiments, the method further comprises:

[0061] determining a third target pixel parameter and a fourth target pixel parameter, wherein the third target pixel parameter is data belonging to the second type among a plurality of third data included in the third image data, and the fourth target pixel parameter is data belonging to the fourth type among a plurality of fourth data included in the fourth image data;

[0062] extracting second information from the fourth target pixel parameter and adding the second information to the third target pixel parameter, wherein the second information is used to indicate a value of a second preset position in the fourth target pixel parameter;

[0063] determining fifth image data based on third data excluding the third target pixel parameter and the third target pixel parameter after the second information is added, wherein the fifth image data is used to represent the first exposure image;

[0064] Based on the fourth data excluding the fourth target pixel parameter and the fourth target pixel parameter after the second information is extracted, sixth image data is determined, where the sixth image data is used to represent the second exposure image.

[0065] According to a fourth aspect of an embodiment of the present disclosure, there is provided a data processing device, the device comprising:

[0066] a data determination module configured to determine first target data and second target data, wherein the first target data is data greater than a first threshold value among a plurality of first data included in the first data set, and the second target data is data less than a second threshold value among a plurality of second data included in the second data set;

[0067] a data processing module configured to extract first information from the first target data and add the first information to the second target data, wherein the first information is used to indicate a value of a first preset position in the first target data, the first preset position being located before the least significant bit, and the value of the first preset position being not 0;

[0068] a data set determining module configured to determine a third data set based on the first data excluding the first target data and the first target data after the first information is extracted;

[0069] The data set determining module is further configured to determine a fourth data set based on the second data excluding the second target data and the second target data to which the first information is added.

[0070] In some embodiments, when the first preset position is the highest bit, the data processing module is configured to:

[0071] When the value of the second highest bit in the first target data is 0, swapping the value of the second highest bit and the value of the lowest bit in the first target data to obtain swapped first target data;

[0072] The first information is extracted from the swapped first target data.

[0073] In some embodiments, the data processing module is further configured to:

[0074] When the value of the least significant bit in the first data is 0, the first data is added to or subtracted from a preset value to obtain updated first data, and the preset value is an odd number.

[0075] In some embodiments, the data set determination module is configured to:

[0076] converting the type of first data other than the first target data into a first type;

[0077] Converting the type of the first target data after extracting the first information into a second type;

[0078] determining the third data set based on the converted first data and the converted first target data;

[0079] When the first type is an even number, the second type is an odd number; when the first type is an odd number, the second type is an even number.

[0080] In some embodiments, the data set determination module is configured to:

[0081] When the type of the first data is the second type, the first data is added to or subtracted from a preset value to obtain the converted first data, wherein the preset value is an odd number, and when the first type is an even number and the first preset position is the highest bit, the value of the lowest bit in the converted first data is not 0.

[0082] In some embodiments, when the first preset position is the highest bit, the data set determination module is configured to:

[0083] When the value of the least significant bit in the first target data after the first information is extracted is 0, the first target data after the first information is extracted remains unchanged; or

[0084] When the value of the lowest bit in the first target data after extracting the first information is not 0, and the type of the first target data after extracting the first information is the first type, the first target data after extracting the first information is added to or subtracted from a preset value to obtain the converted first target data, and the preset value is an odd number.

[0085] In some embodiments, the data set determination module is configured to:

[0086] converting the type of the second data other than the second target data into a third type;

[0087] determining the fourth data set based on the converted second data and the second target data after the first information is added, wherein the type of the second target data after the first information is added is a fourth type;

[0088] When the third type is an even number, the fourth type is an odd number; when the third type is an odd number, the fourth type is an even number.

[0089] In some embodiments, the data processing module is configured to:

[0090] When the type of the second target data is the third type, adding the second target data to a preset value or subtracting the preset value to obtain converted second target data, the preset value being an odd number;

[0091] The first information is added to the converted second target data to obtain the second target data after the first information is added.

[0092] In some embodiments, the data set determination module is configured to:

[0093] When the type of the second data is the fourth type, the second data is added to or subtracted from a preset value to obtain converted second data, and the preset value is an odd number.

[0094] In some embodiments, when there are multiple second target data, the data processing module is configured to:

[0095] extracting first information from each first target data;

[0096] Each piece of first information is sequentially added to the corresponding second target data according to the arrangement order of the plurality of first target data in the first data set and the arrangement order of the plurality of second target data in the second data set.

[0097] In some embodiments, when there are multiple first data sets and multiple first target data in each first data set, the data processing module is configured to:

[0098] Each first information is sequentially added to the corresponding second target data according to the arrangement order of the multiple first data sets, the arrangement order of the multiple first target data in each first data set, and the arrangement order of the multiple second target data in the second data set.

[0099] According to a fifth aspect of an embodiment of the present disclosure, there is provided a data processing device, the device comprising:

[0100] a data determination module configured to determine third target data and fourth target data, wherein the third target data is data belonging to the second type among the plurality of third data included in the third data set, and the fourth target data is data belonging to the fourth type among the plurality of fourth data included in the fourth data set;

[0101] a data processing module, configured to extract second information from the fourth target data and add the second information to the third target data, wherein the second information is used to indicate a value of a second preset position in the fourth target data;

[0102] a data set determining module configured to determine a fifth data set based on third data excluding the third target data and the third target data to which the second information is added;

[0103] The data set determining module is further configured to determine a sixth data set based on fourth data excluding the fourth target data and the fourth target data after the second information is extracted.

[0104] In some embodiments, the data determination module is configured to:

[0105] When the second type is an odd number, if the value of the least significant bit in the third data is 0, the third data is determined as the third target data.

[0106] In some embodiments, the data set determination module is configured to:

[0107] When the value of the lowest bit in the third target data after the second information is added is 0, swapping the value of the lowest bit with the value of the second highest bit in the third target data after the second information is added to obtain swapped third target data;

[0108] The fifth data set is determined based on the third data excluding the third target data and the swapped third target data.

[0109] In some embodiments, when the number of the third target data is plural and the number of the fourth target data is plural, the data processing module is configured to:

[0110] extracting second information from each fourth target data;

[0111] Each second information is sequentially added to the corresponding third target data according to the arrangement order of the plurality of third target data in the third data set and the arrangement order of the plurality of fourth target data in the fourth data set.

[0112] In some embodiments, when there are multiple third data sets and multiple third target data in each third data set, the data processing module is configured to:

[0113] Each second information is sequentially added to the corresponding third target data according to the arrangement order of the plurality of third data sets, the arrangement order of the plurality of third target data in each third data set, and the arrangement order of the plurality of fourth target data in the fourth data set.

[0114] According to a sixth aspect of an embodiment of the present disclosure, there is provided an image data processing apparatus, the apparatus comprising:

[0115] an image capture module configured to capture a plurality of exposure images having different exposure levels, the plurality of exposure images including at least a first exposure image and a second exposure image, wherein the exposure level of the first exposure image is greater than that of the second exposure image, the first image data being used to represent the first exposure image, and the second image data being used to represent the second exposure image;

[0116] a pixel parameter determination module configured to determine a first target pixel parameter and a second target pixel parameter, wherein the first target pixel parameter is data greater than a first parameter threshold value among a plurality of first pixel parameters included in the first image data, and the second target pixel parameter is data less than the second parameter threshold value among a plurality of second pixel parameters included in the second image data, wherein different image data are used to represent different exposure images;

[0117] a pixel parameter processing module configured to extract first information from the first target pixel parameter and add the first information to the second target pixel parameter, wherein the first information is used to indicate a value of a first preset position in the first target pixel parameter, the first preset position being located before the least significant bit, and the value of the first preset position being non-zero;

[0118] an image data determination module configured to determine third image data based on a first pixel parameter other than the first target pixel parameter and the first target pixel parameter after extracting the first information;

[0119] The image data determination module is further configured to determine fourth image data based on a second pixel parameter in addition to the second target pixel parameter and the second target pixel parameter after adding the first information, and the third image data and the fourth image data are used to represent the first exposure image and the second exposure image.

[0120] In some embodiments, the apparatus further comprises:

[0121] The pixel parameter determination module is further configured to determine a third target pixel parameter and a fourth target pixel parameter, wherein the third target pixel parameter is data belonging to the second type among the plurality of third data included in the third image data, and the fourth target pixel parameter is data belonging to the fourth type among the plurality of fourth data included in the fourth image data;

[0122] The pixel parameter processing module is further configured to extract second information from the fourth target pixel parameter and add the second information to the third target pixel parameter, wherein the second information is used to indicate a value of a second preset position in the fourth target pixel parameter;

[0123] The image data determination module is further configured to determine fifth image data based on third data other than the third target pixel parameter and the third target pixel parameter after adding the second information, wherein the fifth image data is used to represent the first exposure image;

[0124] The image data determination module is further configured to determine sixth image data based on fourth data other than the fourth target pixel parameter and the fourth target pixel parameter after extracting the second information, wherein the sixth image data is used to represent the second exposure image.

[0125] According to a seventh aspect of the embodiments of the present disclosure, there is provided an electronic device, including:

[0126] processor;

[0127] a memory for storing processor-executable instructions;

[0128] The processor is configured to execute the method as described in the first aspect of the embodiment of the present disclosure, or the processor is configured to execute the method as described in the second aspect of the embodiment of the present disclosure, or the processor is configured to execute the method as described in the third aspect of the embodiment of the present disclosure.

[0129] According to the eighth aspect of the embodiments of the present disclosure, a non-temporary computer-readable storage medium is provided. When the instructions in the storage medium are executed by the processor of an electronic device, the electronic device is enabled to execute the method as described in the first aspect of the embodiments of the present disclosure, or the electronic device is enabled to execute the method as described in the second aspect of the embodiments of the present disclosure, or the electronic device is enabled to execute the method as described in the third aspect of the embodiments of the present disclosure.

[0130] The above method of the present disclosure has the following beneficial effects:

[0131] The method provided by the embodiment of the present disclosure makes full use of the data bits of the data in the second data set, and saves the first information of the larger data in the first data set into the smaller data in the second data set, that is, the data overflowing from the first data set is saved in the second data set. While ensuring that the data in the first data set and the second data set are completely saved, the use of memory is reduced, so that when transmitting the data in the first data set, the power consumption of the transmission can be reduced, the transmission rate can be increased, and the performance of the device can be improved.

[0132] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0133] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0134] Figure 1 is a flow chart showing a data processing method according to an exemplary embodiment;

[0135] Figure 2 is a flow chart showing a data processing method according to an exemplary embodiment;

[0136] Figure 3 is a flow chart showing a data processing method according to an exemplary embodiment;

[0137] Figure 4 is a flow chart showing a data processing method according to an exemplary embodiment;

[0138] Figure 5 is a flowchart showing a method for processing image data according to an exemplary embodiment;

[0139] Figure 6 is a block diagram of a data processing device according to an exemplary embodiment;

[0140] Figure 7 is a block diagram of a data processing device according to an exemplary embodiment;

[0141] Figure 8 is a block diagram of an image data processing device according to an exemplary embodiment;

[0142] Figure 9 is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0143] Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. In the following description, when referring to the drawings, like numbers in different figures represent like or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present invention, as detailed in the appended claims.

[0144] The data processing method provided by the embodiments of the present disclosure can be applied to various scenarios, such as image data processing scenarios, video data processing scenarios, and the like.

[0145] Taking image data processing as an example, in related technologies, during the imaging process, the image sensor first captures a raw image (image data). After a series of image processing operations on the raw image, a de-mosaicing algorithm is used to convert the raw image into an RGB image. After the RGB image is processed, it is converted into a YUV image for further image processing. During this series of image processing, the data bit size of the image data in RAW and YUV formats affects the accuracy of image processing. Images with larger data bits have higher image accuracy and better image quality, but this also brings problems: increased memory consumption and data transmission power consumption, resulting in reduced performance. Therefore, a trade-off is usually made between image quality, performance, power consumption, and memory.

[0146] In one example, the raw image captured by an image sensor has 10 bits of data. Because image processing operations such as pixel correction, black level correction, lens shading correction, and white balance correction are performed on the raw image, the data bits of the raw image need to be increased from 10 to 16 or 18 bits. This, on the one hand, prevents data overflow during the processing of these algorithms, and on the other hand, improves data precision and image processing quality. However, increasing the data bits to improve image processing precision not only increases the storage space of the raw image and increases memory usage, but also increases power consumption and reduces the transmission rate during the transfer of each image processing algorithm to the next, resulting in a decrease in device performance.

[0147] The data processing method and image data processing method provided by the embodiments of the present disclosure propose a data encoding and decoding function. The data is first encoded, and the data with larger data bits is saved into the data with smaller data bits. Then, the encoded data is decoded to obtain the original data. While ensuring the complete preservation of the data, the use of memory is reduced. During data transmission, the transmission rate can be increased, and the performance of the device can be improved. In addition, for image data, since the data is completely preserved, high-precision image data can be saved, which increases the accuracy of image processing and improves image quality.

[0148] In one example, using the long-exposure image, normal-exposure image, and short-exposure image in HDR (High Dynamic Range) technology as examples, in the long-exposure case, the overall brightness of the exposed image is brighter, the image data is larger, and data overflow is very easy. In the normal-exposure case, the overall brightness of the exposed image is relatively normal, but the image data in the highlights is also larger, making data overflow easy. In the short-exposure case, the overall brightness of the exposed image is darker, and the image data is smaller. Based on the above characteristics of exposed images with different exposure levels, combined with the limited data bits for image data storage (for example, the maximum data bits of image data are 10 bits, and the pixel parameter of each pixel is up to 1023. If it exceeds 1023, it will overflow. For example, if the pixel parameter is 1260, the pixel parameter will be truncated to 1023), and the smaller image data of the short-exposure image, the image data of the short-exposure image can be fully utilized to store the overflowed data bits in the image data of the long-exposure and normal-exposure images.

[0149] The method provided in the embodiments of the present disclosure is executed by an electronic device, which may be a mobile phone, tablet computer, laptop computer, wearable device, smart home device, or the like.

[0150] The data processing method provided by the embodiment of the present disclosure includes a data encoding process and a data decoding process. Figure 1 and Figure 2 The embodiment shown illustrates the encoding process by Figure 3 and Figure 4 The illustrated embodiment illustrates the decoding process.

[0151] Figure 1 is a flow chart showing a data processing method according to an exemplary embodiment, which is executed by an electronic device, see Figure 1 , the method comprises the following steps:

[0152] Step S101 , determining first target data and second target data, where the first target data is data greater than a first threshold among a plurality of first data included in a first data set, and the second target data is data less than a second threshold among a plurality of second data included in a second data set.

[0153] A data set is a collection of data. For a first data set and a second data set, the data contained in the first data set and the second data set are different, and the maximum value of the multiple first data included in the first data set is greater than the maximum value of the multiple second data included in the second data set, or in other words, the average value of the multiple first data included in the first data set is greater than the average value of the multiple second data included in the second data set. The data in the first data set is larger and the data in the second data set is smaller. When the data in the first data set overflows, the smaller data in the second data set is used to store the overflowed data in the first data set.

[0154] For the first data set, when the data bits of the first data in the first data set exceed the maximum data bits corresponding to the first data set, that is, when the first data is greater than a first threshold, the first data is determined as the first target data. The first threshold is related to the maximum data bits corresponding to the first data set. For example, if the maximum data bits corresponding to the first data set are 10 bits, then the first threshold is 1023; if the maximum data bits corresponding to the first data set are 14 bits, then the first threshold is 16383.

[0155] For the second data set, when the second data set is used to store data that overflows from the first data set, it is necessary to ensure that the second data set does not overflow after storing the data in the first data set. Therefore, when the second data set is less than a second threshold, the second data set is determined as the second target data. The second threshold is related to the maximum data bit corresponding to the second data set. For example, if the maximum data bit corresponding to the second data set is 10 bits, then the second threshold is 100; if the maximum data bit corresponding to the second data set is 14 bits, then the second threshold is 1000.

[0156] Step S102, extracting first information from the first target data and adding the first information to the second target data, the first information is used to indicate the value of the first preset position in the first target data, the first preset position is located before the least significant bit, and the value of the first preset position is not 0.

[0157] Extracting the first information from the first target data, that is, extracting the value of the first preset position from the first target data, and the first target data after extracting the first information no longer contains the value. The first preset position is located before the least significant bit, and the value of the first preset position is not 0. For example, if the first preset position is the most significant bit and the first target data is 7999, then 7 is extracted from the first target data, and the first target data after extracting the first information is 999. For another example, if the first preset position is the second most significant bit and the first target data is 7999, then 9 is extracted from the first target data, and the first target data after extracting the first information is 799.

[0158] The first information is appended to the second target data. This means that the value extracted from the first target data is added to the second target data. For example, the value can be appended before the most significant bit of the second target data, or after the most significant bit and before the second most significant bit of the second target data. For example, if the first information is 7 and the second target data is 49, the second target data after appending the first information is 749. Alternatively, the second target data after appending the first information can be 479.

[0159] Step S103 : determining a third data set based on the first data excluding the first target data and the first target data after the first information is extracted.

[0160] The third data set is a data set obtained by processing some data in the first data set, and includes the first target data after the first information is extracted and the first data in the first data set without the first information being extracted.

[0161] Step S104 : determining a fourth data set based on the second data excluding the second target data and the second target data after the first information is added.

[0162] The fourth data set is a data set obtained by processing some data in the second data set, and includes the second target data with the first information added thereto and the second data in the second data set without the first information added thereto.

[0163] The method provided by the embodiment of the present disclosure makes full use of the data bits of the data in the second data set, and saves the first information of the larger data in the first data set into the smaller data in the second data set, that is, the data overflowing from the first data set is saved in the second data set. While ensuring that the data in the first data set and the second data set are completely saved, the use of memory is reduced, so that when transmitting the data in the first data set, the power consumption of the transmission can be reduced, the transmission rate can be increased, and the performance of the device can be improved.

[0164] Figure 2 is a flow chart showing a data processing method according to an exemplary embodiment, which is executed by an electronic device, see Figure 2 , the method comprises the following steps:

[0165] Step S201: Acquire a first data set and a second data set.

[0166] The first data set includes a plurality of first data, and the second data set includes a plurality of second data. The maximum data bits corresponding to the first data set and the maximum data bits corresponding to the second data set may be the same or different. For example, the maximum data bits corresponding to the first data set and the maximum data bits corresponding to the second data set are both 10 bits.

[0167] In one example, taking the first data set as first image data (image data of a long-exposure exposure image) and the second data set as second image data (image data of a short-exposure exposure image) as an example, the first data set is shown in Table 1 below, and the second data set is shown in Table 2 below:

[0168] Table 1

[0169] 1023 1999 3500 2538 799 8000 563 200 679

[0170] Table 2

[0171] 40 77 135 98 31 301 17 7 27

[0172] Each value in Table 1 and Table 2 represents a pixel parameter.

[0173] In some embodiments, the number of the first data sets may be one or more, and the number of the second data sets may also be one or more.

[0174] Step S202 : determining first target data from a plurality of first data in the first data set.

[0175] The first target data is data in the first data set that is greater than the first threshold. The number of first target data can be one or more. In one example, the first data set is as shown in Table 1 above. When the first threshold is 1023, the first target data are 1999, 3500, 2538, and 8000.

[0176] Step S203: determining second target data from the plurality of second data in the second data set.

[0177] The second target data is data in the second data set that is less than the second threshold. The number of second target data can be one or more. In one example, the second data set is as shown in Table 2 above. When the second threshold is 100, the second target data are 40, 77, 98, 31, 17, 7, and 27.

[0178] Step S204: extracting first information from the first target data.

[0179] The first information is used to indicate a value of a first preset position in the first target data. The first preset position may be the highest bit in the data.

[0180] In some embodiments, when the first preset position is the highest bit, and the value of the second highest bit in the first target data is 0, the value of the second highest bit and the value of the lowest bit in the first target data are swapped to obtain swapped first target data; and the first information is extracted from the swapped first target data. The second highest bit can be the second highest bit in the data, and the lowest bit can be the lowest bit in the data. For example, if the first target data is 3023, the value of the second highest bit is 0, and the value of the lowest bit is 3, then 0 and 3 are swapped to obtain the swapped first target data of 3320.

[0181] In some embodiments, considering that the value of the lowest bit of the first target data after the swap is 0, if the lowest bit of other first data is also 0, it is impossible to tell whether the data is the first target data. Therefore, when the value of the lowest bit in the first data is 0, the first data is added to or subtracted from the preset value to obtain the updated first data. The preset value is an odd number, for example, the preset value is 1, 3 or other odd numbers. Of course, in order to make the updated first data as close as possible to the original first data, the preset value can take the minimum value of 1. For example, if the first data is 3330 and the value of the lowest bit is 0, then 1 is added to 3330 to obtain the updated first data 3331, or 1 is subtracted from 3330 to obtain the updated first data 3329.

[0182] In one example, when there are multiple first target data, based on the data set shown in Table 1 above, the first information extracted from the first target data is as shown in Table 3 below:

[0183] Table 3

[0184] 1023 (1)999 (3)500 (2)538 799 (7)999 563 200 679

[0185] Among them, 1, 3, 2 and 7 are the extracted first information.

[0186] In some embodiments, when the first preset position is not the highest bit, there is no need to exchange the values ​​at different positions in the first target data, but the first information can be directly extracted from the first target data.

[0187] Step S205 , converting the type of the second target data into the fourth type; adding the first information to the converted second target data to obtain the second target data after the first information is added.

[0188] In the embodiment of the present disclosure, in order to facilitate subsequent differentiation between which second data have the first information added and which have not, the type of the second target data is converted to the fourth type, while the type of the other second data without the first information added is converted to the third type. The third type is different from the fourth type; when the third type is an even number, the fourth type is an odd number, and when the third type is an odd number, the fourth type is an even number.

[0189] In some embodiments, converting the type of the second target data to the fourth type includes: when the type of the second target data itself is the fourth type, the second target data remains unchanged; when the type of the second target data is the third type, adding the second target data to a preset value or subtracting the preset value from the second target data to obtain the converted second target data. The preset value is an odd number. For example, if the third type is an even number and the fourth type is an odd number, when the second target data is 8, 1 can be added to 8 to obtain the converted second target data 9, or 1 can be subtracted from 8 to obtain the converted second target data 7.

[0190] In some embodiments, the first information is added to the converted second target data to obtain the second target data after adding the first information, including: adding the first information before the highest bit of the converted second target data, for example, the first information is 3, the converted second target data is 10, then the second target data after adding the first information is 310; or, adding the first information between the highest bit and the second highest bit of the converted second target data, for example, the first information is 3, the converted second target data is 10, then the second target data after adding the first information is 130. In the special case where the converted second target data is a single digit, the first information is added before the highest bit of the converted second target data. Of course, there may be other ways of adding, and the embodiments of the present disclosure are not limited to this.

[0191] In some embodiments, when there are multiple first target data and multiple second target data, extracting the first information from the first target data and adding the first information to the second target data includes: extracting the first information from each first target data; and sequentially adding each first information to the corresponding second target data according to the order of arrangement of the multiple first target data in the first data set and the order of arrangement of the multiple second target data in the second data set. For example, the first information of the first first target data is added to the first second target data, the first information of the second second target data is added to the second second target data, and so on until the first information of the Nth first target data is added to the Nth second target data, where N is an integer greater than 1.

[0192] In one example, based on Tables 1, 2, and 3 above, the type of the second target data in Table 2 is converted to an even number, as shown in Table 4 after the conversion. Multiple second target data in the second data set are added with the first information, as shown in Table 5 below:

[0193] Table 4

[0194] 40 78 135 98 32 301 18 8 28

[0195] Table 5

[0196] 140 378 135 298 732 301 18 8 28

[0197] It should be noted that when the number of second target data is greater than or equal to the number of first target data, the first information of each first target data is added to the corresponding second target data in sequence, starting from the first second target data; when the number of second target data is less than the number of first target data, the same number of first target data as the second target data is first selected from multiple first target data, wherein the selected first target data is greater than the unselected first target data, and then the first information of the selected first target data is added to the corresponding second target data.

[0198] Step S206, converting the type of the first data except the first target data into the first type; converting the type of the first target data after extracting the first information into the second type; and determining a third data set based on the converted first data and the converted first target data.

[0199] In the disclosed embodiment, to facilitate subsequent differentiation between data from which the first information is extracted and data from which the first information is not extracted, the type of the first data other than the first target data is converted to the first type; and the type of the first target data after the first information is extracted is converted to the second type. The first type and the second type are different; when the first type is an even number, the second type is an odd number; and when the first type is an odd number, the second type is an even number.

[0200] In some embodiments, converting the type of first data other than the first target data to the first type includes: when the type of the first data is the first type, keeping the first data unchanged; when the type of the first data is the second type, adding or subtracting the first data from a preset value to obtain converted first data, wherein the preset value is an odd number, and when the first type is an even number and the first preset position is the highest bit, the value of the lowest bit in the converted first data is not 0. For example, if the first type is an even number and the first data is 9, then 9 is subtracted by 1 to obtain the converted first data 8, but 9 cannot be added by 1 to obtain the converted first data 10. By ensuring that the value of the lowest bit in the first data from which the first information has not been extracted is not 0, the converted first data is distinguished from the first target data, making it easier to subsequently distinguish which data has had the first information extracted and which data has not.

[0201] In some embodiments, when the first preset position is the highest bit, converting the type of the first target data after extracting the first information into the second type includes: when the type of the first target data after extracting the first information is the second type, keeping the first target data after extracting the first information unchanged; or, when the value of the lowest bit in the first target data after extracting the first information is 0, keeping the first target data after extracting the first information unchanged. For example, if the second type is an odd number and the first target data after extracting the first information is 330, although the type of the first target data after extracting the first information is an even number, the first target data after extracting the first information remains unchanged. Or, when the value of the lowest bit in the first target data after extracting the first information is not 0 and the type of the first target data after extracting the first information is the first type, adding or subtracting the preset value from the first target data after extracting the first information to obtain the converted first target data. For example, if the first target data after extracting the first information is 342 and the second type is an odd number, adding 1 to 342 to obtain the converted first target data 343, or subtracting 1 from 342 to obtain the converted first target data 341.

[0202] In one example, based on Table 1 and Table 3 above, when the first type is an odd number and the second type is an even number, the third data set is as shown in Table 6 below:

[0203] Table 6

[0204] 1023 998 500 538 799 998 563 199 679

[0205] Step S207, converting the type of the second data except the second target data into a third type; determining a fourth data set based on the converted second data and the second target data after adding the first information, the type of the second target data after adding the first information is the fourth type.

[0206] In some embodiments, the type of the second data other than the second target data is converted to the third type, including: when the type of the second data itself is the third type, keeping the second data unchanged; when the type of the second data is the fourth type, adding the second data to a preset value or subtracting the second data from the preset value to obtain the converted second data.

[0207] Regarding the type conversion, optionally, all second data in the second data set are converted into the third type, and then the second target data are converted into the fourth type.

[0208] In some embodiments, after the third and fourth data sets are determined, in a data storage scenario, the third and fourth data sets are stored; in a data transmission scenario, the third and fourth data sets are sent. Sending the third and fourth data sets includes: sending the third and fourth data sets to another electronic device; or sending the third and fourth data sets to another module in the electronic device via one module.

[0209] It should be noted that the above embodiment uses a single first data set as an example. In another embodiment, the number of first data sets can be multiple. When there are multiple first data sets and the number of first target data in each first data set is multiple, each piece of first information is sequentially added to the corresponding second target data according to the order of arrangement of the multiple first target data in the first data set and the order of arrangement of the multiple second target data in the second data set, including: sequentially adding each piece of first information to the corresponding second target data according to the order of arrangement of the multiple first data sets, the order of arrangement of the multiple first target data in each first data set, and the order of arrangement of the multiple second target data in the second data set. For example, first, for the first first data set, the first information of the N first target data in the first first data set is sequentially added to the first N second target data in the second data set. Then, for the second first data set, the first information of the M first target data in the second first data set is sequentially added to the N+1th to N+Mth second target data in the second data set. Subsequent first data sets are sequentially added according to the order of the second target data in the first data set until the first information of the last first target data in the last first data set is added.

[0210] In one example, two first data sets are used, one first data set is shown in Table 1 above, and the other first data set (image data of a normally exposed image) is shown in Table 7 below:

[0211] Table 7

[0212] 800 1537 2560 1952 614 6000 433 153 522

[0213] The second data set is shown in Table 2 above. According to the above embodiment, when the first type is an odd number, the second type is an even number, the third type is an odd number, and the fourth type is an even number, the data in Table 1, Table 2, and Table 7 are processed respectively, and finally the data sets shown in Table 8 (third data set), Table 9 (third data set), and Table 10 (fourth data set) are obtained:

[0214] Table 8

[0215] 1023 998 500 538 799 998 563 199 679

[0216] Table 9

[0217] 799 536 560 951 613 998 433 153 521

[0218] Table 10

[0219] 140 379 135 298 732 301 118 28 528

[0220] The method provided by the embodiment of the present disclosure makes full use of the data bits of the data in the second data set, and saves the first information of the larger data in the first data set into the smaller data in the second data set, that is, the data overflowing from the first data set is saved in the second data set. While ensuring that the data in the first data set and the second data set are completely saved, the use of memory is reduced, so that when transmitting the data in the first data set, the power consumption of the transmission can be reduced, the transmission rate can be increased, and the performance of the device can be improved.

[0221] Figure 3 is a flow chart showing a data processing method according to an exemplary embodiment, which is executed by an electronic device, see Figure 3 , the method comprises the following steps:

[0222] Step S301 , determining third target data and fourth target data, where the third target data is data of the second type among multiple third data included in the third data set, and the fourth target data is data of the fourth type among multiple fourth data included in the fourth data set.

[0223] Step S302 : extracting second information from the fourth target data and adding the second information to the third target data, where the second information is used to indicate a value of a second preset position in the fourth target data.

[0224] Extracting the second information from the fourth target data, that is, extracting the value at the second preset position from the fourth target data, and the fourth target data after extracting the second information no longer contains the value. The second preset position may be the highest bit, the second highest bit, or any other position other than the lowest bit in the fourth target data. For example, if the fourth target data is 749, then 7 is extracted from the fourth target data, and the fourth target data after extracting the second information is 49.

[0225] Add the second information to the third target data, that is, add the numerical value extracted from the fourth target data to the third target data. When adding the second information, determine the position to add the second information based on the position where the first information is extracted. Optionally, when the first information is the numerical value of the highest bit in the first target data, add the numerical value before the highest bit of the third target data. For example, if the second information is 7 and the third target data is 999, the third target data after adding the second information is 7999; or, when the first information is the numerical value of the second highest bit in the first target data, add the numerical value after the highest bit and before the second highest bit of the third target data. For example, if the second information is 7 and the third target data is 999, the third target data after adding the second information can also be 9799.

[0226] Step S303 : determining a fifth data set based on the third data excluding the third target data and the third target data after the second information is added.

[0227] Step S304 : determining a sixth data set based on the fourth data excluding the fourth target data and the fourth target data after the second information is extracted.

[0228] The method provided in the embodiments of the present disclosure can further decode the encoded third and fourth data sets to obtain fifth and sixth data sets. Furthermore, the data in the fifth data set does not significantly change compared to the first data set, and the data in the sixth data set does not significantly change compared to the second data set. Data accuracy can still be guaranteed through encoding and decoding. In a data transmission scenario, data is first encoded, the encoded data set is transmitted, and then the data set is decoded after transmission to obtain the decoded data. This can reduce power consumption and transmission rate during the data transmission process while ensuring data accuracy.

[0229] Figure 4 is a flow chart showing a data processing method according to an exemplary embodiment, which is executed by an electronic device, see Figure 4 , the method comprises the following steps:

[0230] Step S401 : Acquire a third data set and a fourth data set, where the third data set includes a plurality of third data and the fourth data set includes a plurality of fourth data.

[0231] Step S402 : determining third target data from a plurality of third data in the third data set.

[0232] The number of the third target data is one or more.

[0233] In some embodiments, determining the third target data includes: determining data belonging to the second type among the plurality of third data as the third target data.

[0234] In some embodiments, when the first preset position is the highest bit during the encoding process, determining the third target data includes: when the second type is an odd number, if the value of the lowest bit in the third data is 0, determining the third data as the third target data.

[0235] In one example, when the third data set is as shown in Table 8 above, the second type is an even number, and the third target data determined from the third data set includes 998, 500, 538, and 998. When the third data set is as shown in Table 9 above, the third target data determined from the third data set includes 536, 560, and 998.

[0236] Step S403 : determining fourth target data from the plurality of fourth data in the fourth data set.

[0237] In some embodiments, determining the fourth target data includes: determining data belonging to a fourth type among a plurality of fourth data as the fourth target data.

[0238] In one example, when the fourth data set is as shown in Table 10 above, the fourth type is an even number, and the fourth target data determined from the fourth data set include 140, 378, 298, 732, 118, 28, and 528.

[0239] Step S404: extract the second information from the fourth target data, and add the second information to the third target data.

[0240] The second information is used to indicate the value of a second preset position in the fourth target data. The second preset position can be the highest bit, the second highest bit, or other position in the data. The second preset position is determined according to the position where the first information is added. When the first information is added before the highest bit of the second target data, the second preset position is the highest bit. When the first information is added between the highest bit and the second highest bit of the second target data, the second preset position is the second highest bit.

[0241] Adding the second information to the third target data includes: adding the second information before the most significant bit of the third target data.

[0242] Step S405 : determining a fifth data set based on the third data excluding the third target data and the third target data after the second information is added.

[0243] In some embodiments, a fifth data set is determined based on the third data other than the third target data and the third target data after adding the second information, including: when the value of the lowest bit in the third target data after adding the second information is 0, the value of the lowest bit in the third target data after adding the second information is swapped with the value of the second highest bit to obtain the swapped third target data; and a fifth data set is determined based on the third data other than the third target data and the swapped third target data.

[0244] In one example, the fifth data set is shown in Table 11:

[0245] Table 11

[0246] 1023 1998 3500 2538 799 7998 563 199 679

[0247] Among them, 1998, 3500, 2538 and 7998 are the third target data after adding the second information.

[0248] Step S406 : determining a sixth data set based on the fourth data excluding the fourth target data and the fourth target data after the second information is extracted.

[0249] It should be noted that the above implementation method takes a third data set as an example. When there are multiple third data sets and the number of third target data in each third data set is multiple, each second information is added to the corresponding third target data in sequence according to the arrangement order of the multiple third target data in the third data set and the arrangement order of the multiple fourth target data in the fourth data set, including: adding each second information to the corresponding third target data in sequence according to the arrangement order of the multiple third data sets, the arrangement order of the multiple third target data in each third data set, and the arrangement order of the multiple fourth target data in the fourth data set.

[0250] For example, first, for the first third data set, determine the L third target data in the first third data set, determine the fourth target data arranged in the first L from the multiple fourth target data in the fourth data set, and then add the second information in the first to Lth fourth target data to the first to Lth third target data in the first third data set in sequence; then, for the second third data set, determine the K third target data in the second third data set, determine the fourth target data arranged in the L+1th to L+Kth from the multiple fourth target data in the fourth data set, and then add the second information in the L+1th to L+Kth fourth target data to the first to Kth third target data in the second third data set in sequence, until the last second information is added to the last third target data in the last third data set.

[0251] The method provided in the embodiments of the present disclosure can further decode the encoded third and fourth data sets to obtain fifth and sixth data sets. Furthermore, the data in the fifth data set does not significantly change compared to the first data set, and the data in the sixth data set does not significantly change compared to the second data set. Data accuracy can still be guaranteed through encoding and decoding. In a data transmission scenario, data is first encoded, the encoded data set is transmitted, and then the data set is decoded after transmission to obtain the decoded data. This can reduce power consumption and transmission rate during the data transmission process while ensuring data accuracy.

[0252] above Figures 1-4 When the data processing method shown is applied to the image data processing scenario, the image data processing process is as follows Figure 5 shown.

[0253] Figure 5 is a flowchart of an image data processing method according to an exemplary embodiment, which is executed by an electronic device. Figure 5 , the method comprises the following steps:

[0254] Step S501, capturing multiple exposure images with different exposure levels, where the multiple exposure images include at least a first exposure image and a second exposure image, and the exposure level of the first exposure image is greater than that of the second exposure image. The first image data is used to represent the first exposure image, and the second image data is used to represent the second exposure image.

[0255] Different image data is used to represent different exposure images. For example, when capturing HDR images, the first exposure image may be a long-exposure image or a normal-exposure image, and the second exposure image may be a short-exposure image or an even shorter-exposure image. The image data includes multiple pixel parameters, each of which represents a pixel in the exposure image. The pixel parameter can represent information such as the pixel value of the pixel and various processing algorithms performed on the pixel.

[0256] Step S502, determine a first target pixel parameter and a second target pixel parameter, where the first target pixel parameter is data greater than a first parameter threshold among a plurality of first pixel parameters included in the first image data, and the second target pixel parameter is data less than a second parameter threshold among a plurality of second pixel parameters included in the second image data.

[0257] Step S503, extracting first information from the first target pixel parameter and adding the first information to the second target pixel parameter, the first information is used to indicate the value of the first preset position in the first target pixel parameter, the first preset position is located before the lowest bit, and the value of the first preset position is not 0.

[0258] Step S504 : determining third image data based on the first pixel parameters other than the first target pixel parameters and the first target pixel parameters after the first information is extracted.

[0259] Step S505 : determining fourth image data based on the second pixel parameters excluding the second target pixel parameters and the second target pixel parameters after the first information is added.

[0260] The third image data and the fourth image data are used to represent the first exposure image and the second exposure image.

[0261] The method provided by the embodiments of the present disclosure saves some information of relatively large pixel parameters into relatively small pixel parameters, thereby making the pixel parameters more completely saved, thereby saving high-precision image data, increasing the accuracy of image processing, improving image quality, and reducing memory usage during storage. Moreover, in the image data processing process, when image data needs to be transferred from one algorithm processing unit to the next, the power consumption during the image data transmission process can be reduced, and the transmission rate can be increased.

[0262] The image data processing process includes an image data encoding process and an image data decoding process. The implementation method of the image data encoding process is as follows:

[0263] In some embodiments, when the first preset position is the highest bit, extracting the first information from the first target pixel parameter includes: when the value of the second highest bit in the first target pixel parameter is 0, swapping the value of the second highest bit and the value of the lowest bit in the first target pixel parameter to obtain the swapped first target pixel parameter; extracting the first information from the swapped first target pixel parameter.

[0264] In some embodiments, before determining the first target pixel parameter, the method further includes: when the value of the lowest bit in the first data is 0, adding the first pixel parameter to a preset value or subtracting the preset value from the preset value to obtain an updated first pixel parameter, where the preset value is an odd number.

[0265] In some embodiments, third image data is determined based on the first pixel parameters other than the first target pixel parameters and the first target pixel parameters after extracting the first information, including: converting the type of the first pixel parameters other than the first target pixel parameters to the first type; converting the type of the first target pixel parameters after extracting the first information to the second type; determining the third image data based on the converted first pixel parameters and the converted first target pixel parameters; wherein, when the first type is an even number, the second type is an odd number; when the first type is an odd number, the second type is an even number.

[0266] In some embodiments, the type of the first pixel parameter other than the first target pixel parameter is converted to the first type, including: when the type of the first pixel parameter is the second type, adding the first pixel parameter to a preset value or subtracting the preset value from the preset value to obtain the converted first pixel parameter, wherein the preset value is an odd number, and when the first type is an even number and the first preset position is the highest bit, the value of the lowest bit in the converted first pixel parameter is not 0.

[0267] In some embodiments, when the first preset position is the highest bit, the type of the first target pixel parameter after extracting the first information is converted to the second type, including: when the value of the lowest bit in the first target pixel parameter after extracting the first information is 0, the first target pixel parameter after extracting the first information remains unchanged; or, when the value of the lowest bit in the first target pixel parameter after extracting the first information is not 0, and the type of the first target pixel parameter after extracting the first information is the first type, the first target pixel parameter after extracting the first information is added to the preset value or subtracted from the preset value to obtain the converted first target pixel parameter, and the preset value is an odd number.

[0268] In some embodiments, fourth image data is determined based on the second pixel parameter other than the second target pixel parameter and the second target pixel parameter after adding the first information, including: converting the type of the second pixel parameter other than the second target pixel parameter to a third type; determining the fourth image data based on the converted second pixel parameter and the second target pixel parameter after adding the first information, the type of the second target pixel parameter after adding the first information is the fourth type; wherein, when the third type is an even number, the fourth type is an odd number; when the third type is an odd number, the fourth type is an even number.

[0269] In some embodiments, adding the first information to the second target pixel parameter includes: converting the type of the second target pixel parameter to a fourth type; adding the first information to the converted second target pixel parameter to obtain the second target pixel parameter after adding the first information.

[0270] In some embodiments, converting the type of the second target pixel parameter to the fourth type includes: when the type of the second target pixel parameter is the third type, adding the second target pixel parameter to a preset value or subtracting the preset value from the preset value to obtain a converted second target pixel parameter, where the preset value is an odd number.

[0271] In some embodiments, converting the type of the second pixel parameter other than the second target pixel parameter to the third type includes: when the type of the second pixel parameter is the fourth type, adding the second pixel parameter to a preset value or subtracting the preset value to obtain a converted second pixel parameter, where the preset value is an odd number.

[0272] In some embodiments, when the number of first target pixel parameters is multiple and the number of second target pixel parameters is multiple, extracting first information from the first target pixel parameters and adding the first information to the second target pixel parameters includes: extracting first information from each first target pixel parameter; adding each first information to the corresponding second target pixel parameter in sequence according to the arrangement order of the multiple first target pixel parameters in the first image data and the arrangement order of the multiple second target pixel parameters in the second image data.

[0273] In some embodiments, when the number of first image data is multiple and the number of first target pixel parameters in each first pixel parameter is multiple, each first information is added to the corresponding second target pixel parameter in sequence according to the arrangement order of the multiple first target pixel parameters in the first image data and the arrangement order of the multiple second target pixel parameters in the second image data, including: adding each first information to the corresponding second target pixel parameter in sequence according to the arrangement order of the multiple first image data, the arrangement order of the multiple first target pixel parameters in each first image data, and the arrangement order of the multiple second target pixel parameters in the second image data.

[0274] The image data decoding process is implemented as follows:

[0275] Determine a third target pixel parameter and a fourth target pixel parameter, where the third target pixel parameter is data belonging to the second type among the plurality of third pixel parameters included in the third image data, and the fourth target pixel parameter is data belonging to the fourth type among the plurality of fourth pixel parameters included in the fourth image data; extract second information from the fourth target pixel parameter and add the second information to the third target pixel parameter, where the second information is used to indicate a value at a second preset position in the fourth target pixel parameter; determine fifth image data based on the third pixel parameter other than the third target pixel parameter and the third target pixel parameter after adding the second information; and determine sixth image data based on the fourth pixel parameter other than the fourth target pixel parameter and the fourth target pixel parameter after extracting the second information. The fifth and sixth image data are image data obtained after decoding, with the fifth image data used to represent the first exposure image and the sixth image data used to represent the second exposure image.

[0276] In some embodiments, determining the third target pixel parameter further includes:

[0277] When the second type is an odd number, if the value of the least significant bit of the third pixel parameter is 0, the third pixel parameter is determined as the third target pixel parameter.

[0278] In some embodiments, determining fifth image data based on a third pixel parameter other than the third target pixel parameter and the third target pixel parameter after adding the second information includes:

[0279] When the value of the least significant bit in the third target pixel parameter after the second information is added is 0, swapping the value of the least significant bit with the value of the second most significant bit in the third target pixel parameter after the second information is added to obtain a swapped third target pixel parameter;

[0280] Fifth image data is determined based on the third pixel parameter other than the third target pixel parameter and the swapped third target pixel parameter.

[0281] In some embodiments, when the number of third target pixel parameters is multiple and the number of fourth target pixel parameters is multiple, extracting the second information from the fourth target pixel parameters and adding the second information to the third target pixel parameters includes: extracting the second information from each fourth target pixel parameter; adding each second information to the corresponding third target pixel parameter in sequence according to the arrangement order of the multiple third target pixel parameters in the third image data and the arrangement order of the multiple fourth target pixel parameters in the fourth image data.

[0282] In some embodiments, when the number of third image data is multiple and the number of third target pixel parameters in each third image data is multiple, each second information is added to the corresponding third target pixel parameter in sequence according to the arrangement order of the multiple third target pixel parameters in the third image data and the arrangement order of the multiple fourth target pixel parameters in the fourth image data, including: adding each second information to the corresponding third target pixel parameter in sequence according to the arrangement order of the multiple third image data, the arrangement order of the multiple third target pixel parameters in each third image data, and the arrangement order of the multiple fourth target pixel parameters in the fourth image data.

[0283] The implementation of the image data processing method in the embodiment of the present disclosure is the same as the implementation of the above-mentioned data processing method, and will not be repeated here.

[0284] In an image processing scenario, when saving image data, the above-mentioned image data processing method can be used to first encode the image data of the exposure image (i.e., the first image data and the second image data), and then save the encoded image data (i.e., the third image data and the fourth image data). Afterwards, when the image data of the exposure image is needed, the encoded image data is decoded to obtain the decoded image data (i.e., the fifth image data and the sixth image data), thereby reducing the use of memory when saving image data.

[0285] When image data is transmitted, the above-mentioned image data processing method can be used to first encode the image data of the exposed image, and then transmit the encoded image data. After the transmission is completed, the receiver of the encoded image data decodes the encoded image data to obtain the decoded image data, thereby ensuring that the receiver obtains the image data while improving the transmission rate.

[0286] Figure 6 is a block diagram of a data processing device according to an exemplary embodiment, which is configured in an electronic device, see Figure 6 , the device comprises:

[0287] The data determination module 601 is configured to determine first target data and second target data, where the first target data is data greater than a first threshold value among a plurality of first data included in the first data set, and the second target data is data less than a second threshold value among a plurality of second data included in the second data set;

[0288] a data processing module 602 configured to extract first information from the first target data and add the first information to the second target data, wherein the first information is used to indicate a value of a first preset position in the first target data, the first preset position being located before the least significant bit, and the value of the first preset position being non-zero;

[0289] a data set determining module 603 configured to determine a third data set based on the first data excluding the first target data and the first target data after the first information is extracted;

[0290] The data set determining module 603 is further configured to determine a fourth data set based on the second data excluding the second target data and the second target data after the first information is added.

[0291] In some embodiments, when the first preset position is the highest bit, the data processing module 602 is configured to:

[0292] When the value of the second highest bit in the first target data is 0, the value of the second highest bit and the value of the lowest bit in the first target data are swapped to obtain the swapped first target data;

[0293] The first information is extracted from the swapped first target data.

[0294] In some embodiments, the data processing module 602 is further configured to:

[0295] When the value of the least significant bit in the first data is 0, the first data is added to or subtracted from a preset value to obtain updated first data, and the preset value is an odd number.

[0296] In some embodiments, the data set determination module 603 is configured to:

[0297] converting the type of the first data except the first target data into the first type;

[0298] Converting the type of the first target data after extracting the first information into a second type;

[0299] determining a third data set based on the converted first data and the converted first target data;

[0300] When the first type is an even number, the second type is an odd number; when the first type is an odd number, the second type is an even number.

[0301] In some embodiments, the data set determination module 603 is configured to:

[0302] When the type of the first data is the second type, the first data is added to or subtracted from a preset value to obtain the converted first data, wherein the preset value is an odd number, and when the first type is an even number and the first preset position is the highest bit, the value of the lowest bit in the converted first data is not 0.

[0303] In some embodiments, when the first preset position is the highest bit, the data set determination module 603 is configured to:

[0304] When the value of the lowest bit in the first target data after the first information is extracted is 0, the first target data after the first information is extracted remains unchanged; or,

[0305] When the value of the lowest bit in the first target data after extracting the first information is not 0, and the type of the first target data after extracting the first information is the first type, the first target data after extracting the first information is added to or subtracted from the preset value to obtain the converted first target data, and the preset value is an odd number.

[0306] In some embodiments, the data set determination module 603 is configured to:

[0307] converting the type of the second data except the second target data into a third type;

[0308] Determining a fourth data set based on the converted second data and the second target data after adding the first information, wherein the type of the second target data after adding the first information is a fourth type;

[0309] Among them, when the third type is an even number, the fourth type is an odd number; when the third type is an odd number, the fourth type is an even number.

[0310] In some embodiments, the data processing module 602 is configured to:

[0311] When the type of the second target data is the third type, the second target data is added to or subtracted from a preset value to obtain converted second target data, and the preset value is an odd number;

[0312] The first information is added to the converted second target data to obtain the second target data after the first information is added.

[0313] In some embodiments, the data set determination module 603 is configured to:

[0314] When the type of the second data is the fourth type, the second data is added to or subtracted from a preset value to obtain converted second data, and the preset value is an odd number.

[0315] In some embodiments, when the number of second target data is multiple, the data processing module 602 is configured to:

[0316] extracting first information from each first target data;

[0317] Each piece of first information is sequentially added to the corresponding second target data according to the arrangement order of the plurality of first target data in the first data set and the arrangement order of the plurality of second target data in the second data set.

[0318] In some embodiments, when there are multiple first data sets and multiple first target data in each first data set, the data processing module 602 is configured to:

[0319] Each first information is sequentially added to the corresponding second target data according to the arrangement order of the multiple first data sets, the arrangement order of the multiple first target data in each first data set, and the arrangement order of the multiple second target data in the second data set.

[0320] Figure 7 is a block diagram of a data processing device according to an exemplary embodiment, which is configured in an electronic device, see Figure 7 , the device comprises:

[0321] The data determination module 701 is configured to determine third target data and fourth target data, where the third target data is data of the second type among the plurality of third data included in the third data set, and the fourth target data is data of the fourth type among the plurality of fourth data included in the fourth data set;

[0322] a data processing module 702 configured to extract second information from the fourth target data and add the second information to the third target data, wherein the second information is used to indicate a value of a second preset position in the fourth target data;

[0323] a data set determining module 703 configured to determine a fifth data set based on the third data excluding the third target data and the third target data after the second information is added;

[0324] The data set determining module 703 is further configured to determine a sixth data set based on the fourth data excluding the fourth target data and the fourth target data after the second information is extracted.

[0325] In some embodiments, the data determination module 701 is configured to:

[0326] When the second type is an odd number, if the value of the least significant bit in the third data is 0, the third data is determined as the third target data.

[0327] In some embodiments, the data set determination module 703 is configured to:

[0328] When the value of the lowest bit in the third target data after the second information is added is 0, the value of the lowest bit and the value of the second highest bit in the third target data after the second information is added are swapped to obtain the swapped third target data;

[0329] A fifth data set is determined based on the third data excluding the third target data and the interchanged third target data.

[0330] In some embodiments, when the number of the third target data is plural and the number of the fourth target data is plural, the data processing module 702 is configured to:

[0331] extracting second information from each fourth target data;

[0332] Each second information is sequentially added to the corresponding third target data according to the arrangement order of the plurality of third target data in the third data set and the arrangement order of the plurality of fourth target data in the fourth data set.

[0333] In some embodiments, when there are multiple third data sets and each of the third data sets contains multiple third target data, the data processing module 702 is configured to:

[0334] Each second information is sequentially added to the corresponding third target data according to the arrangement order of the plurality of third data sets, the arrangement order of the plurality of third target data in each third data set, and the arrangement order of the plurality of fourth target data in the fourth data set.

[0335] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0336] Figure 8 is a block diagram of an image data processing device according to an exemplary embodiment, which is configured in an electronic device. Figure 8 , the device comprises:

[0337] An image capture module 801 is configured to capture multiple exposure image frames having different exposure levels, where the multiple exposure image frames include at least a first exposure image and a second exposure image, wherein the exposure level of the first exposure image is greater than that of the second exposure image, and the first image data is used to represent the first exposure image, and the second image data is used to represent the second exposure image;

[0338] The pixel parameter determination module 802 is configured to determine a first target pixel parameter and a second target pixel parameter, where the first target pixel parameter is data greater than a first parameter threshold value among a plurality of first pixel parameters included in the first image data, and the second target pixel parameter is data less than the second parameter threshold value among a plurality of second pixel parameters included in the second image data, where different image data are used to represent different exposure images;

[0339] a pixel parameter processing module 803 configured to extract first information from the first target pixel parameter and add the first information to the second target pixel parameter, wherein the first information is used to indicate a value of a first preset position in the first target pixel parameter, the first preset position being located before the least significant bit, and the value of the first preset position being non-zero;

[0340] an image data determination module 804 configured to determine third image data based on the first pixel parameters other than the first target pixel parameters and the first target pixel parameters after extracting the first information;

[0341] The image data determination module 804 is further configured to determine fourth image data based on the second pixel parameter in addition to the second target pixel parameter and the second target pixel parameter after adding the first information. The third image data and the fourth image data are used to represent the first exposure image and the second exposure image.

[0342] In some embodiments, the apparatus further comprises:

[0343] The pixel parameter determination module 802 is further configured to determine a third target pixel parameter and a fourth target pixel parameter, wherein the third target pixel parameter is data belonging to the second type among the plurality of third data included in the third image data, and the fourth target pixel parameter is data belonging to the fourth type among the plurality of fourth data included in the fourth image data;

[0344] The pixel parameter processing module 803 is further configured to extract second information from the fourth target pixel parameter and add the second information to the third target pixel parameter, wherein the second information is used to indicate a value of a second preset position in the fourth target pixel parameter;

[0345] The image data determining module 804 is further configured to determine fifth image data based on the third data other than the third target pixel parameter and the third target pixel parameter after adding the second information, where the fifth image data is used to represent the first exposure image;

[0346] The image data determination module 804 is further configured to determine sixth image data based on the fourth data except the fourth target pixel parameter and the fourth target pixel parameter after the second information is extracted, where the sixth image data is used to represent the second exposure image.

[0347] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0348] An embodiment of the present disclosure further provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the data processing method or the image data processing method in the above-mentioned embodiment.

[0349] Figure 9 is a block diagram of an electronic device 900 according to an exemplary embodiment.

[0350] Reference Figure 9 , the electronic device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .

[0351] The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 902 may include one or more modules to facilitate interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.

[0352] The memory 904 is configured to store various types of data to support operations on the electronic device 900. Examples of such data include instructions for any application or method operating on the electronic device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0353] The power supply component 906 provides power to the various components of the electronic device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 900.

[0354] The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0355] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the electronic device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0356] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.

[0357] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the electronic device 900. For example, the sensor assembly 914 can detect the open / closed state of the electronic device 900, the relative positioning of components, such as the display and keypad of the electronic device 900. The sensor assembly 914 can also detect changes in the position of the electronic device 900 or a component of the electronic device 900, the presence or absence of user contact with the electronic device 900, the orientation or acceleration / deceleration of the electronic device 900, and temperature changes of the electronic device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0358] The communication component 916 is configured to facilitate wired or wireless communication between the electronic device 900 and other devices. The electronic device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0359] In an exemplary embodiment, the electronic device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described methods.

[0360] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by the processor 920 of the electronic device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0361] The embodiments of the present disclosure further provide a non-temporary computer-readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the data processing method or image data processing method in the above embodiments.

[0362] Other embodiments of the present invention will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the invention being indicated by the following claims.

[0363] It should be understood that the present invention is not limited to the exact construction described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A data processing method, characterized in that: The method comprises: Determine first target data and second target data, where the first target data is data greater than a first threshold value among a plurality of first data included in the first data set, and the second target data is data less than a second threshold value among a plurality of second data included in the second data set; extracting first information from the first target data and adding the first information to the second target data, wherein the first information is used to indicate a value of a first preset position in the first target data, the first preset position being located before the least significant bit, and the value of the first preset position being not 0; determining a third data set based on the first data excluding the first target data and the first target data after extracting the first information; A fourth data set is determined based on the second data excluding the second target data and the second target data to which the first information is added.

2. The method according to claim 1, characterized in that When the first preset position is the highest bit, extracting the first information from the first target data includes: When the value of the second highest bit in the first target data is 0, swapping the value of the second highest bit and the value of the lowest bit in the first target data to obtain swapped first target data; The first information is extracted from the swapped first target data.

3. The method according to claim 2, characterized in that Before determining the first target data, the method further includes: When the value of the least significant bit in the first data is 0, the first data is added to or subtracted from a preset value to obtain updated first data, and the preset value is an odd number.

4. The method according to claim 1, wherein The determining a third data set based on the first data other than the first target data and the first target data after extracting the first information includes: converting the type of first data other than the first target data into a first type; Converting the type of the first target data after extracting the first information into a second type; determining the third data set based on the converted first data and the converted first target data; When the first type is an even number, the second type is an odd number; when the first type is an odd number, the second type is an even number.

5. The method according to claim 4, characterized in that Converting the type of the first data other than the first target data into the first type includes: When the type of the first data is the second type, the first data is added to or subtracted from a preset value to obtain the converted first data, wherein the preset value is an odd number, and when the first type is an even number and the first preset position is the highest bit, the value of the lowest bit in the converted first data is not 0.

6. The method according to claim 4, characterized in that When the first preset position is the highest bit, converting the type of the first target data after extracting the first information into the second type includes: When the value of the least significant bit in the first target data after the first information is extracted is 0, the first target data after the first information is extracted remains unchanged; or When the value of the lowest bit in the first target data after extracting the first information is not 0, and the type of the first target data after extracting the first information is the first type, the first target data after extracting the first information is added to or subtracted from a preset value to obtain the converted first target data, and the preset value is an odd number.

7. The method according to claim 4, characterized in that The determining of the fourth data set based on the second data excluding the second target data and the second target data after adding the first information includes: converting the type of the second data other than the second target data into a third type; determining the fourth data set based on the converted second data and the second target data after the first information is added, wherein the type of the second target data after the first information is added is a fourth type; When the third type is an even number, the fourth type is an odd number; when the third type is an odd number, the fourth type is an even number.

8. The method according to claim 7, characterized in that The adding the first information to the second target data includes: When the type of the second target data is the third type, adding the second target data to a preset value or subtracting the preset value to obtain converted second target data, the preset value being an odd number; The first information is added to the converted second target data to obtain the second target data after the first information is added.

9. The method according to claim 7, characterized in that Converting the type of the second data except the second target data into a third type includes: When the type of the second data is the fourth type, the second data is added to or subtracted from a preset value to obtain converted second data, and the preset value is an odd number.

10. The method according to claim 1, characterized in that When there are multiple first target data and multiple second target data, extracting first information from the first target data and adding the first information to the second target data includes: extracting first information from each first target data; Each piece of first information is sequentially added to the corresponding second target data according to the arrangement order of the plurality of first target data in the first data set and the arrangement order of the plurality of second target data in the second data set.

11. The method according to claim 10, characterized in that When there are multiple first data sets and multiple first target data in each first data set, sequentially adding each first information to the corresponding second target data according to the arrangement order of the multiple first target data in the first data set and the arrangement order of the multiple second target data in the second data set includes: Each first information is sequentially added to the corresponding second target data according to the arrangement order of the multiple first data sets, the arrangement order of the multiple first target data in each first data set, and the arrangement order of the multiple second target data in the second data set.

12. A data processing method, characterized in that: The method comprises: Determining third target data and fourth target data, wherein the third target data is data belonging to the second type among the plurality of third data included in the third data set, and the fourth target data is data belonging to the fourth type among the plurality of fourth data included in the fourth data set; extracting second information from the fourth target data and adding the second information to the third target data, wherein the second information is used to indicate a value of a second preset position in the fourth target data; determining a fifth data set based on the third data excluding the third target data and the third target data after the second information is added; A sixth data set is determined based on the fourth data excluding the fourth target data and the fourth target data after the second information is extracted.

13. The method according to claim 12, characterized in that The determining of the third target data further includes: When the second type is an odd number, if the value of the least significant bit in the third data is 0, the third data is determined as the third target data.

14. The method according to claim 12, characterized in that The determining of the fifth data set based on the third data other than the third target data and the third target data after the second information is added includes: When the value of the lowest bit in the third target data after the second information is added is 0, swapping the value of the lowest bit with the value of the second highest bit in the third target data after the second information is added to obtain swapped third target data; The fifth data set is determined based on the third data excluding the third target data and the swapped third target data.

15. The method according to claim 12, characterized in that When there are plural third target data and plural fourth target data, extracting the second information from the fourth target data and adding the second information to the third target data includes: extracting second information from each fourth target data; Each second information is sequentially added to the corresponding third target data according to the arrangement order of the plurality of third target data in the third data set and the arrangement order of the plurality of fourth target data in the fourth data set.

16. The method according to claim 15, characterized in that When there are multiple third data sets and multiple third target data in each third data set, sequentially adding each second information to the corresponding third target data according to the arrangement order of the multiple third target data in the third data set and the arrangement order of the multiple fourth target data in the fourth data set includes: Each second information is sequentially added to the corresponding third target data according to the arrangement order of the plurality of third data sets, the arrangement order of the plurality of third target data in each third data set, and the arrangement order of the plurality of fourth target data in the fourth data set.

17. A method for processing image data, characterized in that: The method comprises: capturing a plurality of exposure images having different exposure levels, the plurality of exposure images including at least a first exposure image and a second exposure image, wherein the exposure level of the first exposure image is greater than the exposure level of the second exposure image, the first image data being used to represent the first exposure image, and the second image data being used to represent the second exposure image; Determining a first target pixel parameter and a second target pixel parameter, wherein the first target pixel parameter is data greater than a first parameter threshold among a plurality of first pixel parameters included in the first image data, and the second target pixel parameter is data less than the second parameter threshold among a plurality of second pixel parameters included in the second image data; extracting first information from the first target pixel parameter and adding the first information to the second target pixel parameter, wherein the first information is used to indicate a value of a first preset position in the first target pixel parameter, the first preset position being located before a least significant bit, and the value of the first preset position being not 0; determining third image data based on the first pixel parameters other than the first target pixel parameters and the first target pixel parameters after extracting the first information; Based on the second pixel parameter excluding the second target pixel parameter and the second target pixel parameter after adding the first information, fourth image data is determined, and the third image data and the fourth image data are used to represent the first exposure image and the second exposure image.

18. The method according to claim 17, characterized in that The method further comprises: determining a third target pixel parameter and a fourth target pixel parameter, wherein the third target pixel parameter is data belonging to the second type among a plurality of third data included in the third image data, and the fourth target pixel parameter is data belonging to the fourth type among a plurality of fourth data included in the fourth image data; extracting second information from the fourth target pixel parameter and adding the second information to the third target pixel parameter, wherein the second information is used to indicate a value of a second preset position in the fourth target pixel parameter; determining fifth image data based on third data excluding the third target pixel parameter and the third target pixel parameter after adding the second information, wherein the fifth image data is used to represent the first exposure image; Based on the fourth data excluding the fourth target pixel parameter and the fourth target pixel parameter after the second information is extracted, sixth image data is determined, where the sixth image data is used to represent the second exposure image.

19. A data processing device, characterized in that: The device comprises: a data determination module configured to determine first target data and second target data, wherein the first target data is data greater than a first threshold value among a plurality of first data included in the first data set, and the second target data is data less than a second threshold value among a plurality of second data included in the second data set; a data processing module configured to extract first information from the first target data and add the first information to the second target data, wherein the first information is used to indicate a value of a first preset position in the first target data, the first preset position being located before the least significant bit, and the value of the first preset position being not 0; a data set determining module configured to determine a third data set based on the first data excluding the first target data and the first target data after the first information is extracted; The data set determining module is further configured to determine a fourth data set based on the second data excluding the second target data and the second target data to which the first information is added.

20. A data processing device, characterized in that: The device comprises: a data determination module configured to determine third target data and fourth target data, wherein the third target data is data belonging to the second type among the plurality of third data included in the third data set, and the fourth target data is data belonging to the fourth type among the plurality of fourth data included in the fourth data set; a data processing module, configured to extract second information from the fourth target data and add the second information to the third target data, wherein the second information is used to indicate a value of a second preset position in the fourth target data; a data set determining module configured to determine a fifth data set based on third data excluding the third target data and the third target data to which the second information is added; The data set determining module is further configured to determine a sixth data set based on fourth data excluding the fourth target data and the fourth target data after the second information is extracted.

21. An image data processing device, characterized in that: The device comprises: an image capture module configured to capture a plurality of exposure images having different exposure levels, the plurality of exposure images including at least a first exposure image and a second exposure image, wherein the exposure level of the first exposure image is greater than that of the second exposure image, the first image data being used to represent the first exposure image, and the second image data being used to represent the second exposure image; a pixel parameter determination module configured to determine a first target pixel parameter and a second target pixel parameter, wherein the first target pixel parameter is data greater than a first parameter threshold among a plurality of first pixel parameters included in the first image data, and the second target pixel parameter is data less than a second parameter threshold among a plurality of second pixel parameters included in the second image data; a pixel parameter processing module configured to extract first information from the first target pixel parameter and add the first information to the second target pixel parameter, wherein the first information is used to indicate a value of a first preset position in the first target pixel parameter, the first preset position being located before the least significant bit, and the value of the first preset position being non-zero; an image data determination module configured to determine third image data based on a first pixel parameter other than the first target pixel parameter and the first target pixel parameter after extracting the first information; The image data determination module is further configured to determine fourth image data based on a second pixel parameter other than the second target pixel parameter and the second target pixel parameter after the first information is added.

22. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method according to any one of claims 1 to 11, or the processor is configured to execute the method according to any one of claims 12 to 16, or the processor is configured to execute the method according to claims 17 to 18.

23. A non-transitory computer-readable storage medium, characterized in that When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as described in any one of claims 1 to 11, or the electronic device is enabled to execute the method as described in any one of claims 12 to 16, or the electronic device is enabled to execute the method as described in claims 17 to 18.