Image data processing method, device, electronic device and storage medium

By merging and processing hidden information and image data on the server side, and writing identification information into the image data, the problem of high number of interactions in the existing technology is solved, and the quality of data transmission is improved.

CN114140558BActive Publication Date: 2024-10-29BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111436160.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2024-10-29
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

In the existing technology, an avatar picture with hidden information needs to be separately delivered with a CDN address and hidden data on the server side, causing the client to need at least two network requests, increasing the number of interactions and affecting the quality of data transmission.

Method used

On the server side, the hidden information and image data are merged and processed, the merged target image data is generated, the identification information is written into the image data, the merged target image data is sent to the client, and the client displays the hidden information based on the identification information.

Benefits of technology

It reduces the number of times the server sends hidden information and image data, improves data transmission quality, and reduces the risk of network congestion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114140558B_ABST
    Figure CN114140558B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an image data processing method, device, electronic device and storage medium, wherein the method receives hidden information uploaded by a target account and obtains image data of the target account, merges the hidden information and the image data to obtain merged target image data, generates identification information of the hidden information, writes the identification information into the target image data, and then sends the target image data to the client. Since the server in this embodiment merges the hidden information and the image data to obtain the merged target image data, the server only needs to send the target image data, thereby reducing the number of interactions and improving the quality of data transmission.
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 an image data processing method, device, electronic device and storage medium. Background Art

[0002] In social applications, users can usually set an avatar for their application account. When setting an avatar, the user usually generates an avatar by editing a local image, and then uploads the edited avatar to the application server. The application server then sends the avatar information set by the user to other applications that access the user for display.

[0003] In the related art, when a user uploads an avatar picture, he or she can add emoji symbols or text as hidden information of the avatar picture. When other users view the personal information of the user who has set hidden information or chat with him or her, the corresponding hidden information will be displayed when the user's avatar picture is displayed.

[0004] However, for avatar images with hidden information, the server usually needs to send the CDN (Content Delivery Network) address of the avatar image separately, and then send the expressions or text in the hidden information through other network request interfaces. This means that the client needs to request data from the network at least twice, one time to download the avatar content through the CDN address, and one time to obtain the hidden data information to be displayed through other network interfaces, resulting in a large number of interactions, which can easily lead to network congestion and affect the quality of data transmission. Summary of the invention

[0005] The present disclosure provides an image data processing method, device, electronic device and storage medium to at least solve the problem in the related art that the number of image data interactions is large and affects the data transmission quality. The technical solution of the present disclosure is as follows:

[0006] According to a first aspect of an embodiment of the present disclosure, there is provided an image data processing method, which is applied to a server and includes:

[0007] Receive hidden information uploaded by the target account and obtain image data of the target account;

[0008] Merging the hidden information and the image data to obtain merged target image data;

[0009] generating identification information of the hidden information, and writing the identification information into the target image data;

[0010] The target image data is sent to the client, where the target image data is used to instruct the client to display, and during the display process, hidden information in the target image data is displayed according to the identification information.

[0011] In one of the embodiments, the method further includes: determining display configuration information for the hidden information in the target image data, the display configuration information including at least one of a display trigger condition and a display duration of the hidden information; and sending the display configuration information to a client, wherein the display configuration information is used to instruct the client to display the hidden information in the target image data according to the display configuration information.

[0012] In one of the embodiments, determining the display configuration information for the hidden information in the target image data includes: receiving at least one of the display trigger conditions and display duration for the hidden information in the target image data uploaded by the target account; and determining the display configuration information for the hidden information in the target image data based on at least one of the display trigger conditions and display duration for the hidden information in the target image data.

[0013] In one embodiment, the hidden information and the image data are merged to obtain merged target image data, including: performing a first encoding process on the hidden information to obtain a corresponding encoding string; obtaining the color component code corresponding to each pixel in the image data; and performing a second encoding process on the color component code corresponding to each pixel in the image data according to the encoding string to obtain the target image data.

[0014] In one of the embodiments, the second encoding process is performed on the color component encoding corresponding to each pixel in the image data according to the encoding string to obtain the target image data, including: obtaining the bit length information of the encoding string, and writing the bit length information into the color component encoding corresponding to the pixels of the first set area in the image data; writing the encoding string into the color component encoding corresponding to the pixels of the second set area in the image data to obtain the target image data.

[0015] In one of the embodiments, writing the identification information into the target image data includes: performing a third encoding process on the identification information to obtain a corresponding identification string; writing the identification string into the color component code corresponding to the pixels of the third set area in the image data, and the identification information is used to represent the presence of hidden information in the target image data.

[0016] According to a second aspect of an embodiment of the present disclosure, there is provided an image data processing method, which is applied to a client, and the method includes:

[0017] In response to the target account's editing operation on the image data, displaying an image data editing interface;

[0018] Acquire hidden information edited by the target account through the image data editing interface;

[0019] The hidden information is sent to the server so that the server merges the hidden information and the image data of the target account to obtain the merged target image data, generates identification information of the hidden information, writes the identification information into the target image data, and sends the target image data to the client.

[0020] In one of the embodiments, the method further includes: in response to a viewing request for the target account, when it is determined based on the identification information that hidden information exists in the target image data, displaying the hidden information in a display page of the target account.

[0021] In one of the embodiments, the method further includes: in response to an interaction request from an access account to the target account, when it is determined based on the identification information that hidden information exists in the target image data, displaying the hidden information in an interaction page between the access account and the target account.

[0022] In one of the embodiments, before determining whether hidden information exists in the target image data based on the identification information, the method further includes: obtaining color component codes corresponding to each pixel in the target image data; extracting codes of the target position based on the color component codes corresponding to each pixel, decoding the extracted codes to obtain identification information in the target image data, wherein the identification information is used to characterize whether hidden information exists in the target image data.

[0023] In one of the embodiments, before determining that hidden information exists in the target image data based on the identification information, the method further includes: extracting the code of the target position from the color component code corresponding to the pixels of the first set area in the target image data to obtain a first code string; decoding the first code string to obtain the hidden information in the target image data.

[0024] In one of the embodiments, before determining that hidden information exists in the target image data based on the identification information, the method further includes: extracting a code of a target position from a color component code corresponding to pixels of a second set area in the target image data to obtain a second code string, wherein the second code string is used to represent the bit length information corresponding to the hidden information; decoding the second code string to obtain decoded bit length information; extracting a code of a target position matching the bit length information from the color component code corresponding to pixels of a first set area in the target image data to obtain a first code string; and decoding the first code string to obtain the hidden information in the target image data.

[0025] In one of the embodiments, the method further includes: obtaining display configuration information of the hidden information edited by the target account, the display configuration information including at least one of a display trigger condition and a display duration of the hidden information; sending the display configuration information of the hidden information to the server, the display configuration information being used to instruct the server to send the display configuration information of the hidden information in the target image data to the client.

[0026] In one of the embodiments, displaying the hidden information includes: acquiring display configuration information of the hidden information, and displaying the hidden information according to the display configuration information.

[0027] According to a third aspect of an embodiment of the present disclosure, there is provided an image data processing device, which is applied to a server and includes:

[0028] An information receiving module is configured to receive hidden information uploaded by a target account and obtain image data of the target account;

[0029] A merging processing module is configured to perform merging processing on the hidden information and the image data to obtain merged target image data;

[0030] an identification processing module, configured to generate identification information of the hidden information and write the identification information into the target image data;

[0031] The sending module is configured to send the target image data to the client, wherein the target image data is used to instruct the client to display, and during the display process, the hidden information in the target image data is displayed according to the identification information.

[0032] In one of the embodiments, the device also includes: a display configuration information determination module, configured to execute determination of display configuration information for hidden information in the target image data, the display configuration information including at least one of a display trigger condition and a display duration of the hidden information; the sending module is also configured to execute sending the display configuration information to a client, the display configuration information being used to instruct the client to display the hidden information in the target image data according to the display configuration information.

[0033] In one of the embodiments, the display configuration information determination module is further configured to execute: receiving at least one of the display trigger conditions and display duration of the hidden information in the target image data uploaded by the target account; and determining the display configuration information of the hidden information in the target image data based on at least one of the display trigger conditions and display duration of the hidden information in the target image data.

[0034] In one embodiment, the merging processing module includes: a first encoding unit, configured to perform a first encoding process on the hidden information to obtain a corresponding encoding string; a color component encoding acquisition unit, configured to execute acquisition of the color component encoding corresponding to each pixel in the image data; and a second encoding unit, configured to perform a second encoding process on the color component encoding corresponding to each pixel in the image data according to the encoding string to obtain the target image data.

[0035] In one of the embodiments, the second encoding unit is configured to perform: obtaining the bit length information of the encoding string, and writing the bit length information into the color component code corresponding to the pixels of the first set area in the image data; writing the encoding string into the color component code corresponding to the pixels of the second set area in the image data to obtain the target image data.

[0036] In one embodiment, the identification processing module is configured to execute: performing a third encoding process on the identification information to obtain a corresponding identification string; writing the identification string into the color component code corresponding to the pixels in the third set area in the image data, and the identification information is used to represent the presence of hidden information in the target image data.

[0037] According to a fourth aspect of an embodiment of the present disclosure, there is provided an image data processing device, which is applied to a client and includes:

[0038] an editing response module, configured to execute a response to an editing operation of the target account on the image data and display an image data editing interface;

[0039] A first information acquisition module is configured to acquire hidden information edited by the target account through the image data editing interface;

[0040] The sending module is configured to execute sending the hidden information to the server so that the server merges the hidden information and the image data of the target account to obtain the merged target image data, generates identification information of the hidden information, writes the identification information into the target image data, and sends the target image data to the client.

[0041] In one of the embodiments, the device also includes: a display module, configured to execute a response to a viewing request for the target account, and when it is determined according to the identification information that hidden information exists in the target image data, display the hidden information in a display page of the target account.

[0042] In one of the embodiments, the display module is further configured to perform: in response to an interaction request from an access account to the target account, when it is determined based on the identification information that hidden information exists in the target image data, displaying the hidden information in an interaction page between the access account and the target account.

[0043] In one embodiment, the device also includes a second information acquisition module, which is configured to perform the following: obtaining the color component code corresponding to each pixel in the target image data; extracting the code of the target position according to the color component code corresponding to each pixel, decoding the extracted code, and obtaining identification information in the target image data, wherein the identification information is used to characterize whether there is hidden information in the target image data.

[0044] In one of the embodiments, the device also includes a hidden information acquisition module, which is configured to perform: extracting the code of the target position from the color component code corresponding to the pixels of the first set area in the target image data to obtain a first code string; decoding the first code string to obtain the hidden information in the target image data.

[0045] In one of the embodiments, the hidden information acquisition module is further configured to perform: extracting the code of the target position from the color component code corresponding to the pixels of the second set area in the target image data to obtain a second code string, wherein the second code string is used to represent the bit length information corresponding to the hidden information; decoding the second code string to obtain the decoded bit length information; extracting the code of the target position matching the bit length information from the color component code corresponding to the pixels of the first set area in the target image data to obtain a first code string; decoding the first code string to obtain the hidden information in the target image data.

[0046] In one of the embodiments, the first information acquisition module is further configured to execute: obtaining display configuration information of the hidden information edited by the target account, the display configuration information including at least one of a display trigger condition and a display duration of the hidden information; sending the display configuration information of the hidden information to the server, the display configuration information being used to instruct the server to send the display configuration information of the hidden information in the target image data to the client.

[0047] In one of the embodiments, the display module is further configured to execute: obtaining display configuration information of the hidden information; and displaying the hidden information according to the display configuration information in an interaction page with the target account.

[0048] According to a fifth aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the image data processing method described in the first aspect or the second aspect above.

[0049] According to the sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the image data processing method described in the first aspect or the second aspect above.

[0050] According to a seventh aspect of an embodiment of the present disclosure, a computer program product is provided, wherein the computer program product includes instructions, and when the instructions are executed by a processor of an electronic device, the electronic device is able to execute the image data processing method described in the first aspect or the second aspect above.

[0051] The technical solution provided by the embodiment of the present disclosure brings at least the following beneficial effects: by receiving the hidden information uploaded by the target account and obtaining the image data of the target account, the hidden information and the image data are merged to obtain the merged target image data, and the identification information of the hidden information is generated, and the identification information is written into the target image data, and then the target image data is sent to the client. Since the server in this embodiment merges the hidden information and the image data to obtain the merged target image data, the server only needs to send the target image data, thereby reducing the number of interactions and improving the quality of data transmission.

[0052] 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 present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0054] Figure 1 The diagram is an application environment diagram of an image data processing method according to an exemplary embodiment.

[0055] Figure 2 The figure is a flowchart of a method for processing image data according to an exemplary embodiment.

[0056] Figure 3 is a flowchart of a method for processing image data according to another exemplary embodiment.

[0057] Figure 4 The figure is a flow chart showing a process of merging hidden information and image data according to an exemplary embodiment.

[0058] Figure 5 It is a schematic diagram showing steps of performing a second encoding process according to an exemplary embodiment.

[0059] Figure 6 The figure is a schematic diagram showing the steps of writing identification information according to an exemplary embodiment.

[0060] Figure 7 is a flowchart of an image data processing method according to yet another exemplary embodiment.

[0061] Figure 8 The figure is a schematic diagram showing the steps of obtaining hidden information according to an exemplary embodiment.

[0062] Fig. 9is a schematic diagram showing a step of obtaining hidden information according to another exemplary embodiment.

[0063] Fig.10 The diagram is an interactive schematic diagram of an image data processing method according to an exemplary embodiment.

[0064] Fig.11 The figure is a block diagram of an image data processing device according to an exemplary embodiment.

