Processing system and method based on image invisible watermark

By adjusting the B color value using the parity relationship of RGB color values ​​in the image, the watermark is invisible in the image, and the problems of watermark occlusion and color damage in the prior art are solved, and a high-quality watermark invisibility effect is achieved.

CN119399013APending Publication Date: 2025-02-07KORLA HUIJU TECH INFORMATION SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411370361.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The prior art When adding watermarks to images, the target image is easily blocked, resulting in visual interference and color damage.

Method used

By converting the watermark image in color, a new watermark image is obtained and drawn in a preset way in the target image. The B color value is adjusted using the parity relationship of the RGB color value to achieve invisibility of the watermark.

Benefits of technology

The invisibility of watermarks is achieved, which avoids the damage to image quality and is suitable for scenes with high requirements for image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119399013A_ABST
    Figure CN119399013A_ABST
Patent Text Reader

Abstract

The invention discloses a processing system and method based on an image invisible watermark. The processing system comprises a conversion module and an invisible watermark adding module. The conversion module is used for performing color conversion on the watermark image to obtain a new watermark image; the invisible watermark adding module is used for acquiring a target image in which a watermark needs to be embedded, and drawing a temporary image with the same size as the target image; drawing the new watermark image into a temporary image in a preset mode; reading the RGB color value of each pixel in the target image, comparing the sum of the color values of each pixel with the color value of the same position in the temporary image, and adjusting the corresponding B color value in the three primary colors of the target image based on a preset value attribute relationship; traversing all pixel points, comparing and adjusting to obtain a result image added with the invisible watermark; the method has the beneficial effect that the defect that the color of a target image is greatly destructed in the existing solution is overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of invisible watermark technology, and in particular to a processing system and method based on image invisible watermark. Background Art

[0002] At present, there are a lot of applications involving adding watermarks to images in scenarios such as preventing theft, copyright and business promotion. However, the existing solutions have the problem of occlusion, which will interfere with the viewer's visual viewing to a certain extent and have the defect of being highly destructive to the color of the target image. Summary of the invention

[0003] In order to overcome the deficiencies in the prior art, the present invention aims to provide a processing system and method based on image invisible watermark.

[0004] The technical solution provided by the present invention is:

[0005] In a first aspect, a processing system based on an image invisible watermark, the processing system comprises a conversion module and an invisible watermark adding module;

[0006] The conversion module is used to perform color conversion on the watermark image to obtain a new watermark image;

[0007] The invisible watermark adding module is used for:

[0008] Acquire a target image to be embedded with a watermark, and draw a temporary image of the same size as the target image; then draw the new watermark image into the temporary image in a preset manner;

[0009] Reading the RGB color value of each pixel in the target image, comparing the sum of the color values ​​of each pixel with the color value of the same position in the temporary image, and adjusting the corresponding B color value of the three primary colors of the target image based on a preset numerical attribute relationship to achieve watermark invisibility; wherein the preset numerical attribute relationship is an odd-even relationship;

[0010] After traversing all the pixels for comparison and adjustment, the resulting image with the invisible watermark added can be obtained.

[0011] Preferably, the step of performing color conversion on the watermark image to obtain a new watermark image specifically includes:

[0012] The watermark image is converted into black and white, and the obtained black and white watermark image is used as the new watermark image.

[0013] Preferably, the preset manner is to draw into the temporary image in a tiled form.

[0014] Preferably, adjusting the B color value corresponding to the three primary colors of the target image based on a preset numerical attribute relationship specifically includes:

[0015] If the sum of the color values ​​of the corresponding pixels and the color value of the same position in the temporary image are both odd or even, the corresponding B color value of the three primary colors of the target image is not adjusted;

[0016] If the sum of the color values ​​of the corresponding pixels and the color value at the same position in the temporary image are not both odd or even, the corresponding B color value in the three primary colors of the target image is adjusted.

[0017] Preferably, adjusting the corresponding B color value of the three primary colors of the target image includes adding one or subtracting one from the B color value.

[0018] Preferably, the processing system further comprises an invisible watermark parsing module, and the invisible watermark parsing module is used to:

[0019] Creating an intermediate image of the same size as the result image; wherein the result image is the image after adding the invisible watermark;

[0020] Reading the RGB value of each pixel of the result image line by line;

[0021] Divide the sum of the color values ​​of the three colors RGB by two and take the remainder, and determine whether the remainder is one or zero. If it is zero, the pixel at the same position in the intermediate image is painted white, and if it is one, it is painted black;

[0022] After traversing all pixels and drawing them, the watermark image can be displayed in the intermediate image.

