CN117240975A - Watermark loading method, device, equipment and readable storage medium - Google Patents
Watermark loading method, device, equipment and readable storage medium Download PDFInfo
- Publication number
- CN117240975A CN117240975A CN202311198502.5A CN202311198502A CN117240975A CN 117240975 A CN117240975 A CN 117240975A CN 202311198502 A CN202311198502 A CN 202311198502A CN 117240975 A CN117240975 A CN 117240975A
- Authority
- CN
- China
- Prior art keywords
- sub
- picture
- pixel value
- pictures
- preset number
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000011068 loading method Methods 0.000 title claims abstract description 30
- 238000003860 storage Methods 0.000 title claims abstract description 11
- 238000000034 method Methods 0.000 claims abstract description 28
- 238000006243 chemical reaction Methods 0.000 claims description 16
- 230000011218 segmentation Effects 0.000 claims description 9
- 238000005520 cutting process Methods 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 6
- 230000009471 action Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Landscapes
- Editing Of Facsimile Originals (AREA)
Abstract
The invention relates to a watermark loading method, a device, equipment and a readable storage medium, which can be applied to the field of network security or finance, wherein pictures to be sent can be firstly segmented, and then a preset number of sub-pictures are selected from the segmented pictures to serve as an adding area of watermark information. Converting the character string information of the current picture sender into a corresponding pixel value sequence, and sequentially setting the obtained pixel values of the preset area of each sub-picture in the second preset number of sub-pictures as the pixel values in the pixel value sequence. And further obtaining the watermark picture added with the user information. The method and the device have the advantages that the watermark is added into the picture at a small picture distortion cost, once leakage occurs in the picture sending process, the information of the picture sender can be obtained by extracting the watermark information in the picture, the corresponding sender is traced and the corresponding responsibility is traced, and the limited supervision and tracing of the picture sender are realized.
Description
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a watermark loading method, apparatus, device, and readable storage medium.
Background
With the innovation of digital technology and the continuous acceleration of iteration speed, data has become a fundamental strategic resource and a critical production element. And is an important motive power and core asset for enterprise development. Office digitization greatly enriches the propagation modes of various information and improves the information propagation efficiency. Meanwhile, potential safety hazards of information leakage of images and the like are brought, wherein most of information leakage is caused by unintentional actions of internal staff. Therefore, how to monitor the sharing process of information such as images and the like, and to effectively trace the source and follow the responsibility when information leakage occurs, has become a technical problem to be solved.
Disclosure of Invention
The invention provides a watermark loading method, a watermark loading device, watermark loading equipment and a watermark loading readable storage medium, which can effectively track and trace a picture sender.
In order to achieve the above purpose, the present invention provides the following technical solutions:
according to the invention, a watermark loading method comprises the following steps:
dividing the picture to be transmitted based on a preset dividing rule to obtain a first preset number of sub-pictures;
selecting a second preset number of sub-pictures from the first preset number of sub-pictures, wherein the second preset number is not greater than the first preset number;
converting each character in a sender character string into a corresponding pixel value based on a preset conversion rule to obtain a pixel value sequence, wherein the sender character string at least comprises a character string representing the identity of a sender of the picture to be sent;
setting the pixel value of the preset area of each sub-picture in the second preset number of sub-pictures based on the pixel value sequence, so that each sub-picture in the second preset number of sub-pictures at least comprises one pixel value in the pixel value sequence.
Further, the splitting the picture to be sent based on the preset splitting rule to obtain a first preset number of sub-pictures comprises:
reducing the length and width equal proportion of the picture to be sent to obtain the length and width of the sub-picture;
and cutting the picture to be sent based on the length and the width of the sub-picture to obtain the sub-pictures with the same size and the first preset number.
Further, the splitting the picture to be sent based on the preset splitting rule to obtain a first preset number of sub-pictures comprises:
and cutting the picture to be sent into square sub-pictures with the first preset number based on a preset side length.
Further, the converting each character in the sender character string into a corresponding pixel value based on the preset conversion rule to obtain a pixel value sequence includes:
converting each character in the sender string into a binary value to obtain a binary sequence representing the sender string;
the binary sequence is converted into the pixel sequence based on the pixel values corresponding to 0 and 1, respectively.
Further, the converting the binary sequence into the pixel sequence based on the pixel values corresponding to 0 and 1 respectively includes:
and converting the binary sequence based on the pixel value corresponding to 0 being 0 and the pixel value corresponding to 1 being 255, so as to obtain the pixel value sequence.
Further, the setting, based on the pixel value sequence, the pixel value of the preset area of each sub-picture in the second preset number of sub-pictures, so that each sub-picture in the second preset number of sub-pictures at least includes one pixel value in the pixel value sequence includes:
setting the pixel value of the preset area of each sub-picture in the second preset number of sub-pictures as the corresponding pixel value in the pixel value sequence, wherein the number of the pixel values contained in the pixel value sequence is the second preset number, and each pixel value in the pixel value sequence is uniquely corresponding to one sub-picture in the second preset number.
Further, the setting, based on the pixel value sequence, the pixel value of the preset area of each sub-picture in the second preset number of sub-pictures, so that each sub-picture in the second preset number of sub-pictures at least includes one pixel value in the pixel value sequence includes:
dividing a preset area of each sub-picture in the second preset number of sub-pictures into a third preset number of sub-areas when the number of pixel values in the pixel value sequence is larger than the second preset number;
setting the pixel value of each sub-region in the second preset number of sub-images to be the corresponding pixel value in the pixel value sequence.
According to an embodiment of the present invention, there is provided a watermark loading apparatus including:
the picture segmentation module is used for segmenting pictures to be sent based on preset segmentation rules to obtain a first preset number of sub-pictures;
the picture selection module is used for selecting a second preset number of sub-pictures from the first preset number of sub-pictures, wherein the second preset number is not greater than the first preset number;
the pixel conversion module is used for converting each character in the sender character string into a corresponding pixel value based on a preset conversion rule to obtain a pixel value sequence, wherein the sender character string at least comprises a character string representing the identity of a sender of the picture to be sent; and
and the picture setting module is used for setting the pixel value of the preset area of each sub-picture in the second preset number of sub-pictures based on the pixel value sequence, so that each sub-picture in the second preset number of sub-pictures at least comprises one pixel value in the pixel value sequence.
According to an embodiment of the present invention, there is provided an apparatus comprising: a memory and a processor;
the memory is used for storing programs;
the processor is configured to execute the program to implement the steps of the watermark loading method as described above.
A readable storage medium is provided according to an embodiment of the present invention, on which a computer program is stored which, when being executed by a processor, implements the steps of the watermark loading method as described above.
According to the technical scheme, the watermark loading method is disclosed, the picture to be sent can be firstly segmented, and then a preset number of sub-pictures are selected as the adding area of the watermark information. Converting the character string information of the current picture sender into a corresponding pixel value sequence, and sequentially setting the obtained pixel values of the preset area of each sub-picture in the second preset number of sub-pictures as the pixel values in the pixel value sequence. And further obtaining the watermark picture added with the user information. The method and the device have the advantages that the watermark is added into the picture at a small picture distortion cost, once leakage occurs in the picture sending process, the information of the picture sender can be obtained by extracting the watermark information in the picture, the corresponding sender is traced and the corresponding responsibility is traced, and the limited supervision and tracing of the picture sender are realized.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a watermark loading method according to an embodiment of the present invention;
fig. 2 is a block diagram of a watermark loading apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The watermark loading method provided by the embodiment of the invention can be applied to an application scene of an enterprise for forwarding an internal picture or sending the picture externally. The execution of the watermark loading method can be triggered when a user needs to send a picture.
Referring to fig. 1, an embodiment of the present invention provides a watermark loading method, which may include the following steps:
101. and cutting the picture to be sent based on a preset cutting rule to obtain a first preset number of sub-pictures.
Specifically, when a user sends information in a communication software mode, a mail mode and the like, identification of corresponding sending content is triggered, when the fact that the content sent by the user contains pictures is detected, the corresponding pictures can be extracted, then the pictures to be sent by the user are segmented, and when the pictures are segmented, the pictures can be segmented into a plurality of sub-pictures with the same size according to a set segmentation rule, and a first preset number of sub-pictures are obtained.
It is understood that the slicing means for the pictures may be implemented by software, plug-in units, etc. which are well known to those skilled in the art, and will not be described herein.
102. Selecting a second preset number of sub-pictures from the first preset number of sub-pictures, wherein the second preset number is not larger than the first preset number.
After the sub-picture is obtained, all or part of the sub-picture can be selected as the adding area of the watermark according to the actual use requirement. For example, to avoid the influence on the picture content important in the picture, a sub-picture on the periphery of the image, which has less influence on the picture content, may be selected as the watermark adding region. The suitable sub-picture may also be selected from the image distribution rule as the watermark adding area, and the present invention is not limited herein with respect to the selection of a specific second preset number of sub-pictures.
103. And converting each character in the sender character string into a corresponding pixel value based on a preset conversion rule to obtain a pixel value sequence, wherein the sender character string at least comprises a character string representing the identity of a sender of the picture to be sent.
Specifically, when the user sends the picture, the information of the sender of the picture, such as the user account number, the sending time, the post, the job and the like, can be obtained through a sending way used by the user such as a mailbox, communication software and the like, and the information is converted into a corresponding character string, for example, the user account number and the sending time are converted into binary numerical values for representation. And then converting the binary values into corresponding pixel values according to the corresponding relation between the binary values and the corresponding pixel values, and obtaining a pixel value sequence containing two pixel values.
104. Setting pixel values of a preset area of each sub-picture in the second preset number of sub-pictures based on the pixel value sequence, so that each sub-picture in the second preset number of sub-pictures at least comprises one pixel value in the pixel value sequence.
After the pixel value sequence to be added to the picture to be sent is obtained, corresponding pixel value setting can be performed in the appointed area in each selected sub-picture, so that each selected sub-picture has the pixel value in the corresponding pixel value sequence. The area user for setting the pixel value area in the specified area can be set according to the need, the pixel value can be set by taking four pixels as one specified area in the pixel unit, and the specified area can be selected according to other selection modes, so that the method is not limited.
In this way, once the picture leaks, the corresponding pixel value sequence is obtained by obtaining the pixel values in each sub-picture, and then the pixel value sequence is converted into the corresponding character string according to the corresponding relation between the pixel value sequence and the binary character, so that the identity, the sending time and other information of the sender are determined. The method and the device realize the acquisition of information such as a sender, sending time and the like through watermark information, and effectively trace the source and trace the responsibility of a divulger.
As a possible implementation manner of the step 101, in another embodiment of the present invention, the picture to be sent is segmented based on a preset segmentation rule to obtain a first preset number of sub-pictures, which may specifically include the following steps:
401. and reducing the length and width equal proportion of the picture to be sent to obtain the length and width of the sub-picture.
402. And cutting the picture to be sent based on the length and the width of the sub-pictures to obtain the first preset number of sub-pictures with the same size.
Specifically, the size of each sub-picture is determined according to a fixed ratio, such as a width W% of 100 and a height H% of 100, and then the sub-pictures are segmented according to the determined size to obtain a first preset number of sub-pictures, for example, the resolution of the picture is 640×480, the picture can be scaled according to a ten-fold ratio to obtain a size of 64×48 of each sub-picture, and 10 sub-pictures are obtained after the segmentation.
The picture to be sent can also be segmented into a first preset number of square sub-pictures based on a preset side length. Dividing the picture into N fixed areas, and selecting the corresponding size of 2 x 2 or w x h as the designated area for watermark loading.
It is understood that the skilled person can select the splitting manner according to the actual size of the picture, and the present invention is not limited herein.
In some embodiments of the present invention, in order to facilitate the conversion of pixel values in the step 103, each character in the sender character string is converted into a corresponding pixel value based on a preset conversion rule, so as to obtain a pixel value sequence, the method may specifically include the following steps:
501. each character in the sender string is converted to a binary value, resulting in a binary sequence that characterizes the sender string.
502. The binary sequence is converted into a pixel sequence based on the pixel values corresponding to 0 and 1, respectively.
Specifically, the binary sequence may be converted according to a pixel value corresponding to 0 being 0 and a pixel value corresponding to 1 being 255, to obtain a pixel value sequence. Wherein each character in the string can be converted into a corresponding binary number according to existing binary conversion rules such as ASCII code. For example, if the account number of the sender is 128, the corresponding eight-bit binary number is 10000000, and the corresponding pixel value sequence is 255, 0.
Correspondingly, step 104, setting the pixel value of the preset area of each sub-picture in the second preset number of sub-pictures based on the pixel value sequence, so that each sub-picture in the second preset number of sub-pictures at least includes one pixel value in the pixel value sequence, and then the following two cases may be included:
when the number of selected sub-pictures is the same as the number of pixel values contained in the sequence of pixel values, the pixel value of the preset area of each sub-picture in the second preset number of sub-pictures can be set as the corresponding pixel value in the sequence of pixel values, and each pixel value in the sequence of pixel values uniquely corresponds to one sub-picture in the second preset number of sub-pictures. I.e. one pixel value is set in a designated area of each sub-picture. For example, the sequence of pixel values is 255, 0. The pixel value of the specified area in the first sub-picture is set to 255, the pixel value of the specified area in the second sub-picture is set to 0 … …, and so on for all sub-pictures to obtain the corresponding watermark.
And when the number of the pixel values in the pixel value sequence is larger than the second preset number, dividing the preset area of each sub-picture in the second preset number of sub-pictures into a third preset number of sub-areas. And then setting the pixel value of each sub-region in the second preset number of sub-images to be the corresponding pixel value in the pixel value sequence.
For example, when the number of selected sub-pictures to be watermarked is 4 and the number of pixel values included in the pixel value sequence is 8, the designated area of each sub-picture may be divided into two sub-areas, that is, two pixel values may be added to each sub-picture. This enables the entire addition of the sequence of pixel values to the selected sub-picture, with at least one pixel value in each sub-picture.
It can be understood that regarding the sequence relation of pixel value addition, those skilled in the art can add cyclically according to the need, and also can set according to the number of sub-areas in each area, which is not described herein.
Based on the same design concept, as described with reference to fig. 2, an embodiment of the present invention further provides a watermark loading apparatus, where the watermark loading apparatus may implement each step of the watermark loading method during operation, where the apparatus may include:
the picture segmentation module 201 is configured to segment a picture to be sent based on a preset segmentation rule, so as to obtain a first preset number of sub-pictures.
The picture selection module 202 is configured to select a second preset number of sub-pictures from the first preset number of sub-pictures, where the second preset number is not greater than the first preset number.
The pixel conversion module 203 is configured to convert each character in the sender character string into a corresponding pixel value based on a preset conversion rule, so as to obtain a pixel value sequence, where the sender character string at least includes a character string that characterizes the identity of the sender of the picture to be sent. And
the picture setting module 204 is configured to set, based on the pixel value sequence, a pixel value of a preset area of each sub-picture in the second preset number of sub-pictures, so that each sub-picture in the second preset number of sub-pictures includes at least one pixel value in the pixel value sequence.
Further, the picture splitting module 201 is specifically configured to reduce the length and width of the picture to be sent according to the same proportion, so as to obtain the length and width of the sub-picture.
And cutting the picture to be sent based on the length and the width of the sub-pictures to obtain the first preset number of sub-pictures with the same size.
Further, the picture splitting module 201 is further specifically configured to split the picture to be sent into a first preset number of square sub-pictures based on a preset side length.
Further, the pixel conversion module 203 is specifically configured to convert each character in the sender string into a binary value, so as to obtain a binary sequence representing the sender string.
The binary sequence is converted into a pixel sequence based on the pixel values corresponding to 0 and 1, respectively.
Further, the pixel conversion module 203 is further specifically configured to convert the binary sequence based on that the pixel value corresponding to 0 is 0, and the pixel value corresponding to 1 is 255, to obtain a pixel value sequence.
Further, the picture setting module 204 is specifically configured to set the pixel value of the preset area of each sub-picture in the second preset number of sub-pictures to the corresponding pixel value in the pixel value sequence, where the number of the pixel values included in the pixel value sequence is the second preset number, and each pixel value in the pixel value sequence uniquely corresponds to one sub-picture in the second preset number.
Further, the picture setting module 204 is further specifically configured to divide the preset area of each sub-picture in the second preset number of sub-pictures into the sub-area of the third preset number when the number of pixel values in the sequence of pixel values is greater than the second preset number.
Setting the pixel value of each sub-region in the second preset number of sub-images as the corresponding pixel value in the pixel value sequence.
Referring to fig. 3, an embodiment of the present invention also provides an apparatus, which may include: a memory 301 and a processor 302.
A memory 301 for storing a program.
A processor 302 for executing the program to perform the steps of the watermark loading method as described above.
Embodiments of the present invention also provide a readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the watermark loading method as described above.
It should be noted that the watermark loading method, device, equipment and readable storage medium provided by the invention can be used in the network security field or the financial field. The foregoing is merely an example, and is not intended to limit the application fields of the watermark loading method, apparatus, device and readable storage medium provided by the present invention.
For the foregoing method embodiments, for simplicity of explanation, the methodologies are shown as a series of acts, but one of ordinary skill in the art will appreciate that the present invention is not limited by the order of acts, as some steps may, in accordance with the present invention, occur in other orders or concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other. For the apparatus class embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference is made to the description of the method embodiments for relevant points.
The steps in the method of each embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs, and the technical features described in each embodiment can be replaced or combined.
The modules and the submodules in the device and the terminal of the embodiments of the invention can be combined, divided and deleted according to actual needs.
In the embodiments provided in the present invention, it should be understood that the disclosed terminal, apparatus and method may be implemented in other manners. For example, the above-described terminal embodiments are merely illustrative, and for example, the division of modules or sub-modules is merely a logical function division, and there may be other manners of division in actual implementation, for example, multiple sub-modules or modules may be combined or integrated into another module, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules or sub-modules illustrated as separate components may or may not be physically separate, and components that are modules or sub-modules may or may not be physical modules or sub-modules, i.e., may be located in one place, or may be distributed over multiple network modules or sub-modules. Some or all of the modules or sub-modules may be selected according to actual needs to achieve the purpose of the embodiment.
In addition, each functional module or sub-module in the embodiments of the present invention may be integrated in one processing module, or each module or sub-module may exist alone physically, or two or more modules or sub-modules may be integrated in one module. The integrated modules or sub-modules may be implemented in hardware or in software functional modules or sub-modules.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software unit executed by a processor, or in a combination of the two. The software elements may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Claims (10)
1. A method of watermark loading, comprising:
dividing the picture to be transmitted based on a preset dividing rule to obtain a first preset number of sub-pictures;
selecting a second preset number of sub-pictures from the first preset number of sub-pictures, wherein the second preset number is not greater than the first preset number;
converting each character in a sender character string into a corresponding pixel value based on a preset conversion rule to obtain a pixel value sequence, wherein the sender character string at least comprises a character string representing the identity of a sender of the picture to be sent;
setting the pixel value of the preset area of each sub-picture in the second preset number of sub-pictures based on the pixel value sequence, so that each sub-picture in the second preset number of sub-pictures at least comprises one pixel value in the pixel value sequence.
2. The method according to claim 1, wherein the slicing the picture to be sent based on the preset slicing rule to obtain a first preset number of sub-pictures comprises:
reducing the length and width equal proportion of the picture to be sent to obtain the length and width of the sub-picture;
and cutting the picture to be sent based on the length and the width of the sub-picture to obtain the sub-pictures with the same size and the first preset number.
3. The method according to claim 1, wherein the slicing the picture to be sent based on the preset slicing rule to obtain a first preset number of sub-pictures comprises:
and cutting the picture to be sent into square sub-pictures with the first preset number based on a preset side length.
4. The method of claim 1, wherein converting each character in the sender string into a corresponding pixel value based on a preset conversion rule to obtain a sequence of pixel values, comprises:
converting each character in the sender string into a binary value to obtain a binary sequence representing the sender string;
the binary sequence is converted into the pixel sequence based on the pixel values corresponding to 0 and 1, respectively.
5. The method of claim 4, wherein the converting the binary sequence into the pixel sequence based on the pixel values corresponding to 0 and 1, respectively, comprises:
and converting the binary sequence based on the pixel value corresponding to 0 being 0 and the pixel value corresponding to 1 being 255, so as to obtain the pixel value sequence.
6. The method according to claim 1, wherein the setting, based on the sequence of pixel values, the pixel value of the preset area of each of the second preset number of sub-pictures such that each of the second preset number of sub-pictures includes at least one pixel value of the sequence of pixel values includes:
setting the pixel value of the preset area of each sub-picture in the second preset number of sub-pictures as the corresponding pixel value in the pixel value sequence, wherein the number of the pixel values contained in the pixel value sequence is the second preset number, and each pixel value in the pixel value sequence is uniquely corresponding to one sub-picture in the second preset number.
7. The method according to claim 1, wherein the setting, based on the sequence of pixel values, the pixel value of the preset area of each of the second preset number of sub-pictures such that each of the second preset number of sub-pictures includes at least one pixel value of the sequence of pixel values includes:
dividing a preset area of each sub-picture in the second preset number of sub-pictures into a third preset number of sub-areas when the number of pixel values in the pixel value sequence is larger than the second preset number;
setting the pixel value of each sub-region in the second preset number of sub-images to be the corresponding pixel value in the pixel value sequence.
8. A watermark loading apparatus, comprising:
the picture segmentation module is used for segmenting pictures to be sent based on preset segmentation rules to obtain a first preset number of sub-pictures;
the picture selection module is used for selecting a second preset number of sub-pictures from the first preset number of sub-pictures, wherein the second preset number is not greater than the first preset number;
the pixel conversion module is used for converting each character in the sender character string into a corresponding pixel value based on a preset conversion rule to obtain a pixel value sequence, wherein the sender character string at least comprises a character string representing the identity of a sender of the picture to be sent; and
and the picture setting module is used for setting the pixel value of the preset area of each sub-picture in the second preset number of sub-pictures based on the pixel value sequence, so that each sub-picture in the second preset number of sub-pictures at least comprises one pixel value in the pixel value sequence.
9. An apparatus, comprising: a memory and a processor;
the memory is used for storing programs;
the processor being configured to execute the program to implement the steps of the watermark loading method as claimed in any one of claims 1 to 7.
10. A readable storage medium having stored thereon a computer program, which, when executed by a processor, implements the steps of the watermark loading method as claimed in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311198502.5A CN117240975A (en) | 2023-09-15 | 2023-09-15 | Watermark loading method, device, equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311198502.5A CN117240975A (en) | 2023-09-15 | 2023-09-15 | Watermark loading method, device, equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117240975A true CN117240975A (en) | 2023-12-15 |
Family
ID=89085583
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311198502.5A Pending CN117240975A (en) | 2023-09-15 | 2023-09-15 | Watermark loading method, device, equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117240975A (en) |
-
2023
- 2023-09-15 CN CN202311198502.5A patent/CN117240975A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104850388B (en) | web page rendering method and device | |
CN111402120B (en) | Labeling image processing method and device | |
JP2007158510A (en) | Image processor and its control method, computer program, and computer readable memory medium | |
CN104508689A (en) | A two-dimension code processing method and a terminal | |
CN111931466B (en) | Document processing method and device | |
JP4708888B2 (en) | Image processing apparatus, image processing method, and computer program | |
CN110197445B (en) | Intellectual property state generation method, intellectual property state query method, computer device and storage medium | |
CN112995721A (en) | Video delivery method, delivery method and device of rich media content and storage medium | |
JP2003030672A (en) | Document recognition device, method, program and storage medium | |
CN115439753B (en) | DEM-based steep river bank identification method and system | |
CN110248165B (en) | Label display method, device, equipment and storage medium | |
CN111741329B (en) | Video processing method, device, equipment and storage medium | |
CN112541240A (en) | Part drawing method, computer device and storage medium | |
CN108804652B (en) | Method and device for generating cover picture, storage medium and electronic device | |
CN117240975A (en) | Watermark loading method, device, equipment and readable storage medium | |
CN108228904B (en) | Method and apparatus for outputting information | |
CN113379865B (en) | Drawing method and system of target object | |
WO2021088333A1 (en) | Image storage method, image reading method, image memory and storage medium | |
CN114529933A (en) | Contract data difference comparison method, device, equipment and medium | |
CN110337074B (en) | Interactive information transmission method, system and terminal equipment | |
CN113434577A (en) | Service data processing method, storage medium and equipment | |
CN109343852B (en) | Method and device for displaying frame pictures of operation interface | |
CN111949353A (en) | iOS-based mobile terminal APP full page graying method and device | |
CN113822126A (en) | Icon recognition method, device and computer-readable storage medium | |
CN113139163B (en) | Method and device for generating watermark information on application program interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |