CN113079273A - Watermark processing method, device, electronic equipment and medium - Google Patents

Watermark processing method, device, electronic equipment and medium Download PDF

Info

Publication number
CN113079273A
CN113079273A CN202110334855.8A CN202110334855A CN113079273A CN 113079273 A CN113079273 A CN 113079273A CN 202110334855 A CN202110334855 A CN 202110334855A CN 113079273 A CN113079273 A CN 113079273A
Authority
CN
China
Prior art keywords
image
information
watermark
input
watermark information
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
Application number
CN202110334855.8A
Other languages
Chinese (zh)
Inventor
齐好鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110334855.8A priority Critical patent/CN113079273A/en
Publication of CN113079273A publication Critical patent/CN113079273A/en
Priority to PCT/CN2022/082216 priority patent/WO2022206476A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The application provides a watermark processing method, a watermark processing device, an electronic device and a medium, wherein the method comprises the following steps: receiving a first input of a user to a first image, wherein the first image is an image shot by a camera, the image identification of the first image is associated with N pieces of shooting information or N pieces of watermark information, and N is a positive integer; and responding to the first input, updating the watermark information of the first image to obtain a second image. In the embodiment of the application, the image identifier of the shot first image is stored in association with the corresponding N pieces of shooting information or the corresponding N pieces of watermark information. In response to a first input by a user to the first image, the watermark information of the first image is updated with the photographing information or the watermark information associated with the image identifier of the first image. In the above watermarking processing method, the user only needs to input the first image once, and then the watermarking information can be added to the first image, or the watermarking information in the first image can be deleted, so that the watermarking processing efficiency is improved.

Description

