Spatial Domain Digital Watermark Processing Method Based on LBS

By setting the watermarking logo position in the LBS airspace digital watermark and extraction and re -added watermark information during image editing, the problem of being easily lost in the editing operation of the existing technology in the existing technology, and improving the stability and reliability of the watermark.

CN114219693BActive Publication Date: 2025-01-24JIANGSU TAXSOFT SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111525045.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-14
Publication Date
2025-01-24
Estimated Expiration
2041-12-14

AI Technical Summary

Technical Problem

The existing LBS airspace digital watermarks have poor stability in image editing operations and cannot effectively resist the loss of watermark information caused by editing operations.

Method used

By setting the watermark flag bit in the step of adding watermark information, and extracting the watermark information based on the flag bit during image editing, the extracted watermark information is re-added to the image after editing to form a new watermark image, ensuring the integrity of the watermark information. .

Benefits of technology

Improve the stability and reliability of digital watermarks, avoid the loss of watermark information in the image editing process, and ensure that the watermark information can be completely retained in the new watermark image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114219693B_ABST
    Figure CN114219693B_ABST
Patent Text Reader

Abstract

The present invention relates to a spatial domain digital watermark processing method based on LBS. It includes a watermark adding execution step, wherein the watermark adding execution step includes: step 1, determining the number of pixels contained in the basic image and the length value of the watermark information to be added, when the number of pixels in the basic image is less than the length of the watermark information to be added, jump to step 3, otherwise, jump to step 2; step 2, according to the pixels contained in the basic image and the length of the watermark information to be added, determine the insertion method of the current watermark information in the basic image, and according to the determined watermark adding method, add the current watermark information to the basic image based on the LBS method to form the required watermark image; step 3, the watermark adding execution ends. The present invention can effectively realize the processing of digital watermarks and improve the stability and reliability of digital watermarks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a digital watermark processing method, in particular to a spatial domain digital watermark processing method based on LBS. Background Art

[0002] With the increasing popularity of computer applications and the rapid development of network technology, multimedia information such as audio and video can be transmitted and played in digital form, making large-scale unauthorized copying possible. This will damage the development of publishing industries such as music, movies, books and software. In order to protect intellectual property rights, a very meaningful research direction has been triggered: information hiding; therefore, the technology of digital watermarking was created.

[0003] Ordinary watermarks are two overlapping images. The watermark will cover the image, making the image unsightly and the watermark information is easily discovered. LBS spatial digital watermarks provide a hidden image watermarking method, which allows the watermark to be hidden in the image without destroying the original image. However, LBS spatial digital watermarks also have shortcomings such as poor stability and cannot resist operations such as image editing. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a spatial domain digital watermark processing method based on LBS, which can effectively realize the processing of digital watermarks and improve the stability and reliability of digital watermarks.

[0005] According to the technical solution provided by the present invention, a spatial domain digital watermark processing method based on LBS, the spatial domain digital watermark processing method includes a watermark adding execution step, wherein the watermark adding execution step includes:

[0006] Step 1: Provide a base image to be watermarked and watermark information to be added, determine the number of pixels contained in the base image and the length of the watermark information to be added, and when the number of pixels in the base image is less than the length of the watermark information to be added, jump to step 3; otherwise, jump to step 2;

[0007] Step 2: Determine the insertion method of the current watermark information in the basic image according to the pixels contained in the basic image and the length of the watermark information to be added, and add the current watermark information to the basic image in an LBS-based manner according to the determined watermark adding method to form the required watermark image; wherein the watermark information to be added includes at least a watermark flag and watermark encoding information;

[0008] Step 3: The watermark adding process is completed.

[0009] The method further includes a step of editing the watermark image, wherein the step of editing the watermark image includes:

[0010] Step a, when editing the formed watermark image, determine the editing method and editing position of the watermark image, when the determined editing method and editing position do not contain watermark information, jump to step d after editing the watermark image, otherwise jump to step b;

[0011] Step b, extracting and saving the watermark information in the watermark image, and after extracting the watermark information, performing the required editing on the watermark image to obtain an edited image;

[0012] Step c, performing a watermark adding step on the edited image and the extracted and saved watermark information to form a new watermark image;

[0013] Step d: the editing process of the watermark image is completed.

[0014] The editing of the watermark image includes cropping, scaling and / or compression.

[0015] In step 2, when the watermark information is inserted into the base image, the following steps are specifically included:

[0016] Step 2.1, parsing the watermark information to obtain the watermark flag, watermark coding information and the adding position of the watermark coding information in the watermark information;

[0017] Step 2.2, according to the watermark flag bit, watermark coding information and the adding position of the watermark coding information in the watermark information determined above, clear the least significant bit of the pixel at the corresponding position in the basic image;

[0018] Step 2.3: Add the watermark flag and the watermark coding information to the least significant bit of the pixel at the corresponding position in the basic image according to the adding position of the watermark coding information to obtain the watermark image.

[0019] The watermark flag includes a watermark start flag and a watermark end flag, and the watermark coding information includes encrypted coding information.

[0020] In step 2, when the watermark information is inserted into the base image, the following steps are specifically included:

[0021] Step 2-1, parsing the watermark information to obtain the watermark flag and watermark coding information in the watermark information;

[0022] Step 2-2, according to the watermark flag bit and watermark coding information in the watermark information determined above, clear the least significant bits of all pixels in the base image;

[0023] Step 2-3: directly add the watermark flag and watermark coding information to the least significant bit of the pixel at the corresponding position in the base image, until the least significant bit of all pixels in the base image is filled with the watermark flag and watermark coding information.

[0024] The advantages of the present invention are as follows: by setting a watermark flag in the watermark information adding step, the watermark information can be effectively extracted according to the watermark flag when the watermark image is edited; after the watermark image is edited, the extracted watermark information is added to the edited image to form a new watermark image, and the watermark information can be completely retained in the new watermark image to avoid the loss of the watermark information. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0026] The present invention will be further described below in conjunction with specific drawings and embodiments.

[0027] like Figure 1 As shown: In order to effectively realize the processing of digital watermarks and improve the stability and reliability of digital watermarks, the processing method of spatial digital watermarks of the present invention includes a watermark adding execution step, wherein the watermark adding execution step includes:

[0028] Step 1: Provide a base image to be watermarked and watermark information to be added, determine the number of pixels contained in the base image and the length of the watermark information to be added, and when the number of pixels in the base image is less than the length of the watermark information to be added, jump to step 3; otherwise, jump to step 2;

[0029] Specifically, the base image is the image to be watermarked, and the specific conditions of the base image can be selected according to actual needs. The watermark information to be added is the information added to the base image, and the specific conditions of the base image and the watermark information to be added can be selected according to needs, which are well known to those skilled in the art and will not be described in detail here.

[0030] Since LBS spatial domain digital watermarking is used, the number of pixels contained in the base image and the length of the watermark information to be added need to be determined during the specific implementation. Specifically, when the number of pixels in the base image is less than the length of the watermark information to be added, the watermark information cannot be completely added to the base image, and it is necessary to jump to step 3. Otherwise, jump to step 2 to continue execution.

[0031] In the embodiment of the present invention, the number of pixels contained in the basic image and the length value of the watermark information can be determined by commonly used technical means in the technical field, which are well known to those skilled in the art and will not be described in detail here.

[0032] Step 2: Determine the insertion method of the current watermark information in the basic image according to the pixels contained in the basic image and the length of the watermark information to be added, and add the current watermark information to the basic image in an LBS-based manner according to the determined watermark adding method to form the required watermark image; wherein the watermark information to be added includes at least a watermark flag and watermark encoding information;

[0033] Specifically, when the length of the watermark information to be added is less than the number of pixels contained in the base image, a complete watermark information can be added to the base image. In specific implementation, the insertion method of the current watermark information in the base image can be determined according to the number of pixels contained in the base image, and the current watermark information is added to the base image based on the LBS method according to the determined watermark adding method to form the required watermark image; wherein the watermark information to be added includes at least a watermark flag and watermark encoding information. Of course, in specific implementation, if the base pixel length does not support the length of the watermark information to be added, that is, the watermark information cannot be effectively contained, the user is prompted that the digital watermark is not supported.

[0034] The following is a detailed description of the method of adding watermark information to the base image.

[0035] In the embodiment of the present invention, when the watermark information is inserted into the base image, the following steps are specifically included:

[0036] Step 2.1, parsing the watermark information to obtain the watermark flag, watermark coding information and the adding position of the watermark coding information in the watermark information;

[0037] In the embodiment of the present invention, the watermark information can be parsed by using the commonly used technical means in the technical field, so as to obtain the watermark flag, the watermark coding information and the adding position of the watermark coding information, wherein the watermark flag includes the watermark start flag and the watermark end flag, and the watermark coding information includes the encrypted coding information. Generally, the watermark coding information can be the encrypted coding information or the unencrypted coding information. Specifically, whether the coding information needs to be encrypted can be selected according to the actual situation, and the encryption processing method of the coding information can be selected according to the actual needs, which is well known to the personnel in the technical field and will not be described here.