[0065] Fig.12 is a block diagram of an image data processing device according to yet another exemplary embodiment.

[0066] Fig.13 It is a block diagram of an electronic device according to an exemplary embodiment.

[0067] Fig.14 It is a block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION

[0068] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0069] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0070] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0071] The image data processing method provided in the present disclosure can be applied to Figure 1In the application environment shown. Among them, the terminal 110 interacts with the server 120 through the network. A social application is installed in the terminal 110, and the server 120 is the background server of the corresponding social application. The terminal 110 can modify the image data of the corresponding account and view the image data of other accounts. Specifically, the terminal 110 can be but not limited to various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 120 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0072] Figure 2 is a flowchart of an image data processing method according to an exemplary embodiment. Figure 2 As shown, this method is used for Figure 1 Taking the server in as an example, the following steps are included.

[0073] In step S210, the hidden information uploaded by the target account is received and the image data of the target account is obtained.

[0074] Among them, the target account is the user who currently modifies the personal image data corresponding to the social application through the terminal. Hidden information is the information uploaded by the target account when modifying the personal image data, including but not limited to emoji emoticons or text content, and the hidden information is usually only displayed at a specific time. Image data refers to the personal avatar corresponding to the target account in the social application. In this embodiment, when the target account needs to add hidden information to the personal image data, the corresponding hidden information can be uploaded through the terminal. Therefore, the server can receive the hidden information uploaded by the target account, and at the same time, the server can also obtain the image data of the target account. Specifically, when the target account adds hidden information on the basis of the original image data, when the server receives the hidden information uploaded by the target account, the image data of the target account can be directly obtained locally; when the target account modifies the original image data and adds hidden information, the server can receive the modified image data and hidden information uploaded by the target account.

[0075] In step S220, the hidden information and the image data are merged to obtain merged target image data.

[0076] Among them, the merging process is the process of merging multiple information into one information and obtaining the final information. The target image data is the final data obtained by merging the hidden information and the image data. In this embodiment, merging the hidden information and the image data is the process of writing the hidden information into the image data to obtain the target image data. It can be understood that since the image data is the user's personal image, and the hidden information is only displayed at a specific moment, therefore, under normal circumstances, the display effect of the merged target image data is basically the same as the original image data, and the hidden information will only be displayed as required when a specific moment arrives.

[0077] In step S230, identification information of the hidden information is generated, and the identification information is written into the target image data.

[0078] The identification information is used to indicate whether there is hidden information. Since the identification information in this embodiment is generated based on the hidden information, the identification information is used to indicate the existence of the hidden information. In this embodiment, the server generates corresponding identification information based on the hidden information and writes the identification information into the target image data. This facilitates the display end to identify and display the hidden information.

[0079] In step S240, the target image data is sent to the client.

[0080] Among them, the target image data is used to instruct the client to display, and during the display process, the hidden information in the target image data is displayed according to the identification information. Specifically, after the above processing, the server can also send the target image data to the client where the target account is located, so that the client where the target account is located can timely update the corresponding personal image based on the target image data. In addition, when the server receives an access request to the target account from the access account, such as when other accounts view the personal information of the target account, or when other accounts interact with the target account, the server can also send the target image data of the target account to the client where the access account is located, so that the client of the access account can display the hidden information in the target image data according to the identification information.

[0081] In the above-mentioned image data processing method, by receiving the hidden information uploaded by the target account and obtaining the image data of the target account, the hidden information and the image data are merged to obtain the merged target image data, and the identification information of the hidden information is generated, and the identification information is written into the target image data, and then the target image data is sent to the client. Since the server in this embodiment merges the hidden information and the image data to obtain the merged target image data, the server only needs to send the target image data, thereby reducing the number of interactions and improving the quality of data transmission.

[0082] In an exemplary embodiment, the method may further include: when receiving an access request from an associated account associated with the target account, sending the target image data to the client where the associated account is located. The associated account refers to an account that has an associated relationship with the target account, for example, it may be a user in the address book of the target account's personal social application, or it may also be a user in the group of the target account's personal social application, etc. The access request refers to a request from the associated account to access the personal social application. For example, when the associated account logs in to the personal social application, or when the associated account accesses the personal social application, the server may receive the corresponding access request. Then the server sends the target image data of the target account to the client where the associated account is located, specifically, the target image data is used to display the hidden information in the target image data according to the identification information when the associated account interacts with the target account. The interaction may refer to the associated account entering the chat page with the target account through the personal social application, or it may also refer to the associated account viewing the personal information of the target account through the personal social application, or it may also refer to the image of the target account being exposed in the page displayed by the associated account. In this embodiment, when the server receives an access request from an associated account associated with the target account, it sends the target image data to the client where the associated account is located. Since the target image data is obtained by merging the hidden information and image data uploaded by the target account, the number of server downloads is reduced, which can improve the quality of data transmission.

[0083] In an exemplary embodiment, if Figure 3 As shown, the above method may further include the following steps:

[0084] In step S310, display configuration information for hidden information in target image data is determined.

[0085] The display configuration information includes at least one of the display triggering condition and display duration of the hidden information. It can be fixed information uniformly configured by the server, that is, for each account, the display configuration information corresponding to the hidden information is the same; it can also be personalized information configured by the user through the client, that is, each account can configure different display configuration information based on its own needs.

[0086] Specifically, the display trigger condition refers to the configured trigger condition for displaying hidden information, that is, under what specific scenario the hidden information in the target image data is displayed, such as when the target account is exposed on the page, or when entering the interactive page with the target account, etc. The display duration refers to the duration of each display of hidden information, such as 3 seconds, 5 seconds, etc.

[0087] In step S320, display configuration information is sent to the client.

[0088] In this embodiment, after acquiring the display configuration information for the hidden information in the target image data, the server may also send the display configuration information to the client. Specifically, the server may send the display configuration information together with the target image data to the client, thereby reducing the number of interactions. The display configuration information is used to instruct the client to display the hidden information in the target image data according to the display configuration information, that is, to display the hidden information in the target image data according to at least one of the display trigger condition and the display duration configured in the display configuration information.

[0089] In the above embodiment, the server obtains display configuration information for hidden information in the target image data and sends the display configuration information to the client. Since the configuration of the display configuration information is controllable, it can be flexibly adjusted according to the actual application scenario, so that the client can display the hidden information in the target image data according to the display configuration information, thereby improving the user experience.

[0090] In an exemplary embodiment, in step S310, determining the display configuration information of the hidden information in the target image data may specifically include: receiving at least one of the display triggering condition and the display duration of the hidden information in the target image data uploaded by the target account; and determining the display configuration information of the hidden information in the target image data according to at least one of the display triggering condition and the display duration of the hidden information in the target image data. In this embodiment, the target account may also configure the display triggering condition and the display duration of the hidden information in the target image data, and send at least one of the configured display triggering condition and the display duration of the hidden information in the target image data to the server, and the server may receive at least one of the display triggering condition and the display duration of the hidden information in the target image data uploaded by the target account, and then determine the display configuration information of the hidden information in the target image data according to at least one of the display triggering condition and the display duration of the hidden information in the target image data. Since the display configuration information is configured autonomously by the target account, personalized display configuration information may be realized, and then the client may also realize personalized display when displaying the hidden information in the target image data according to the display configuration information, thereby improving the user experience.