Watermark processing method, device, electronic equipment and medium
Technical Field
The present application belongs to the field of image processing technologies, and in particular, to a watermark processing method, apparatus, electronic device, and medium.
Background
Most electronic devices support embedding watermark information, which does not affect the observability and integrity of images, in photographed images in order to meet the needs of personalized identification of users.
Currently, the electronic device only supports setting a shooting mode before shooting to limit whether an image shot by the electronic device is automatically watermarked. However, after obtaining the captured image, the user needs to process the image using a special image processing tool to further add a watermark to the captured image or delete watermark information in the captured image. In other words, in the above-mentioned watermarking method, a third-party tool needs to be used to process the image, which increases the operation of the user and results in low efficiency of watermarking.
Disclosure of Invention
An object of the embodiments of the present application is to provide a watermarking method, an apparatus, an electronic device, and a medium, which can solve the problem that in an existing watermarking method, a third-party tool needs to be used to process an image, which increases user operations and causes low watermarking efficiency.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a watermarking method, including:
receiving a first input of a user to a first image, wherein the first image is an image shot by a camera, the image identification of the first image is associated with N pieces of shooting information or N pieces of watermark information, and N is a positive integer;
and responding to the first input, updating the watermark information of the first image to obtain a second image.
In a second aspect, an embodiment of the present application provides a watermark processing apparatus, including:
the first receiving module is used for receiving a first input of a user to a first image, wherein the first image is an image shot by a camera, the image identification of the first image is associated with N pieces of shooting information or N pieces of watermark information, and N is a positive integer;
and the updating module is used for responding to the first input and updating the watermark information of the first image to obtain a second image.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the image identifier of the shot first image is stored in association with the corresponding N pieces of shooting information or the corresponding N pieces of watermark information. In response to a first input of a user to the first image, adding watermark information to the first image by using shooting information or watermark information associated with an image identifier of the first image, or deleting partial watermark information in the first image to update the watermark information of the first image. In the above watermarking processing method, the user only needs to input the first image once, and then the watermarking information can be added to the first image, or the watermarking information in the first image can be deleted, so that the watermarking processing efficiency is improved.
Drawings
Fig. 1 is a flowchart of a watermarking method provided by an embodiment of the present application;
FIGS. 2 a-2 b are schematic diagrams of information tables provided in embodiments of the present application;
fig. 3a to fig. 3b are schematic diagrams of application scenarios of a watermarking method provided in an embodiment of the present application;
fig. 4a to fig. 4b are schematic diagrams of another application scenario of a watermarking method provided in an embodiment of the present application;
fig. 5 is a schematic diagram of another application scenario of the watermarking method provided in the embodiment of the present application;
fig. 6 is a block diagram of a watermark processing apparatus according to an embodiment of the present application;
fig. 7 is a block diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a watermarking method provided in an embodiment of the present application with reference to the accompanying drawings and a specific embodiment and an application scenario thereof.
The watermark processing method provided by the embodiment of the application can be applied to the image processing process, and particularly relates to the image watermark processing process. It should be understood that the watermarking method provided by the embodiment of the present application may be applied to an electronic device, a camera, and other terminals or virtual terminals related to processing images, such as a server.
For the requirement of explaining the technical solution, an application scenario in which the watermarking method is applied to the electronic device is taken as an example for explanation, and it should be understood that the watermarking method provided in the embodiment of the present application is not limited to the application scenario. Referring to fig. 1, fig. 1 is a flowchart of a watermarking method according to an embodiment of the present application. The watermark processing method provided by the embodiment of the application comprises the following steps:
step 101, receiving a first input of a user to a first image.
The first image is an image shot by a camera. The electronic equipment executes a photographing function under the condition that the photographing input is received, and determines an image photographed by the camera as a first image.
The shooting input may be a touch input, for example, a user may send a shooting instruction to the electronic device by clicking a shooting button displayed by the electronic device. The shooting instruction may also be a non-touch instruction, for example, a user may input a related voice instruction to the electronic device and send the shooting instruction to the electronic device.
The image identification of the first image is associated with N items of shooting information or N pieces of watermark information, wherein N is a positive integer.
The image identifier is unique identification information of the first image, in other words, image identifiers corresponding to different first images are different from each other. Preferably, the MD5 code of the first image may be used as the image identifier of the first image.
The shooting information includes, but is not limited to, shooting location information, shooting time information and shooting weather information, wherein the shooting location information represents a shooting location corresponding to the first image, the shooting time information represents shooting time corresponding to the first image, and the shooting weather information represents weather conditions corresponding to the shooting location where the first image is located at the shooting time.
The watermark information includes, but is not limited to, location watermark information, time watermark information, and weather watermark information. Wherein, the watermark information can be character information; alternatively, the watermark information may be pattern information; alternatively, the watermark information may be a combination of text information and pattern information.
The watermark information included in the first image may be understood as a digital watermark displayed in the first image, for example, in a case where the shooting location of the first image is a yellow mountain and the watermark information is text information, a preset area of the first image displays a digital watermark of "yellow mountain of china".
In this step, a touch input performed by the user on the first image may be regarded as the first input, and it should be understood that the first input is not limited to the touch input, and the first input is used to instruct watermarking on the first image.
And 102, responding to the first input, and updating the watermark information of the first image to obtain a second image.
In this step, in response to the first input, the watermark information of the first image is updated, wherein the updating manner of the watermark information at least includes the following two cases:
in the first case, the watermark information is added to the first image to obtain the second image. The watermark information may be added to a preset area of the first image, or the watermark information may be added to a user-specified area through a touch operation or a sliding operation of the user on the first image, which is not limited specifically herein.
In the second case, the watermark information in the first image is deleted to obtain a second image. It will be appreciated that in the second case, the first image includes watermark information and the electronic device is responsive to the first input to delete all or part of the watermark information in the first image to obtain the second image.
It should be understood that in some embodiments, if the first input to the first image is not received, the watermark information in the first image is not updated.
In the embodiment of the application, the image identifier of the shot first image is stored in association with the corresponding N pieces of shooting information or the corresponding N pieces of watermark information. In response to a first input of a user to the first image, adding watermark information to the first image by using shooting information or watermark information associated with an image identifier of the first image, or deleting partial watermark information in the first image to update the watermark information of the first image. In the above watermarking processing method, the user only needs to input the first image once, and then the watermarking information can be added to the first image, or the watermarking information in the first image can be deleted, so that the watermarking processing efficiency is improved.
In the following, how to associate the image identifier of the first image with N pieces of shooting information or N pieces of watermark information is specifically described:
in an embodiment, an image identification of the first image may be associated with the N items of photographing information.
Optionally, before the receiving the first input of the first image by the user, the method further includes:
shooting a first image through a camera; acquiring N items of shooting information of the first image; and storing the image identifier of the first image into a first storage space, storing the N items of shooting information into a second storage space, and establishing a first association relation between the image identifier and the N items of shooting information.
In this embodiment, after obtaining the first image captured by the camera, the N items of capturing information in the first image and the image identifier of the first image are obtained, and as described above, the image identifier may be the MD5 code, and the capturing information includes, but is not limited to, capturing time information, capturing location information, and capturing weather information.
In this embodiment, an association relationship between the shooting information and the image identifier may be established, so that, when the watermark is added to the first image, the watermark is generated based on the shooting information, and then the watermark is added to the first image.
The image identifier of the first image is stored in the first storage space, and the N items of shooting information of the first image are stored in the second storage space, which can be understood as an information table stored in the database. In other words, the image identifier of the first image may be stored in a first information table, and the N items of shooting information of the first image may be stored in a second information table, where the first information table and the second information table may be stored in the same database, or the first information table and the second information table may be stored in different databases, and the embodiment is not limited in this embodiment.
Alternatively, one shooting information ID file expressed in a number or a character string may be set in the second information table, the shooting information ID file being associated with all the shooting information in the second information table. That is, any piece of shooting information stored in the second information table can be found by referring to the shooting information ID file.
The above-mentioned shooting information ID file may be stored in the first information table to establish a first association relationship between the image identification and the N items of shooting information.
In this embodiment, the identification information of the image and the shooting information of the image are separately stored in different storage spaces, and a first association relationship between the two storage spaces is established, so that the watermark is directly added to the first image or the watermark in the first image is directly deleted based on the first association relationship, and the first image is not required to be processed by using an image processing tool, thereby improving the convenience of the watermark processing mode.
An optional implementation manner is to directly establish a mapping relationship between the first information table and the second information table.
It should be understood that one shooting information ID file may be associated with a plurality of first information tables, so that during the process of updating the watermark information, a user may add the same watermark information to a plurality of first images at the same time, or delete the same watermark information included in a plurality of first images at the same time, thereby improving the efficiency of the watermark processing.
Illustratively, referring to fig. 2a, as shown in fig. 2a, the MD5 code of the first image and the photographing information ID file are stored in the first information table, and the photographing information ID file, the photographing time information, and the photographing location information are stored in the second information table. In this way, the shooting information ID file can be searched in the first information table according to the MD5 code of the first image, and any shooting information stored in the second information table can be searched by the shooting information ID file.
In another embodiment, the watermark may be generated in advance, and the association relationship between the watermark information and the image identifier may be established. In the scene of adding the watermark to the first image, watermark information associated with the first image can be inquired, and the pre-generated watermark is directly added to the first image. Or in a scene of deleting the watermark from the first image, the watermark in the first image is deleted by changing the display mode of the watermark to be deleted in the first image so that the watermark is not displayed in the first image.
Shooting a first image through a camera; acquiring N items of shooting information of the first image; generating N pieces of watermark information based on the N pieces of shooting information; and storing the image identifier of the first image into a first storage space, storing the N pieces of watermark information into a second storage space, and establishing a first association relation between the image identifier and the N pieces of watermark information.
In this embodiment, after obtaining the first image captured by the camera, the N items of capturing information in the first image and the image identifier of the first image are obtained, and as described above, the image identifier may be the MD5 code, and the capturing information includes, but is not limited to, capturing time information, capturing location information, and capturing weather information.
It is to be understood that the photographing information corresponds to the watermark information one to one, for example, the photographing location information corresponds to the location watermark information. Thus, based on the N items of shooting information, the corresponding N pieces of watermark information can be generated.
The image identifier of the first image is stored in the first storage space, and the N pieces of watermark information of the first image are stored in the second storage space, where the storage space may be understood as an information table stored in a database. In other words, the image identifier of the first image may be stored in a first information table, and the N pieces of watermark information of the first image may be stored in a second information table, where the first information table and the second information table may be stored in the same database, or the first information table and the second information table may be stored in different databases, and this embodiment is not limited in particular herein.
Alternatively, a watermark information ID file expressed in a number or a character string may be set in the second information table, the watermark information ID file being associated with all watermark information in the second information table. That is, any watermark information stored in the second information table can be found by querying the watermark information ID file.
The watermark information ID file may be stored in a first information table to establish a second association relationship between the image identifier and the N pieces of watermark information.
Illustratively, referring to fig. 2b, as shown in fig. 2b, the first information table stores the MD5 code of the first image and a watermark information ID file, and the second information table stores the watermark information ID file, time watermark information, and location watermark information. Therefore, the watermark information ID file can be obtained by inquiring the first information table according to the MD5 code of the first image, and any watermark information stored in the second information table can be searched through the watermark information ID file.
In this embodiment, the identification information of the image and the watermark information of the image are separately stored in different storage spaces, and a second association relationship between the two storage spaces is established, and in the process of processing the image in the later period, the watermark may be directly added to the first image or the watermark in the first image may be directly deleted based on the second management relationship, so that the watermark processing mode is more flexible.
An optional implementation manner is to directly establish a mapping relationship between the first information table and the second information table.
Optionally, before the updating the watermark information of the first image in response to the first input to obtain the second image, the method further includes:
receiving a second input of the user; responding to the second input, and displaying N watermark options in a first preset display area;
the receiving of the first input of the first image by the user comprises:
receiving a first input of the N watermark options from a user;
the updating the watermark information of the first image comprises:
adding target watermark information to the first image; or deleting the watermark information selected by the first input.
And under the condition that a second input to the first image is received, displaying N watermark options related to the first image in a first preset display area of the electronic equipment, wherein the N watermark options are determined based on N items of shooting information or N pieces of watermark information, the watermark options are in one-to-one correspondence with the shooting information, and the watermark options are in one-to-one correspondence with the watermark information.
For ease of understanding, the present embodiment will be described with reference to fig. 3a and 3 b.
As shown in fig. 3a and 3b, the first preset display area may be a lower side of the first image display area. It should be understood that the first preset display area may also be located above the first image display area, or other areas of other display interfaces, and the embodiment is not limited in this respect.
As shown in fig. 3a, if the user does not click the virtual key 10, the watermark option is not displayed in the first predetermined display area.
As shown in fig. 3b, if the user clicks the virtual key 10, the watermark option is displayed in the first preset display area.
An alternative embodiment is: receiving a first input of the N watermark options from the user, and adding target watermark information to the first image in response to the first input, where the target watermark information is determined based on the target watermark option selected by the first input, and in particular, how to determine the target watermark information, please refer to the following embodiments.
This embodiment is described below with reference to fig. 4a and 4 b:
in the scenario shown in fig. 4a, a user may click the display area where the time watermark option 20 is located in a touch manner, and add the time watermark information 21 to the preset area of the first image. In the scenario shown in fig. 4b, the user may click the display area where the location watermark option 30 is located in a touch manner, and add the location watermark information 31 to the preset area of the first image.
It should be understood that in the scenario shown in fig. 4a, the user may also perform a sliding operation after clicking the time watermark option 20, and add the time watermark information to the end point of the sliding operation, resulting in the second image. In this way, the user can set the display position of the watermark information in the image in a self-defined way.
Another optional implementation is: first input of N watermark options from a user is received, and target watermark information in the first image is deleted in response to the first input.
If the image does not include the watermark information, in the prior art, a user needs to use an image processing tool to produce the watermark information and then add the watermark information into the image, and the user needs to execute a large amount of operations, so that the workload of watermark processing is greatly increased.
In this embodiment, the user only needs to perform two operations, that is, the second input and the first input, to add the corresponding watermark information to the image, and does not need to use an image processing tool to generate the watermark information corresponding to the image, so that the operation steps of the user are reduced, and the efficiency of the watermark processing is improved.
If the image includes the watermark information, in the prior art, a user needs to delete the watermark information in the image based on the image recognition technology by using an image processing tool, which may affect the quality of the image itself, and the deletion effect depends on an algorithm applied by the image processing tool, so that the processing process is inconvenient, and the watermarking method is time-consuming.
In this embodiment, the user only needs to perform two operations, that is, the second input and the first input, to delete the watermark information in the first image, and does not need to use an image processing tool to delete the watermark information in the first image, so that the image distortion is further avoided while the watermark processing efficiency is improved.
The following describes in detail how to determine the target watermark information:
under the condition that a first incidence relation exists between the image identification and the N items of shooting information, generating target watermark information based on the shooting information indicated by the target watermark option; and under the condition that a second incidence relation exists between the image identifier and the N pieces of watermark information, determining the watermark information indicated by the target watermark option as target watermark information.
As described above, the image identifier of the first image may establish a first association relationship with the N items of the shot information, and the image identifier of the first image and the N items of the shot information are stored in different storage spaces; the image identifier of the first image may also establish a second association relationship with the N pieces of watermark information, and the image identifier of the first image and the N pieces of watermark information are stored in different storage spaces. In this embodiment, by storing the image identifier and the watermark information/shooting information in different storage spaces, after the first image is generated, the watermark in the first image can still be edited based on the first association relationship or the second association relationship.
Under the condition that a first association relation exists between the image identifier and the N items of shooting information, each watermark option indicates one item of shooting information; and under the condition that a second association relationship exists between the image identifier and the N pieces of watermark information, each watermark option indicates one piece of watermark information.
In this embodiment, one possible case is that the image identifier of the first image may establish a first association relationship with the N items of shooting information, and in this case, the target watermark information may be generated based on the shooting information indicated by the target watermark option.
For example, if the shooting information indicated by the target watermark option corresponding to the first input is shooting location information, location watermark information is generated, and the location watermark information can be understood as target watermark information.
Another possible case is that the image identifier of the first image may establish a second association relationship with the N pieces of watermark information, in which case, the watermark information indicated by the target watermark option may be determined as the target watermark information.
As shown in fig. 4a, if the watermark information indicated by the target watermark option is time watermark information, the time watermark information may be directly determined as the target watermark information.
Optionally, the receiving a first input of the first image by the user includes:
receiving a first input of target watermark information on the first image by a user;
the updating the watermark information of the first image comprises:
and updating the watermark display data of the target watermark information.
In this embodiment, the object targeted by the first input may be a target watermark on the first image. The user can achieve the purpose of editing the target watermark information by executing the first input on the target watermark information on the first image.
For example, in the scenario shown in fig. 5, the image processing interface displays a virtual key 40, the display content of the virtual key is "edit", and a user can click the virtual key 40 to update the watermark display data in the target watermark information of the first image, so as to edit the target watermark information.
Wherein the watermark display data comprises at least one of: watermark display parameters and watermark display contents.
The watermark display parameters include, but are not limited to, font size, font color, and font type.
The watermark display content is characters, patterns or combination of the characters and the patterns displayed by the watermark information.
It should be understood that if the target watermark information is text information, the font size, the font color, the font type, and the like of the target watermark information may be edited; if the target watermark information is pattern information, the pattern size, pattern color, pattern shape, and the like of the target watermark information can be edited.
In this embodiment, the user may modify the display data of the watermark information to adjust the display parameters and the display content of the watermark information, so as to meet the personalized requirements of the user.
Optionally, the receiving a first input of the first image by the user includes:
receiving a first input of a user to a watermark information input box;
the updating the watermark information of the first image comprises:
adding the watermark information input by the first input in the watermark information input box to the first image.
In this embodiment, as shown in fig. 5, a watermark information input box is also displayed in the image processing interface,
the image processing interface is displayed with a virtual key 50, the display content of the virtual key 50 is 'self-defined watermark', and a user can click the virtual key 50 to wake up a watermark information input box.
The watermark information input box shown in fig. 5 is floating on the image display. It should be understood that in some embodiments, the watermark information input box may be in a translucent state; or, the watermark information input box may cover a part of the display area of the image; alternatively, the watermark information input box is displayed in a display area other than the image display area.
As shown in fig. 5, the watermark information input box includes watermark name information, watermark color information, font information, and font size information, and it should be understood that the watermark information input box may also include other contents, which are not specifically limited herein. The user can input the watermark information in the watermark information input box, and then generate a digital watermark based on the input watermark information, and add the digital watermark to the first image.
In the embodiment, the user can set the watermark information in a user-defined mode, and the personalized requirements of the user are met.
As shown in fig. 6, the watermark processing apparatus 200 includes:
a first receiving module 201, configured to receive a first input of a first image by a user;
an updating module 202, configured to update the watermark information of the first image in response to the first input, to obtain a second image.
Optionally, the watermark processing apparatus 200 further includes:
the shooting module is used for shooting a first image through a camera;
the acquisition module is used for acquiring N items of shooting information of the first image;
the first storage module is used for storing the image identifier of the first image into a first storage space, storing the N items of shooting information into a second storage space, and establishing a first association relationship between the image identifier and the N items of shooting information.
Optionally, the watermark processing apparatus 200 further includes:
the shooting module is used for shooting a first image through a camera;
the acquisition module is used for acquiring N items of shooting information of the first image;
the first generation module is used for generating N pieces of watermark information based on the N pieces of shooting information;
and the second storage module is used for storing the image identifier of the first image into a first storage space, storing the N pieces of watermark information into a second storage space, and establishing a first association relationship between the image identifier and the N pieces of watermark information.
Optionally, the watermark processing apparatus 200 further includes:
the second receiving module is used for receiving a second input of the user;
the display module is used for responding to the second input and displaying N watermark options in a first preset display area;
the first receiving module 201 is further configured to:
receiving a first input of the N watermark options from a user;
the update module 202 is further configured to:
adding target watermark information to the first image;
or deleting the watermark information selected by the first input.
Optionally, the watermark processing apparatus 200 further includes:
the second generation module is used for generating target watermark information based on the shooting information indicated by the target watermark option under the condition that a first incidence relation exists between the image identifier and the N pieces of shooting information;
and the determining module is used for determining the watermark information indicated by the target watermark option as the target watermark information under the condition that a second incidence relation exists between the image identifier and the N pieces of watermark information.
Optionally, the first receiving module 201 is further configured to:
receiving a first input of target watermark information on the first image by a user;
the update module 202 is further configured to:
and updating the watermark display data of the target watermark information.
Optionally, the first receiving module 201 is further configured to:
receiving a first input of a user to a watermark information input box;
the update module 202 is further configured to:
adding the watermark information input by the first input in the watermark information input box to the first image.
The watermark processing apparatus in the embodiment of the present application may be a mobile terminal, or may be a component, an integrated circuit, or a chip in the terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The watermark processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The watermark processing apparatus provided in the embodiment of the present application can implement each process implemented by the watermark processing method in the method embodiment of fig. 1, and is not described here again to avoid repetition.
In the embodiment of the application, the image identifier of the shot first image is stored in association with the corresponding N pieces of shooting information or the corresponding N pieces of watermark information. In response to a first input of a user to the first image, adding watermark information to the first image by using shooting information or watermark information associated with an image identifier of the first image, or deleting partial watermark information in the first image to update the watermark information of the first image. In the above watermarking processing method, the user only needs to input the first image once, and then the watermarking information can be added to the first image, or the watermarking information in the first image can be deleted, so that the watermarking processing efficiency is improved.
Optionally, an electronic device is further provided in this embodiment of the present application, and includes a processor 310, a memory 309, and a program or an instruction stored in the memory 309 and executable on the processor 310, where the program or the instruction is executed by the processor 310 to implement each process of the foregoing watermark processing method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 300 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, and processor 310.
Those skilled in the art will appreciate that the electronic device 300 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 310 is further configured to capture a first image through a camera;
acquiring N items of shooting information of the first image;
and storing the image identifier of the first image into a first storage space, storing the N items of shooting information into a second storage space, and establishing a first association relation between the image identifier and the N items of shooting information.
Optionally, the processor 310 is further configured to capture a first image through a camera;
acquiring N items of shooting information of the first image;
generating N pieces of watermark information based on the N pieces of shooting information;
and storing the image identifier of the first image into a first storage space, storing the N pieces of watermark information into a second storage space, and establishing a first association relation between the image identifier and the N pieces of watermark information.
Optionally, the processor 310 is further configured to receive a second input from the user;
responding to the second input, and displaying N watermark options in a first preset display area;
receiving a first input of the N watermark options from a user;
adding target watermark information to the first image;
or deleting the watermark information selected by the first input.
Optionally, the processor 310 is further configured to generate target watermark information based on the shooting information indicated by the target watermark option if a first association exists between the image identifier and the N pieces of shooting information;
and under the condition that a second incidence relation exists between the image identifier and the N pieces of watermark information, determining the watermark information indicated by the target watermark option as target watermark information.
Optionally, the processor 310 is further configured to receive a first input of target watermark information on the first image from a user;
and updating the watermark display data of the target watermark information.
Optionally, the processor 310 is further configured to receive a first input of a watermark information input box from a user;
adding the watermark information input by the first input in the watermark information input box to the first image.
In the embodiment of the application, the image identifier of the shot first image is stored in association with the corresponding N pieces of shooting information or the corresponding N pieces of watermark information. In response to a first input of a user to the first image, adding watermark information to the first image by using shooting information or watermark information associated with an image identifier of the first image, or deleting partial watermark information in the first image to update the watermark information of the first image. In the above watermarking processing method, the user only needs to input the first image once, and then the watermarking information can be added to the first image, or the watermarking information in the first image can be deleted, so that the watermarking processing efficiency is improved.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing watermark processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above watermark processing method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (16)

1. A watermarking method applied to an electronic device, the method comprising:
receiving a first input of a user to a first image, wherein the first image is an image shot by a camera, the image identification of the first image is associated with N pieces of shooting information or N pieces of watermark information, and N is a positive integer;
and responding to the first input, updating the watermark information of the first image to obtain a second image.
2. The method of claim 1, wherein prior to receiving the first input from the user into the first image, further comprising:
shooting a first image through a camera;
acquiring N items of shooting information of the first image;
and storing the image identifier of the first image into a first storage space, storing the N items of shooting information into a second storage space, and establishing a first association relation between the image identifier and the N items of shooting information.
3. The method of claim 1, wherein prior to receiving the first input from the user into the first image, further comprising:
shooting a first image through a camera;
acquiring N items of shooting information of the first image;
generating N pieces of watermark information based on the N pieces of shooting information, wherein the shooting information corresponds to the watermark information one by one;
and storing the image identifier of the first image into a first storage space, storing the N pieces of watermark information into a second storage space, and establishing a first association relation between the image identifier and the N pieces of watermark information.
4. The method of any of claims 1-3, wherein, prior to updating the watermark information of the first image to obtain the second image in response to the first input, further comprising:
receiving a second input of the user;
in response to the second input, displaying N watermark options in a first preset display area, wherein the N watermark options are determined based on the N pieces of shooting information or N pieces of watermark information;
the receiving of the first input of the first image by the user comprises:
receiving a first input of the N watermark options from a user;
the updating the watermark information of the first image comprises:
adding target watermark information to the first image, the target watermark information being determined based on a target watermark option selected by the first input;
or deleting the watermark information selected by the first input.
5. The method according to claim 4, wherein in the case that there is a first association between the image identifier and the N items of shot information, each watermark option indicates one item of shot information;
under the condition that a second incidence relation exists between the image identifier and the N pieces of watermark information, each watermark option indicates one piece of watermark information;
before adding the target watermark information to the first image, the method further includes:
under the condition that a first incidence relation exists between the image identification and the N items of shooting information, generating target watermark information based on the shooting information indicated by the target watermark option;
and under the condition that a second incidence relation exists between the image identifier and the N pieces of watermark information, determining the watermark information indicated by the target watermark option as target watermark information.
6. The method of claim 1, wherein receiving a first input of a first image by a user comprises:
receiving a first input of target watermark information on the first image by a user;
the updating the watermark information of the first image comprises:
updating watermark display data of the target watermark information;
wherein the watermark display data comprises at least one of: watermark display parameters and watermark display contents.
7. The method of claim 1, wherein receiving a first input of a first image by a user comprises:
receiving a first input of a user to a watermark information input box;
the updating the watermark information of the first image comprises:
adding the watermark information input by the first input in the watermark information input box to the first image.
8. A watermark processing apparatus, characterized in that the apparatus comprises:
the first receiving module is used for receiving a first input of a user to a first image, wherein the first image is an image shot by a camera, the image identification of the first image is associated with N pieces of shooting information or N pieces of watermark information, and N is a positive integer;
and the updating module is used for responding to the first input and updating the watermark information of the first image to obtain a second image.
9. The apparatus of claim 8, further comprising:
the shooting module is used for shooting a first image through a camera;
the acquisition module is used for acquiring N items of shooting information of the first image;
the first storage module is used for storing the image identifier of the first image into a first storage space, storing the N items of shooting information into a second storage space, and establishing a first association relationship between the image identifier and the N items of shooting information.
10. The apparatus of claim 8, further comprising:
the shooting module is used for shooting a first image through a camera;
the acquisition module is used for acquiring N items of shooting information of the first image;
a first generating module, configured to generate N pieces of watermark information based on the N pieces of shooting information, where the shooting information corresponds to the watermark information one to one;
and the second storage module is used for storing the image identifier of the first image into a first storage space, storing the N pieces of watermark information into a second storage space, and establishing a first association relationship between the image identifier and the N pieces of watermark information.
11. The apparatus according to any one of claims 8-10, further comprising:
the second receiving module is used for receiving a second input of the user;
a display module, configured to respond to the second input and display N watermark options in a first preset display area, where the N watermark options are determined based on the N pieces of shooting information or the N pieces of watermark information;
the first receiving module is further configured to:
receiving a first input of the N watermark options from a user;
the update module is further configured to:
adding target watermark information to the first image, the target watermark information being determined based on a target watermark option selected by the first input;
or deleting the watermark information selected by the first input.
12. The apparatus of claim 11, further comprising:
the second generation module is used for generating target watermark information based on the shooting information indicated by the target watermark option under the condition that a first incidence relation exists between the image identifier and the N pieces of shooting information;
and the determining module is used for determining the watermark information indicated by the target watermark option as the target watermark information under the condition that a second incidence relation exists between the image identifier and the N pieces of watermark information.
13. The apparatus of claim 8, wherein the first receiving module is further configured to:
receiving a first input of target watermark information on the first image by a user;
the update module is further configured to:
updating watermark display data of the target watermark information;
wherein the watermark display data comprises at least one of: watermark display parameters and watermark display contents.
14. The apparatus of claim 8, wherein the first receiving module is further configured to:
receiving a first input of a user to a watermark information input box;
the update module is further configured to:
adding the watermark information input by the first input in the watermark information input box to the first image.
15. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the method of any one of claims 1-7.
16. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the method according to any one of claims 1-7.
CN202110334855.8A 2021-03-29 2021-03-29 Watermark processing method, device, electronic equipment and medium Pending CN113079273A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110334855.8A CN113079273A (en) 2021-03-29 2021-03-29 Watermark processing method, device, electronic equipment and medium
PCT/CN2022/082216 WO2022206476A1 (en) 2021-03-29 2022-03-22 Watermark processing method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110334855.8A CN113079273A (en) 2021-03-29 2021-03-29 Watermark processing method, device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN113079273A true CN113079273A (en) 2021-07-06

Family

ID=76611189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110334855.8A Pending CN113079273A (en) 2021-03-29 2021-03-29 Watermark processing method, device, electronic equipment and medium

Country Status (2)

Country Link
CN (1) CN113079273A (en)
WO (1) WO2022206476A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022206476A1 (en) * 2021-03-29 2022-10-06 维沃移动通信有限公司 Watermark processing method and apparatus, electronic device, and storage medium
CN116665330A (en) * 2023-05-31 2023-08-29 广州欢聚马克网络信息有限公司 On-site sign-in method and device, equipment, medium and product thereof
CN117479002A (en) * 2023-09-15 2024-01-30 荣耀终端有限公司 Image display method, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004356694A (en) * 2003-05-27 2004-12-16 Datatron:Kk Photo photographing location attaching apparatus
CN103533248A (en) * 2013-10-24 2014-01-22 腾讯科技(上海)有限公司 Image processing method, terminal and system
CN104867095A (en) * 2014-02-21 2015-08-26 腾讯科技(深圳)有限公司 Image processing method and device
CN105225128A (en) * 2015-09-14 2016-01-06 苏州大学 A kind of watermark information insertion system and method
CN106454119A (en) * 2016-11-18 2017-02-22 上海传英信息技术有限公司 Watermark picture generating method and mobile terminal with watermark camera
CN108733807A (en) * 2018-05-18 2018-11-02 北京小米移动软件有限公司 Search the method and device of photo

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5378059B2 (en) * 2009-05-08 2013-12-25 株式会社エヌ・ティ・ティ・ドコモ POSITIONING SYSTEM, MOBILE TERMINAL, POSITIONING SERVER, AND POSITIONING METHOD
CN105005960B (en) * 2014-04-21 2020-03-03 腾讯科技(深圳)有限公司 Method, device and system for acquiring watermark photo
CN105631797B (en) * 2015-12-24 2019-03-08 小米科技有限责任公司 Watermark adding method and device
CN107464206A (en) * 2017-07-26 2017-12-12 维沃移动通信有限公司 A kind of watermark adding method and mobile terminal
CN113079273A (en) * 2021-03-29 2021-07-06 维沃移动通信有限公司 Watermark processing method, device, electronic equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004356694A (en) * 2003-05-27 2004-12-16 Datatron:Kk Photo photographing location attaching apparatus
CN103533248A (en) * 2013-10-24 2014-01-22 腾讯科技(上海)有限公司 Image processing method, terminal and system
CN104867095A (en) * 2014-02-21 2015-08-26 腾讯科技(深圳)有限公司 Image processing method and device
CN105225128A (en) * 2015-09-14 2016-01-06 苏州大学 A kind of watermark information insertion system and method
CN106454119A (en) * 2016-11-18 2017-02-22 上海传英信息技术有限公司 Watermark picture generating method and mobile terminal with watermark camera
CN108733807A (en) * 2018-05-18 2018-11-02 北京小米移动软件有限公司 Search the method and device of photo

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022206476A1 (en) * 2021-03-29 2022-10-06 维沃移动通信有限公司 Watermark processing method and apparatus, electronic device, and storage medium
CN116665330A (en) * 2023-05-31 2023-08-29 广州欢聚马克网络信息有限公司 On-site sign-in method and device, equipment, medium and product thereof
CN117479002A (en) * 2023-09-15 2024-01-30 荣耀终端有限公司 Image display method, electronic device and storage medium