[0023] In a second aspect, the present invention further provides a processing method based on an image invisible watermark, which is applied to the processing system based on an image invisible watermark described in the first aspect, and the processing method comprises:

[0024] Performing color conversion on the watermark image to obtain a new watermark image;

[0025] Acquire a target image to be embedded with a watermark, and draw a temporary image of the same size as the target image; then draw the new watermark image into the temporary image in a preset manner;

[0026] Reading the RGB color value of each pixel in the target image, comparing the sum of the color values ​​of each pixel with the color value of the same position in the temporary image, and adjusting the corresponding B color value of the three primary colors of the target image based on a preset numerical attribute relationship to achieve watermark invisibility; wherein the preset numerical attribute relationship is an odd-even relationship;

[0027] After traversing all the pixels for comparison and adjustment, the resulting image with the invisible watermark added can be obtained.

[0028] Through the above technical solution, the present invention can bring the following beneficial effects:

[0029] The present invention reads the RGB color value of each pixel in the target image, compares the sum of the color values ​​of each pixel with the color value of the same position in the temporary image, and uses the odd-even relationship between the two to adjust the blue color value to which the human eye is least sensitive, so as to implant the watermark image into the target image and realize watermark invisibility. The present invention is suitable for scenes with high requirements on image quality. The present invention overcomes the defects of the current solution that there is occlusion, which will cause a certain degree of interference to the viewer's visual viewing and is highly destructive to the color of the target image. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A structural block diagram of a processing system based on image invisible watermarking provided by an embodiment of the present invention;

[0031] Figure 2 A processing flow chart of adding invisible watermark in a processing system based on image invisible watermark provided by an embodiment of the present invention;

[0032] Figure 3 A processing flow chart of invisible watermark analysis in an image invisible watermark processing system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0033] The specific embodiments of the present invention will be described in detail below. It should be noted that the embodiments described herein are only for illustration and are not intended to limit the present invention. In the following description, a large number of specific details are set forth in order to provide a thorough understanding of the present invention. However, it is apparent to those of ordinary skill in the art that these specific details need not be adopted to implement the present invention.

[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0035] In the present application, the terms "upper", "lower", "left", "right", "front", "back", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings. These terms are mainly used to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to have a specific orientation, or to be constructed and operated in a specific orientation.

[0036] In addition, some of the above terms may be used to express other meanings in addition to indicating orientation or positional relationship. For example, the term "on" may also be used to express a certain dependency or connection relationship in some cases. For those of ordinary skill in the art, the specific meanings of these terms in this application can be understood according to specific circumstances.

[0037] Throughout the specification, references to "one embodiment," "an embodiment," "an example," or "an example" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment or example is included in at least one embodiment of the present invention. Therefore, the phrases "in one embodiment," "in an embodiment," "an example," or "an example" appearing in various places throughout the specification do not necessarily all refer to the same embodiment or example. Furthermore, particular features, structures, or characteristics may be combined in one or more embodiments or examples in any appropriate combinations and / or subcombinations.

[0038] It should be noted that, unless otherwise specified, the technical terms in this embodiment have the common meanings understood in the relevant technical field.

[0039] like Figure 1 , Figure 2 As shown, an embodiment of the present invention provides a processing system based on image invisible watermark, and the processing system includes a conversion module and an invisible watermark adding module;

[0040] The conversion module is used to perform color conversion on the watermark image to obtain a new watermark image;

[0041] The invisible watermark adding module is used for:

[0042] Acquire a target image to be embedded with a watermark, and draw a temporary image of the same size as the target image; then draw the new watermark image into the temporary image in a preset manner;

[0043] Reading the RGB color value of each pixel in the target image, comparing the sum of the color values ​​of each pixel with the color value of the same position in the temporary image, and adjusting the corresponding B color value of the three primary colors of the target image based on a preset numerical attribute relationship to achieve watermark invisibility; wherein the preset numerical attribute relationship is an odd-even relationship;

[0044] After traversing all the pixels for comparison and adjustment, the resulting image with the invisible watermark added can be obtained.

[0045] When applied, the watermark image can be preset; the target image can be uploaded by a user or selected from a corresponding database; the same size means the same dimension;

[0046] The processing system can be deployed on the front end or the server end, and there is no limitation here.

[0047] In this embodiment, the color conversion of the watermark image to obtain a new watermark image specifically includes:

[0048] Convert the watermark image into black and white, and use the obtained black and white watermark image as the new watermark image; wherein black represents a value of 1, and white represents a value of 0;

[0049] In this embodiment, the preset method is to draw into the temporary image in a tiled manner.