[0091] In an exemplary embodiment, if Figure 4 As shown, in step S220, the hidden information and the image data are merged to obtain the merged target image data, which may specifically include:

[0092] In step S410, a first encoding process is performed on the hidden information to obtain a corresponding encoding string.

[0093] In order to reduce the number of times the server sends data, this embodiment needs to merge the hidden information and the image data without affecting the display effect of the image data. Since the color information corresponding to each pixel in the image data is represented by binary code, in this embodiment, the hidden information is subjected to a first encoding process to obtain a corresponding encoding string, which should be the same as the encoding representation method corresponding to the image data, and then the encoding string of the hidden information is written into the image data through subsequent steps to complete the merging of the two. The first encoding process refers to the corresponding conversion process, that is, converting the original representation of the hidden information into the same expression method as the color information corresponding to each pixel in the image data.

[0094] In step S420, the color component code corresponding to each pixel in the image data is obtained.

[0095] Specifically, the server identifies the image data, thereby obtaining the color component code corresponding to each pixel in the image data, wherein the color component code refers to the coded representation of the three color (red, green and blue) components corresponding to each pixel.

[0096] In step S430, a second encoding process is performed on the color component encoding corresponding to each pixel in the image data according to the encoding character string to obtain target image data.

[0097] Usually, each pixel is a mixture of three primary colors in different proportions, and the value of each color is within the range of (0, 255), and 8 bits are required for binary representation. For each color, the depth of the color can be represented according to the different numerical values. For example, for blue, the blue corresponding to its binary representation 11111111 and 11111110 is almost indistinguishable to the human eye. Therefore, in this embodiment, the least significant bit of the pixel representation in the image data can be used to store information other than color, and to some extent, this processing has almost no effect on the original image. Similarly, the same operation can be performed for other colors of the pixel, such as red and green. Therefore, almost one byte of information other than color can be stored in three pixels (one color in a pixel can have one bit to store information other than color, three pixels can have 9 bits, and one byte is 8 bits).

[0098] Based on this, in this embodiment, the color component code corresponding to each pixel in the image data is subjected to a second encoding process according to the encoding string, that is, the encoding string of the hidden information obtained above is sequentially written into the last bit of the color component code corresponding to each pixel in the image data, thereby realizing a merging process of the hidden information and the image data to obtain the target image data.

[0099] In the above embodiment, the hidden information is subjected to a first encoding process to obtain a corresponding encoding string, and the color component encoding corresponding to each pixel in the image data is obtained. The color component encoding corresponding to each pixel in the image data is subjected to a second encoding process according to the encoding string, thereby realizing the merging of the hidden information and the image data to obtain the target image data. Since the present embodiment stores the hidden information through the least significant bit represented by the pixel in the image data, the display effect of the original image is hardly affected, and the hidden information can be sent at the same time as the image data, thereby reducing the number of data sending times.

[0100] In an exemplary embodiment, if Figure 5 As shown, in step S430, the color component codes corresponding to each pixel in the image data are respectively encoded by a second encoding process according to the encoding string to obtain the target image data, which may specifically include:

[0101] In step S432, the bit length information of the encoding character string is obtained, and the bit length information is written into the color component code corresponding to the pixels in the first set area in the image data.

[0102] The bit length information refers to the character length of the encoding string corresponding to the hidden information, that is, the number of bits corresponding to the encoding string. The first set area is a fixed area in the predefined image data, for example, it can be the area range corresponding to the first 10 pixels or 20 pixels in the image data, or it can also be the area range corresponding to the last certain pixels in the image data, or it can also be the area range corresponding to certain pixels specified in the image data. Specifically, this area is used to store the bit length information of the encoding string. In this embodiment, in order to enable the client to quickly and accurately extract the hidden information from the target image data for display, therefore, by obtaining the bit length information of the encoding information corresponding to the hidden information, and writing the bit length information into the color component code corresponding to the pixels of the first set area in the image data, the client can determine the character length of the encoding string corresponding to the hidden information from the color component code corresponding to the pixels of the first set area in the target image data, and then can accurately extract the encoding string corresponding to the hidden information.

[0103] In step S434, the coded character string is written into the color component code corresponding to the pixels in the second set area in the image data to obtain the target image data.

[0104] The second set area is also a fixed area in the predefined image data, which is used to store the coded string corresponding to the hidden information. In this embodiment, the target image data is obtained by writing the coded string into the color component code corresponding to the pixels in the second set area in the image data.

[0105] In the above embodiment, the target image data is obtained by obtaining the bit length information of the encoding string, writing the bit length information into the color component code corresponding to the pixels of the first set area in the image data, and writing the encoding string into the color component code corresponding to the pixels of the second set area in the image data. Since the present embodiment uses different areas to store the bit length information of the encoding string corresponding to the hidden information and the encoding string corresponding to the hidden information, the client can quickly and accurately extract the hidden information from the target image data for display.

[0106] In an exemplary embodiment, if Figure 6 As shown, in step S230, the identification information is written into the target image data, which may specifically include:

[0107] In step S232, the identification information is subjected to a third encoding process to obtain a corresponding identification character string.

[0108] The third encoding process is similar to the first encoding process, which is to convert the original representation of the identification information into the same representation as the color information corresponding to each pixel in the image data. Since the identification information is used to indicate whether there is hidden information, and this embodiment is the identification information generated based on the hidden information, the identification information is used to indicate the existence of hidden information. Specifically, the third encoding process is performed on the identification information to obtain the corresponding identification string.

[0109] In step S234, the identification character string is written into the color component code corresponding to the pixels in the third set area in the image data.

[0110] The third set area is also a fixed area in the predefined image data, and the area is used to store identification information of whether there is hidden information. In this embodiment, by writing the identification string into the color component code corresponding to the pixel of the third set area in the image data, the client can quickly determine whether there is hidden information in the target image data based on the identification information in the target image data, and when it is determined that there is hidden information, accurately extract the corresponding hidden information for display.

[0111] In an exemplary embodiment, if Figure 7 As shown, the present disclosure also proposes an image data processing method, which is used for Figure 1Take the terminal in as an example, the following steps are included.

[0112] In step S710, in response to the target account's editing operation on the image data, an image data editing interface is displayed.

[0113] Among them, the editing operation refers to the operation of modifying or editing the personal image data corresponding to the social application. The image data editing interface is a page for modifying or editing the personal image data corresponding to the social application. The target account is the user who currently modifies or edits the personal image data corresponding to the social application through the terminal. In this embodiment, when the target account needs to modify or edit the personal image data corresponding to the social application, the corresponding editing operation can be initiated through the terminal. For example, click on the personal image data corresponding to the social application displayed in the terminal, and the terminal displays the image data editing interface, so that the user can make corresponding modifications or edits through the interface.

