CN110544197A - Image processing method, device, terminal equipment and medium - Google Patents

Image processing method, device, terminal equipment and medium Download PDF

Info

Publication number
CN110544197A
CN110544197A CN201910834615.7A CN201910834615A CN110544197A CN 110544197 A CN110544197 A CN 110544197A CN 201910834615 A CN201910834615 A CN 201910834615A CN 110544197 A CN110544197 A CN 110544197A
Authority
CN
China
Prior art keywords
watermark
image
target
instruction
processed
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
CN201910834615.7A
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.)
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Transsion Holdings 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 Shenzhen Transsion Holdings Co Ltd filed Critical Shenzhen Transsion Holdings Co Ltd
Priority to CN201910834615.7A priority Critical patent/CN110544197A/en
Priority to PCT/CN2019/122509 priority patent/WO2021042600A1/en
Publication of CN110544197A publication Critical patent/CN110544197A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking

Landscapes

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

Abstract

the embodiment of the invention provides an image processing method, an image processing device, terminal equipment and a medium, wherein the method comprises the following steps: acquiring an image to be processed, receiving a watermarking instruction which is input aiming at the image to be processed and carries processing information, identifying the watermarking instruction, and carrying out watermarking operation on the image to be processed based on an identification result to obtain a target image. By the embodiment of the invention, the diversity of the watermarks can be increased, the interestingness of the image to be processed can be improved, and the intelligence of image processing can be increased.

Description