[0050] When applied, adjusting the B color value corresponding to the three primary colors of the target image based on the preset numerical attribute relationship specifically includes:

[0051] If the sum of the color values ​​of the corresponding pixels and the color value of the same position in the temporary image are both odd or even, the corresponding B color value of the three primary colors of the target image is not adjusted;

[0052] If the sum of the color values ​​of the corresponding pixels and the color value at the same position in the temporary image are not both odd or even, the corresponding B color value in the three primary colors of the target image is adjusted.

[0053] Further, the adjusting of the B color value corresponding to the three primary colors of the target image includes adding one or subtracting one to the B color value; adding one or subtracting one makes both of them odd or even; wherein, subtracting one is to consider that when the B color value corresponds to 255, it cannot be added by one, and can be adjusted by subtracting one;

[0054] Finally, after all pixels in the target image are compared and adjusted, a result image with a watermark added can be obtained.

[0055] The above scheme reads the RGB color value of each pixel in the target image, compares the sum of the color values ​​of each pixel with the color value of the same position in the temporary image, and uses the odd-even relationship between the two to adjust the blue color value to which the human eye is least sensitive, so as to implant the watermark image into the target image and achieve watermark invisibility, which is suitable for scenes with high requirements on image quality. It overcomes the defects of the current solution that there is occlusion, which will cause a certain degree of interference to the viewer's visual viewing and is highly destructive to the color of the target image.

[0056] Further, refer to Figure 3 On the basis of the above technical solution, in order to realize the recognition of invisible watermark, the processing system further includes an invisible watermark parsing module, and the invisible watermark parsing module is used to:

[0057] Creating an intermediate image of the same size as the result image; wherein the result image is the image after adding the invisible watermark;

[0058] Reading the RGB value of each pixel of the result image line by line;

[0059] Divide the sum of the color values ​​of the three colors RGB by two and take the remainder, and determine whether the remainder is one or zero. If it is zero, the pixel at the same position in the intermediate image is painted white, and if it is one, it is painted black;

[0060] After traversing all pixels and drawing them, the watermark image can be displayed in the intermediate image.

[0061] Based on the same inventive concept, an embodiment of the present invention further provides a processing method based on an image invisible watermark, which is applied to the processing system based on an image invisible watermark as described above. The processing method includes:

[0062] Performing color conversion on the watermark image to obtain a new watermark image;

[0063] Acquire a target image to be embedded with a watermark, and draw a temporary image of the same size as the target image; then draw the new watermark image into the temporary image in a preset manner;

[0064] Reading the RGB color value of each pixel in the target image, comparing the sum of the color values ​​of each pixel with the color value of the same position in the temporary image, and adjusting the corresponding B color value of the three primary colors of the target image based on a preset numerical attribute relationship to achieve watermark invisibility; wherein the preset numerical attribute relationship is an odd-even relationship;

[0065] After traversing all the pixels for comparison and adjustment, the resulting image with the invisible watermark added can be obtained.

[0066] The step of converting the watermark image into a new watermark image specifically includes:

[0067] The watermark image is converted into black and white, and the obtained black and white watermark image is used as the new watermark image.

[0068] Furthermore, adjusting the B color value corresponding to the three primary colors of the target image based on the preset numerical attribute relationship specifically includes:

[0069] If the sum of the color values ​​of the corresponding pixels and the color value of the same position in the temporary image are both odd or even, the corresponding B color value of the three primary colors of the target image is not adjusted;

[0070] If the sum of the color values ​​of the corresponding pixels and the color value at the same position in the temporary image are not both odd or even, the corresponding B color value in the three primary colors of the target image is adjusted.

[0071] In this embodiment, adjusting the corresponding B color value of the three primary colors of the target image includes adding one or subtracting one from the B color value.

[0072] In another embodiment, the processing method further comprises:

[0073] Creating an intermediate image of the same size as the result image; wherein the result image is the image after adding the invisible watermark;

[0074] Reading the RGB value of each pixel of the result image line by line;

[0075] Divide the sum of the color values ​​of the three colors RGB by two and take the remainder, and determine whether the remainder is one or zero. If it is zero, the pixel at the same position in the intermediate image is painted white, and if it is one, it is painted black;

[0076] After traversing all pixels and drawing them, the watermark image can be displayed in the intermediate image;

[0077] It should be noted that for a more specific description of the workflow of the method embodiment, please refer to the aforementioned system embodiment part, which will not be repeated here.