[0114] In step S720, the hidden information edited by the target account is obtained through the image data editing interface.

[0115] Among them, the hidden information can be the information edited by the target account when modifying personal image data through the image data editing interface, including but not limited to emoji emoticons or text content. Usually, the hidden information is only displayed at a specific moment.

[0116] In step S730, the hidden information is sent to the server.

[0117] Specifically, after the terminal obtains the hidden information edited by the target account through the image data editing interface, the terminal sends the hidden information to the server, so that the server merges the hidden information and the image data of the target account to obtain the merged target image data, and generates identification information of the hidden information, writes the identification information into the target image data, and then sends the target image data to the client, so that the client can display the hidden information in the target image data according to the identification information during the process of displaying the target image data.

[0118] In the above embodiment, the terminal displays the image data editing interface in response to the target account's editing operation on the image data, obtains the hidden information edited by the target account through the image data editing interface, and sends the hidden information to the server, so that the server merges the hidden information with the image data of the target account to obtain the merged target image data, generates identification information of the hidden information, writes the identification information into the target image data, and then sends the target image data to the client, so that the client can display the hidden information in the target image data according to the identification information during the display of the target image data. Since the server merges the hidden information and the image data before sending them down, the number of interactions is reduced, which can improve the quality of data transmission.

[0119] In an exemplary embodiment, the above method may further include: in response to a viewing request for a target account, when it is determined according to the identification information that there is hidden information in the target image data, displaying the hidden information in the display page. The viewing request refers to a request to view the profile of the target account in a personal social application. For example, a request for the target account to view its own profile, or a request for other users in a personal social application to view the profile of the target account. In this embodiment, when a user initiates a viewing request for the profile of the target account through a terminal, the terminal responds to the viewing request and identifies the identification information in the target image data. When it is determined according to the identification information that there is hidden information in the target image data, the hidden information is displayed in the display page. Since the hidden information is hidden in the image data and sent down, not only can the efficiency of data sending be improved, but the hidden information is not easily cracked and tampered in the image, and the security of the hidden information is also improved.

[0120] In an exemplary embodiment, the above method may further include: in response to the interactive request of the access account to the target account, when it is determined according to the identification information that there is hidden information in the target image data, the hidden information is displayed in the interactive page between the access account and the target account. Wherein, the access account refers to other users who access the target account, for example, it may be a user in the address book of the target account's personal social application, or it may also be a user in the group of the target account's personal social application, etc. The interactive request refers to a request for the access account to interact with the target account in the personal social application. For example, it may be a request for the access account to enter the chat page with the target account through the personal social application, or it may also be a request for the access account to view the personal information of the target account through the personal social application. Specifically, when the access account initiates an interactive request to the target account through the terminal, the terminal responds to the interactive request and identifies the identification information in the target image data. When it is determined according to the identification information that there is hidden information in the target image data, the hidden information is displayed in the display page.

[0121] In an exemplary embodiment, before determining that there is hidden information in the target image data according to the identification information, the above method may also include: obtaining the color component code corresponding to each pixel in the target image data, extracting the code of the target position according to the color component code corresponding to each pixel, decoding the extracted code, and obtaining the identification information in the target image data. The identification information is used to characterize whether there is hidden information in the target image data. Therefore, the terminal can further determine whether there is hidden information in the target image data according to the identification information. The target position is the least significant bit of the pixel in a certain fixed area pre-agreed for storing the identification information, for example, it can be the least significant bit of the pixel in the area corresponding to the first 10 pixels or 20 pixels in the agreed target image data, or it can also be the least significant bit of the pixel in the area corresponding to the last certain pixels in the image data, or it can also be the least significant bit of the pixel in the area corresponding to certain specified pixels in the image data. Since the identification information is written into the least significant bit of pixels in a certain agreed area in the target image data after being encoded, in this embodiment, the encoding of the least significant bit of pixels in the corresponding area is extracted and the extracted encoding is decoded and restored to obtain the identification information in the target image data, and then the identification information can be used to determine whether there is hidden information in the target image data, so that the terminal can quickly identify whether there is hidden information in the target image data, thereby improving the data parsing speed.

[0122] In an exemplary embodiment, if Figure 8 As shown, after determining that there is hidden information in the target image data according to the identification information, the method further includes:

[0123] In step S810, the code of the target position is extracted from the color component codes corresponding to the pixels in the first set area in the target image data to obtain a first code string.

[0124] The first set area is a fixed area in the pre-agreed image data, which is used to store the coded string corresponding to the hidden information. The target position is the bit corresponding to the code for writing the hidden information, which is usually the least significant bit of the pixel. For example, if the pre-agreed first set area is the area corresponding to the last two hundred pixels in the target image data, the corresponding code is extracted from the least significant bit of the color component code corresponding to each pixel in the area, thereby obtaining the first coded string, that is, the coded string corresponding to the hidden information.

[0125] In step S820, the first encoded character string is decoded to obtain hidden information in the target image data.

[0126] Since the first coded character is obtained by encoding the hidden information, in this embodiment, the hidden information in the target image data can be obtained by performing corresponding decoding processing on the first coded character string.

[0127] In this embodiment, the code of the target position is extracted from the color component code corresponding to the pixels in the first set area in the target image data to obtain a first code string, and the first code string is decoded to obtain the hidden information in the target image data. Since the hidden information is hidden in the agreed area in the image data, the hidden information can be quickly identified.

[0128] In an exemplary embodiment, the terminal may also obtain display configuration information of the hidden information, and then display the hidden information according to the display configuration information. Specifically, the display configuration information is at least one of a display trigger condition and a display duration of the hidden information in the target image data. In this embodiment, the display configuration information may be sent by the server at the same time as the target image data is sent to the client, thereby reducing the number of interactions.

[0129] In an exemplary embodiment, if Fig. 9 As shown, after determining that there is hidden information in the target image data according to the identification information, the method further includes:

[0130] In step S910, the code of the target position is extracted from the color component codes corresponding to the pixels in the second set area in the target image data to obtain a second code string.

[0131] The second coded string is used to represent the bit length information corresponding to the hidden information, that is, the length of the coded string corresponding to the hidden information. The second set area is also a fixed area in the pre-agreed image data, which is used to store the length information of the coded string corresponding to the hidden information. In this embodiment, the second coded string is obtained by extracting the corresponding code from the least significant bit of the color component code corresponding to each pixel in the second set domain, that is, the information used to represent the length of the coded string corresponding to the hidden information is obtained.

[0132] In step S920, the second encoded character string is decoded to obtain decoded bit length information.

[0133] Since the bit length information is written into the target image data after encoding, in this embodiment, the decoded bit length information can be obtained by performing corresponding decoding processing on the second encoded character string of the bit length information.

[0134] In step S930, the code of the target position matching the bit length information is extracted from the color component codes corresponding to the pixels in the first set area in the target image data to obtain a first code string.

[0135] Since the bit length information represents the length of the encoded string corresponding to the hidden information, based on the length information, the code of the target position that matches the bit length information can be accurately extracted from the color component code corresponding to the pixels in the first set area of ​​the target image data, that is, the first encoded string of the hidden information can be accurately obtained.

[0136] In step S940, the first encoded character string is decoded to obtain hidden information in the target image data.

[0137] Specifically, by performing corresponding decoding processing on the first encoded character string, the hidden information in the target image data can be obtained.

[0138] In this embodiment, the code of the target position is extracted from the color component code corresponding to the pixels of the second set area in the target image data to obtain a second code string, the second code string is decoded to obtain decoded bit length information, and then the code of the target position matching the bit length information is extracted from the color component code corresponding to the pixels of the first set area in the target image data to obtain a first code string, and the first code string is decoded, so that hidden information can be extracted from the target image data quickly and accurately.

[0139] In an exemplary embodiment, the method may further include: obtaining display configuration information of hidden information edited by the target account, and sending the display configuration information of the hidden information to the server. The display configuration information includes at least one of a display trigger condition and a display duration of the hidden information. Specifically, the display configuration information is used to instruct the server to send the display configuration information of the hidden information in the target image data to the client, so that the client can display the hidden information in the target image data according to the display configuration information, that is, display the hidden information in the target image data according to at least one of the display trigger condition and the display duration configured in the display configuration information.

[0140] In an exemplary embodiment, the image data processing method disclosed in the present invention is further described below through a specific embodiment. Fig.10 As shown, for the convenience of description, this embodiment is described by taking the first terminal as the terminal where the target account is located and the second terminal as the terminal where the access account is located as an example, specifically, including the following steps:

[0141] Step 1001: The first terminal responds to the target account's editing operation on image data in a personal social application and obtains hidden information.

[0142] Step 1002: The first terminal sends hidden information edited by the target account to the server.

[0143] Step 1003: The server obtains the image data of the target account according to the hidden information.

[0144] Step 1004: The server merges the hidden information and the image data to obtain merged target image data.

[0145] Step 1005: The server generates identification information of the hidden information and writes the identification information into the target image data.

[0146] For the specific steps of merging, please refer to Figures 4 to 6 The corresponding embodiments are not described in detail in this embodiment.

[0147] Step 1006: The server sends the target image data to the first terminal where the target account is located.

[0148] Step 1007: The second terminal receives an access request to the target account initiated by the access account.

[0149] Step 1008: The server sends the target image data of the target account to the second terminal.

[0150] Step 1009: When the access account interacts with the target account, the second terminal identifies identification information in the target image data.

[0151] Step 1010: When the identification information is recognized, the second terminal obtains the hidden information in the target image data.

[0152] For the specific process of obtaining hidden information, see Figures 7 to 9 The corresponding embodiments are not described in detail in this embodiment.

[0153] Step 1011: The second terminal displays hidden information in the interaction page with the target account.

[0154] In the above embodiment, since the server merges the hidden information and the image data before sending them down, the number of interactions is reduced and the quality of data transmission can be improved. Furthermore, since the hidden information is encoded into the image data, it is not easy to be cracked or tampered with, which can also improve the security of the hidden information.

[0155] It should be understood that although Figure 1-Figure 10The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-Figure 10 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0156] It can be understood that the same / similar parts between the various embodiments of the above method in this specification can refer to each other, and each embodiment focuses on the differences from other embodiments. For related points, please refer to the description of other method embodiments.

[0157] Fig.11 is a block diagram of an image data processing device according to an exemplary embodiment. Fig.11 The device includes an information receiving module 1102, a merging processing module 1104, an identification processing module 1106 and a sending module 1108.

[0158] The information receiving module 1102 is configured to receive hidden information uploaded by a target account and obtain image data of the target account;

[0159] A merging processing module 1104 is configured to perform merging processing on the hidden information and the image data to obtain merged target image data;

[0160] The identification processing module 1106 is configured to generate identification information of the hidden information and write the identification information into the target image data;

[0161] The sending module 1108 is configured to send the target image data to the client, where the target image data is used to instruct the client to display, and during the display process, the hidden information in the target image data is displayed according to the identification information.

[0162] In an exemplary embodiment, the device also includes: a display configuration information determination module, configured to execute determination of display configuration information for hidden information in the target image data, the display configuration information including at least one of a display trigger condition and a display duration of the hidden information; the sending module is also configured to execute sending the display configuration information to a client, the display configuration information being used to instruct the client to display the hidden information in the target image data according to the display configuration information.

[0163] In an exemplary embodiment, the display configuration information determination module is further configured to execute: receiving at least one of the display trigger conditions and display durations for the hidden information in the target image data uploaded by the target account; and determining the display configuration information for the hidden information in the target image data based on at least one of the display trigger conditions and display durations for the hidden information in the target image data.

[0164] In an exemplary embodiment, the merging processing module includes: a first encoding unit, configured to perform a first encoding process on the hidden information to obtain a corresponding encoding string; a color component encoding acquisition unit, configured to execute acquisition of the color component encoding corresponding to each pixel in the image data; and a second encoding unit, configured to perform a second encoding process on the color component encoding corresponding to each pixel in the image data according to the encoding string to obtain the target image data.

[0165] In an exemplary embodiment, the second encoding unit is configured to perform: obtaining the bit length information of the encoding string, and writing the bit length information into the color component code corresponding to the pixels of the first set area in the image data; writing the encoding string into the color component code corresponding to the pixels of the second set area in the image data to obtain the target image data.

[0166] In an exemplary embodiment, the identification processing module is configured to execute: performing a third encoding process on the identification information to obtain a corresponding identification string; writing the identification string into the color component code corresponding to the pixels in the third set area in the image data, and the identification information is used to characterize the presence of hidden information in the target image data.

[0167] Regarding the device 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.

[0168] Fig.12 is a block diagram of an image data processing device according to an exemplary embodiment. Fig.12 The device includes an editing response module 1202, a first information acquisition module 1204 and a sending module 1206.

[0169] an editing response module, configured to execute a response to an editing operation of the target account on the image data and display an image data editing interface;

[0170] A first information acquisition module is configured to acquire hidden information edited by the target account through the image data editing interface;

[0171] The sending module is configured to execute sending the hidden information to the server so that the server merges the hidden information and the image data of the target account to obtain the merged target image data, generates identification information of the hidden information, writes the identification information into the target image data, and sends the target image data to the client.

[0172] In an exemplary embodiment, the device also includes: a display module, configured to execute a response to a viewing request for the target account, and when it is determined according to the identification information that hidden information exists in the target image data, display the hidden information in a display page of the target account.