[0038] When the watermark flag includes a watermark start flag and a watermark end flag, the watermark coding information added to the basic image can be determined by the watermark start flag and the watermark end flag. The specific conditions of the watermark start flag and the watermark end flag can be selected and determined according to actual needs, which will not be described in detail here. The location where the watermark coding information is added can be specifically determined according to the conditions of the basic image and the requirements for adding the watermark information, which is well known to those skilled in the art and will not be described in detail here.

[0039] Step 2.2, according to the watermark flag bit, watermark coding information and the adding position of the watermark coding information in the watermark information determined above, clear the least significant bit of the pixel at the corresponding position in the basic image;

[0040] Specifically, the least significant bits of the pixels at corresponding positions in the basic image are cleared to zero using commonly used technical means in the technical field, in preparation for inserting the watermark flag bit and watermark coding information in the watermark information.

[0041] Step 2.3: Add the watermark flag and the watermark coding information to the least significant bit of the pixel at the corresponding position in the basic image according to the adding position of the watermark coding information to obtain the watermark image.

[0042] In the embodiment of the present invention, the watermark flag and the watermark coding information are added to the least significant bit of the pixel at the corresponding position in the basic image according to the adding position of the watermark coding information to obtain the watermark image, that is, a complete watermark information is inserted into the basic image, and the position where the watermark information is not inserted does not need to be processed, and the position where the watermark information is inserted, because it is only located at the least significant bit of the corresponding pixel, will not affect the quality of the obtained watermark image. The specific details are well known to those skilled in the art and will not be repeated here.

[0043] Furthermore, when the watermark information is inserted into the base image, another specific form may be adopted, which specifically includes the following steps:

[0044] Step 2-1, parsing the watermark information to obtain the watermark flag and watermark coding information in the watermark information;

[0045] In specific implementation, the watermark information is parsed to obtain the watermark flag and watermark encoding information. The specific parsing method and process can refer to the above description and will not be repeated here.

[0046] Step 2-2, according to the watermark flag bit and watermark coding information in the watermark information determined above, clear the least significant bits of all pixels in the base image;

[0047] In specific implementation, the least significant bits of all pixels in the base image may be cleared to zero. The specific process and method of clearing the least significant bits of pixels to zero may refer to the above description and will not be repeated here.

[0048] Step 2-3: directly add the watermark flag and watermark coding information to the least significant bit of the pixel at the corresponding position in the base image, until the least significant bit of all pixels in the base image is filled with the watermark flag and watermark coding information.

[0049] Specifically, after the above steps, at least one watermark information is added to the basic image.

[0050] Step 3: The watermark adding process is completed.

[0051] Specifically, after the above steps, LBS-based spatial domain digital watermarking can be implemented.

[0052] Of course, in the specific implementation, there is still a need to edit the watermark image. When editing the watermark image obtained above, the watermark information will inevitably be lost, that is, after the watermark image is edited, the purpose of adding the watermark information cannot be achieved.

[0053] When editing the watermark image, in order to ensure the reliability of the watermark information, the present invention also includes a step of editing the watermark image, wherein the step of editing the watermark image includes:

[0054] Step a, when editing the formed watermark image, determine the editing method and editing position of the watermark image, when the determined editing method and editing position do not contain watermark information, jump to step d, otherwise, jump to step b;

[0055] Specifically, the editing of the watermark image includes cropping, scaling and / or compression. The specific method of editing the watermark image can be determined according to actual needs, which is well known to those skilled in the art and will not be described in detail here. Due to the different editing methods and editing positions of the watermark image, different editing methods and editing positions have different effects on the least significant bits of the pixels in the image. When the least significant bits of the pixels in the image are not affected, or the least significant bits of the pixels at the position to be edited do not contain any watermark information, after the watermark image is edited, the process jumps to step d.

[0056] Step b, extracting and saving the watermark information in the watermark image, and after extracting the watermark information, performing the required editing on the watermark image to obtain an edited image;

[0057] In specific implementation, according to the above watermark information adding process, the watermark information can be extracted in the same way, such as detecting the information in the least significant bit of the watermark image and detecting the watermark flag to determine the watermark information. After the watermark information is extracted, the watermark image can be edited as required to obtain the edited image.

[0058] Step c, performing a watermark adding step on the edited image and the extracted and saved watermark information to form a new watermark image;

[0059] Specifically, when the edited image is obtained, the watermark information obtained in the above steps can be added to the edited image again according to the above watermark adding steps to obtain a new watermark image.

[0060] Step d: the editing process of the watermark image is completed.

[0061] In specific implementation, by setting the watermark flag in the watermark information adding step, the watermark information can be effectively extracted according to the watermark flag when the watermark image is edited; after the watermark image is edited, the extracted watermark information is added to the edited image to form a new watermark image, and the watermark information can be completely retained in the new watermark image to avoid the loss of watermark information.