Also Published As

Publication number Publication date
WO2022206476A1 (en) 2022-10-06

Similar Documents

Publication Publication Date Title
CN113079273A (en) Watermark processing method, device, electronic equipment and medium
CN111612873B (en) GIF picture generation method and device and electronic equipment
CN112672061B (en) Video shooting method and device, electronic equipment and medium
CN113300938A (en) Message sending method and device and electronic equipment
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN111638839A (en) Screen capturing method and device and electronic equipment
WO2022068719A1 (en) Image display method and apparatus, and electronic device
CN112698762B (en) Icon display method and device and electronic equipment
CN112134987B (en) Information processing method and device and electronic equipment
CN111625166B (en) Picture display method and device
CN108595104B (en) File processing method and terminal
CN113362426B (en) Image editing method and image editing device
CN113364915B (en) Information display method and device and electronic equipment
CN111796733B (en) Image display method, image display device and electronic equipment
CN112328149B (en) Picture format setting method and device and electronic equipment
CN113779055A (en) Information processing method, information processing apparatus, electronic device, and readable storage medium
CN112288835A (en) Image text extraction method and device and electronic equipment
CN111046215A (en) Image processing method and device, storage medium and mobile terminal
CN112817782A (en) Data acquisition reporting method and device, electronic equipment and storage medium
CN112150486A (en) Image processing method and device
CN112261483A (en) Video output method and device
CN113489901B (en) Shooting method and device thereof
CN112035032B (en) Expression adding method and device
CN111325656B (en) Image processing method, image processing device and terminal equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210706

RJ01 Rejection of invention patent application after publication