image processing method, device, terminal equipment and medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image processing method, an image processing apparatus, a terminal device, and a medium.
background
With the development of computer technology, users have higher and higher interest requirements on images, and adding watermarks in images is one of common means for improving the interest of the images. At present, two ways are generally adopted for setting watermarks in images: firstly, watermarking by adopting a pattern customized by a manufacturer; secondly, a watermark which is pre-defined by a user is adopted. It can be seen that the two watermark setting modes are preset, the watermark style is monotonous, and the interestingness is low.
disclosure of Invention
the embodiment of the invention provides an image processing method, an image processing device, terminal equipment and a medium, which can perform watermarking operation on an image to be processed based on an input watermarking processing instruction, can increase the diversity of watermarks, improve the interestingness of the image to be processed and increase the intelligence of image processing.
A first aspect of an embodiment of the present invention provides an image processing method, including:
acquiring an image to be processed;
Receiving a watermark processing instruction carrying processing information and input aiming at the image to be processed;
And identifying the watermarking instruction, and carrying out watermarking operation on the image to be processed based on the identification result to obtain a target image.
A second aspect of an embodiment of the present invention provides an image processing apparatus, including:
The acquisition unit is used for acquiring an image to be processed;
A receiving unit, configured to receive a watermark processing instruction carrying processing information and input for the image to be processed;
And the processing unit is used for identifying the watermarking instruction and carrying out watermarking operation on the image to be processed based on the identification result to obtain a target image.
a third aspect of embodiments of the present invention provides a terminal device, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program that supports the terminal device to execute the method, where the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method of the first aspect.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium having stored thereon a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first aspect described above.
In the embodiment of the invention, the terminal equipment can acquire the image to be processed, receive the watermarking instruction which is input for the image to be processed and carries the processing information, further identify the watermarking instruction, and perform watermarking operation on the image to be processed based on the identification result to obtain the target image. By implementing the method, the diversity of the watermarks can be increased, the interestingness of the image to be processed can be improved, and the intelligence of image processing can be increased.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
fig. 1 is a schematic flowchart of an image processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another image processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another image processing method according to an embodiment of the present invention;
FIG. 4 is a diagram of an operation save interface according to an embodiment of the present invention;
Fig. 5 is a schematic diagram of an image processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
The image processing method provided by the embodiment of the invention can be used for acquiring the image to be processed through the terminal equipment such as a mobile phone, a camera and the like in a photographing mode, a video mode or an image mode and processing the image on the terminal equipment, and can be used for setting the required watermark firstly and then shooting the image or setting the watermark after acquiring the image, so that the diversity of the watermark can be increased, the interestingness of the image to be processed is improved, and the intelligence of the image processing can be increased.
referring to fig. 1, fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention, and referring to a specific implementation manner of the flowchart 1:
Firstly, a user opens a voice automatic watermarking function, a terminal device selects one or more of a video (video) mode, a photo (photo) mode and a photo mode according to a mode selection instruction, a watermarking processing instruction carrying voice information is input in a voice input mode, the terminal device identifies the watermarking processing instruction carrying voice information, if the identification result indicates that the watermarking processing instruction is used for voice conversion, the voice information is converted into a target watermark, and the target watermark is added in an image to be processed to obtain a target image. And if the identification result indicates that the watermark processing instruction is used for calling the watermark, selecting a target watermark from at least one preset watermark based on the voice information (calling the watermark according to the instruction), and adding the target watermark into the image to be processed to obtain the target image. Meanwhile, a watermark adjusting instruction can be input in a voice input mode to adjust target watermark parameters, and if the effect is satisfied or not after the watermark is added aiming at the video, the video is stored satisfactorily; if the picture is the target picture, the imaging picture or the photographing result is checked, the picture is satisfactorily stored, and if the picture is not satisfactorily stored, the voice input is performed again.
Therefore, the embodiment of the invention can carry out the watermarking operation on the image to be processed based on the identification of the watermarking instruction carrying the voice information, thereby not only increasing the diversity of the watermarking and improving the interestingness of the image to be processed, but also increasing the intelligence of the image processing.
Referring to fig. 2, fig. 2 is a flowchart illustrating another image processing method according to an embodiment of the present invention, where the method is executed by a terminal device. The image processing method described in the present embodiment includes the steps of:
And S101, acquiring an image to be processed.
in a possible embodiment, before acquiring the image to be processed, the terminal device may determine a target image mode from at least one preset image mode according to the mode selection instruction, and acquire the image to be processed in the target mode. The preset image mode may be one or more of a photographing mode, a video mode and an image mode.
The mode selection command may be input by voice, pressing, sliding, clicking, and the like. For example, if the user inputs a selection instruction (i.e., a mode selection instruction) for the photographing mode, the terminal device may determine the photographing mode as the target image mode.
Illustratively, the preset image mode may include a photographing mode, a video mode, and an image mode. When a user wants to perform image processing, the terminal device can display a photographing mode, a video mode and an image mode in the display screen for the user to select, if the user selects the photographing mode, the terminal device can call the camera device to photograph images, after the photographing operation input by the user is detected, the images (namely the images to be processed) currently photographed by the camera device can be obtained, and the images to be processed are output in the current display screen.
if the user selects an image mode, for example, an album mode, the terminal device may jump to an album of the terminal device, and after browsing a plurality of images in the album, the user may select an image that the user wants to perform watermarking from the plurality of images. For this case, if the terminal device detects a selection operation input by the user for any image in the album, the image may be determined as an image to be processed, and the image to be processed may be output in the current display screen.
If the user selects the video mode, the terminal device may call the camera device to shoot the video, and in the video shooting process, the terminal device may display an image (i.e., an image to be processed) shot by the camera device in the current display screen.
s102, receiving a watermark processing instruction carrying processing information and input aiming at the image to be processed. The processing information may include voice information, text information, and the like.
the input mode of the watermarking instruction can include voice input or text input. In a possible embodiment, when the operation mode of the watermarking instruction is voice input, the processing information carried in the watermarking instruction is voice information. In another embodiment, when the operation mode of the watermarking instruction is text input, the processing information carried in the watermarking instruction is text information. In this manner, the user may select either speech input or text input based on his own input habits.
S103, identifying the watermarking instruction, and carrying out watermarking operation on the image to be processed based on the identification result to obtain a target image.
specifically, the terminal device may respond to the received watermarking instruction carrying the processing information, identify the processing information, and perform watermarking on the image to be processed according to the identified result to obtain the target image.
In one possible embodiment, when the input mode of the watermarking instruction is voice input, the processing information includes first voice information. For this case, the first voice information may be subjected to voice recognition, and if the recognition result indicates that the watermarking instruction is used for voice conversion, the first voice information is converted into the target watermark.
for example, when a user wants to add a target watermark to an image to be processed, the user utters the voice "i want to add the watermark as two words of a landscape". For this situation, the terminal device may generate a watermarking instruction carrying first voice information, where text information corresponding to the first voice information is "i want to add a watermark to two words of landscape", and recognize the watermarking instruction, and the recognition result indicates that the watermarking instruction is used for voice conversion and adds a watermark to two words of landscape ", and further, the terminal device may convert the first voice information into text information" landscape ", and add a word watermark" landscape "to the image to be processed.
In another possible embodiment, if the recognition result indicates that the watermark processing instruction is used for watermark calling, the target watermark is selected from at least one preset watermark based on the first voice information, and the target watermark is added to the image to be processed to obtain the target image. The preset watermark is preset by a developer, and may be, for example, a date watermark, a place watermark, a mosaic watermark, or the like.
for example, when a user wants to add a target watermark to an image to be processed, the user sends a voice "call mosaic", for this situation, the terminal device may generate a watermark processing instruction carrying first voice information, where text information corresponding to the first voice information is "call mosaic", and identifies the watermark processing instruction, and the identification result indicates that the watermark processing instruction is used for watermark call, and the called target watermark is "mosaic", and further, the terminal device may call a mosaic watermark based on the identification result, and add a mosaic watermark to the image to be processed.
In a possible embodiment, when the input mode of the watermarking instruction is voice input, the watermarking instruction further indicates the purpose of the first voice information, and the purpose of the first voice information may include voice conversion or watermarking calling. Illustratively, after the terminal device acquires the image to be processed, the terminal device may present use options of preset voice information, where the use options of the preset voice information include voice conversion and watermark invocation, and when the user selects voice conversion, the terminal device enters a voice conversion mode, and when it is detected that the user inputs a watermark processing instruction in the voice conversion mode, the use of the first voice information carried by the watermark processing instruction may be determined as voice conversion.
further, after the terminal device receives the watermarking instruction carrying the first voice information, the purpose of the watermarking instruction and the text information corresponding to the first voice information can be identified. If the watermarking instruction is input in the voice conversion mode, the purpose of the watermarking instruction can be determined as voice conversion, that is, the recognition result indicates that the watermarking instruction is used for voice conversion.
For example, when a user wants to add a target watermark to an image to be processed, after the terminal device acquires the image to be processed, a use option of voice information is displayed, the user selects voice conversion, and the terminal device enters a voice conversion mode. Further, after the terminal device enters the voice conversion mode, the user sends out a voice "secret forbidding outward transmission", and for this situation, the terminal device may generate a watermarking instruction carrying the first voice information, where the purpose of the watermarking instruction is voice conversion, and the text information corresponding to the first voice information is "secret forbidding outward transmission". Furthermore, the terminal equipment identifies the watermarking instruction, and the identification result indicates that the watermarking instruction is used for voice conversion, so that voice information input by a user can be converted into text information of 'secret forbidding outward transmission', and the character watermark 'secret forbidding outward transmission' is added to the image to be processed.
in a possible embodiment, when the input mode of the watermarking instruction is voice input, the watermarking instruction further indicates the purpose of the first voice information, and the purpose of the first voice information may include voice conversion or watermarking calling. Illustratively, after the terminal device acquires the image to be processed, usage options of preset voice information can be displayed, the usage options of the preset voice information include voice conversion and watermark calling, when a user selects the watermark calling, the terminal device enters a watermark calling mode, and when it is detected that the user inputs a watermark processing instruction in the watermark calling mode, the usage of the first voice information carried by the watermark processing instruction can be determined as the watermark calling.
further, after the terminal device receives the watermarking instruction carrying the first voice information, the usage of the first voice information corresponding to the watermarking instruction and the text information corresponding to the first voice information can be identified. If the watermarking instruction is input in the watermarking call mode, the purpose of the watermarking instruction can be determined as watermarking call, that is, the identification result indicates that the watermarking instruction is used for watermarking call.
For example, when a user wants to add a target watermark to an image to be processed, after the terminal device acquires the image to be processed, a use option of voice information is displayed, the user selects watermark calling, and the terminal device enters a watermark calling mode. Further, after the terminal device enters the watermark invoking mode, the user sends out a voice "mosaic", and for this situation, the terminal device may generate a watermark processing instruction carrying first voice information, where text information corresponding to the first voice information is "mosaic". Further, the terminal device identifies the watermark processing instruction, the identification result indicates that the watermark processing instruction is used for calling the watermark, the called target watermark is the mosaic watermark, and then the mosaic watermark is added to the image to be processed based on the identification result.
In one possible embodiment, when the input mode of the watermarking instruction is text input, the processing information includes text information. In this case, the text information may be recognized, and if the recognition result indicates that the watermarking instruction is used for text conversion, the text information is converted into the target watermark.
For example, when the user wants to add a target watermark to a to-be-processed image, the user inputs the text information "i want to add the watermark as two words of landscape". For the situation, the terminal device generates a watermark processing instruction carrying text information, the text information is that "i want to add the watermark into two characters of landscape", and identifies the watermark processing instruction carrying the text information, the identification result indicates that the watermark processing instruction is used for character conversion, and the watermark is added into the two characters of landscape ", further, the terminal device can convert the text information landscape into a target watermark, and add the character watermark landscape to the image to be processed.
In another possible embodiment, if the identification result indicates that the watermark processing instruction is used for watermark calling, the target watermark is selected from at least one preset watermark based on the text information, and the target watermark is added to the image to be processed to obtain the target image. The preset watermark is preset by a developer, and may be, for example, a date watermark, a place watermark, a mosaic watermark, or the like.
for example, when the user wants to add a target watermark to an image to be processed, the user inputs the text information "call mosaic". For the situation, the terminal device generates a watermark processing instruction carrying text information for identifying, wherein the text information is 'calling mosaic', and identifies the watermark processing instruction, the identification result indicates that the watermark processing instruction is used for calling watermark, and the called target watermark is 'mosaic'. Further, the terminal device may call a mosaic watermark based on the recognition result, and add the mosaic watermark to the image to be processed.
In a possible embodiment, when the input mode of the watermarking instruction is text input, the watermarking instruction further indicates the use of the text information, and the use of the text information may include text conversion or watermarking calling. Illustratively, after the terminal acquires the image to be processed, the terminal may display usage options of preset text information, where the usage options of the preset text information include text conversion and watermark invocation, and when the user selects text conversion, the terminal device enters a text conversion mode, and when it is detected that the user inputs a watermark processing instruction in the text conversion mode, the usage of the text information of the watermark processing instruction may be determined as text conversion.
Further, after the terminal device receives the watermarking instruction carrying the text information, the use of the text information corresponding to the watermarking instruction can be identified, and if the watermarking instruction is input in a character conversion mode, the use of the text information of the watermarking instruction can be determined as character conversion, that is, the identification result indicates that the watermarking instruction is used for character conversion.
For example, when a user wants to add a target watermark to an image to be processed, after the terminal acquires the image to be processed, the terminal displays a use option of text information, the user selects a character conversion mode, and the terminal device enters a character watermark adding mode. Further, after the terminal device enters a character conversion mode, a user inputs text information of 'secret forbidding outward transmission', aiming at the situation, the terminal device can generate a watermarking instruction carrying the text information, the text information is 'secret forbidding outward transmission', further, the terminal device identifies the watermarking instruction, the identification result indicates that the watermarking instruction is used for converting the Chinese character, then the text information of 'secret forbidding outward transmission' is converted into a target watermark, and the image to be processed is watermarked with the text information of 'secret forbidding outward transmission'.
In a possible embodiment, when the input mode of the watermarking instruction is text input, the watermarking instruction further indicates the use of the text information, and the use of the text information may include text conversion or watermarking calling. Illustratively, after the terminal acquires the image to be processed, the terminal may display usage options of preset text information, where the usage options of the preset text information include text conversion and watermark invocation, and when a user selects the watermark invocation, the terminal device enters a watermark invocation mode, and when it is detected that a user inputs a watermark processing instruction in the watermark invocation mode, the usage of the text information of the watermark processing instruction may be determined as the watermark invocation.
further, after the terminal device receives the watermark processing instruction carrying the text information, the use of the text information corresponding to the watermark processing instruction can be identified. If the watermarking instruction is input in the watermarking calling mode, the purpose of the text information of the watermarking instruction can be determined as watermarking calling.
For example, when a user wants to add a target watermark to an image to be processed, the terminal device displays a use option of text information after acquiring the image to be processed, and the user selects a watermark calling mode. Further, the terminal device enters a watermark calling mode, and the user inputs text information "mosaic", and for this situation, the terminal device may generate a watermark processing instruction carrying text information, where the text information is "mosaic". Further, the terminal device identifies the watermark processing instruction, the identification result indicates that the watermark processing instruction is used for calling the watermark, the called target watermark is the mosaic watermark, and then the mosaic watermark is added to the image to be processed based on the identification result.
In the embodiment of the invention, the terminal equipment acquires the image to be processed, identifies the watermarking instruction according to the received watermarking instruction which is input for the image to be processed and carries processing information, and then carries out watermarking operation on the image to be processed based on the identification result to obtain the target image. Therefore, the diversity of the watermarks can be increased, the interestingness of the image to be processed is improved, and the intelligence of image processing can be increased.
referring to fig. 3, fig. 3 is a schematic flow chart of another image processing method according to an embodiment of the present invention. The image processing method described in the present embodiment includes the steps of:
S301, acquiring an image to be processed.
S302, receiving a watermark processing instruction carrying processing information and input aiming at the image to be processed.
S303, identifying the watermarking instruction, and carrying out watermarking operation on the image to be processed based on the identification result to obtain a target image.
The specific implementation manner of steps S301 to S303 may refer to the related description in steps S201 to S203 in the above image processing method, and is not described herein again.
s304, receiving a watermark adjusting instruction input aiming at the target image, and adjusting watermark parameters of the target watermark in the target image based on the watermark adjusting instruction, wherein the watermark parameters comprise one or more of watermark position, transparency, font size and gradient. The watermark adjusting instruction comprises a voice information instruction, a touch information instruction and the like.
In a feasible embodiment, when the input mode of the watermark adjustment instruction is voice input, the terminal device may perform text recognition on the second voice information carried by the watermark adjustment instruction to obtain text information corresponding to the second voice information, and adjust the watermark parameter of the target watermark based on the text information corresponding to the second voice information. The adjustment of the watermark parameters may be the adjustment of a single watermark parameter or the adjustment of multiple watermark parameters. For example, assuming that the target image is pig1, when a user wants to adjust the target watermark in pig1, the terminal device generates a watermark adjustment instruction carrying the second voice information by inputting "adjust the position of the target watermark to the center of pig 1" through voice, and the text information corresponding to the second voice information is "adjust the position of the target watermark to the center of pig 1". For such a situation, after the terminal device identifies the second voice information corresponding to the watermark adjustment instruction, it obtains that the text information corresponding to the second voice information is "adjust the position of the target watermark to the center of the pig 1", and the identification result indicates that the position of the target watermark is adjusted, and then adjusts the position of the target watermark to the center of the pig1 based on the text information corresponding to the second voice information.
for another example, assuming that the target image is pig2, when the user wants to adjust the target watermark in pig2, the user inputs "adjust the font size of the target watermark to be four smaller and the transparency to be 50%", the terminal device generates a watermark adjustment instruction carrying the second voice information, and the text information corresponding to the second voice information is "adjust the font size of the target watermark to be four smaller and the transparency to be 50%". For such a situation, after the terminal device identifies the voice information corresponding to the watermark adjustment instruction, it obtains that the text information corresponding to the second voice information is "adjust the size of the target watermark font to be four smaller and the transparency to be 50%", and the identification result indicates that the position and the transparency of the target watermark in the target watermark parameter are adjusted, and then adjust the size of the target watermark font to be four smaller and the transparency to be 50% based on the text information corresponding to the second voice information.
in a possible embodiment, the input manner of the watermark adjustment instruction is touch input (e.g. pressing, sliding, clicking, etc.), and the watermark adjustment instruction carries touch parameters. For such a situation, the terminal device may respond to the watermark adjustment instruction carrying the touch parameter, and adjust the watermark parameter of the target watermark in the target image according to the touch parameter carried by the watermark adjustment instruction. The watermark adjusting instruction carries touch parameters, and the touch parameters comprise one or more of touch direction and touch force.
In one possible embodiment, the touch parameter includes a touch direction. In this case, after receiving the watermark adjustment instruction carrying the touch direction, the terminal device may identify the touch direction carried in the watermark adjustment instruction, increase the transparency of the target watermark if the touch direction obtained by identification is the first preset direction, and decrease the transparency of the target watermark if the touch direction obtained by identification is the second preset direction. For example, it is assumed that the developer sets the transparency of the adjustment target watermark to be slid to the left or the right in advance, and the transparency is increased by sliding to the left (i.e., the first preset direction) and the transparency is decreased by sliding to the right (i.e., the second preset direction). In this case, after receiving the watermark adjustment instruction, the terminal device recognizes that the touch direction corresponding to the watermark adjustment instruction is rightward sliding, and adjusts the transparency of the target watermark, so as to reduce the transparency of the target watermark.
it can be understood that the watermark adjusting instruction carrying the touch direction may instruct the terminal device to adjust the transparency of the target watermark, and may also adjust the position of the target watermark, for example, slide left, and instruct the terminal device to move the target watermark left; sliding to the right may instruct the terminal device to move the target watermark to the right. The specific correspondence between the touch manner and the adjustment of the watermark parameter corresponding to the target watermark may be preset by a developer, and the embodiment of the present invention is not specifically limited herein.
in another possible embodiment, the touch parameter may include a touch direction and a touch strength. The terminal device can adjust the watermark parameter of the target watermark in the target image by combining the touch direction and the touch strength. In a feasible embodiment, after receiving the watermark adjustment instruction carrying the touch direction and the touch strength, the terminal device may detect whether the touch strength carried by the watermark adjustment instruction is greater than or equal to a preset touch strength threshold, and if so, adjust the watermark parameter of the target watermark according to the touch direction carried by the watermark adjustment instruction. The preset touch control strength threshold value is preset according to experimental measurement and calculation data, and can be adjusted subsequently according to actual requirements.
In an embodiment, the watermark parameter of the target watermark includes a transparency, when the terminal device detects that the touch control strength carried by the watermark adjusting instruction is greater than or equal to a preset touch control strength threshold, the touch control direction carried by the watermark adjusting instruction may be identified, if the touch control direction obtained by identification is the first preset direction, the transparency of the target watermark is increased, and if the touch control direction obtained by identification is the second preset direction, the transparency of the target watermark is decreased. For example, assuming that a developer presets to slide left or right to adjust the transparency of a target watermark, the transparency of the target watermark is increased when the developer slides left (i.e., in a first preset direction), and the transparency of the target watermark is decreased when the developer slides right (i.e., in a second preset direction), when a terminal device receives a watermark adjustment instruction carrying touch direction sliding right and touch strength, the terminal device detects that the touch strength carried by the watermark adjustment instruction exceeds a preset touch strength threshold, and the touch direction corresponding to the watermark adjustment instruction slides right, for this situation, the terminal device adjusts the transparency of the target watermark according to the touch direction, that is, the transparency of the target watermark is decreased. The preset touch control strength threshold value is preset according to experimental measurement and calculation data, and can be adjusted subsequently according to actual requirements.
Or, if the terminal device detects that the touch strength is smaller than the preset touch strength threshold, the target watermark is not adjusted.
in a possible embodiment, after the target image is obtained by performing watermarking on the image to be processed, prompt information is output, where the prompt information is used to prompt a user to confirm whether to save the target image, and when a confirmation instruction input by the user for the prompt information is received, the target image is stored in a preset storage area, where the storage area may be a set folder, a default storage area of a system, or the like. The prompt message can be a page prompt message or a voice prompt message.
For example, after performing watermarking on an image to be processed to obtain a target image, as shown in fig. 4, the terminal device may pop up a text information box 401, where prompt information "whether to save the target image" is displayed in the text information box, the user may operate a plurality of saving options (such as "yes", "no", and "cancel" in fig. 4), and if the user selects "yes" (i.e., inputs a confirmation instruction for the prompt information), the target image is saved in a preset storage area (e.g., a folder that the user has established in advance). If the user selects "no", the target image is not saved.
Or, after the image to be processed is watermarked to obtain the target image, the terminal device may send a voice prompt message "whether to store the target image", and the user makes a voice response according to the voice prompt message, and the terminal device identifies the voice message, and if the text message corresponding to the identification of the voice message is "yes" (i.e., a confirmation instruction is input for the prompt message), the target image is stored in a preset storage area (e.g., a folder established by the user in advance). And if the text information corresponding to the recognition of the voice information is 'no', the target image is not saved.
in the embodiment of the invention, a terminal device acquires an image to be processed, identifies a watermark processing instruction according to the received watermark processing instruction carrying processing information and input for the image to be processed, performs watermark operation on the image to be processed based on the identification result to obtain a target image, receives a watermark adjusting instruction input for the target image, and adjusts the watermark parameter of the target watermark in the target image based on the watermark adjusting instruction. Therefore, the flexibility of image processing is increased, and the playability of watermark adjustment can be improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention. The image processing apparatus described in the present embodiment includes:
an acquiring unit 501 is configured to acquire an image to be processed.
A receiving unit 502, configured to receive a watermark processing instruction carrying processing information and input for the image to be processed.
The processing unit 503 is configured to identify the watermarking instruction, and perform watermarking operation on the to-be-processed image based on the identification result to obtain a target image.
Optionally, the apparatus further comprises: a determination unit 504, wherein:
the determining unit 504 is configured to determine a target image mode from at least one preset image mode based on a mode selection instruction;
The obtaining unit 501 is further configured to obtain an image to be processed in the target image mode.
Optionally, the processing information includes first voice information, and the processing unit 503 is specifically configured to:
If the identification result indicates that the watermarking instruction is used for voice conversion, converting the first voice information into a target watermark;
And adding the target watermark into the image to be processed to obtain a target image.
Optionally, the processing information includes first voice information, and the processing unit 503 is specifically configured to:
If the identification result indicates that the watermark processing instruction is used for calling the watermark, selecting a target watermark from at least one preset watermark based on the first voice information;
And adding the target watermark into the image to be processed to obtain a target image.
Optionally, the apparatus further comprises: an adjusting unit 505, wherein:
The receiving unit 502 is further configured to receive a watermark adjustment instruction input for the target image;
the adjusting unit 505 is configured to adjust, based on the watermark adjusting instruction, watermark parameters of the target watermark in the target image, where the watermark parameters include one or more of a watermark position, a transparency, a font size, and a gradient.
optionally, the apparatus further comprises: an output unit 506, a storage unit 507, wherein:
The output unit 506 is configured to output a prompt message, where the prompt message is used to prompt a user to determine whether to save the target image;
the storage unit 507 is configured to store the target image in a preset storage area when the receiving unit 502 receives a confirmation instruction input by the user for the prompt information.
Optionally, the preset image mode includes one or more of a photographing mode, a video mode, and an image mode.
Optionally, the input mode of the watermark adjustment instruction is voice input, the watermark adjustment instruction carries second voice information, and the apparatus further includes: an identification unit 508, wherein:
the identification unit 508 is configured to perform text identification on the second voice information carried by the watermark adjustment instruction to obtain text information corresponding to the second voice information;
The adjusting unit 505 is further configured to adjust the watermark parameter of the target watermark based on the text information corresponding to the second speech information.
Optionally, the input mode of the watermark adjustment instruction is touch input, the watermark adjustment instruction carries a touch parameter, and the adjusting unit 505 is specifically configured to:
Responding to the watermark adjusting instruction;
And adjusting the watermark parameters of the target watermark in the target image according to the touch parameters carried by the watermark adjusting instruction.
Optionally, the touch parameter includes a touch direction and a touch force, and the adjusting unit 505 is specifically configured to:
detecting whether the touch control strength carried by the watermark adjusting instruction is greater than or equal to a preset touch control strength threshold value;
And if so, adjusting the watermark parameters of the target watermark in the target image according to the touch direction carried in the watermark adjusting instruction.
Optionally, the watermark parameter of the target watermark includes transparency, and the identifying unit 508 is specifically configured to:
identifying the touch direction carried in the watermark adjusting instruction, and if the touch direction obtained by identification is a first preset direction, increasing the transparency of the target watermark;
And if the touch direction is identified to be the second preset direction, reducing the transparency of the target watermark.
In the embodiment of the present invention, the obtaining unit 501 is configured to obtain an image to be processed, the receiving unit 502 is configured to receive a watermarking instruction carrying processing information and input for the image to be processed, the processing unit 503 identifies the watermarking instruction, and performs watermarking operation on the image to be processed based on an identification result to obtain a target image, which not only can increase diversity of watermarks and interestingness of the image to be processed, but also can increase intelligence of image processing.
It is to be understood that the functions of each unit of the data information processing apparatus of this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
Referring to fig. 6, fig. 6 is a schematic block diagram of a terminal device according to an embodiment of the present invention. The terminal device in the present embodiment shown in fig. 6 may include: one or more processors 601; one or more input devices 602, one or more output devices 603, and memory 604. The processor 601, the input device 602, the output device 603, and the memory 604 are connected by a bus 605. The memory 602 is used for storing a computer program comprising program instructions, and the processor 601 is used for executing the program instructions stored in the memory 602 and executing the following operations: the method comprises the steps of obtaining an image to be processed through an input device 602, receiving a watermarking instruction which is input for the image to be processed and carries processing information, identifying the watermarking instruction, and carrying out watermarking operation on the image to be processed based on an identification result to obtain a target image.
Optionally, the processor 601 is configured to determine a target image mode from at least one preset image mode based on a mode selection instruction, and acquire an image to be processed in the target image mode.
optionally, the processing information includes first voice information, and the processor 601 is specifically configured to: if the identification result indicates that the watermarking instruction is used for voice conversion, converting the first voice information into a target watermark; and adding the target watermark into the image to be processed to obtain a target image.
Optionally, the processing information includes first voice information, and the processor 601 is specifically configured to select a target watermark from at least one preset watermark based on the first voice information if the recognition result indicates that the watermark processing instruction is used for watermark invocation; and adding the target watermark into the image to be processed to obtain a target image.
Optionally, the processor 601 is further configured to receive, through the input device 602, a watermark adjustment instruction input for the target image, and adjust, based on the watermark adjustment instruction, a watermark parameter of the target watermark in the target image, where the watermark parameter includes one or more of a watermark position, transparency, font size, and gradient.
optionally, the processor 601 is further configured to output, through the output device 603, prompt information for prompting a user to confirm whether to save the target image; when a confirmation instruction of the user for the prompt information input is received through the input device 602, the target image is stored in a preset storage area.
Optionally, the preset image mode includes one or more of a photographing mode, a video mode, and an image mode.
optionally, the input mode of the watermark adjustment instruction is voice input, the watermark adjustment instruction carries second voice information, and the processor 601 is specifically configured to perform text recognition on the second voice information carried by the watermark adjustment instruction to obtain text information corresponding to the second voice information; and adjusting the watermark parameters of the target watermark based on the text information corresponding to the second voice information.
Optionally, the input mode of the watermark adjustment instruction is touch input, the watermark adjustment instruction carries a touch parameter, and the processor 601 adjusts the watermark parameter of the target watermark in the target image based on the watermark adjustment instruction, specifically, is configured to respond to the watermark adjustment instruction; and adjusting the watermark parameters of the target watermark in the target image according to the touch parameters carried by the watermark adjusting instruction.
Optionally, the touch parameter includes a touch direction and a touch strength, and the processor 601 is specifically configured to detect whether the touch strength carried by the watermark adjustment instruction is greater than or equal to a preset touch strength threshold; and if so, adjusting the watermark parameters of the target watermark in the target image according to the touch direction carried in the watermark adjusting instruction.
Optionally, the watermark parameter of the target watermark includes a transparency, and the processor 601 is specifically configured to identify the touch direction carried in the watermark adjusting instruction, and increase the transparency of the target watermark if the touch direction obtained by identification is a first preset direction; and if the touch direction is identified to be the second preset direction, reducing the transparency of the target watermark.
It should be understood that in the embodiment of the present Application, the Processor 601 may be a Central Processing Unit (CPU), and the Processor 601 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 604 may include both read-only memory and random access memory, and provides instructions and data to the processor 601. A portion of the memory 604 may also include non-volatile random access memory. The memory 604 may store the watermarked target image.
in a specific implementation, the processor 601, the input device 602, the output device 603, and the memory 604 described in this embodiment of the present application may execute the implementation described in the image processing method provided in this embodiment of the present application, and may also execute the implementation of the terminal device described in this embodiment of the present application, which is not described herein again.
embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored, where the computer program includes program instructions, and when the program instructions are executed by a processor, the steps performed in the above-described image processing embodiments may be performed.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
while the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (16)