[0078] In the several embodiments provided in the present application, it should be understood that the disclosed processing system based on image invisible watermark can be implemented in other ways. For example, the embodiments described above are only schematic. For example, the division of the modules can be divided in other ways in actual implementation, such as multiple units or components can be combined or integrated into another system or device, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.

[0079] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A processing system based on image invisible watermark, characterized in that: The processing system includes a conversion module and an invisible watermark adding module; The conversion module is used to perform color conversion on the watermark image to obtain a new watermark image; The invisible watermark adding module is used for: Acquire a target image to be embedded with a watermark, and draw a temporary image of the same size as the target image; then draw the new watermark image into the temporary image in a preset manner; Reading the RGB color value of each pixel in the target image, comparing the sum of the color values ​​of each pixel with the color value of the same position in the temporary image, and adjusting the corresponding B color value of the three primary colors of the target image based on a preset numerical attribute relationship to achieve watermark invisibility; wherein the preset numerical attribute relationship is an odd-even relationship; After traversing all the pixels for comparison and adjustment, the resulting image with the invisible watermark added can be obtained.

2. According to claim 1, a processing system based on invisible watermarking of an image is characterized in that: The color conversion of the watermark image to obtain a new watermark image specifically includes: The watermark image is converted into black and white, and the obtained black and white watermark image is used as the new watermark image.

3. The image invisible watermark processing system according to claim 2 is characterized in that: The preset method is to draw into the temporary image in a tiled form.

4. The image invisible watermark processing system according to claim 3 is characterized in that: The adjusting the B color value corresponding to the three primary colors of the target image based on the preset numerical attribute relationship specifically includes: If the sum of the color values ​​of the corresponding pixels and the color value of the same position in the temporary image are both odd or even, the corresponding B color value of the three primary colors of the target image is not adjusted; If the sum of the color values ​​of the corresponding pixels and the color value of the same position in the temporary image are not both odd or even, the corresponding B color value of the three primary colors of the target image is adjusted.

5. The image invisible watermark processing system according to claim 4 is characterized in that: The adjusting the corresponding B color value among the three primary colors of the target image includes adding one or subtracting one from the B color value.

6. A processing system based on image invisible watermark according to any one of claims 1 to 5, characterized in that: The processing system further includes an invisible watermark parsing module, which is used to: Creating an intermediate image of the same size as the result image; wherein the result image is the image after adding the invisible watermark; Reading the RGB value of each pixel of the result image line by line; Divide the sum of the color values ​​of the three colors RGB by two and take the remainder, and determine whether the remainder is one or zero. If it is zero, the pixel at the same position in the intermediate image is painted white, and if it is one, it is painted black; After traversing all pixels and drawing them, the watermark image can be displayed in the intermediate image.

7. A processing method based on image invisible watermark, characterized in that: The processing system based on invisible watermark of an image as described in claim 6, wherein the processing method comprises: Performing color conversion on the watermark image to obtain a new watermark image; Acquire a target image to be embedded with a watermark, and draw a temporary image of the same size as the target image; then draw the new watermark image into the temporary image in a preset manner; Reading the RGB color value of each pixel in the target image, comparing the sum of the color values ​​of each pixel with the color value of the same position in the temporary image, and adjusting the corresponding B color value of the three primary colors of the target image based on a preset numerical attribute relationship to achieve watermark invisibility; wherein the preset numerical attribute relationship is an odd-even relationship; After traversing all the pixels for comparison and adjustment, the resulting image with the invisible watermark added can be obtained.

8. The processing method based on image invisible watermark according to claim 7 is characterized in that: The adjusting the B color value corresponding to the three primary colors of the target image based on the preset numerical attribute relationship specifically includes: If the sum of the color values ​​of the corresponding pixels and the color value of the same position in the temporary image are both odd or even, the corresponding B color value of the three primary colors of the target image is not adjusted; If the sum of the color values ​​of the corresponding pixels and the color value of the same position in the temporary image are not both odd or even, the corresponding B color value of the three primary colors of the target image is adjusted.

9. The processing method based on image invisible watermark according to claim 8 is characterized in that: The adjusting the corresponding B color value among the three primary colors of the target image includes adding one or subtracting one from the B color value.

10. The processing method based on image invisible watermark according to claim 7 is characterized in that: The processing method also includes: Creating an intermediate image of the same size as the result image; wherein the result image is the image after adding the invisible watermark; Reading the RGB value of each pixel of the result image line by line; Divide the sum of the color values ​​of the three colors RGB by two and take the remainder, and determine whether the remainder is one or zero. If it is zero, the pixel at the same position in the intermediate image is painted white, and if it is one, it is painted black; After traversing all pixels and drawing them, the watermark image can be displayed in the intermediate image.