Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the present application are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Example 1
Referring to fig. 1, a flowchart of the steps of a method of watermarking according to a first embodiment of the application is shown.
The watermarking method of this embodiment may include the steps of:
Step S101, determining a watermark coverage area according to the image to be watermarked and/or attribute information of the watermark to be watermarked, wherein the watermark coverage area is positioned in an adjacent area except the area where the image to be watermarked is positioned.
In this embodiment, the number of watermark images to be added is not limited. When watermarking an image file including a plurality of images to be watermarked, all or part of the images included in the image file may be regarded as the images to be watermarked. For example, a video file with a normal playing duration of 10 seconds includes a plurality of video frame images, and the video frame image corresponding to the playing duration of the first 5 seconds can be used as the watermark image to be added. For another example, a video frame image including a predetermined content object in a video file may be used as the watermark image to be added, and the predetermined content object may be a specific star or a specific scene, etc.
In this embodiment, the types and the number of attribute information of the watermark images to be added are not limited, and can be set adaptively according to actual requirements in specific applications. The attribute information of the image to be watermarked includes at least one of image parameter information and content information of the image to be watermarked.
In particular, the image parameter information of the watermarked image indicates a display effect of the watermarked image, including, but not limited to, at least one of resolution, size, color, shape, transparency. The content information is used to indicate at least one of a name, a profile, an author, an authoring time, an object included in the image, and a storage location of the image to be watermarked.
In this embodiment, the types and the number of the attribute information to be watermarked are not limited, and can be set adaptively according to actual requirements in specific applications. The attribute information to be watermarked includes at least one of image parameter information and content information to be watermarked.
Specifically, the image parameter information to be watermarked is used for indicating the display effect of the watermark, including but not limited to at least one of the relative position, shape, size, color, transparency and resolution of the image to be watermarked; the content information to be watermarked is used for indicating at least one of text content and pattern content to be watermarked.
In this embodiment, in order to avoid influencing the viewing effect of the image or the watermark content after the watermark is added, the determined watermark coverage area is located in an adjacent area other than the area where the image to be watermarked is located, and the two areas are not covered and blocked.
Specifically, the number of the determined watermark coverage areas is not limited, i.e. at least one watermark coverage area may be determined in an adjacent area other than the area where the image to be watermarked is located. For example, two watermark coverage areas may be determined at the left and right regions of the image to be watermarked, respectively.
In this embodiment, the corresponding conditions of the to-be-added watermark image and/or the attribute information of the to-be-added watermark and the style information of the watermark coverage area may be preset, so that after the to-be-added watermark image and/or the attribute information of the to-be-added watermark is obtained, the watermark coverage area may be determined according to the style information of the watermark coverage area.
In particular, the style information of the watermark coverage area is at least used to determine the relative position of the watermark coverage area and the image to be watermarked. For example, the position of the watermark coverage area outside the area where the watermark image is to be added can be determined according to the size information and the shape information of the area where the watermark image is to be added.
Optionally, the style information of the watermark coverage area may also be used to determine at least one of the number, shape, size, color, transparency, resolution of the watermark coverage area. For example, when the name of the image to be watermarked is "night", it may be determined that the filling color of the watermark coverage area is "pure black" according to the correspondence.
Specifically, in order to avoid that the excessive occupied area of the watermark coverage area affects the viewing effect of the image to be watermarked, the corresponding condition of the watermark coverage area size and the size of the image to be watermarked can be preset, so that the watermark coverage area size can be determined according to the size of the image to be watermarked. For example, it may be preset that when the image to be watermarked is rectangular, the watermark coverage area is a rectangular frame surrounded by an inner rectangle and an outer rectangle having the same center point, the image to be watermarked is located inside the rectangle within the watermark coverage area, and the distance between the inner rectangular edge and the outer inner rectangular edge of the watermark coverage area in the X-axis and/or Y-axis directions is not more than one tenth of the size of the image to be watermarked.
Specifically, in order to avoid the influence of the too large distance between the watermark coverage area and the area occupied by the image to be added with the watermark on the viewing effect of the watermark coverage area and the area occupied by the image to be added with the watermark, the interval condition between the watermark coverage area and the edge of the area occupied by the image to be added with the watermark can be preset.
In this embodiment, the image processing method adopted to determine the watermark coverage area is not limited. For example, when the mode of layer superposition is adopted, a watermark coverage area can be generated on the layer where the image to be added with the watermark is located, namely, the image to be added with the watermark and the watermark coverage area are located in the same layer, and the image to be added with the watermark is located in another layer; or generating a watermark coverage area in the layer where the watermark to be added is located, namely, the watermark to be added and the watermark coverage area are located in the same layer, and the watermark image to be added is located in another layer; or creating a watermark coverage area by the newly created layer, namely, the image to be added with the watermark, the watermark to be added with the watermark and the watermark coverage area are all positioned in different layers.
Step S102, adding the watermark meeting the requirement of the watermark coverage area in the watermark coverage area.
In this embodiment, the added watermark is located in the watermark coverage area, and is determined according to attribute information of the watermark to be added. The image processing method adopted by the watermark adding is not limited, and the watermark image can be generated after the watermark is added to the image to be added with the watermark.
As can be seen from the above embodiments of the present invention, according to the image to be watermarked and/or the attribute information of the watermark to be added, the watermark coverage area is determined, and the watermark coverage area is located in an adjacent area other than the area where the image to be watermarked is located; and then adding the watermark meeting the requirements of the watermark coverage area in the watermark coverage area. Therefore, the embodiment of the invention can generate different watermarks aiming at the images to be watermarked and/or the watermarks to be watermarked with different attribute information, and the watermark coverage area is positioned at the outer side of the image area to be watermarked, so that the watermark and the view of the image content are not influenced after the watermark addition is finished.
Example two
Referring to fig. 2, a flowchart of the steps of a method of watermarking according to a second embodiment of the present application is shown.
The watermarking method of this embodiment may include the steps of:
step S201, obtaining an image to be watermarked and/or attribute information of the watermark to be watermarked.
In this embodiment, step S201 may include at least one of the following sub-steps:
Substep S201A: analyzing the image to be added with the watermark to obtain image parameter information and/or content information of the image to be added with the watermark; and obtaining attribute information of the image to be watermarked according to the image parameter information and/or the content information of the image to be watermarked.
Substep S201B: analyzing at least one image included in the image file of the image to be watermarked, and obtaining attribute information of the image to be watermarked according to the analyzed image parameter information and/or content information of the at least one image.
Substep S201C: and analyzing file data included in the image file of the image to be watermarked, and obtaining attribute information of the image to be watermarked according to the file data.
Specifically, the image file of the image to be watermarked refers to an image file including at least the image to be watermarked, and the specific format is not limited, for example, a photograph, a moving picture, a video, and the like. When the image file to be watermarked with the watermark image includes a plurality of images, one or more of the images may be parsed, and the scope of the image parsing is not limited to the watermarking of the watermark image.
For example, for a video file including a plurality of video frame images, when the watermark image to be added is all video frame images in the video file, the image parameter information and/or the content information of one video frame image in the video file can be obtained by analyzing the video frame image, and the attribute information of all the watermark images to be added can be obtained according to the image parameter information and/or the content information of the video frame image.
Specifically, in step S201A and step S201C, when the image is parsed and the image parameter information and/or the content information are obtained, the selected image area is not limited, and image analysis can be performed on all or part of the image area.
Optionally, when the image to be watermarked is analyzed, in order to make the watermark coverage area more approximate to the edge visual effect of the image to be watermarked, image analysis can be performed only on the area near the outer edge of the area where the image to be watermarked is located, so as to obtain corresponding image parameter information, and the attribute information of the image to be watermarked is determined according to the image parameter information.
Specifically, when the number of the analyzed images is multiple or multiple areas of the same image, multiple different image parameter information and/or content information may be obtained, and in order to facilitate obtaining attribute information of the image to be watermarked, the set clustering algorithm may be used to cluster the image parameter information and/or the content information, so as to determine the attribute information of the image to be watermarked according to the clustered result.
For example, four sub-areas of the watermark image to be added near the outer edge can be selected from the upper, lower, left and right directions respectively; then analyzing the four selected sub-areas to obtain image parameter information corresponding to the four sub-areas; carrying out KMeans algorithm clustering on the image parameter information of the four sub-areas to obtain clustered image parameter information, and taking the image parameter information as attribute information of the image to be added with the watermark.
Specifically, for a video file including a plurality of video frame images, a plurality of file data such as a playing time length, a video frame image size, a video file format and the like of the video file can be obtained by analyzing a video file header, and then one or more of the file data is used as attribute information of the watermark image to be added.
For example, for a video file in MP4 format, all file data are contained in boxes, each Box having a type and a length, wherein a sub-Box of a Track Box (trak) includes a media data reference and description of the Track, size information of a video frame image in the video file can be obtained by parsing TRACK HEADER boxes, and the size information of the video frame image is taken as attribute information of a watermark image to be added.
In this embodiment, in order to improve diversity and individuation degree of watermarking, attribute information of the to-be-watermarked watermark may be obtained according to at least one of attribute information of the to-be-watermarked watermark image, personal information of a user, and a received watermark setting instruction.
For example, when the name of the image to be watermarked is "night", the "night" may be taken as the text content to be watermarked. For another example, when the author of the image to be watermarked is female, pink may be used as the text color to be watermarked.
Specifically, in order to enable a user triggering the watermarking function to add a watermark with a personalized identifier, a corresponding condition between personal information of the user and attribute information to be watermarked may be preset, so that after the personal information of the user is obtained, the attribute information of the watermark may be determined according to the corresponding condition. The personal information of the user is not limited in the way, category and quantity. The user personal information is used for indicating at least one of personal attribute related information such as user ID, nickname, sex, belonging region, preference, operation history, and the like.
For example, the watermark adding operation history information of the user can be analyzed through a predetermined recommendation algorithm, and the attribute information of the watermark to be added, which is selected by adding the watermark this time, is determined or recommended to the user.
Specifically, the corresponding condition of the attribute information of the image to be watermarked and the attribute information of the watermark to be watermarked may be preset, so that after the attribute information of the image to be watermarked is obtained, the attribute information of the watermark to be watermarked may be determined according to the corresponding condition.
Specifically, in order to facilitate user-defined setting of the attribute information of the watermark to be added, the user may set the attribute information of the watermark to be added through a watermark setting instruction, or adjust the attribute information of the watermark to be added obtained through other modes.
Step S202, determining a watermark coverage area according to the image to be watermarked and/or the attribute information of the watermark to be watermarked, wherein the watermark coverage area is positioned in a neighboring area except the area where the image to be watermarked is positioned.
In this embodiment, in order to visually present the effect of being tightly attached together and not blocking each other, the edge of the watermark coverage area adjacent to the side of the area where the image to be added is located overlaps with all or part of the edge of the area where the image to be added is located, that is, the watermark coverage area is located outside the area where the image to be added is located, and the edge of the watermark coverage area adjacent to the side of the image to be added overlaps with all or part of the outer edge of the area where the image to be added is located.
For example, if the region of the image to be watermarked and the watermark coverage region are rectangular, when the watermark coverage region is located outside the upper portion of the region of the image to be watermarked, the lower edge of the watermark coverage region and the upper edge of the region of the image to be watermarked are all or partially overlapped; when the watermark coverage area is positioned outside the left part of the area where the image to be watermarked is positioned, the right edge of the watermark coverage area is fully or partially overlapped with the left edge of the area where the image to be watermarked is positioned.
For another example, when the watermark coverage area is a ring shape with a hollow interior, the area where the watermark image to be added is located may be located in the hollow interior of the ring shape, and the size and shape of the inner edge of the watermark coverage area are consistent with those of the outer edge of the area where the watermark image to be added is located, and the size and shape of the outer edge of the watermark coverage area are not limited.
Step S203, receiving the region adjustment instruction, and adjusting the watermark coverage area according to the region adjustment instruction.
In this embodiment, in order to meet the user-defined editing requirement, the image to be added with the watermark and the watermark coverage area may be presented at the same time, an area adjustment instruction for adjusting the watermark coverage area by the user is received, and style information of the watermark coverage area is adjusted according to the area adjustment instruction, so that the watermark coverage area is determined according to the style information of the adjusted watermark coverage area.
Specifically, the watermark coverage area presentation mode and the triggering mode of the user on the area adjustment instruction are not limited, and can be adaptively set according to actual requirements in specific applications. For example, the parameter values corresponding to the region where the image to be watermarked is located, at least one watermark coverage area, and the style information of the watermark coverage area may be presented on the screen at the same time, and the user may select at least one watermark coverage area through the region adjustment instruction, and adjust the shape and size of the selected watermark coverage area, or manually modify the parameter values corresponding to the style information of the watermark coverage area through the region adjustment instruction.
Step S204, adding the watermark meeting the requirement of the watermark coverage area in the watermark coverage area.
In this embodiment, after the style information of the watermark coverage area is adjusted, the requirement of the watermark coverage area may also change, and the adding of the watermark may be completed only by adjusting the attribute information of the watermark to be added, and in order to facilitate the user to perform the custom modification on the attribute information of the watermark to be added, step S204 may include: adjusting attribute information of the watermark to be added according to style information of a watermark coverage area and/or a received watermark adjustment instruction; and adding the watermark meeting the requirement of the watermark coverage area in the watermark coverage area according to the regulated attribute information of the watermark to be added.
Specifically, the corresponding condition of the style information of the watermark coverage area and the attribute information of the watermark to be added can be preset, so that the attribute information of the watermark to be added can be determined according to the corresponding condition after the style information of the watermark coverage area is obtained.
Step S205: generating a watermark image according to the watermark and the image to be added with the watermark.
In this embodiment, after the watermark image is generated, the synthesis of the watermark and the watermark image to be added can be realized, so that unified display or other operations can be conveniently performed, the image processing mode adopted for generating the watermark image is not limited, and the storage format and the position of the watermark image are not limited.
Specifically, a layer superposition mode can be adopted to superpose the layer where the watermark is located and the layer where the image to be added with the watermark is located, so as to generate the watermark image, and therefore the image and the watermark can be displayed in the watermark image at the same time. For example, the layer on which the watermark is located may be located above the layer on which the image to be watermarked is located.
Specifically, when the watermark coverage area, the watermark and the image to be added with the watermark are all located in different layers, in order to display the watermark coverage area at the same time, the layer where the watermark coverage area is located, the layer where the watermark is located and the layer where the image to be added with the watermark are overlapped, wherein the layer where the watermark is located above the layer where the watermark coverage area is located.
Specifically, in a scenario where a user shares a watermark image to another user, for example, the other user wants to adjust the content of watermark text, in order to facilitate modification of the watermark image, the layer where the watermark is located and/or the layer where the watermark coverage area is located, and the layer where the watermark image to be added are respectively encoded and stored, and the encoding and storage modes are not limited. When the watermark image is checked, the layer where the watermark is located and the layer where the watermark image to be added are laminated into a final watermark image to be displayed by reading a file corresponding to the watermark image, or the layer where the watermark is located, the layer where the watermark coverage area is located and the layer where the watermark image to be added are laminated into the final watermark image to be displayed. In addition, the modification of the watermark coverage area and/or the watermark by the user can be received in the corresponding image layer, so that the watermark removal or modification function is easier to realize.
The embodiment of the invention can improve the visual checking effect of the watermark and the image by overlapping the edge of the watermark covering area near one side of the image to be added with the edge of the whole or part of the area where the image to be added is positioned. The user can adjust the watermark coverage area through the area adjustment instruction, and the attribute information of the watermark is subjected to self-defined adjustment through the watermark setting instruction or the watermark adjustment instruction, so that the flexibility and individuation degree of watermark adding are improved. In addition, when watermark images are generated in a layer superposition mode, different layers are independently encoded and stored, so that watermark removal or modification is conveniently carried out on the images after the watermarks are added.
Example III
Referring to fig. 3, there is shown a block diagram of a watermarking apparatus according to a third embodiment of the present application.
The watermarking apparatus of this embodiment may include:
The watermark coverage area generation module 301 is configured to determine a watermark coverage area according to the image to be watermarked and/or attribute information of the watermark to be watermarked, where the watermark coverage area is located in a neighboring area other than the area where the image to be watermarked is located.
The watermark adding module 302 is configured to add a watermark meeting the requirements of the watermark coverage area in the watermark coverage area.
As can be seen from the above embodiments of the present invention, according to the image to be watermarked and/or the attribute information of the watermark to be added, the watermark coverage area is determined, and the watermark coverage area is located in an adjacent area other than the area where the image to be watermarked is located; and then adding the watermark meeting the requirements of the watermark coverage area in the watermark coverage area. Therefore, the embodiment of the invention can generate different watermarks aiming at the images to be watermarked and/or the watermarks to be added with different attribute information, and the watermark and the view of the image content are not affected after the watermark is added.
The watermarking means of the present embodiment may be performed by any suitable device having watermarking capabilities, including but not limited to: various device terminals or servers, including but not limited to, PCs, tablet computers, mobile terminals, and the like.
Example IV
Referring to fig. 4, there is shown a block diagram of a watermarking apparatus according to a fourth embodiment of the present application.
The watermarking apparatus of this embodiment may include:
the attribute information obtaining module 400 is configured to obtain an image to be watermarked and/or attribute information of the watermark to be watermarked.
The watermark coverage area generating module 401 is configured to determine a watermark coverage area according to the image to be watermarked and/or attribute information of the watermark to be watermarked, where the watermark coverage area is located in a neighboring area other than the area where the image to be watermarked is located.
The watermark adding module 402 is configured to add a watermark meeting the requirements of the watermark coverage area in the watermark coverage area.
The instruction receiving module 403 is configured to receive the region adjustment instruction and adjust the watermark coverage area according to the region adjustment instruction.
The watermark image generation module 404 is configured to generate a watermark image from the watermark and the watermark image to be added.
In a specific implementation of the present application, an edge of the watermark coverage area adjacent to one side of the area where the image to be added is located overlaps all or part of the edge of the area where the image to be added is located.
In one embodiment of the present application, the watermark attribute information obtaining module 400 may include at least one of the following elements:
A first parsing unit 400A configured to parse the watermark image to be added, and obtain image parameter information and/or content information of the watermark image to be added; and obtaining attribute information of the image to be watermarked according to the image parameter information and/or the content information of the image to be watermarked.
The second parsing unit 400B is configured to parse at least one image included in the image file of the image to be watermarked, and obtain attribute information of the image to be watermarked according to the parsed image parameter information and/or content information of the at least one image.
The third parsing unit 400C is configured to parse file data included in the image file of the image to be watermarked, and obtain attribute information of the image to be watermarked according to the file data.
The watermark attribute obtaining unit 400D is configured to obtain attribute information of the image to be watermarked according to at least one of attribute information of the image to be watermarked, personal information of a user, and a received watermark setting instruction.
In one embodiment of the present application, the watermark adding module 402 includes:
A watermark adjustment unit 402A configured to adjust attribute information of the watermark to be added according to style information of the watermark coverage area and/or a received watermark adjustment instruction; and adding the watermark meeting the requirement of the watermark coverage area in the watermark coverage area according to the regulated attribute information of the watermark to be added.
In a specific implementation of the present application, the watermark image generation module 405 is further configured to superimpose the layer where the watermark is located and the layer where the image to be added with the watermark is located by adopting a layer superimposition manner, so as to generate the watermark image, thereby displaying the image and the watermark in the watermark image at the same time.
The embodiment of the invention can improve the visual checking effect of the watermark and the image by overlapping the edge of the watermark covering area near one side of the image to be added with the edge of the whole or part of the area where the image to be added is positioned. The user can adjust the watermark coverage area through the area adjustment instruction, and the attribute information of the watermark is subjected to self-defined adjustment through the watermark setting instruction or the watermark adjustment instruction, so that the flexibility and individuation degree of watermark adding are improved. In addition, when watermark images are generated in a layer superposition mode, different layers are independently encoded and stored, so that watermark removal or modification is conveniently carried out on the images after the watermarks are added.
The watermarking means of the present embodiment may be performed by any suitable device having watermarking capabilities, including but not limited to: various device terminals or servers, including but not limited to, PCs, tablet computers, mobile terminals, and the like.
Example five
Referring to fig. 5, there is shown a block diagram of a device/terminal/server and a storage medium according to a fifth embodiment of the present application, and the specific embodiment of the present application is not limited to the specific implementation of the device/terminal/server and the storage medium.
As shown in fig. 5, the apparatus/terminal/server and the storage medium may include: one or more processors 902 and a memory device (memory) 904.
Wherein:
The processor 902 is configured to execute the program 906, and may specifically perform relevant steps in the above-described watermarking method embodiment.
In particular, program 906 may include program code including computer-operating instructions.
The processor 902 may be a central processing unit, CPU, or Application specific integrated Circuit ASIC (Application SPECIFIC INTEGRATED circuits), or one or more integrated circuits configured to implement embodiments of the present application. The one or more processors comprised by the device/terminal/server may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
A storage device 904 for storing one or more programs 906. The storage device 904 may include high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Program 906 may be specifically operable to cause processor 902 to:
Determining a watermark coverage area according to an image to be added with the watermark and/or attribute information of the watermark to be added, wherein the watermark coverage area is positioned in an adjacent area except the area where the image to be added with the watermark is positioned;
And adding watermarks meeting the requirements of the watermark coverage area in the watermark coverage area.
In an alternative embodiment, the program 906 is further configured to generate a watermark image according to the watermark and the image to be watermarked.
In an alternative embodiment, the program 906 is further configured to obtain the attribute information of the image to be watermarked according to at least one of attribute information of the image to be watermarked, personal information of a user, and a received watermark setting instruction.
In an optional embodiment, the program 906 is further configured to overlap an edge of the watermark coverage area adjacent to a side of the area where the image to be added is located with all or part of an edge of the area where the image to be added is located.
In an alternative embodiment, program 906 is further configured to receive an area adjustment instruction, and adjust the watermark coverage area according to the area adjustment instruction.
As can be seen from the above embodiments of the present invention, according to the image to be watermarked and/or the attribute information of the watermark to be added, the watermark coverage area is determined, and the watermark coverage area is located in an adjacent area other than the area where the image to be watermarked is located; and then adding the watermark meeting the requirements of the watermark coverage area in the watermark coverage area. Therefore, the embodiment of the invention can generate different watermarks aiming at the images to be watermarked and/or the watermarks to be added with different attribute information, and the watermark and the view of the image content are not affected after the watermark is added.
It should be noted that, according to implementation requirements, each component/step described in the embodiments of the present application may be split into more components/steps, or two or more components/steps or part of operations of the components/steps may be combined into new components/steps, so as to achieve the objects of the embodiments of the present application.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium. The above-described functions defined in the method of the present application are performed when the computer program is executed by a Central Processing Unit (CPU). The computer readable medium according to the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present application may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a watermark coverage area generation module and a watermark addition module. Where the names of these modules do not constitute a limitation on the module itself in some cases, for example, the watermarking module may also be described as "a module that adds a watermark meeting the requirements of the watermark coverage area in the watermark coverage area".
As another aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements a method as described in any of the above embodiments.
As another aspect, the present application also provides a computer-readable storage medium, which may be included in the apparatus described in the above embodiment; or may be present alone without being fitted into the device. The computer-readable storage medium carries one or more programs that, when executed by the apparatus, cause the apparatus to: determining a watermark coverage area according to an image to be added with the watermark and/or attribute information of the watermark to be added, wherein the watermark coverage area is positioned in an adjacent area except the area where the image to be added with the watermark is positioned; and adding watermarks meeting the requirements of the watermark coverage area in the watermark coverage area.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept described above. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.