[0173] In an exemplary embodiment, the display module is also configured to perform: in response to an interaction request from the access account to the target account, when it is determined based on the identification information that hidden information exists in the target image data, displaying the hidden information in the interaction page between the access account and the target account.

[0174] In an exemplary embodiment, the device also includes a second information acquisition module, which is configured to perform the following operations: obtaining the color component code corresponding to each pixel in the target image data; extracting the code of the target position according to the color component code corresponding to each pixel, decoding the extracted code, and obtaining identification information in the target image data, wherein the identification information is used to characterize whether there is hidden information in the target image data.

[0175] In an exemplary embodiment, the device also includes a hidden information acquisition module, which is configured to perform: extracting the code of the target position from the color component code corresponding to the pixels of the first set area in the target image data to obtain a first code string; decoding the first code string to obtain the hidden information in the target image data.

[0176] In an exemplary embodiment, the hidden information acquisition module is further configured to perform: extracting the code of the target position from the color component code corresponding to the pixels of the second set area in the target image data to obtain a second code string, wherein the second code string is used to represent the bit length information corresponding to the hidden information; decoding the second code string to obtain the decoded bit length information; extracting the code of the target position matching the bit length information from the color component code corresponding to the pixels of the first set area in the target image data to obtain a first code string; decoding the first code string to obtain the hidden information in the target image data.

[0177] In an exemplary embodiment, the first information acquisition module is further configured to execute: obtaining display configuration information of the hidden information edited by the target account, the display configuration information including at least one of a display trigger condition and a display duration of the hidden information; sending the display configuration information of the hidden information to the server, the display configuration information being used to instruct the server to send the display configuration information of the hidden information in the target image data to the client.

[0178] In an exemplary embodiment, the display module is further configured to execute: obtaining display configuration information of the hidden information; and displaying the hidden information according to the display configuration information in an interaction page with the target account.

[0179] Regarding the device 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.

[0180] Fig.13 1 is a block diagram of an electronic device Z00 for image data processing according to an exemplary embodiment. For example, the electronic device Z00 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0181] Reference Fig.13 The electronic device Z00 may include one or more of the following components: a processing component Z02, a memory Z04, a power component Z06, a multimedia component Z08, an audio component Z10, an input / output (I / O) interface Z12, a sensor component Z14, and a communication component Z16.

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

[0183] The memory Z04 is configured to store various types of data to support operations on the electronic device Z00. Examples of such data include instructions for any application or method operating on the electronic device Z00, contact data, phone book data, messages, pictures, videos, etc. The memory Z04 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, optical disk, or graphene memory.

[0184] The power supply assembly Z06 provides power to various components of the electronic device Z00. The power supply assembly Z06 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 Z00.

[0185] The multimedia component Z08 includes a screen that provides an output interface between the electronic device Z00 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 may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may 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 Z08 includes a front camera and / or a rear camera. When the electronic device Z00 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0186] The audio component Z10 is configured to output and / or input audio signals. For example, the audio component Z10 includes a microphone (MIC), and when the electronic device Z00 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 Z04 or sent via the communication component Z16. In some embodiments, the audio component Z10 also includes a speaker for outputting an audio signal.

[0187] I / O interface Z12 provides an interface between processing component Z02 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

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

[0189] The communication component Z16 is configured to facilitate wired or wireless communication between the electronic device Z00 and other devices. The electronic device Z00 can access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component Z16 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 Z16 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.

[0190] In an exemplary embodiment, the electronic device Z00 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 method.

[0191] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory Z04 including instructions, and the above instructions can be executed by a processor Z20 of the electronic device Z00 to complete the above method. For example, the 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.

[0192] In an exemplary embodiment, a computer program product is further provided. The computer program product includes instructions. The instructions can be executed by the processor Z20 of the electronic device Z00 to complete the above method.

[0193] Fig.14 FIG. 1 is a block diagram of an electronic device S00 for image data processing according to an exemplary embodiment. For example, the electronic device S00 may be a server. Fig.14 The electronic device S00 includes a processing component S20, which further includes one or more processors, and a memory resource represented by a memory S22 for storing instructions executable by the processing component S20, such as an application. The application stored in the memory S22 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component S20 is configured to execute the instructions to perform the above method.

[0194] The electronic device S00 may further include: a power supply component S24 configured to perform power management of the electronic device S00, a wired or wireless network interface S26 configured to connect the electronic device S00 to a network, and an input / output (I / O) interface S28. The electronic device S00 may operate based on an operating system stored in the memory S22, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD or the like.

[0195] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory S22 including instructions, and the above instructions can be executed by a processor of the electronic device S00 to complete the above method. The storage medium can be a computer-readable storage medium, for example, the 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.

[0196] In an exemplary embodiment, a computer program product is further provided. The computer program product includes instructions. The instructions can be executed by a processor of the electronic device S00 to complete the above method.

[0197] It should be noted that the above-mentioned devices, electronic devices, computer-readable storage media, computer program products, etc. may also include other implementation methods according to the description of the method embodiments. The specific implementation methods can refer to the description of the relevant method embodiments, which will not be described one by one here.

[0198] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0199] It should be understood that the present disclosure is not limited to the exact structures that have been 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 disclosure is limited only by the appended claims.

Claims

1. An image data processing method, applied to a server, It is characterized in that The method comprises: Receive hidden information uploaded by the target account and obtain image data of the target account; Performing a first encoding process on the hidden information to obtain a corresponding encoding string; obtaining a color component code corresponding to each pixel in the image data; Obtaining bit length information of the encoding string, and writing the bit length information into the color component code corresponding to the pixels in the first set area in the image data; Writing the encoded string into the color component code corresponding to the pixels in the second set area in the image data to obtain the target image data; generating identification information of the hidden information, and writing the identification information into the target image data; The target image data is sent to the client, where the target image data is used to instruct the client to display, and during the display process, hidden information in the target image data is displayed according to the identification information.

2. The method according to claim 1, It is characterized in that The method further comprises: Determine display configuration information for the hidden information in the target image data, wherein the display configuration information includes at least one of a display trigger condition and a display duration of the hidden information; The display configuration information is sent to a client, where the display configuration information is used to instruct the client to display the hidden information in the target image data according to the display configuration information.

3. The method according to claim 2, It is characterized in that The determining of display configuration information for hidden information in the target image data includes: receiving at least one of a display triggering condition and a display duration of hidden information in the target image data uploaded by the target account; Display configuration information for the hidden information in the target image data is determined according to at least one of a display triggering condition and a display duration for the hidden information in the target image data.

4. The method according to claim 1, It is characterized in that The step of writing the identification information into the target image data comprises: Performing a third encoding process on the identification information to obtain a corresponding identification character string; The identification character string is written into the color component code corresponding to the pixels in the third set area in the image data, and the identification information is used to indicate that hidden information exists in the target image data.