1. An image processing method, comprising:
acquiring an image to be processed;
Receiving a watermark processing instruction carrying processing information and input aiming at the image to be processed;
and identifying the watermarking instruction, and carrying out watermarking operation on the image to be processed based on the identification result to obtain a target image.
2. The method of claim 1, wherein prior to said obtaining the image to be processed, the method further comprises:
Determining a target image mode from at least one preset image mode based on a mode selection instruction;
And acquiring an image to be processed in the target image mode.
3. the method of claim 1, wherein the processing information includes first voice information, and the performing a watermarking operation on the image to be processed based on the recognition result to obtain a target image includes:
If the identification result indicates that the watermarking instruction is used for voice conversion, converting the first voice information into a target watermark;
And adding the target watermark into the image to be processed to obtain a target image.
4. the method of claim 1, wherein the processing information includes first voice information, and the performing a watermarking operation on the image to be processed based on the recognition result to obtain a target image includes:
If the identification result indicates that the watermark processing instruction is used for calling the watermark, selecting a target watermark from at least one preset watermark based on the first voice information;
And adding the target watermark into the image to be processed to obtain a target image.
5. The method according to claim 3 or 4, wherein after the watermarking operation is performed on the image to be processed based on the identification result to obtain the target image, the method further comprises:
Receiving a watermark adjusting instruction input aiming at the target image;
And adjusting the watermark parameters of the target watermark in the target image based on the watermark adjusting instruction, wherein the watermark parameters comprise one or more of watermark position, transparency, font size and gradient.
6. The method according to claim 1, wherein after performing the watermarking operation on the image to be processed based on the recognition result to obtain the target image, the method further comprises:
Outputting prompt information, wherein the prompt information is used for prompting a user to confirm whether the target image is stored or not;
And when a confirmation instruction input by a user for the prompt information is received, storing the target image in a preset storage area.
7. the method of claim 2, wherein the preset image mode comprises one or more of a photographing mode, a video mode, and an image mode.
8. the method according to claim 5, wherein the watermark adjusting instruction is input in a voice mode, the watermark adjusting instruction carries second voice information, and the adjusting the watermark parameter of the target watermark in the target image based on the watermark adjusting instruction includes:
Performing text recognition on the second voice information carried by the watermark adjusting instruction to obtain text information corresponding to the second voice information;
And adjusting the watermark parameters of the target watermark based on the text information corresponding to the second voice information.
9. The method according to claim 5, wherein the input mode of the watermark adjusting instruction is touch input, the watermark adjusting instruction carries touch parameters, and adjusting the watermark parameters of the target watermark in the target image based on the watermark adjusting instruction comprises:
responding to the watermark adjusting instruction;
And adjusting the watermark parameters of the target watermark in the target image according to the touch parameters carried by the watermark adjusting instruction.
10. the method according to claim 9, wherein the touch parameters include a touch direction and a touch force, and the adjusting the watermark parameter of the target watermark in the target image according to the touch parameter carried by the watermark adjusting instruction includes:
Detecting whether the touch control strength carried by the watermark adjusting instruction is greater than or equal to a preset touch control strength threshold value;
And if so, adjusting the watermark parameters of the target watermark in the target image according to the touch direction carried in the watermark adjusting instruction.
11. The method according to claim 10, wherein the watermark parameter of the target watermark includes transparency, and the adjusting the watermark parameter of the target watermark in the target image according to the touch direction carried in the watermark adjusting instruction includes:
Identifying the touch direction carried in the watermark adjusting instruction, and if the touch direction obtained by identification is a first preset direction, increasing the transparency of the target watermark;
and if the touch direction is identified to be the second preset direction, reducing the transparency of the target watermark.
12. an image processing apparatus characterized by comprising:
The acquisition unit is used for acquiring an image to be processed;
a receiving unit, configured to receive a watermark processing instruction carrying processing information and input for the image to be processed;
And the processing unit is used for identifying the processing information and carrying out watermark processing operation on the image to be processed based on the identification result to obtain a target image.
13. The apparatus according to claim 12, wherein the processing unit is specifically configured to convert the first speech information into a target watermark if the recognition result indicates that the watermarking instruction is used for speech conversion; and adding the target watermark into the image to be processed to obtain a target image.
14. The apparatus according to claim 12, wherein the processing unit is further specifically configured to select a target watermark from at least one preset watermark based on the first speech information if the recognition result indicates that the watermarking instruction is used for watermarking call; and adding the target watermark into the image to be processed to obtain a target image.
15. A terminal device comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method according to any one of claims 1 to 11.
16. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-11.
CN201910834615.7A 2019-09-04 2019-09-04 Image processing method, device, terminal equipment and medium Pending CN110544197A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910834615.7A CN110544197A (en) 2019-09-04 2019-09-04 Image processing method, device, terminal equipment and medium
PCT/CN2019/122509 WO2021042600A1 (en) 2019-09-04 2019-12-02 Image processing method and apparatus, terminal device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910834615.7A CN110544197A (en) 2019-09-04 2019-09-04 Image processing method, device, terminal equipment and medium