[0062] In the specific implementation, in order to improve the reliability of the watermark information, the watermark information can also be encrypted as required to avoid the extraction and editing of the watermark information, thereby improving the reliability of the watermark information. The specific encryption method of the watermark information can be selected as needed, and a commonly used encryption method can be used. The specific encryption method and process are not described in detail here. Of course, after encryption, when the watermark information needs to be extracted, it needs to be decrypted first. Decryption is a process corresponding to encryption, which is related to the encryption method. The specific decryption method is consistent with the existing one, which is well known to those skilled in the art and is not described in detail here.

Claims

1. A spatial domain digital watermark processing method based on LBS, characterized in that: The method for processing spatial domain digital watermarks includes a watermark adding execution step, wherein the watermark adding execution step includes: Step 1: Provide a base image to be watermarked and watermark information to be added, determine the number of pixels contained in the base image and the length of the watermark information to be added, and when the number of pixels in the base image is less than the length of the watermark information to be added, jump to step 3; otherwise, jump to step 2; Step 2: Determine the insertion method of the current watermark information in the basic image according to the pixels contained in the basic image and the length of the watermark information to be added, and add the current watermark information to the basic image in an LBS-based manner according to the determined watermark adding method to form the required watermark image; wherein the watermark information to be added includes at least a watermark flag and watermark encoding information; When the length of the watermark information to be added is less than the number of pixels contained in the base image, a complete watermark information is added to the base image; In step 2, when the watermark information is inserted into the base image, the following steps are specifically included: Step 2.1, parsing the watermark information to obtain the watermark flag, watermark coding information and the adding position of the watermark coding information in the watermark information; Step 2.2, according to the watermark flag bit, watermark coding information and the adding position of the watermark coding information in the watermark information determined above, clear the least significant bit of the pixel at the corresponding position in the basic image; Step 2.3, adding the watermark flag bit and the watermark coding information to the least significant bit of the pixel at the corresponding position in the basic image according to the adding position of the watermark coding information, so as to obtain a watermark image; Step 3: The watermark adding process is completed.

2. The LBS-based spatial domain digital watermark processing method according to claim 1 is characterized in that: The method further includes a step of editing the watermark image, wherein the step of editing the watermark image includes: Step a, when editing the formed watermark image, determine the editing method and editing position of the watermark image, when the determined editing method and editing position do not contain watermark information, jump to step d after editing the watermark image, otherwise jump to step b; Step b, extracting and saving the watermark information in the watermark image, and after extracting the watermark information, performing the required editing on the watermark image to obtain an edited image; Step c, performing a watermark adding step on the edited image and the extracted and saved watermark information to form a new watermark image; Step d: the editing process of the watermark image is completed.

3. The LBS-based spatial domain digital watermark processing method according to claim 2 is characterized in that: The editing of the watermark image includes cropping, scaling and / or compression.

4. The LBS-based spatial domain digital watermark processing method according to claim 1 is characterized in that: The watermark flag includes a watermark start flag and a watermark end flag, and the watermark coding information includes encrypted coding information.

5. A spatial domain digital watermark processing method based on LBS, characterized in that: The method for processing spatial domain digital watermarks includes a watermark adding execution step, wherein the watermark adding execution step includes: Step 1: Provide a base image to be watermarked and watermark information to be added, determine the number of pixels contained in the base image and the length of the watermark information to be added, and when the number of pixels in the base image is less than the length of the watermark information to be added, jump to step 3; otherwise, jump to step 2; Step 2: Determine the insertion method of the current watermark information in the basic image according to the pixels contained in the basic image and the length of the watermark information to be added, and add the current watermark information to the basic image in an LBS-based manner according to the determined watermark adding method to form the required watermark image; wherein the watermark information to be added includes at least a watermark flag and watermark encoding information; When the length of the watermark information to be added is less than the number of pixels contained in the base image, a complete watermark information is added to the base image; In step 2, when the watermark information is inserted into the base image, the following steps are specifically included: Step 2-1, parsing the watermark information to obtain the watermark flag and watermark coding information in the watermark information; Step 2-2, according to the watermark flag bit and watermark coding information in the watermark information determined above, clear the least significant bits of all pixels in the base image; Step 2-3, directly adding the watermark flag and the watermark coding information to the least significant bit of the pixel at the corresponding position in the base image, until the least significant bit of all pixels in the base image is filled with the watermark flag and the watermark coding information; Step 3: The watermark adding process is completed.

Citation Information

Patent Citations

  • Watermark processing method, information display method and related devices

    CN111105337A

  • Blind watermark implantation method and device, blind watermark detection method and device, equipment and storage medium

    CN111932432A