5. An image data processing method, applied to a client, It is characterized in that The method comprises: In response to the target account's editing operation on the image data, displaying an image data editing interface; Acquire hidden information edited by the target account through the image data editing interface; Sending the hidden information to a server, so that the server merges the hidden information with the image data of the target account to obtain merged target image data, generates identification information of the hidden information, writes the identification information into the target image data, and sends the target image data to the client; If the target image data is received, obtaining the color component code corresponding to each pixel in the target image data; Extracting the code of the target position according to the color component code corresponding to each pixel, decoding the extracted code to obtain identification information in the target image data, wherein the identification information is used to indicate whether there is hidden information in the target image data; When it is determined based on the identification information that hidden information exists in the target image data, the code of the target position is extracted from the color component code corresponding to the pixels of the first set area in the target image data to obtain a first coded string; the first coded string is decoded to obtain the hidden information in the target image data.

6. The method according to claim 5, It is characterized in that The method further comprises: In response to a viewing request for the target account, when it is determined according to the identification information that hidden information exists in the target image data of the target account, the hidden information is displayed in a display page.

7. The method according to claim 5, It is characterized in that The method further comprises: In response to an interaction request from the access account to the target account, when it is determined based on the identification information that hidden information exists in the target image data of the target account, the hidden information is displayed in an interaction page between the access account and the target account.

8. The method according to claim 5, It is characterized in that After determining that hidden information exists in the target image data according to the identification information, the method further includes: Extracting the code of the target position from the color component code corresponding to the pixels of the second set area in the target image data to obtain a second code string, wherein the second code string is used to represent the bit length information corresponding to the hidden information; Decoding the second encoded character string to obtain decoded bit length information; Extracting the code of the target position matching the bit length information from the color component codes corresponding to the pixels in the first set area in the target image data to obtain a first code string; The first encoded character string is decoded to obtain hidden information in the target image data.

9. The method according to claim 6 or 7, It is characterized in that The method further comprises: Acquire display configuration information of the hidden information edited by the target account, wherein the display configuration information includes at least one of a display triggering condition and a display duration of the hidden information; The display configuration information of the hidden information is sent to the server, where the display configuration information is used to instruct the server to send the display configuration information of the hidden information in the target image data to the client.

10. The method according to claim 9, It is characterized in that The displaying of the hidden information includes: Obtain display configuration information of the hidden information, and display the hidden information according to the display configuration information.

11. An image data processing device, applied to a server, It is characterized in that include: An information receiving module is configured to receive hidden information uploaded by a target account and obtain image data of the target account; a merging processing module, configured to perform a first encoding process on the hidden information to obtain a corresponding encoding string; obtain a color component code corresponding to each pixel in the image data; obtain bit length information of the encoding string, and write the bit length information into the color component code corresponding to the pixel in the first set area in the image data; Writing the encoded string into the color component code corresponding to the pixels in the second set area in the image data to obtain the target image data; an identification processing module, configured to generate identification information of the hidden information and write the identification information into the target image data; The sending module is configured to send the target image data to the client, wherein the target image data is used to instruct the client to display, and during the display process, the hidden information in the target image data is displayed according to the identification information.

12. The device according to claim 11, It is characterized in that The device also includes: A display configuration information determination module is configured to determine display configuration information of hidden information in the target image data, wherein the display configuration information includes at least one of a display trigger condition and a display duration of the hidden information; The sending module is further configured to send the display configuration information to the client, where the display configuration information is used to instruct the client to display the hidden information in the target image data according to the display configuration information.

13. The device according to claim 12, It is characterized in that The display configuration information determination module is further configured to execute: receiving at least one of a display triggering condition and a display duration of hidden information in the target image data uploaded by the target account; Display configuration information for the hidden information in the target image data is determined according to at least one of a display triggering condition and a display duration for the hidden information in the target image data.

14. The device according to claim 11, It is characterized in that The identification processing module is configured to perform: Performing a third encoding process on the identification information to obtain a corresponding identification character string; The identification character string is written into the color component code corresponding to the pixels in the third set area in the image data, and the identification information is used to indicate that hidden information exists in the target image data.

15. An image data processing device, applied to a client, It is characterized in that include: an editing response module, configured to execute a response to an editing operation of the target account on the image data and display an image data editing interface; A first information acquisition module is configured to acquire hidden information edited by the target account through the image data editing interface; a sending module configured to execute sending the hidden information to a server, so that the server merges the hidden information with the image data of the target account to obtain merged target image data, generates identification information of the hidden information, writes the identification information into the target image data, and sends the target image data to the client; The second information acquisition module is configured to execute, if the target image data is received, to obtain the color component code corresponding to each pixel in the target image data; extract the code of the target position according to the color component code corresponding to each pixel, and decode the extracted code to obtain identification information in the target image data, wherein the identification information is used to indicate whether there is hidden information in the target image data; The hidden information acquisition module is configured to execute, when it is determined that the target image data contains hidden information based on the identification information, extract the code of the target position from the color component code corresponding to the pixels of the first set area in the target image data to obtain a first code string; and decode the first code string to obtain the hidden information in the target image data.

16. The device according to claim 15, It is characterized in that The device also includes: The display module is configured to execute a response to a viewing request for the target account, and when it is determined according to the identification information that hidden information exists in the target image data of the target account, display the hidden information in a display page.

17. The device according to claim 16, It is characterized in that The display module is further configured to execute: In response to an interaction request from the access account to the target account, when it is determined based on the identification information that hidden information exists in the target image data of the target account, the hidden information is displayed in an interaction page between the access account and the target account.

18. The device according to claim 15, It is characterized in that The hidden information acquisition module is further configured to execute: Extracting the code of the target position from the color component code corresponding to the pixels of the second set area in the target image data to obtain a second code string, wherein the second code string is used to represent the bit length information corresponding to the hidden information; Decoding the second encoded character string to obtain decoded bit length information; Extracting the code of the target position matching the bit length information from the color component codes corresponding to the pixels in the first set area in the target image data to obtain a first code string; The first encoded character string is decoded to obtain hidden information in the target image data.

19. The device according to claim 16 or 17, It is characterized in that The first information acquisition module is further configured to execute: Acquire display configuration information of the hidden information edited by the target account, wherein the display configuration information includes at least one of a display triggering condition and a display duration of the hidden information; The display configuration information of the hidden information is sent to the server, where the display configuration information is used to instruct the server to send the display configuration information of the hidden information in the target image data to the client.

20. The device according to claim 19, It is characterized in that The display module is further configured to execute: Obtaining display configuration information of the hidden information; In the interaction page with the target account, the hidden information is displayed according to the display configuration information.

21. An electronic device, It is characterized in that include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the image data processing method according to any one of claims 1 to 10.

22. A computer-readable storage medium, It is characterized in that When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the image data processing method according to any one of claims 1 to 10.

23. A computer program product comprising instructions, It is characterized in that When the instructions are executed by a processor of an electronic device, the electronic device is enabled to execute the image data processing method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Image processing method and device, computer readable medium and electronic equipment

    CN111182169A

  • Method and apparatus for applying steganography to digital image files

    US20090003701A1