Watermark data processing method, device, computer equipment and storage medium
By encoding and splitting the encryption parameters of personal electronic data pictures, ciphertext watermark images are generated, and combined with discrete point positions and RGB values, the problem of low watermark encryption in the existing technology is solved, achieving higher security and differentiation.
Patent Information
- Application Number
- CN202010180934.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-16
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2040-03-16
AI Technical Summary
In the prior art, the watermark encryption of personal electronic data pictures is low in security, and is easily stolen by criminals and used for illegal purposes. Even if it is encrypted, personal information can still be known and used for fraud.
By obtaining the encryption parameters set by the user, encoding and splitting operations are performed, ciphertext watermark images are generated, and ciphertext watermarks are generated in personal electronic data pictures, improving the uniqueness and difficulty in copying of the watermarks.
It improves the encryption security of the watermark of personal electronic profile pictures, making it difficult to be copied by others, achieving the effect of thousands of people and enhancing the distinction and security of the watermark.
Smart Images

Figure CN111460399B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a watermark data processing method, apparatus, computer equipment and storage medium. Background Art
[0002] When users use their personal electronic information pictures to handle business and register, they need to upload their personal electronic information pictures. During the upload process, personal electronic information pictures can be easily stolen by criminals on the Internet for illegal purposes. For example, ID card and bank card information photos can be used by criminals for credit card applications, company legal person applications, and telecommunications fraud, etc., causing users to bear unnecessary legal risks and risks of being deceived.
[0003] The existing method of adding watermarks to personal electronic information pictures to prevent theft, although the personal electronic information pictures with watermarks cannot be used for illegal registration, their personal information can still be known by criminals. However, criminals currently use the user's personal information to defraud users. For example, when a user handles a certain business, criminals use the name of the business to defraud the user. After the user verifies that the user's personal information provided by the other party is accurate, it is easy to transfer money to the account provided by the other party. The current method of watermarking and encrypting personal electronic information pictures has the problem of low security. Summary of the invention
[0004] Based on this, it is necessary to provide a watermark data processing method, device, computer equipment and storage medium that can improve the security of watermark encryption of personal electronic data images in response to the above technical problems.
[0005] A watermark data processing method, the method comprising:
[0006] Obtain the encryption parameters set by the user based on the personal electronic profile picture;
[0007] Encoding the encryption parameter to obtain an encoding parameter;
[0008] Performing a splitting operation on the coding parameter to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic data picture and the RGB value of the discrete point;
[0009] According to the positions of the discrete points in the personal electronic profile picture and the RGB values of the discrete points in the discrete point information, a ciphertext watermark image is generated on the personal electronic profile picture page.
[0010] In one of the embodiments, the step of encoding the encryption parameter to obtain the encoding parameter includes: encoding the encryption parameter using an encryption key to obtain the encoding parameter.
[0011] In one of the embodiments, the step of performing a splitting operation on the coding parameter to obtain discrete point information includes: determining whether the length of the coding parameter is greater than a preset value; if the length of the coding parameter is greater than the preset value, performing a splitting operation on the coding parameter to obtain discrete point information.
[0012] In one of the embodiments, the step of performing a splitting operation on the coding parameter to obtain discrete point information includes: when the length of the coding parameter is greater than a preset value, intercepting data of the preset value length of the coding parameter; and performing a splitting operation on the data of the preset value length to obtain discrete point information.
[0013] In one of the embodiments, the watermark data processing method further includes: scanning the ciphertext watermark image to obtain encryption parameters; the encryption parameters are used to verify the authenticity of the personal electronic profile image.
[0014] In one of the embodiments, the step of scanning the ciphertext watermark image to obtain encryption parameters includes: scanning the ciphertext watermark image to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic profile picture and the RGB value of the discrete point; according to the position of the discrete point in the personal electronic profile picture and the RGB value of the discrete point in the discrete point information, the encoding parameters are calculated; and the encryption parameters are calculated according to the encoding parameters.
[0015] In one of the embodiments, the step of scanning the ciphertext watermark image to obtain encryption parameters includes: scanning the ciphertext watermark image to obtain encryption parameters according to an input encryption key.
[0016] A watermark data processing device, the device comprising:
[0017] The encryption parameter acquisition module is used to obtain the encryption parameters set by the user based on the personal electronic profile picture;
[0018] An encoding module, used for encoding the encryption parameters to obtain encoding parameters;
[0019] A splitting operation module, used for performing splitting operation on the coding parameters to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic data picture and the RGB value of the discrete point;
[0020] The watermark image generation module is used to generate a ciphertext watermark image on the personal electronic data picture page according to the position of the discrete point in the personal electronic data picture and the RGB value of the discrete point in the discrete point information.
[0021] In one of the embodiments, the encoding module is further used to obtain the encoding parameter after encoding the encryption parameter using an encryption key.
[0022] In one of the embodiments, the splitting operation module includes: a judgment unit, used to judge whether the length of the coding parameter is greater than a preset value; a splitting operation unit, used to perform a splitting operation on the coding parameter to obtain discrete point information if the length of the coding parameter is greater than the preset value.
[0023] In one of the embodiments, the splitting operation module includes: a truncation unit, used to truncate data of a preset value length of the encoding parameter when the length of the encoding parameter is greater than a preset value; and a splitting operation unit, used to perform a splitting operation on the data of the preset value length to obtain discrete point information.
[0024] In one of the embodiments, the watermark data processing device further includes: a scanning module, used to scan the ciphertext watermark image to obtain encryption parameters; the encryption parameters are used to verify the authenticity of the personal electronic profile image.
[0025] In one embodiment, the scanning module includes: a discrete point information acquisition unit, used to scan the ciphertext watermark image to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic profile picture and the RGB value of the discrete point; a coding parameter calculation unit, used to calculate the coding parameter according to the position of the discrete point in the personal electronic profile picture and the RGB value of the discrete point in the discrete point information; an encryption parameter calculation unit, used to calculate the encryption parameter according to the coding parameter.
[0026] In one of the embodiments, the scanning module is further used to scan the ciphertext watermark image and obtain encryption parameters according to the input encryption key.
[0027] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0028] Obtain the encryption parameters set by the user based on the personal electronic profile picture;
[0029] Encoding the encryption parameter to obtain an encoding parameter;
[0030] Performing a splitting operation on the coding parameter to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic data picture and the RGB value of the discrete point;
[0031] According to the positions of the discrete points in the personal electronic profile picture and the RGB values of the discrete points in the discrete point information, a ciphertext watermark image is generated on the personal electronic profile picture page.
[0032] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0033] Obtain the encryption parameters set by the user based on the personal electronic profile picture;
[0034] Encoding the encryption parameter to obtain an encoding parameter;
[0035] Performing a splitting operation on the coding parameter to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic data picture and the RGB value of the discrete point;
[0036] According to the positions of the discrete points in the personal electronic profile picture and the RGB values of the discrete points in the discrete point information, a ciphertext watermark image is generated on the personal electronic profile picture page.
[0037] In the above-mentioned watermark data processing method, device, computer equipment and storage medium, the encryption parameter input by the user can be a password set by himself, and a ciphertext watermark image is generated according to the encryption parameter to distinguish it from the watermark set by others. Compared with the stereotyped watermark method of setting text watermarks such as "limited to patent application purposes" in the prior art, the watermark setting method of the present application is not easily copied by others, can be realized for thousands of people, and improves the security of watermark encryption of personal electronic data images. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 1 is a flow chart of a watermark data processing method in one embodiment;
[0039] Figure 2 A schematic flow chart of a step of performing a splitting operation on the encoding parameter to obtain discrete point information in one embodiment;
[0040] Figure 3 is a structural block diagram of a watermark data processing device in one embodiment;
[0041] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] In one embodiment, Figure 2As shown, a watermark method is provided, and the method is applied to a terminal as an example for explanation. The terminal may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, including the following steps:
[0044] Step S110, obtaining encryption parameters set by the user according to the personal electronic profile picture.
[0045] Among them, personal electronic data images include images of electronic data such as scanned copies of the user's ID card and bank card. The user enters encryption parameters through a terminal such as a computer or a mobile phone. The encryption parameters include Chinese characters, English letters, Greek letters or numbers. The encryption parameters are equivalent to the password set by the user to distinguish them from the encryption parameters set by others. The particularity of the set encryption parameters makes the generated watermark different from the watermarks set by others. For example, the encryption parameter is a six-digit password, specifically "000000".
[0046] Step S120, encoding the encryption parameter to obtain the encoding parameter.
[0047] The encoding may be ASCII code, and the encryption parameter is encoded as binary data, that is, the encoding parameter is binary data. Of course, the encoding may also be encoded in other ways, such as Unicode, GBK, GB2312, UTF-8, etc. For example, the encryption parameter is "000000", and the encoding parameter obtained after encoding is "110100111010".
[0048] Step S130, performing a splitting operation on the coding parameters to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic profile picture and the RGB value of the discrete point.
[0049] Among them, the splitting operation is to convert the coding parameter into discrete points. For example, the coding parameter is "110100111010", and the splitting operation can be segmented according to the coding parameter (binary data) in a fixed format, then the coding parameter "110100111010" is split into 110100, 111010, 110100 is converted into decimal 52, 111010 is converted into decimal 58, 52 is used to represent the position of the discrete point in the image, and 58 is used to represent the RGB value of the discrete point. Of course, 52 cannot directly represent the position of the discrete point in the image, and a mapping table can be formulated to achieve it. Similarly, 58 cannot directly represent the RGB value of the discrete point, and it can be achieved through another mapping table. Of course, the splitting operation can also be in other forms, which can be set as needed, and will not be repeated here.
[0050] Step S140: generating a ciphertext watermark image on the personal electronic profile picture page according to the position of the discrete point in the discrete point information and the RGB value of the discrete point.
[0051] Wherein, the ciphertext watermark image generated by the discrete point information on the personal electronic profile picture page is dot matrix information, and the dot matrix information includes a scannable QR code image or a barcode image. The ciphertext watermark image can overlap with the content of the personal electronic profile picture, or it can be in the blank space of the personal electronic profile picture. When the ciphertext watermark image overlaps with the content of the personal electronic profile picture, the ciphertext watermark image is distinguished from the content of the personal electronic profile picture by the RGB value. Wherein, the saturation, brightness and contrast of the ciphertext watermark image can be set by setting the RGB value, that is, the saturation, brightness and contrast of the ciphertext watermark image are distinguished from the content of the personal electronic profile picture by the saturation, brightness and contrast of the ciphertext watermark image.
[0052] In the above-mentioned watermark data processing method, the encryption parameter input by the user can be a password set by himself, and a ciphertext watermark image is generated according to the encryption parameter to distinguish it from the watermark set by other people. Compared with the stereotyped watermark method of setting text watermarks such as "limited to patent application purposes" in the prior art, the watermark setting method of the present application is not easily copied by others, can be realized for different people, and improves the security of watermark encryption of personal electronic data images.
[0053] In one of the embodiments, the step of encoding the encryption parameter to obtain the encoding parameter includes: encoding the encryption parameter using an encryption key to obtain the encoding parameter.
[0054] The encryption key is used to encrypt the encryption parameters, and the specific encoding method can be encoded using an existing encryption algorithm. The encryption key can be determined by the data user, and the subsequent data user decrypts the encryption parameters using the encryption key to determine that the current data is provided by the correct data provider.
[0055] In one embodiment, if Figure 2 As shown, the step of performing a splitting operation on the coding parameter to obtain discrete point information includes: S131, determining whether the length of the coding parameter is greater than a preset value; S132, if the length of the coding parameter is greater than the preset value, performing a splitting operation on the coding parameter to obtain discrete point information.
[0056] The length of the encryption parameter is proportional to the length of the encoding parameter. The longer the length of the encryption parameter is, the less likely it is to be copied by someone, and the more secure it is. The preset value can be set as needed. Generally, if the length of the encoding parameter is greater than the preset value, it means that the encryption parameter corresponding to the encoding parameter is secure.
[0057] In one of the embodiments, the step of performing a splitting operation on the coding parameter to obtain discrete point information includes: when the length of the coding parameter is greater than a preset value, intercepting data of the preset value length of the coding parameter; and performing a splitting operation on the data of the preset value length to obtain discrete point information.
[0058] Among them, the encoding parameter is truncated with data of a preset value length, that is, the encryption parameter is selected with data of a preset value length, and the encoding parameter with the preset value length is easy to encode. After the encoding parameter has the data of the preset value length, the user who inputs the encryption parameter can be notified to select data of the preset value length from the encryption parameter, so that subsequent users can verify the encrypted watermark content of the personal electronic data picture.
[0059] In one of the embodiments, the watermark data processing method further includes: scanning the ciphertext watermark image to obtain encryption parameters; the encryption parameters are used to verify the authenticity of the personal electronic profile image.
[0060] The ciphertext watermark image is scanned by a scanning terminal, and the scanning terminal may be a terminal used by the data user, such as a mobile phone used by the data user. For example, the ciphertext watermark image is a QR code, and the data user obtains encryption parameters by scanning the QR code image, and determines whether the data provided by the data provider is correct through the encryption parameters.
[0061] In one of the embodiments, the step of scanning the ciphertext watermark image to obtain encryption parameters includes: scanning the ciphertext watermark image to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic profile picture and the RGB value of the discrete point; according to the position of the discrete point in the personal electronic profile picture and the RGB value of the discrete point in the discrete point information, the encoding parameters are calculated; and the encryption parameters are calculated according to the encoding parameters.
[0062] Among them, the process of scanning the ciphertext watermark image to obtain the encryption parameters is the opposite of the process of generating the ciphertext watermark image according to the encryption parameters. The ciphertext watermark image is scanned by a scanning terminal, and the ciphertext watermark image is subjected to image processing to obtain discrete point information; according to the position of the discrete points in the personal electronic data image and the RGB value of the discrete points in the discrete point information, the encoding parameters are calculated by a merging operation, and the calculation process of the merging operation is opposite to that of the splitting operation; and then the encryption parameters are obtained by inverse encoding according to the encoding parameters. This embodiment obtains the encryption parameters by scanning with a scanning terminal, which is convenient for users to use.
[0063] In one of the embodiments, the step of scanning the ciphertext watermark image to obtain encryption parameters includes: scanning the ciphertext watermark image to obtain encryption parameters according to an input encryption key.
[0064] The ciphertext watermark image is scanned by a scanning terminal, and the scanning terminal is a terminal used by the data user. After obtaining the encryption parameters, the data user can use the encryption parameters to authenticate its own identity. For example, if the data user is an insurance collector, when collecting fees from the data provider, it can use the encryption parameters to indicate its own identity. Similarly, when the data provider receives the insurance fee notification, it can determine whether it is the correct insurance collector based on the encryption parameters provided by the other party. For example, after scanning the ciphertext watermark image, the scanning terminal displays a prompt message for inputting the encryption key. According to the prompt message, the user inputs the encryption key, and the scanning terminal decrypts the encryption parameters based on the encryption key.
[0065] The scanning terminal is a terminal used by the data provider, such as a mobile phone. In the case of a personal electronic data image being leaked, the data provider can obtain the encryption parameter by scanning the ciphertext watermark image of the leaked data, and can know who leaked the personal electronic data image. Because the encryption parameter is unique, the data provider sets a unique encryption parameter when providing the personal electronic data image with the encrypted watermark image. According to the encryption parameter, it can be known what the personal electronic data image is used for, and the data user for this purpose is also unique.
[0066] It should be understood that although Figure 2-3 The 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 2-3 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.
[0067] In a specific embodiment, the user inputs encryption parameters in the terminal, and the terminal processes the encryption parameters into discrete point information. According to the position of the discrete point in the personal electronic profile picture and the RGB value of the discrete point in the discrete point information, the discrete point is displayed at the corresponding position of the personal electronic profile picture. When the RGB value is red, a red point is displayed in the personal electronic profile picture, and when the RGB value is gray, a gray point is displayed in the personal electronic profile picture, and different encryption parameters correspond to different discrete point positions.
[0068] In one embodiment, Figure 3As shown, a watermark data processing device is provided, comprising: an encryption parameter acquisition module 210, an encoding module 220, a splitting operation module 230 and a watermark image generation module 240, wherein:
[0069] The encryption parameter acquisition module 210 is used to obtain the encryption parameters set by the user according to the personal electronic profile picture.
[0070] The user inputs encryption parameters through a terminal such as a computer or a mobile phone, and the encryption parameters include Chinese characters, English letters, Greek letters or numbers. The encryption parameters are equivalent to the password set by the user to distinguish them from the encryption parameters set by others. The particularity of the set encryption parameters makes the generated watermark different from the watermarks set by others.
[0071] The encoding module 220 is used to encode the encryption parameters to obtain encoding parameters.
[0072] The encoding may be ASCII code, and the encryption parameter is encoded as binary data, that is, the encoding parameter is binary data. Of course, the encoding may also be encoded in other ways, such as Unicode, GBK, GB2312, UTF-8, etc.
[0073] The splitting operation module 230 is used to perform a splitting operation on the encoding parameters to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic data picture and the RGB value of the discrete point.
[0074] The splitting operation is to convert the encoding parameters into discrete points.
[0075] The watermark image generation module 240 is used to generate a ciphertext watermark image on the personal electronic profile picture page according to the position of the discrete point in the personal electronic profile picture and the RGB value of the discrete point in the discrete point information.
[0076] Wherein, the discrete point information generates a ciphertext watermark image on the personal electronic profile picture page as dot matrix information or a QR code image. The ciphertext watermark image can overlap with the content of the personal electronic profile picture, or can be in a blank space of the personal electronic profile picture. When the ciphertext watermark image overlaps with the content of the personal electronic profile picture, the ciphertext watermark image is distinguished from the content in the personal electronic profile picture by the RGB value of the image. Wherein, by setting the RGB value, the saturation, brightness and contrast of the ciphertext watermark image can be set, that is, the saturation, brightness and contrast of the ciphertext watermark image are distinguished from the content of the personal electronic profile picture.
[0077] In one embodiment, the encoding module 220 is further used to obtain the encoding parameters after encoding the encryption parameters through the encryption key. The encryption key is used to encrypt the encryption parameters, and the specific encoding method can be encoded using an existing encryption algorithm. The encryption key can be determined by the data user, and the subsequent data user decrypts the encryption parameters through the encryption key to determine that the current data is provided by the correct data provider.
[0078] In one embodiment, the splitting operation module 230 includes: a judgment unit, used to judge whether the length of the coding parameter is greater than a preset value; a splitting operation unit, used to split the coding parameter to obtain discrete point information if the length of the coding parameter is greater than the preset value. The length of the encryption parameter is proportional to the length of the coding parameter. The longer the length of the encryption parameter is, the less likely it is to be copied by someone, and the more secure it is. The preset value can be set as needed. Generally, if the length of the coding parameter is greater than the preset value, it means that the encryption parameter corresponding to the coding parameter is secure.
[0079] In one embodiment, the splitting operation module 230 includes: a truncation unit, used to truncate data of a preset value length of the encoding parameter when the length of the encoding parameter is greater than a preset value; and a splitting operation unit, used to perform a splitting operation on the data of the preset value length to obtain discrete point information.
[0080] Among them, the encoding parameter is truncated with data of a preset value length, that is, the encryption parameter is selected with data of a preset value length, and the encoding parameter with the preset value length is easy to encode. After the encoding parameter has the data of the preset value length, the user who inputs the encryption parameter can be notified to select data of the preset value length from the encryption parameter, so that subsequent users can verify the encrypted watermark content of the personal electronic data picture.
[0081] In one embodiment, the watermark data processing device further includes: a scanning module for scanning the ciphertext watermark image to obtain encryption parameters; the encryption parameters are used to verify the authenticity of the personal electronic data image. The scanning module can be a terminal used by the data user, such as a mobile phone used by the data user.
[0082] In one embodiment, the scanning module includes: a discrete point information acquisition unit, used to scan the ciphertext watermark image to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic profile picture and the RGB value of the discrete point; a coding parameter calculation unit, used to calculate the coding parameter according to the position of the discrete point in the personal electronic profile picture and the RGB value of the discrete point in the discrete point information; an encryption parameter calculation unit, used to calculate the encryption parameter according to the coding parameter.
[0083] Among them, the process of scanning the ciphertext watermark image to obtain the encryption parameters is the opposite of the process of generating the ciphertext watermark image according to the encryption parameters. The ciphertext watermark image is scanned by a scanning terminal, and the ciphertext watermark image is processed to obtain discrete point information; according to the position of the discrete points in the personal electronic data image and the RGB value of the discrete points in the discrete point information, the encoding parameters are calculated by merging operation, and the calculation process of the merging operation is opposite to that of the splitting operation; and then the encryption parameters are obtained by reverse encoding according to the encoding parameters. This embodiment obtains the encryption parameters by scanning with a scanning terminal, which is convenient for users to use.
[0084] In one of the embodiments, the scanning module is further used to scan the ciphertext watermark image and obtain encryption parameters according to the input encryption key.
[0085] The specific definition of the watermark data processing device can be found in the definition of the watermark data processing method above, which will not be repeated here. Each module in the above watermark data processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0086] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a watermark data processing method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse, etc.
[0087] Those skilled in the art will understand that Figure 4The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0088] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0089] Obtain the encryption parameters set by the user based on the personal electronic profile picture;
[0090] Encoding the encryption parameter to obtain an encoding parameter;
[0091] Performing a splitting operation on the coding parameter to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic data picture and the RGB value of the discrete point;
[0092] According to the positions of the discrete points in the personal electronic profile picture and the RGB values of the discrete points in the discrete point information, a ciphertext watermark image is generated on the personal electronic profile picture page.
[0093] In one embodiment, when the processor executes the computer program, the following steps are also implemented: scanning the ciphertext watermark image to obtain encryption parameters; the encryption parameters are used to verify the authenticity of the personal electronic profile image.
[0094] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0095] Obtain the encryption parameters set by the user based on the personal electronic profile picture;
[0096] Encoding the encryption parameter to obtain an encoding parameter;
[0097] Performing a splitting operation on the coding parameter to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic data picture and the RGB value of the discrete point;
[0098] According to the positions of the discrete points in the personal electronic profile picture and the RGB values of the discrete points in the discrete point information, a ciphertext watermark image is generated on the personal electronic profile picture page.
[0099] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: scanning the ciphertext watermark image to obtain encryption parameters; the encryption parameters are used to verify the authenticity of the personal electronic profile image.
[0100] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0101] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0102] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A watermark data processing method, characterized in that: The method comprises: Obtaining encryption parameters set by the user based on the personal electronic profile picture; the encryption parameters are passwords set by the user to distinguish them from encryption parameters set by others; The encoding parameter is obtained by encrypting the encryption parameter with an encryption key; the encryption key is determined by the data user; Performing a split operation on the encoding parameter to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic data picture and the RGB value of the discrete point; Generate a ciphertext watermark image on the personal electronic profile picture page according to the position of the discrete point in the discrete point information and the RGB value of the discrete point; the ciphertext watermark image is dot matrix information, and the dot matrix information includes a scannable QR code image or a barcode image; Scan the ciphertext watermark image to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic data image and the RGB value of the discrete point; Calculate the encoding parameters according to the position of the discrete point in the personal electronic data picture and the RGB value of the discrete point in the discrete point information; The encoding parameters are decrypted by the encryption key to obtain encryption parameters; the encryption parameters are used to verify the authenticity of the personal electronic data picture.
2. The method according to claim 1, characterized in that The step of performing a splitting operation on the encoding parameter to obtain discrete point information comprises: Determine whether the length of the encoding parameter is greater than a preset value; If the length of the encoding parameter is greater than a preset value, a splitting operation is performed on the encoding parameter to obtain discrete point information.
3. The method according to claim 1, characterized in that The step of performing a splitting operation on the encoding parameter to obtain discrete point information comprises: intercepting data of a preset value length of the encoding parameter; The data of the preset length is split and operated to obtain discrete point information.
4. A watermark data processing device, characterized in that: The device comprises: The encryption parameter acquisition module is used to obtain the encryption parameters set by the user according to the personal electronic data picture; the encryption parameters are passwords set by the user to distinguish them from encryption parameters set by others; An encoding module, used to obtain encoding parameters after encrypting the encryption parameters using an encryption key; the encryption key is determined by the data user; A splitting operation module, used for performing splitting operation on the coding parameters to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic data picture and the RGB value of the discrete point; A watermark image generation module, used to generate a ciphertext watermark image on the personal electronic profile picture page according to the position of the discrete point in the discrete point information and the RGB value of the discrete point; the ciphertext watermark image is dot matrix information, and the dot matrix information includes a scannable QR code image or a barcode image; A scanning module is used to scan the ciphertext watermark image to obtain discrete point information; the discrete point information includes the position of the discrete point in the personal electronic data picture and the RGB value of the discrete point; according to the position of the discrete point in the personal electronic data picture and the RGB value of the discrete point in the discrete point information, a coding parameter is calculated; the coding parameter is decrypted by the encryption key to obtain an encrypted parameter, and the encrypted parameter is used to verify the authenticity of the personal electronic data picture.
5. The device according to claim 4, characterized in that The splitting operation module is also used to: determine whether the length of the coding parameter is greater than a preset value; if the length of the coding parameter is greater than the preset value, perform a splitting operation on the coding parameter to obtain discrete point information.
6. The device according to claim 4, characterized in that The splitting operation module is also used to: intercept data of a preset value length of the encoding parameter; and perform a splitting operation on the data of the preset value length to obtain discrete point information.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Method and system for generating watermark according to graphic, terminal and medium
CN108648132A
Method and device for generating and extracting invisible digital watermarks
CN110097488A