Publications (1)

Publication Number Publication Date
CN110544197A true CN110544197A (en) 2019-12-06

Family

ID=68711272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910834615.7A Pending CN110544197A (en) 2019-09-04 2019-09-04 Image processing method, device, terminal equipment and medium

Country Status (2)

Country Link
CN (1) CN110544197A (en)
WO (1) WO2021042600A1 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377234A (en) * 2012-04-26 2013-10-30 宇龙计算机通信科技(深圳)有限公司 Method and system for adding watermark into multimedia data
TWI546772B (en) * 2015-11-18 2016-08-21 粉迷科技股份有限公司 Method and system for processing laminated images
CN106331476A (en) * 2016-08-18 2017-01-11 努比亚技术有限公司 Image processing method and device
CN106339201A (en) * 2016-09-14 2017-01-18 北京金山安全软件有限公司 Map processing method and device and electronic equipment
CN106791370A (en) * 2016-11-29 2017-05-31 北京小米移动软件有限公司 A kind of method and apparatus for shooting photo
CN107464206A (en) * 2017-07-26 2017-12-12 维沃移动通信有限公司 A kind of watermark adding method and mobile terminal

Also Published As

Publication number Publication date
WO2021042600A1 (en) 2021-03-11

Similar Documents

Publication Publication Date Title
CN110100251B (en) Apparatus, method, and computer-readable storage medium for processing document
CN111491102B (en) Detection method and system for photographing scene, mobile terminal and storage medium
US11825040B2 (en) Image shooting method and device, terminal, and storage medium
CN109089043B (en) Shot image preprocessing method and device, storage medium and mobile terminal
US11705120B2 (en) Electronic device for providing graphic data based on voice and operating method thereof
CN107748615B (en) Screen control method and device, storage medium and electronic equipment
CN109040523B (en) Artifact eliminating method and device, storage medium and terminal
US20150304566A1 (en) Display apparatus and image composition method thereof
EP2872963B1 (en) Abstract camera pipeline for uniform cross-device control of image capture and processing
US9491401B2 (en) Video call method and electronic device supporting the method
CN105809695A (en) Terminal searching method and device based on wearable device
CN109151318B (en) Image processing method and device and computer storage medium
EP4167566A1 (en) Screen recording method and screen recording system
EP4240001A1 (en) Photographing method and apparatus, and electronic device
CN115689963A (en) Image processing method and electronic equipment
KR20070056522A (en) Apparatus and method for automatic grouping of an image in mobile phone
US11600300B2 (en) Method and device for generating dynamic image
CN107730443B (en) Image processing method and device and user equipment
KR20200113522A (en) Method for performing fucntion according to gesture input and electronic device performing thereof
CN116684647B (en) Equipment control method, system and equipment in video real-time transmission scene
KR20130134546A (en) Method for create thumbnail images of videos and an electronic device thereof
CN112948048A (en) Information processing method, information processing device, electronic equipment and storage medium
CN111567034A (en) Exposure compensation method, device and computer readable storage medium
CN111045576B (en) Display control method, display control device, terminal equipment and electronic equipment
EP4262226A1 (en) Photographing method and related device

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