WO2021042600A1 - Image processing method and apparatus, terminal device and medium - Google Patents

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

Info

Publication number
WO2021042600A1
WO2021042600A1 PCT/CN2019/122509 CN2019122509W WO2021042600A1 WO 2021042600 A1 WO2021042600 A1 WO 2021042600A1 CN 2019122509 W CN2019122509 W CN 2019122509W WO 2021042600 A1 WO2021042600 A1 WO 2021042600A1
Authority
WO
WIPO (PCT)
Prior art keywords
watermark
image
target
processing
processed
Prior art date
Application number
PCT/CN2019/122509
Other languages
French (fr)
Chinese (zh)
Inventor
童晓衡
Original Assignee
深圳传音控股股份有限公司
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 深圳传音控股股份有限公司 filed Critical 深圳传音控股股份有限公司
Publication of WO2021042600A1 publication Critical patent/WO2021042600A1/en

Links

Images

Classifications

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

Definitions

  • This application relates to the field of image processing technology, in particular to an image processing method, device, terminal device and medium.
  • Adding a watermark to an image is one of the commonly used methods to improve the interest of an image.
  • two methods are usually used to set the watermark in the image: first, use the watermark customized by the manufacturer; second, use the watermark customized in advance by the user. It can be seen that the setting methods of these two watermarks are preset, and the watermark style is monotonous and not very interesting.
  • the purpose of this application is to provide an image processing method, device, terminal device, and medium that can perform watermark processing operations on images to be processed based on input watermark processing instructions, which can not only increase the diversity of watermarks, and enhance the interest of the images to be processed It can also increase the intelligence of image processing.
  • the image processing method includes the steps:
  • the present application also provides an image processing device.
  • the image processing device includes:
  • the acquiring unit is used to acquire the image to be processed
  • a receiving unit configured to receive a watermark processing instruction carrying processing information input for the to-be-processed image
  • the processing unit is configured to recognize the watermark processing instruction, and perform a watermark processing operation on the image to be processed based on the recognition result to obtain a target image.
  • the terminal device includes a processor, an input device, an output device, and a memory.
  • the processor, input device, output device, and memory are connected to each other, wherein the memory is used to store a computer program that supports the terminal device to execute the above method, the computer program includes program instructions, and the processor is configured to invoke the program instructions to execute the method of the above first aspect .
  • the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program
  • the computer program includes program instructions
  • the program instructions are When executed by a processor, the processor is caused to execute the method of the first aspect.
  • the image processing method, device, terminal device, and medium provided in this application.
  • the terminal device can obtain the image to be processed, and receive a watermark processing instruction carrying processing information input for the image to be processed, and then identify the watermark processing instruction based on the recognition result Perform a watermark operation on the image to be processed to obtain the target image.
  • FIG. 1 is a schematic diagram of a specific flow of an image processing method provided by the present application
  • FIG. 2 is a schematic flowchart of another image processing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another image processing method provided by an embodiment of the present application.
  • FIG. 4 is a diagram of an operation saving interface provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of an image processing device provided by an embodiment of the present application.
  • Fig. 6 is a schematic block diagram of a terminal device according to an embodiment of the present application.
  • the image processing method provided by the embodiments of this application can be to obtain images to be processed through terminal devices such as mobile phones and cameras in the camera mode, video mode, or image mode, and perform image processing on the terminal device.
  • image processing you can set The watermark is needed, and then the image is taken, and the watermark can also be set after the image is acquired. This can not only increase the diversity of watermarks, improve the interest of the image to be processed, but also increase the intelligence of image processing.
  • Fig. 1 is a flowchart of an image processing method provided by an embodiment of the present application. Please refer to the specific implementation of flowchart 1:
  • the terminal device selects one or more of video mode, photo mode and photo mode according to the mode selection instruction, and enters the watermark carrying voice information through voice input Processing instructions, the terminal device recognizes the watermark processing instructions carrying voice information, if the recognition result indicates that the watermark processing instructions are used for voice conversion, the voice information is converted into a target watermark, and the target watermark is added to the image to be processed to obtain the target image. If the recognition result indicates that the watermark processing command is used for watermark calling, the target watermark is selected from at least one preset watermark based on the voice information (the watermark is called according to the command), and the target watermark is added to the image to be processed to obtain the target image.
  • FIG. 2 is a schematic flowchart of another image processing method provided by an embodiment of the present application, and the method may be executed by a terminal device.
  • the image processing method described in this embodiment includes the following steps:
  • the terminal device may determine the 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 photo mode, a video mode, and an image mode.
  • the input mode of the mode selection instruction can be voice, pressing, sliding, clicking, and so on.
  • a selection instruction ie, a mode selection instruction
  • the terminal device may determine the photographing mode as the target image mode.
  • the preset image mode may include a photo mode, a video mode, and an image mode.
  • the terminal device can display the camera mode, video mode, and image mode on the display screen for the user to choose. If the user selects the camera mode, the terminal device can call the camera device to take the image. After the photographing operation, the image currently shot by the camera device (ie, the image to be processed) can be acquired, and the image to be processed can be output on the current display screen.
  • the terminal device can jump to the album of the terminal device. After browsing multiple images in the album, the user can select the image that he wants to be watermarked from the multiple images. In view of this situation, if the terminal device detects the user's selection operation for any image input in the album, it can determine any image as a to-be-processed image, and output the to-be-processed image on the current display screen.
  • the image mode such as the album mode
  • the terminal device can call the camera device to shoot the video.
  • the terminal device can display the image taken by the camera device (that is, the image to be processed) on the current display screen.
  • S102 Receive a watermark processing instruction that carries processing information input for the to-be-processed image.
  • the processing information may include voice information, text information, and so on.
  • the input mode of the watermark processing instruction may include voice input or text input.
  • the processing information carried in the watermark processing instruction is voice information.
  • the processing information carried in the watermark processing instruction is text information. In this way, users can select voice input or text input based on their own input habits.
  • S103 Recognize the watermark processing instruction, and perform a watermark processing operation on the image to be processed based on the recognition result to obtain a target image.
  • the terminal device may respond to the received watermark processing instruction carrying processing information, recognize the processing information, and perform watermark processing on the image to be processed according to the recognition result to obtain the target image.
  • the processing information when the input mode of the watermark processing instruction is voice input, the processing information includes the first voice information.
  • voice recognition may be performed on the first voice information, and if the recognition result indicates that the watermark processing instruction is used for voice conversion, the first voice information is converted into a target watermark.
  • the terminal device can generate a watermark processing instruction carrying the first voice information, the text information corresponding to the first voice information is "I want to add the watermark as the two words landscape", and the watermark processing instruction
  • the recognition result indicates that the watermark processing instruction is used for voice conversion, and the watermark is added as the two words "landscape”.
  • the terminal device can convert the first voice information into the text information "landscape", and Add text watermark "Landscape” to the image to be processed.
  • 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 Target image.
  • the preset watermark is preset by the developer, for example, it may be a date watermark, a location watermark, a mosaic watermark, and so on.
  • the terminal device can generate a watermark processing instruction carrying the first voice information, which corresponds to the first voice information.
  • the text information is "invoking mosaic”, and the watermark processing instruction is recognized.
  • the recognition result indicates that the watermark processing instruction is used for watermark invoking, and the target watermark to be invoked is "mosaic”.
  • the terminal device can call based on the recognition result Mosaic watermark, and add a mosaic watermark to the image to be processed.
  • the watermark processing instruction when the input mode of the watermark processing instruction is voice input, the watermark processing instruction also indicates the purpose of the first voice information, and the purpose of the first voice information may include voice conversion or watermark invocation.
  • the terminal device after the terminal device obtains the image to be processed, it may display the usage options of the preset voice information.
  • the usage options of the preset voice information include voice conversion and watermark invocation.
  • the terminal device enters the voice conversion Mode, when it is detected that the user inputs a watermark processing instruction in the voice conversion mode, the purpose of the first voice information carried by the watermark processing instruction can be determined as voice conversion.
  • the terminal device can identify the purpose of the watermark processing instruction and the text information corresponding to the first voice information. If the watermark processing instruction is input in the voice conversion mode, the purpose of the watermark processing instruction can be determined as voice conversion, that is, the recognition result indicates that the watermark processing instruction is used for voice conversion.
  • the terminal device displays the use options of the voice information after acquiring the image to be processed, the user selects voice conversion, and the terminal device enters the voice conversion mode. Further, after the terminal device enters the voice conversion mode, the user sends out the voice "Confidentiality is forbidden to transmit outside".
  • the terminal device can generate a watermark processing instruction carrying the first voice information, and the purpose of the watermark processing instruction is voice conversion , The text message corresponding to the first voice message is "Confidentiality Prohibited to Disseminate".
  • the terminal device recognizes the watermark processing instruction, the recognition result indicates that the watermark processing instruction is used for voice conversion, and then the voice information input by the user can be converted into the text information "confidentiality prohibited outside transmission", and the image to be processed Add the text watermark "Confidentiality is forbidden to pass on”.
  • the watermark processing instruction when the input mode of the watermark processing instruction is voice input, the watermark processing instruction also indicates the purpose of the first voice information, and the purpose of the first voice information may include voice conversion or watermark invocation.
  • the terminal device may display the usage options of the preset voice information.
  • the usage options of the preset voice information include voice conversion and watermark invocation.
  • the terminal device can recognize the purpose of the first voice information corresponding to the watermark processing instruction and the text information corresponding to the first voice information. If the watermark processing instruction is input in the watermark calling mode, the purpose of the watermark processing instruction can be determined as watermark calling, that is, the recognition result indicates that the watermark processing instruction is used for watermark calling.
  • the terminal device displays the use options of the voice information after acquiring the image to be processed, the user selects the watermark call, and the terminal device enters the watermark call mode. Further, after the terminal device enters the watermark calling mode, the user sends out a voice "mosaic".
  • the terminal device can generate a watermark processing instruction carrying the first voice information, and the text information corresponding to the first voice information is " Mosaic". Further, the terminal device recognizes the watermark processing instruction, the recognition result indicates that the watermark processing instruction is used for watermark calling, and the called target watermark is a mosaic watermark, and then adds a mosaic watermark to the image to be processed based on the recognition result.
  • the processing information when the input mode of the watermark processing instruction is text input, the processing information includes text information.
  • the text information can be recognized. If the recognition result indicates that the watermark processing instruction is used for text conversion, the text information is converted into the target watermark.
  • the terminal device when the user wants to add a target watermark to the image to be processed, the user enters the text message "I want to add the watermark as the two words landscape".
  • the terminal device generates a watermark processing instruction carrying text information, the text information is "I want to add the watermark as the two words landscape", and recognizes the watermark processing instruction carrying the text information, The recognition result indicates that the watermark processing instruction is used for text conversion, and the watermark is added as the two words "landscape”.
  • the terminal device can convert the text information "landscape” into the target watermark and add to the image to be processed Text watermark "Landscape”.
  • 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 the developer, for example, it may be a date watermark, a location watermark, a mosaic watermark, and so on.
  • the terminal device when the user wants to add a target watermark to the image to be processed, the user enters text information "call mosaic".
  • the terminal device In response to this situation, the terminal device generates a watermark processing instruction carrying text information for identification.
  • the text information is "invoking mosaic” and recognizes the watermark processing instruction.
  • the recognition result indicates that the watermark processing instruction is used for watermark invocation.
  • the target watermark to be called is "mosaic”. Further, the terminal device can call the mosaic watermark based on the recognition result, and add the mosaic watermark to the image to be processed.
  • the watermark processing instruction when the input mode of the watermark processing instruction is text input, the watermark processing instruction also indicates the purpose of the text information, and the purpose of the text information may include text conversion or watermark invocation.
  • the terminal after the terminal obtains the image to be processed, it can display the usage options of the preset text information.
  • the usage options of the preset text information include text conversion and watermark invocation.
  • the terminal device enters the text conversion mode
  • the use of the text information of the watermark processing instruction can be determined as text conversion.
  • the terminal device when the terminal device receives the watermark processing instruction carrying text information, it can identify the purpose of the text information corresponding to the watermark processing instruction. If the watermark processing instruction is input in the text conversion mode, the watermark can be The purpose of the text information of the processing instruction is determined to be text conversion, that is, the recognition result indicates that the printing processing instruction is used for text conversion.
  • the terminal displays the usage options of the text information after acquiring the image to be processed, the user selects the text conversion mode, and the terminal device enters the text watermarking mode. Further, after the terminal device enters the text conversion mode, the user enters the text information "confidential and prohibits external transmission". In this case, the terminal device can generate a watermark processing instruction carrying text information, and the text information is "confidential and prohibit external transmission".
  • the terminal device recognizes the watermark processing instruction, and the recognition result indicates that the watermark processing instruction is used for language-to-text conversion, and then converts the text information "confidentiality prohibited from being transmitted" into a target watermark, and adds text to the image to be processed The watermark "confidentiality is prohibited from spreading".
  • the watermark processing instruction when the input mode of the watermark processing instruction is text input, the watermark processing instruction also indicates the purpose of the text information, and the purpose of the text information may include text conversion or watermark invocation.
  • the terminal may display the usage options of the preset text information.
  • the usage options of the preset text information include text conversion and watermark invocation.
  • the terminal device can identify the purpose of the text information corresponding to the watermark processing instruction. If the watermark processing instruction is input in the watermark calling mode, the purpose of the text information of the watermark processing instruction can be determined as the watermark calling.
  • the terminal device displays the use option of the text information after acquiring the image to be processed, and the user selects the watermark calling mode. Further, the terminal device enters the watermark calling mode, and the user enters text information "mosaic". In this case, the terminal device can generate a watermark processing instruction carrying text information, and the text information is "mosaic". Further, the terminal device recognizes the watermark processing instruction, the recognition result indicates that the watermark processing instruction is used for watermark calling, and the called target watermark is a mosaic watermark, and then adds a mosaic watermark to the image to be processed based on the recognition result.
  • the terminal device obtains the image to be processed, and according to receiving the watermark processing instruction carrying processing information input for the image to be processed, then recognizes the above watermark processing instruction, and then performs the watermark operation on the image to be processed based on the recognition result. Get the target image. This can not only increase the diversity of watermarks, improve the interest of the image to be processed, but also increase the intelligence of image processing.
  • FIG. 3 is a schematic flowchart of another image processing method provided by an embodiment of the present application.
  • the image processing method described in this embodiment includes the following steps:
  • steps S301 to S303 For the specific implementation of steps S301 to S303, reference may be made to related descriptions in steps S201 to S203 in the foregoing image processing method, and details are not described herein again.
  • S304 Receive a watermark adjustment instruction input for the target image, and adjust a watermark parameter of the target watermark in the target image based on the watermark adjustment instruction, where the watermark parameter includes one of watermark position, transparency, font size, and inclination Or multiple.
  • the watermark adjustment instructions include voice information instructions, touch information instructions, and so on.
  • the terminal device can perform text recognition on the second voice information carried by the watermark adjustment instruction to obtain the text information corresponding to the second voice information, and based on the second voice information
  • the text information corresponding to the voice information adjusts the watermark parameters of the target watermark.
  • the adjustment of the watermark parameter can 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 the user wants to adjust the target watermark in pig1, he inputs "adjust the target watermark position to the center of pig1" by voice, and the terminal device generates a watermark adjustment instruction carrying the second voice information.
  • the text information corresponding to the voice information is "adjust the target watermark position to the center of pig1".
  • the text information corresponding to the second voice information is "adjust the target watermark position to the center of pig1", and the recognition result indicates that the position of the target watermark is performed
  • the adjustment is to adjust the position of the target watermark to the center position of pig1 based on the text information corresponding to the second voice information.
  • the target image is pig2.
  • the terminal device When the user wants to adjust the target watermark in pig2, through voice input "adjust the font size of the target watermark to small four and the transparency to 50%", the terminal device generates the second voice information
  • the watermark adjustment instruction, the text information corresponding to the second voice information is "adjust the font size of the target watermark to small four, and the transparency to 50%”.
  • the text information corresponding to the second voice information is obtained as "Adjust the target watermark font size to small four and the transparency to 50%", and the recognition result indicates that the target The position and transparency of the target watermark in the watermark parameters are adjusted, and then based on the text information corresponding to the second voice information, the font size of the target watermark is adjusted to small four and the transparency is 50%.
  • the input mode of the watermark adjustment command is touch input (for example, pressing, sliding, clicking, etc.), and the watermark adjustment command carries touch parameters.
  • the terminal device can 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 in the watermark adjustment instruction.
  • the watermark adjustment command carries touch parameters, and the touch parameters include one or more of touch direction and touch strength.
  • the touch parameter includes a touch direction.
  • the terminal device can recognize the touch direction carried in the watermark adjustment instruction, and if it is recognized that the touch direction is the first preset direction, it will increase The transparency of the large target watermark, if it is recognized that the touch direction is the second preset direction, the transparency of the target watermark is reduced. For example, suppose the developer presets to slide left or right to adjust the transparency of the target watermark, and slide to the left (ie, the first preset direction) becomes more transparent, and slide to the right (ie, the second preset direction) becomes less transparent. In this case, after receiving the watermark adjustment instruction, the terminal device recognizes that the touch direction corresponding to the watermark adjustment instruction is sliding to the right and adjusts the transparency of the target watermark, and then reduces the transparency of the target watermark.
  • the above watermark adjustment instruction carrying the touch direction can instruct the terminal device to adjust the transparency of the target watermark, and can also adjust the position of the target watermark. For example, sliding to the left can instruct the terminal device to move the target watermark to the left. Move; sliding to the right can instruct the terminal device to move the target watermark to the right.
  • the corresponding relationship between the specific touch mode and the adjustment of the watermark parameters corresponding to the target watermark can be preset by the developer, and the embodiment of the present application does not specifically limit it here.
  • the touch parameters may include touch direction and touch strength.
  • the terminal device can adjust the watermark parameters of the target watermark in the target image in combination with the touch direction and the touch strength.
  • the terminal device can detect whether the touch strength carried by the watermark adjustment instruction is greater than or equal to the preset touch strength threshold, if so, Then, the watermark parameters of the target watermark are adjusted according to the touch direction carried in the watermark adjustment instruction.
  • the preset touch force threshold is preset according to experimental calculation data, and can be adjusted according to actual needs in the future.
  • the watermark parameters of the target watermark include transparency.
  • the terminal device detects that the touch strength carried by the watermark adjustment command is greater than or equal to the preset touch strength threshold, it can identify the touch direction carried in the watermark adjustment command. If it is recognized that the touch direction is the first preset direction, the transparency of the target watermark is increased, and if it is recognized that the touch direction is the second preset direction, the transparency of the target watermark is decreased. For example, suppose the developer presets to adjust the transparency of the target watermark by sliding left or right, and sliding to the left (that is, the first preset direction) becomes more transparent, and sliding to the right (that is, the second preset direction) becomes less transparent.
  • the terminal device When the terminal device receives a watermark adjustment command carrying a rightward sliding in the touch direction and touch strength, the terminal device detects that the touch strength carried by the watermark adjustment command exceeds the preset touch strength threshold, and the watermark adjustment command corresponds to The touch direction is sliding to the right. In this case, the terminal device adjusts the transparency of the target watermark according to the touch direction, that is, reduces the transparency of the target watermark.
  • the preset touch force threshold is preset according to experimental calculation data, and can be adjusted according to actual needs in the future.
  • the terminal device detects that the touch strength is less than the preset touch strength threshold, it does not adjust the target watermark.
  • a prompt message is output.
  • the prompt message is used to prompt the user to confirm whether to save the target image.
  • the storage area can be the set folder, the system default storage area, etc.
  • the prompt information may be page prompt information or voice prompt information.
  • the terminal device can pop up a text information box 401, which displays the prompt message "Do you want to save the target image?"
  • a text information box 401 displays the prompt message "Do you want to save the target image?"
  • There are two save options (“Yes”, “No", “Cancel” in Figure 4) to operate, if the user selects "Yes” (that is, enter a confirmation command for the prompt message), the target image will be saved to the preset storage area (For example, a folder created by the user in advance). If the user selects "No", the target image is not saved.
  • the terminal device when the target image is obtained by watermarking the image to be processed, the terminal device will issue a voice prompt message "Do you want to save the target image", and the user will make a voice response based on the voice prompt information, and the terminal device will recognize the voice information. If the text information corresponding to the recognition of the voice information is "Yes” (that is, a confirmation instruction is entered for the prompt information), the target image is saved in a preset storage area (for example, a folder created by the user in advance). If the text information corresponding to the recognition of the voice information is "No", the target image is not saved.
  • the terminal device obtains the image to be processed, and according to the received watermark processing instruction carrying processing information input for the image to be processed, and then recognizes the above watermark processing instruction, and then performs the watermark operation on the image to be processed based on the recognition result to obtain
  • the terminal device receives a watermark adjustment instruction input for the target image, and adjusts the watermark parameters of the target watermark in the target image based on the watermark adjustment instruction. This not only increases the flexibility of image processing, but also improves the playability of watermark adjustment.
  • FIG. 5 is a schematic structural diagram of an image processing apparatus provided by an embodiment of the application.
  • the image processing device described in this embodiment includes:
  • the acquiring unit 501 is configured to acquire an image to be processed.
  • the receiving unit 502 is configured to receive a watermark processing instruction carrying processing information input for the image to be processed.
  • the processing unit 503 is configured to recognize the watermark processing instruction, and perform a watermark processing operation on the image to be processed based on the recognition result to obtain a target image.
  • the device further includes: a determining 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 acquiring unit 501 is further configured to acquire the image to be processed in the target image mode.
  • the processing information includes first voice information
  • the processing unit 503 is specifically configured to:
  • the target watermark is added to the to-be-processed image to obtain a target image.
  • the processing information includes first voice information
  • the processing unit 503 is specifically configured to:
  • the recognition result indicates that the watermark processing instruction is used for watermark invocation, selecting a target watermark from at least one preset watermark based on the first voice information;
  • the target watermark is added to the to-be-processed image to obtain a target image.
  • the device further includes: an adjustment unit 505, wherein:
  • the receiving unit 502 is further configured to receive a watermark adjustment instruction input for the target image
  • the adjustment unit 505 is configured to adjust the watermark parameters of the target watermark in the target image based on the watermark adjustment instruction, the watermark parameters including one of watermark position, transparency, font size, and inclination, or Many kinds.
  • the device further includes: an output unit 506 and a storage unit 507, wherein:
  • the output unit 506 is configured to output prompt information, where the prompt information is used to prompt the user to confirm 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.
  • the preset image mode includes one or more of a photo mode, a video mode, and an image mode.
  • the input mode of the watermark adjustment instruction is voice input
  • the watermark adjustment instruction carries second voice information
  • the device further includes: a recognition unit 508, wherein:
  • the recognition unit 508 is 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;
  • the adjustment unit 505 is further configured to adjust the watermark parameters of the target watermark based on the text information corresponding to the second voice information.
  • the input mode of the watermark adjustment instruction is touch input
  • the watermark adjustment instruction carries touch parameters
  • the adjustment unit 505 is specifically configured to:
  • the watermark parameter of the target watermark in the target image is adjusted according to the touch parameter carried in the watermark adjustment instruction.
  • the touch parameters include touch direction and touch strength
  • the adjustment unit 505 is specifically configured to:
  • the watermark parameters of the target watermark include transparency
  • the identification unit 508 is specifically configured to:
  • the transparency of the target watermark is reduced.
  • the obtaining unit 501 is used to obtain the image to be processed
  • the receiving unit 502 is used to receive a watermark processing instruction carrying processing information input for the image to be processed
  • the processing unit 503 recognizes the watermark processing instruction, And based on the recognition result, the image to be processed is watermarked to obtain the target image, which can not only increase the diversity of watermarks, improve the interest of the image to be processed, but also increase the intelligence of image processing.
  • FIG. 6 is a schematic block diagram of a terminal device according to an embodiment of the application.
  • the terminal device in this embodiment as shown in FIG. 6 may include: one or more processors 601; one or more input devices 602, one or more output devices 603, and a memory 604.
  • the aforementioned processor 601, input device 602, output device 603, and memory 604 are connected via a bus 605.
  • the memory 602 is used to store a computer program, and the computer program includes program instructions.
  • the processor 601 is used to execute the program instructions stored in the memory 602 to perform the following operations: obtain an image to be processed through the input device 602, and receive an image to be processed An input watermark processing instruction carrying processing information is recognized, the watermark processing instruction is recognized, and a watermark processing operation is performed on the image to be processed based on the recognition result to obtain a target image.
  • 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 obtain the image to be processed in the target image mode.
  • the processing information includes first voice information
  • the processor 601 is specifically configured to:
  • the recognition result indicates that the watermark processing instruction is used for voice conversion
  • the first voice information is converted into a target watermark; the target watermark is added to the image to be processed to obtain a target image.
  • the processing information includes first voice information
  • the processor 601 is specifically configured to: if the recognition result indicates that the watermark processing instruction is used for watermark invoking, then based on the first voice information from at least one preset A target watermark is selected from the watermark; the target watermark is added to the image to be processed to obtain a target image.
  • the processor 601 is further configured to receive a watermark adjustment instruction input for the target image through the input device 602, and to determine the watermark of the target watermark in the target image based on the watermark adjustment instruction. Parameters are adjusted, and the watermark parameters include one or more of watermark position, transparency, font size, and inclination.
  • the processor 601 is further configured to output prompt information through the output device 603, and the prompt information is used to prompt the user to confirm whether to save the target image;
  • the target image is stored in a preset storage area when the confirmation instruction of the prompt message input is input.
  • the preset image mode includes one or more of a photo mode, a video mode, and an image mode.
  • the input mode of the watermark adjustment instruction is voice input, and the watermark adjustment instruction carries second voice information.
  • the processor 601 is specifically configured to adjust the second voice information carried by the watermark adjustment instruction. Perform text recognition to obtain text information corresponding to the second voice information; adjust the watermark parameters of the target watermark based on the text information corresponding to the second voice information.
  • the input mode of the watermark adjustment instruction is touch input
  • the watermark adjustment instruction carries touch parameters
  • the processor 601 performs an adjustment to the target watermark in the target image based on the watermark adjustment instruction.
  • the adjustment of the watermark parameter is specifically used to respond to the watermark adjustment instruction; and adjust the watermark parameter of the target watermark in the target image according to the touch parameter carried in the watermark adjustment instruction.
  • the touch parameters include touch direction and touch strength
  • 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. If yes, adjust the watermark parameters of the target watermark in the target image according to the touch direction carried in the watermark adjustment instruction.
  • the watermark parameters of the target watermark include transparency
  • the processor 601 is specifically configured to recognize the touch direction carried in the watermark adjustment instruction, and if it is recognized that the touch direction is the first preset If the direction is set, the transparency of the target watermark is increased; if it is recognized that the touch direction is the second preset direction, the transparency of the target watermark is decreased.
  • the processor 601 may be a central processing unit (Central Processing Unit, CPU), and the processor 601 may also be other general-purpose processors or digital signal processors (Digital Signal Processors, DSPs). ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 604 may include a read-only memory and a random access memory, and provides instructions and data to the processor 601. A part of the memory 604 may also include a non-volatile random access memory. The memory 604 may store the target image after the watermark processing.
  • the processor 601, input device 602, output device 603, and memory 604 described in the embodiment of the present application can execute the implementation described in the image processing method provided in the embodiment of the present application, and can also execute the embodiment of the present application.
  • the implementation of the described terminal device will not be repeated here.
  • An embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the above-mentioned image processing can be performed Steps performed in the embodiment.
  • the program can be stored in a computer readable storage medium, and the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments.
  • the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.

Landscapes

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

Abstract

An image processing method and apparatus, a terminal device and a medium, the method comprising: obtaining an image to be processed; receiving a watermark processing instruction carrying processing information inputted for the image; recognizing the watermark processing instruction, and on the basis of the recognition result, performing watermark processing on the image to obtain a target image. The method may not only increase the diversity of watermarks and make an image to be processed more interesting, but may also increase the intelligence of image processing.

Description

一种图像处理方法、装置、终端设备及介质Image processing method, device, terminal equipment and medium
本专利申请要求2019年9月4日提交的中国专利申请号为201910834615.7,申请人为深圳传音控股股份有限公司,发明名称为“图像处理方法、装置、终端设备及介质”的优先权,该申请的全文以引用的方式并入本申请中。This patent application claims the priority of the Chinese patent application number 201910834615.7 filed on September 4, 2019, the applicant is Shenzhen Transsion Holdings Co., Ltd., and the invention title is "Image processing methods, devices, terminal equipment and media". This application The full text of is incorporated into this application by reference.
技术领域Technical field
本申请涉及图像处理技术领域,具体涉及一种图像处理方法、装置、终端设备及介质。This application relates to the field of image processing technology, in particular to an image processing method, device, terminal device and medium.
背景技术Background technique
随着计算机技术的发展,用户对图像的趣味性要求越来越高,在图像中增加水印是提高图像的趣味性的常用手段之一。目前,图像中水印的设置通常采用两种方式:第一采用厂商定制好的样式水印;第二,采用用户预先自定义的水印。可以看出,这两种水印的设置方式均为预先设置,水印样式单调,趣味性不高。With the development of computer technology, users have higher and higher requirements for the interest of images. Adding a watermark to an image is one of the commonly used methods to improve the interest of an image. At present, two methods are usually used to set the watermark in the image: first, use the watermark customized by the manufacturer; second, use the watermark customized in advance by the user. It can be seen that the setting methods of these two watermarks are preset, and the watermark style is monotonous and not very interesting.
发明概述Summary of the invention
技术问题technical problem
问题的解决方案The solution to the problem
技术解决方案Technical solutions
本申请的目的在于,提供一种图像处理方法、装置、终端设备及介质,可基于输入的水印处理指令,对待处理图像进行水印处理操作,不仅可以增加水印的多样性,提高待处理图像的趣味性,还可以增加图像处理的智能性。The purpose of this application is to provide an image processing method, device, terminal device, and medium that can perform watermark processing operations on images to be processed based on input watermark processing instructions, which can not only increase the diversity of watermarks, and enhance the interest of the images to be processed It can also increase the intelligence of image processing.
为解决上述技术问题,本申请提供一种图像处理方法,作为其中一种实施方式,所述图像处理方法包括步骤:In order to solve the above technical problems, this application provides an image processing method. As one of the implementation manners, the image processing method includes the steps:
获取待处理图像;Obtain the image to be processed;
接收针对所述待处理图像输入的携带有处理信息的水印处理指令;Receiving a watermark processing instruction carrying processing information input for the to-be-processed image;
识别所述水印处理指令,并基于识别结果对所述待处理图像进行水印处理操作,得到目标图像。Recognizing the watermark processing instruction, and performing a watermark processing operation on the image to be processed based on the recognition result to obtain a target image.
为解决上述技术问题,本申请还提供一种图像处理装置,作为其中一种实施方式,所述图像处理装置包括:To solve the above technical problems, the present application also provides an image processing device. As one of the implementation manners, the image processing device includes:
获取单元,用于获取待处理图像;The acquiring unit is used to acquire the image to be processed;
接收单元,用于接收针对所述待处理图像输入的携带有处理信息的水印处理指令;A receiving unit, configured to receive a watermark processing instruction carrying processing information input for the to-be-processed image;
处理单元,用于识别所述水印处理指令,并基于识别结果对所述待处理图像进行水印处理操作,得到目标图像。The processing unit is configured to recognize the watermark processing instruction, and perform a watermark processing operation on the image to be processed based on the recognition result to obtain a target image.
为解决上述技术问题,本申请还提供一种终端设备,作为其中一种实施方式,所述终端设备包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储支持终端设备执行上述方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第一方面的方法。To solve the above technical problems, this application also provides a terminal device. As one of the implementation manners, the terminal device includes a processor, an input device, an output device, and a memory. The processor, input device, output device, and memory Are connected to each other, wherein the memory is used to store a computer program that supports the terminal device to execute the above method, the computer program includes program instructions, and the processor is configured to invoke the program instructions to execute the method of the above first aspect .
为解决上述技术问题,本申请还提供一种计算机可读存储介质,作为其中一种实施方式,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述第一方面的方法。In order to solve the above technical problems, the present application also provides a computer-readable storage medium. As an implementation manner, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the program instructions are When executed by a processor, the processor is caused to execute the method of the first aspect.
发明的有益效果The beneficial effects of the invention
有益效果Beneficial effect
本申请提供的图像处理方法、装置、终端设备及介质,终端设备可以获取待处理图像,并接收针对待处理图像输入的携带有处理信息的水印处理指令,进而识别该水印处理指令,基于识别结果对待处理图像进行水印操作,得到目标图像。通过实施上述方法,不仅可以增加水印的多样性,提高待处理图像的趣味性,还可以增加图像处理的智能性。The image processing method, device, terminal device, and medium provided in this application. The terminal device can obtain the image to be processed, and receive a watermark processing instruction carrying processing information input for the image to be processed, and then identify the watermark processing instruction based on the recognition result Perform a watermark operation on the image to be processed to obtain the target image. By implementing the above method, not only can the diversity of watermarks be increased, and the interest of the image to be processed can be improved, but also the intelligence of image processing can be increased.
对附图的简要说明Brief description of the drawings
附图说明Description of the drawings
图1是本申请提供的一种图像处理方法的具体流程示意图;FIG. 1 is a schematic diagram of a specific flow of an image processing method provided by the present application;
图2是本申请实施例提供的另一种图像处理方法的流程示意图;2 is a schematic flowchart of another image processing method provided by an embodiment of the present application;
图3是本申请实施例提供的又一种图像处理方法的流程示意图;FIG. 3 is a schematic flowchart of another image processing method provided by an embodiment of the present application;
图4是本申请实施例提供的一种操作保存界面图;FIG. 4 is a diagram of an operation saving interface provided by an embodiment of the present application;
图5是本申请实施例提供的一种图像处理装置的示意图;FIG. 5 is a schematic diagram of an image processing device provided by an embodiment of the present application;
图6是本申请实施例提供的一种终端设备的示意性框图。Fig. 6 is a schematic block diagram of a terminal device according to an embodiment of the present application.
发明实施例Invention embodiment
本发明的实施方式Embodiments of the present invention
为更进一步阐述本申请为达成预定申请目的所采取的技术手段及功效,以下结合附图及较佳实施例,对本申请详细说明如下。In order to further illustrate the technical means and effects adopted by this application to achieve the intended application purpose, the application will be described in detail below with reference to the accompanying drawings and preferred embodiments.
通过具体实施方式的说明,当可对本申请为达成预定目的所采取的技术手段及效果得以更加深入且具体的了解,然而所附图式仅是提供参考与说明之用,并非用来对本申请加以限制。Through the description of the specific implementation manners, it is possible to gain a deeper and specific understanding of the technical means and effects adopted by this application to achieve the intended purpose. However, the accompanying drawings are only for reference and explanation purposes, and are not used to describe the application. limit.
本申请实施例提供的图像处理方法可以是在拍照模式、视频模式或者图像模式通过手机、相机等终端设备获取待处理图像,并在该终端设备上进行图像处理,在图像处理时,可以先设置需要的水印,然后拍摄图像,也可以在获取图像之后设置水印,不仅可以增加水印的多样性,提高待处理图像的趣味性,还可以增加图像处理的智能性。The image processing method provided by the embodiments of this application can be to obtain images to be processed through terminal devices such as mobile phones and cameras in the camera mode, video mode, or image mode, and perform image processing on the terminal device. In the image processing, you can set The watermark is needed, and then the image is taken, and the watermark can also be set after the image is acquired. This can not only increase the diversity of watermarks, improve the interest of the image to be processed, but also increase the intelligence of image processing.
请参见图1,图1是本申请实施例提供的一种图像处理方法的流程图,请参见流程图1的具体实现方式:Please refer to Fig. 1. Fig. 1 is a flowchart of an image processing method provided by an embodiment of the present application. Please refer to the specific implementation of flowchart 1:
首先用户打开语音自动水印功能,终端设备根据模式选择指令,选择视频(video)模式、拍照(photo)模式和照片模式中的一种或者多种,通过语音输入的方式输入携带有语音信息的水印处理指令,终端设备对携带有语音信息的水印处理指令进行识别,若识别结果指示了水印处理指令用于语音转换,则将语音信息转换为目标水印,在待处理图像中添加目标水印,得到目标图像。若识别结果指示了水印处理指令用于水印调用,则基于语音信息从至少一个预设水印中选取出目标水印(根据指令调用水印),在待处理图像中添加目标水印,得到目标图像。同时可以通过语音输入方式输入水印调整指令调整目标水印参数,如果针对视频,在添加水印后直接看效果满意与否,满意就对该视频进行保存;如果是针对照片,则查看成像照片或者查看拍照结果,满意就保存,如果不满意,则重新语音输入执行上述操作。First, the user turns on the voice automatic watermark function, and the terminal device selects one or more of video mode, photo mode and photo mode according to the mode selection instruction, and enters the watermark carrying voice information through voice input Processing instructions, the terminal device recognizes the watermark processing instructions carrying voice information, if the recognition result indicates that the watermark processing instructions are used for voice conversion, the voice information is converted into a target watermark, and the target watermark is added to the image to be processed to obtain the target image. If the recognition result indicates that the watermark processing command is used for watermark calling, the target watermark is selected from at least one preset watermark based on the voice information (the watermark is called according to the command), and the target watermark is added to the image to be processed to obtain the target image. At the same time, you can input the watermark adjustment command through voice input to adjust the target watermark parameters. If you are satisfied with the effect after adding the watermark for a video, save the video if you are satisfied; if it is for a photo, view the imaged photo or view the photo As a result, save if you are satisfied, and if you are not satisfied, re-enter the voice to perform the above operation.
可以看出,采用本申请实施例可以基于识别携带有语音信息的水印处理指令,对待处理图像进行水印处理操作,不仅可以增加水印的多样性,提高待处理图像的趣味性,还可以增加图像处理的智能性。It can be seen that using the embodiments of the application can perform watermark processing operations on images to be processed based on identifying watermark processing instructions that carry voice information, which can not only increase the diversity of watermarks and improve the interest of the images to be processed, but also increase image processing. The intelligence.
请参见图2,图2是本申请实施例提供的另一种图像处理方法的流程示意图,该方法可由终端设备执行。本实施例中所描述的图像处理方法,包括以下步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of another image processing method provided by an embodiment of the present application, and the method may be executed by a terminal device. The image processing method described in this embodiment includes the following steps:
S101、获取待处理图像。S101. Obtain an image to be processed.
在一个可行的实施例中,在获取待处理图像之前,终端设备可以根据模式选择指令从至少一个预设图像模式中确定出目标图像模式,在目标模式下获取待处理图像。其中,该预设图像模式可以是拍照模式、视频模式和图像模式的一种或者多种。In a feasible embodiment, before acquiring the image to be processed, the terminal device may determine the 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. Wherein, the preset image mode may be one or more of a photo mode, a video mode, and an image mode.
其中,该模式选择指令的输入方式可以为语音、按压、滑动、点击等等。示例性地,若用户针对拍照模式输入选择指令(即模式选择指令),终端设备可以将该拍照模式确定为目标图像模式。Wherein, the input mode of the mode selection instruction can be voice, pressing, sliding, clicking, and so on. Exemplarily, if the user inputs a selection instruction (ie, a mode selection instruction) for a photographing mode, the terminal device may determine the photographing mode as the target image mode.
示例性地,该预设图像模式可以包括拍照模式、视频模式和图像模式。在用户想要进行图像处理时,终端设备可以在显示屏中展示拍照模式、视频模式和图像模式供用户选择,若用户选择拍照模式,终端设备可以调用摄像装置拍摄图像,在检测到用户输入的拍照操作后,可以获取该摄像装置当前拍摄的图像(即待处理图像),并在当前显示屏中输出该待处理图像。Exemplarily, the preset image mode may include a photo mode, a video mode, and an image mode. When the user wants to perform image processing, the terminal device can display the camera mode, video mode, and image mode on the display screen for the user to choose. If the user selects the camera mode, the terminal device can call the camera device to take the image. After the photographing operation, the image currently shot by the camera device (ie, the image to be processed) can be acquired, and the image to be processed can be output on the current display screen.
若用户选择图像模式,例如相册模式,终端设备可以跳转至终端设备的相册,用户浏览相册中的多个图像之后,可以从多个图像中选择自己想要进行水印处理的图像。针对这种情况,若终端设备检测到用户针对相册中任一图像输入的选择操作,则可以将该任一图像确定为待处理图像,并在当前显示屏中输出该待处理图像。If the user selects the image mode, such as the album mode, the terminal device can jump to the album of the terminal device. After browsing multiple images in the album, the user can select the image that he wants to be watermarked from the multiple images. In view of this situation, if the terminal device detects the user's selection operation for any image input in the album, it can determine any image as a to-be-processed image, and output the to-be-processed image on the current display screen.
若用户选择视频模式,终端设备可以调用摄像装置拍摄视频,在视频拍摄过程中,终端设备可以在当前显示屏中展示摄像装置所拍摄的图像(即待处理图像)。If the user selects the video mode, the terminal device can call the camera device to shoot the video. During the video shooting process, the terminal device can display the image taken by the camera device (that is, the image to be processed) on the current display screen.
S102、接收针对该待处理图像输入的携带有处理信息的水印处理指令。其中,该处理信息可以包括语音信息、文字信息等。S102. Receive a watermark processing instruction that carries processing information input for the to-be-processed image. Wherein, the processing information may include voice information, text information, and so on.
其中,水印处理指令的输入方式可以包括语音输入或者文本输入。在一个可行的实施例中,当水印处理指令的操作方式为语音输入时,该水印处理指令中携带的处理信息为语音信息。在另一个实施例中,当水印处理指令的操作方式为文本输入时,该水印处理指令中携带的处理信息为文本信息。采用这样的方式,用户可以基于自身的输入习惯选择语音输入或者文本输入。The input mode of the watermark processing instruction may include voice input or text input. In a feasible embodiment, when the operation mode of the watermark processing instruction is voice input, the processing information carried in the watermark processing instruction is voice information. In another embodiment, when the operation mode of the watermark processing instruction is text input, the processing information carried in the watermark processing instruction is text information. In this way, users can select voice input or text input based on their own input habits.
S103、识别该水印处理指令,并基于识别结果对该待处理图像进行水印处理操作,得到目标图像。S103: Recognize the watermark processing instruction, and perform a watermark processing operation on the image to be processed based on the recognition result to obtain a target image.
具体的,终端设备可以响应接收到的携带有处理信息的水印处理指令,并识别上述处理信息,根据识别的结果对待处理图像进行水印处理得到目标图像。Specifically, the terminal device may respond to the received watermark processing instruction carrying processing information, recognize the processing information, and perform watermark processing on the image to be processed according to the recognition result to obtain the target image.
在一个可行的实施例中,当水印处理指令的输入方式为语音输入时,处理信息包括第一语音信息。针对这种情况,可以对该第一语音信息进行语音识别,若识别结果指示了水印处理指令用于语音转换,则将第一语音信息转换为目标水印。In a feasible embodiment, when the input mode of the watermark processing instruction is voice input, the processing information includes the first voice information. In view of this situation, voice recognition may be performed on the first voice information, and if the recognition result indicates that the watermark processing instruction is used for voice conversion, the first voice information is converted into a target watermark.
例如,当用户想要对待处理图像,添加目标水印时,用户发出语音“我要将水印添加为风景这两个字”。针对这种情况,终端设备可以生成携带有第一语音信息的水印处理指令,该第一语音信息对应的文本信息为“我要将水印添加为风景这两个字”,并对该水印处理指令进行识别,识别结果指示了该水印处理指令用于语音转换,且将水印添加为“风景”这两个字,进一步地,终端设备可以将第一语音信息转化成文本信息“风景”,并对该待处理图像添加文字水印“风景”。For example, when the user wants to add a target watermark to an image to be processed, the user sends out the voice "I want to add the watermark as the two words landscape". In response to this situation, the terminal device can generate a watermark processing instruction carrying the first voice information, the text information corresponding to the first voice information is "I want to add the watermark as the two words landscape", and the watermark processing instruction The recognition result indicates that the watermark processing instruction is used for voice conversion, and the watermark is added as the two words "landscape". Further, the terminal device can convert the first voice information into the text information "landscape", and Add text watermark "Landscape" to the image to be processed.
在另一个可行的实施例中,若识别结果指示了水印处理指令用于水印调用,则基于第一语音信息从至少一个预设水印中选取出目标水印,并对待处理图像中添加目标水印,得到目标图像。其中,该预设水印为开发人员预先设置的,例如可以为日期水印、地点水印、马赛克水印等等。In another feasible embodiment, if the recognition result indicates that the watermark processing instruction is used for watermark invocation, 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 Target image. Wherein, the preset watermark is preset by the developer, for example, it may be a date watermark, a location watermark, a mosaic watermark, and so on.
例如,当用户想要对待处理图像,添加目标水印时,用户发出语音“调用马赛克”,针对这种情况,终端设备可以生成携带有第一语音信息的水印处理指令,该第一语音信息对应的文本信息为“调用马赛克”,并对该水印处理指令进行识别,识别结果指示了该水印处理指令用于水印调用,调用的目标水印为“马赛克”,进一步地,终端设备可以基于该识别结果调用马赛克水印,并对该待处理图像 添加马赛克水印。For example, when the user wants to add a target watermark to the image to be processed, the user sends out the voice "call mosaic". In this case, the terminal device can generate a watermark processing instruction carrying the first voice information, which corresponds to the first voice information. The text information is "invoking mosaic", and the watermark processing instruction is recognized. The recognition result indicates that the watermark processing instruction is used for watermark invoking, and the target watermark to be invoked is "mosaic". Further, the terminal device can call based on the recognition result Mosaic watermark, and add a mosaic watermark to the image to be processed.
在一个可行的实施例中,当水印处理指令的输入方式为语音输入时,该水印处理指令还指示了第一语音信息的用途,该第一语音信息的用途可以包括语音转换或者水印调用。示例性地,终端设备在获取到待处理图像之后,可以展示预设语音信息的用途选项,该预设语音信息的用途选项包括语音转换和水印调用,当用户选择语音转换,终端设备进入语音转换模式,当检测到用户在语音转换模式下输入水印处理指令时,则可以将该水印处理指令携带的第一语音信息的用途确定为语音转换。In a feasible embodiment, when the input mode of the watermark processing instruction is voice input, the watermark processing instruction also indicates the purpose of the first voice information, and the purpose of the first voice information may include voice conversion or watermark invocation. Exemplarily, after the terminal device obtains the image to be processed, it may display the usage options of the preset voice information. The usage options of the preset voice information include voice conversion and watermark invocation. When the user selects voice conversion, the terminal device enters the voice conversion Mode, when it is detected that the user inputs a watermark processing instruction in the voice conversion mode, the purpose of the first voice information carried by the watermark processing instruction can be determined as voice conversion.
进一步地,当终端设备接收到上述携带有第一语音信息的水印处理指令后,可以识别该水印处理指令的用途以及该第一语音信息对应的文本信息。若该水印处理指令为语音转换模式下输入的,则可以将该水印处理指令的用途确定为语音转换,也即,识别结果指示了该水印处理指令用于语音转换。Further, after receiving the watermark processing instruction carrying the first voice information, the terminal device can identify the purpose of the watermark processing instruction and the text information corresponding to the first voice information. If the watermark processing instruction is input in the voice conversion mode, the purpose of the watermark processing instruction can be determined as voice conversion, that is, the recognition result indicates that the watermark processing instruction is used for voice conversion.
例如,当用户想要对待处理图像,添加目标水印时,终端设备在获取到待处理图像之后,展示语音信息的用途选项,用户选择语音转换,终端设备进入语音转换模式。进一步地,在终端设备进入语音转换模式后,用户发出语音“机密禁止外传”,针对这种情况,终端设备可以生成携带有第一语音信息的水印处理指令,该水印处理指令的用途为语音转换,该第一语音信息对应的文本信息为“机密禁止外传”。进一步地,终端设备对该水印处理指令进行识别,识别结果指示了该水印处理指令用于语音转换,进而可以将用户输入的语音信息转化成文本信息“机密禁止外传”,并对该待处理图像添加文字水印“机密禁止外传”。For example, when the user wants to add a target watermark to the image to be processed, the terminal device displays the use options of the voice information after acquiring the image to be processed, the user selects voice conversion, and the terminal device enters the voice conversion mode. Further, after the terminal device enters the voice conversion mode, the user sends out the voice "Confidentiality is forbidden to transmit outside". In this case, the terminal device can generate a watermark processing instruction carrying the first voice information, and the purpose of the watermark processing instruction is voice conversion , The text message corresponding to the first voice message is "Confidentiality Prohibited to Disseminate". Further, the terminal device recognizes the watermark processing instruction, the recognition result indicates that the watermark processing instruction is used for voice conversion, and then the voice information input by the user can be converted into the text information "confidentiality prohibited outside transmission", and the image to be processed Add the text watermark "Confidentiality is forbidden to pass on".
在一个可行的实施例中,当水印处理指令的输入方式为语音输入时,该水印处理指令还指示了第一语音信息的用途,该第一语音信息的用途可以包括语音转换或者水印调用。示例性地,终端设备在获取到待处理图像之后,可以展示预设语音信息的用途选项,该预设语音信息的用途选项包括语音转换和水印调用,当用户选择水印调用时,终端设备进入水印调用模式,当检测到用户在水印调用模式下输入水印处理指令时,则可以将该水印处理指令携带的第一语音信息的用途确定水印调用。In a feasible embodiment, when the input mode of the watermark processing instruction is voice input, the watermark processing instruction also indicates the purpose of the first voice information, and the purpose of the first voice information may include voice conversion or watermark invocation. Exemplarily, after obtaining the image to be processed, the terminal device may display the usage options of the preset voice information. The usage options of the preset voice information include voice conversion and watermark invocation. When the user selects the watermark invocation, the terminal device enters the watermark In the call mode, when it is detected that the user inputs a watermark processing instruction in the watermark call mode, the use of the first voice information carried by the watermark processing instruction can be determined to call the watermark.
进一步地,当终端设备接收到上述携带有第一语音信息的水印处理指令后,可 以识别该水印处理指令对应的第一语音信息的用途以及该第一语音信息对应的文本信息。若该水印处理指令为水印调用模式下输入的,则可以将该水印处理指令的用途确定为水印调用,也即,识别结果指示了该水印处理指令用于水印调用。Further, after receiving the watermark processing instruction carrying the first voice information, the terminal device can recognize the purpose of the first voice information corresponding to the watermark processing instruction and the text information corresponding to the first voice information. If the watermark processing instruction is input in the watermark calling mode, the purpose of the watermark processing instruction can be determined as watermark calling, that is, the recognition result indicates that the watermark processing instruction is used for watermark calling.
例如,当用户想要对待处理图像,添加目标水印时,终端设备在获取到待处理图像之后,展示语音信息的用途选项,用户选择水印调用,终端设备进入水印调用模式。进一步地,在终端设备进入水印调用模式后,用户发出语音“马赛克”,针对这种情况,终端设备可以生成携带有第一语音信息的水印处理指令,该第一语音信息对应的文本信息为“马赛克”。进一步地,终端设备对该水印处理指令进行识别,识别结果指示了该水印处理指令用于水印调用,且调用的目标水印为马赛克水印,进而基于该识别结果对该待处理图像添加马赛克水印。For example, when the user wants to add a target watermark to the image to be processed, the terminal device displays the use options of the voice information after acquiring the image to be processed, the user selects the watermark call, and the terminal device enters the watermark call mode. Further, after the terminal device enters the watermark calling mode, the user sends out a voice "mosaic". In this case, the terminal device can generate a watermark processing instruction carrying the first voice information, and the text information corresponding to the first voice information is " Mosaic". Further, the terminal device recognizes the watermark processing instruction, the recognition result indicates that the watermark processing instruction is used for watermark calling, and the called target watermark is a mosaic watermark, and then adds a mosaic watermark to the image to be processed based on the recognition result.
在一个可行的实施例中,当水印处理指令的输入方式为文字输入时,处理信息包括文本信息。针对这种情况,可以对该文本信息进行识别,若识别结果指示了水印处理指令用于文字转换,则文本信息转换为目标水印。In a feasible embodiment, when the input mode of the watermark processing instruction is text input, the processing information includes text information. In view of this situation, the text information can be recognized. If the recognition result indicates that the watermark processing 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 the image to be processed, the user enters the text message "I want to add the watermark as the two words landscape". In response to this situation, the terminal device generates a watermark processing instruction carrying text information, the text information is "I want to add the watermark as the two words landscape", and recognizes the watermark processing instruction carrying the text information, The recognition result indicates that the watermark processing instruction is used for text conversion, and the watermark is added as the two words "landscape". Furthermore, the terminal device can convert the text information "landscape" into the target watermark and add to the image to be processed Text watermark "Landscape".
在另一个可行的实施例中,若识别结果指示了水印处理指令用于水印调用,则基于文本信息从至少一个预设水印中选取出目标水印,并在待处理图像中添加目标水印,得到目标图像。其中,该预设水印为开发人员预先设置的,例如可以为日期水印、地点水印、马赛克水印等等。In another feasible embodiment, if the recognition result indicates that the watermark processing instruction is used for watermark invocation, 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. Wherein, the preset watermark is preset by the developer, for example, it may be a date watermark, a location watermark, a mosaic watermark, and so on.
例如,当用户想要对待处理图像,添加目标水印时,用户输入文本信息“调用马赛克”。针对这种情况,终端设备生成携带有文本信息的水印处理指令进行识别,该文本信息为“调用马赛克”,并对该水印处理指令进行识别,识别结果指示了该水印处理指令用于水印调用,调用的目标水印为“马赛克”。进一步地,终端 设备可以基于识别结果调用马赛克水印,并对该待处理图像添加马赛克水印。For example, when the user wants to add a target watermark to the image to be processed, the user enters text information "call mosaic". In response to this situation, the terminal device generates a watermark processing instruction carrying text information for identification. The text information is "invoking mosaic" and recognizes the watermark processing instruction. The recognition result indicates that the watermark processing instruction is used for watermark invocation. The target watermark to be called is "mosaic". Further, the terminal device can call the mosaic watermark based on the recognition result, and add the mosaic watermark to the image to be processed.
在一个可行的实施例中,当水印处理指令的输入方式为文本输入时,该水印处理指令还指示了文本信息的用途,该文本信息的用途可以包括文字转换或者水印调用。示例性地,终端在获取到待处理图像之后,可以展示预设文本信息的用途选项,该预设文本信息的用途选项包括文字转换和水印调用,当用户选择文字转换,终端设备进入文字转换模式,当检测到用户在文字转换模式下输入水印处理指令时,则可以将该水印处理指令的文本信息的用途确定为文字转换。In a feasible embodiment, when the input mode of the watermark processing instruction is text input, the watermark processing instruction also indicates the purpose of the text information, and the purpose of the text information may include text conversion or watermark invocation. Exemplarily, after the terminal obtains the image to be processed, it can display the usage options of the preset text information. The usage options of the preset text information include text conversion and watermark invocation. When the user selects text conversion, the terminal device enters the text conversion mode When it is detected that the user inputs a watermark processing instruction in the text conversion mode, the use of the text information of the watermark processing instruction can be determined as text conversion.
进一步地,当终端设备接收到上述携带有文本信息的水印处理指令后,可以识别该水印处理指令对应的文本信息的用途,若该水印处理指令为文字转换模式下输入的,则可以将该水印处理指令的文本信息的用途确定为文字转换,也即,识别结果指示了印处理指令用于文字转换。Further, when the terminal device receives the watermark processing instruction carrying text information, it can identify the purpose of the text information corresponding to the watermark processing instruction. If the watermark processing instruction is input in the text conversion mode, the watermark can be The purpose of the text information of the processing instruction is determined to be text conversion, that is, the recognition result indicates that the printing processing instruction is used for text conversion.
例如,当用户想要对待处理图像,添加目标水印时,终端在获取到待处理图像之后,展示文本信息的用途选项,用户选择文字转换模式,终端设备进入添加文字水印模式。进一步地,在终端设备进入文字转换模式后,用户输入文本信息“机密禁止外传”,针对这种情况,终端设备可以生成携带有文本信息的水印处理指令,该文本信息为“机密禁止外传”,进一步地,终端设备对该水印处理指令进行识别,识别结果指示了该水印处理指令用于语文字转换,进而将该文本信息“机密禁止外传”转换成目标水印,并对该待处理图像加文字水印“机密禁止外传”。For example, when the user wants to add a target watermark to an image to be processed, the terminal displays the usage options of the text information after acquiring the image to be processed, the user selects the text conversion mode, and the terminal device enters the text watermarking mode. Further, after the terminal device enters the text conversion mode, the user enters the text information "confidential and prohibits external transmission". In this case, the terminal device can generate a watermark processing instruction carrying text information, and the text information is "confidential and prohibit external transmission". Further, the terminal device recognizes the watermark processing instruction, and the recognition result indicates that the watermark processing instruction is used for language-to-text conversion, and then converts the text information "confidentiality prohibited from being transmitted" into a target watermark, and adds text to the image to be processed The watermark "confidentiality is prohibited from spreading".
在一个可行的实施例中,当水印处理指令的输入方式为文本输入时,该水印处理指令还指示了文本信息的用途,该文本信息的用途可以包括文字转换或者水印调用。示例性地,终端在获取到待处理图像之后,可以展示预设文本信息的用途选项,该预设文本信息的用途选项包括文字转换和水印调用,当用户选择水印调用,终端设备进入水印调用模式,当检测到用户在水印调用模式下输入水印处理指令时,则可以将该水印处理指令的文本信息的用途确定为水印调用。In a feasible embodiment, when the input mode of the watermark processing instruction is text input, the watermark processing instruction also indicates the purpose of the text information, and the purpose of the text information may include text conversion or watermark invocation. Exemplarily, after obtaining the image to be processed, the terminal may display the usage options of the preset text information. The usage options of the preset text information include text conversion and watermark invocation. When the user selects watermark invocation, the terminal device enters the watermark invocation mode When it is detected that the user inputs a watermark processing instruction in the watermark calling mode, the purpose of the text information of the watermark processing instruction can be determined as the watermark calling.
进一步地,当终端设备接收到上述携带有文本信息的水印处理指令后,可以识 别该水印处理指令对应的文本信息的用途。若该水印处理指令为水印调用模式下输入的,则可以将该水印处理指令的文本信息的用途确定为水印调用。Further, after receiving the watermark processing instruction carrying text information, the terminal device can identify the purpose of the text information corresponding to the watermark processing instruction. If the watermark processing instruction is input in the watermark calling mode, the purpose of the text information of the watermark processing instruction can be determined as the watermark calling.
例如,当用户想要对待处理图像,添加目标水印时,终端设备在获取到待处理图像之后,展示文本信息的用途选项,用户选择水印调用模式。进一步地,终端设备进入水印调用模式,用户输入文本信息“马赛克”,针对这种情况,终端设备可以生成携带有文本信息的水印处理指令,该文本信息为“马赛克”。进一步地,终端设备对该水印处理指令进行识别,识别结果指示了该水印处理指令用于水印调用,且调用的目标水印为马赛克水印,进而基于识别结果对该待处理图像添加马赛克水印。For example, when the user wants to add a target watermark to the image to be processed, the terminal device displays the use option of the text information after acquiring the image to be processed, and the user selects the watermark calling mode. Further, the terminal device enters the watermark calling mode, and the user enters text information "mosaic". In this case, the terminal device can generate a watermark processing instruction carrying text information, and the text information is "mosaic". Further, the terminal device recognizes the watermark processing instruction, the recognition result indicates that the watermark processing instruction is used for watermark calling, and the called target watermark is a mosaic watermark, and then adds a mosaic watermark to the image to be processed based on the recognition result.
在本申请实施例中,终端设备获取待处理图像,并根据接收针对待处理图像输入的携带有处理信息的水印处理指令,进而识别上述水印处理指令,然后基于识别结果对待处理图像进行水印操作,得到目标图像。这样不仅可以增加水印的多样性,提高待处理图像的趣味性,还可以增加图像处理的智能性。In the embodiment of the present application, the terminal device obtains the image to be processed, and according to receiving the watermark processing instruction carrying processing information input for the image to be processed, then recognizes the above watermark processing instruction, and then performs the watermark operation on the image to be processed based on the recognition result. Get the target image. This can not only increase the diversity of watermarks, improve the interest of the image to be processed, but also increase the intelligence of image processing.
参见图3,图3是本申请实施例提供的另一种图像处理方法的流程示意图。本实施例中所描述的图像处理方法,包括以下步骤:Refer to FIG. 3, which is a schematic flowchart of another image processing method provided by an embodiment of the present application. The image processing method described in this embodiment includes the following steps:
S301、获取待处理图像。S301. Obtain an image to be processed.
S302、接收针对该待处理图像输入的携带有处理信息的水印处理指令。S302. Receive a watermark processing instruction carrying processing information input for the image to be processed.
S303、识别该水印处理指令,并基于识别结果对该待处理图像进行水印处理操作,得到目标图像。S303. Recognize the watermark processing instruction, and perform a watermark processing operation on the image to be processed based on the recognition result to obtain a target image.
其中,步骤S301~S303的具体实现方式可以参见上述图像处理方法中步骤S201~S203中的相关描述,此处不再赘述。For the specific implementation of steps S301 to S303, reference may be made to related descriptions in steps S201 to S203 in the foregoing image processing method, and details are not described herein again.
S304、接收针对该目标图像输入的水印调整指令,基于该水印调整指令对该目标图像中该目标水印的水印参数进行调整,该水印参数包括水印位置、透明度、字体大小和倾斜度中的一种或者多种。其中,水印调整指令包括语音信息指令、触控信息指令等。S304. Receive a watermark adjustment instruction input for the target image, and adjust a watermark parameter of the target watermark in the target image based on the watermark adjustment instruction, where the watermark parameter includes one of watermark position, transparency, font size, and inclination Or multiple. Among them, the watermark adjustment instructions include voice information instructions, touch information instructions, and so on.
在一个可行的实施例中,水印调整指令的输入方式为语音输入时,终端设备可以对水印调整指令携带的第二语音信息进行文本识别,得到第二语音信息对应的文本信息,并基于第二语音信息对应的文本信息对目标水印的水印参数进行 调整。其中,对水印参数的调整,可以是对单个水印参数的调整,也可以针对多个水印参数的调整。例如,假设目标图像为pig1,当用户想要调整pig1中的目标水印,通过语音输入“调整目标水印位置至pig1中心”,终端设备生成携带有该第二语音信息的水印调整指令,该第二语音信息对应的文本信息为“调整目标水印位置至pig1中心”。针对这种情况,终端设备识别该水印调整指令对应的第二语音信息后,得到第二语音信息对应的文本信息为“调整目标水印位置至pig1中心”,识别结果指示了对目标水印的位置进行调整,则基于第二语音信息对应的文本信息调整目标水印的位置至pig1的中心位置。In a feasible embodiment, when the input mode of the watermark adjustment instruction is voice input, the terminal device can perform text recognition on the second voice information carried by the watermark adjustment instruction to obtain the text information corresponding to the second voice information, and based on the second voice information The text information corresponding to the voice information adjusts the watermark parameters of the target watermark. Among them, the adjustment of the watermark parameter can 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 the user wants to adjust the target watermark in pig1, he inputs "adjust the target watermark position to the center of pig1" by voice, and the terminal device generates a watermark adjustment instruction carrying the second voice information. The text information corresponding to the voice information is "adjust the target watermark position to the center of pig1". In response to this situation, after the terminal device recognizes the second voice information corresponding to the watermark adjustment instruction, the text information corresponding to the second voice information is "adjust the target watermark position to the center of pig1", and the recognition result indicates that the position of the target watermark is performed The adjustment is to adjust the position of the target watermark to the center position of pig1 based on the text information corresponding to the second voice information.
再例如,假设目标图像为pig2,当用户想要调整pig2中的目标水印,通过语音输入“调整目标水印字体大小为小四,透明度为50%”,终端设备生成携带有该第二语音信息的水印调整指令,该第二语音信息对应的文本信息为“调整目标水印字体大小为小四,透明度为50%”。针对这种情况,终端设备识别该水印调整指令对应的语音信息后,得到第二语音信息对应的文本信息为“调整目标水印字体大小为小四,透明度为50%”,识别结果指示了对目标水印参数中目标水印的位置以及透明度进行调整,则基于第二语音信息对应的文本信息调整目标水印字体大小为小四,透明度为50%。For another example, suppose that the target image is pig2. When the user wants to adjust the target watermark in pig2, through voice input "adjust the font size of the target watermark to small four and the transparency to 50%", the terminal device generates the second voice information The watermark adjustment instruction, the text information corresponding to the second voice information is "adjust the font size of the target watermark to small four, and the transparency to 50%". In view of this situation, after the terminal device recognizes the voice information corresponding to the watermark adjustment instruction, the text information corresponding to the second voice information is obtained as "Adjust the target watermark font size to small four and the transparency to 50%", and the recognition result indicates that the target The position and transparency of the target watermark in the watermark parameters are adjusted, and then based on the text information corresponding to the second voice information, the font size of the target watermark is adjusted to small four and the transparency is 50%.
在一个可行的实施例中,水印调整指令的输入方式为触控输入(例如按压、滑动、点击等等),水印调整指令携带有触控参数。针对这种情况,终端设备可以响应该携带有触控参数的水印调整指令,并根据水印调整指令携带的触控参数对目标图像中目标水印的水印参数进行调整。该水印调整指令携带了触控参数,该触控参数包括触控方向和触控力度中的一种或者多种。In a feasible embodiment, the input mode of the watermark adjustment command is touch input (for example, pressing, sliding, clicking, etc.), and the watermark adjustment command carries touch parameters. In response to this situation, the terminal device can 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 in the watermark adjustment instruction. The watermark adjustment command carries touch parameters, and the touch parameters include one or more of touch direction and touch strength.
在一个可行的实施例中,触控参数包括触控方向。在这种情况下,终端设备接收到携带有触控方向的水印调整指令后,可以识别该水印调整指令中携带的触控方向,若识别得到该触控方向为第一预设方向,则增大目标水印的透明度,若识别得到该触控方向为第二预设方向,则减小目标水印的透明度。例如,假设开发人员预先设置向左或者向右滑动调整目标水印的透明度,且向左滑动(即第一预设方向)透明度变大,向右滑动(即第二预设方向)透明度变小。在这种情况下,终端设备接收到水印调整指令后,识别到该水印调整指令对应的 触控方向是向右滑动,且是对目标水印的透明度进行调整,则调小目标水印的透明度。In a feasible embodiment, the touch parameter includes a touch direction. In this case, after the terminal device receives the watermark adjustment instruction carrying the touch direction, it can recognize the touch direction carried in the watermark adjustment instruction, and if it is recognized that the touch direction is the first preset direction, it will increase The transparency of the large target watermark, if it is recognized that the touch direction is the second preset direction, the transparency of the target watermark is reduced. For example, suppose the developer presets to slide left or right to adjust the transparency of the target watermark, and slide to the left (ie, the first preset direction) becomes more transparent, and slide to the right (ie, the second preset direction) becomes less transparent. In this case, after receiving the watermark adjustment instruction, the terminal device recognizes that the touch direction corresponding to the watermark adjustment instruction is sliding to the right and adjusts the transparency of the target watermark, and then reduces the transparency of the target watermark.
可以理解的是,上述携带有触控方向的水印调整指令除了可以指示终端设备调整目标水印的透明度之外,还可以调整目标水印的位置,例如向左滑动,可以指示终端设备将目标水印向左移动;向右滑动,可以指示终端设备将目标水印向右移动。具体的触控方式与目标水印对应水印参数调整的对应关系,可以由开发人员预先设置,本申请实施例在此不作具体限定。It is understandable that the above watermark adjustment instruction carrying the touch direction can instruct the terminal device to adjust the transparency of the target watermark, and can also adjust the position of the target watermark. For example, sliding to the left can instruct the terminal device to move the target watermark to the left. Move; sliding to the right can instruct the terminal device to move the target watermark to the right. The corresponding relationship between the specific touch mode and the adjustment of the watermark parameters corresponding to the target watermark can be preset by the developer, and the embodiment of the present application does not specifically limit it here.
在另一个可行的实施例中,该触控参数可以包括触控方向和触控力度。终端设备可以结合触控方向和触控力度对目标图像中目标水印的水印参数进行调整。在一个可行的实施例中,终端设备接收到携带有触控方向和触控力度的水印调整指令后,可以检测水印调整指令携带的触控力度是否大于或者等于预设触控力度阈值,若是,则根据该水印调整指令中携带的触控方向对目标水印的水印参数进行调整。其中,该预设触控力度阈值为根据实验测算数据预先设置的,后续可以根据实际需求进行调整。In another feasible embodiment, the touch parameters may include touch direction and touch strength. The terminal device can adjust the watermark parameters of the target watermark in the target image in combination with the touch direction and the touch strength. In a feasible embodiment, after receiving the watermark adjustment instruction carrying the touch direction and touch strength, the terminal device can detect whether the touch strength carried by the watermark adjustment instruction is greater than or equal to the preset touch strength threshold, if so, Then, the watermark parameters of the target watermark are adjusted according to the touch direction carried in the watermark adjustment instruction. Among them, the preset touch force threshold is preset according to experimental calculation data, and can be adjusted according to actual needs in the future.
在一个实施例中,目标水印的水印参数包括透明度,当终端设备检测到水印调整指令携带的触控力度大于或者等于预设触控力度阈值后,可以识别水印调整指令中携带的触控方向,若识别得到该触控方向为第一预设方向,则增大所述目标水印的透明度,若识别得到所述触控方向为第二预设方向,则减小所述目标水印的透明度。例如,假设开发人员预先设置向左或者向右滑动调整目标水印的透明度,且向左滑动(即第一预设方向)透明度变大,向右滑动(即第二预设方向)透明度变小,当终端设备接收到携带有触控方向向右滑动和触控力度的水印调整指令后,终端设备检测到水印调整指令携带的触控力度超过预设触控力度阈值,且该水印调整指令对应的触控方向为向右滑动,针对这种情况,终端设备根据该触控方向对目标水印的透明度进行调整,即减小目标水印的透明度。其中,该预设触控力度阈值为根据实验测算数据预先设置的,后续可以根据实际需求进行调整。In one embodiment, the watermark parameters of the target watermark include transparency. When the terminal device detects that the touch strength carried by the watermark adjustment command is greater than or equal to the preset touch strength threshold, it can identify the touch direction carried in the watermark adjustment command. If it is recognized that the touch direction is the first preset direction, the transparency of the target watermark is increased, and if it is recognized that the touch direction is the second preset direction, the transparency of the target watermark is decreased. For example, suppose the developer presets to adjust the transparency of the target watermark by sliding left or right, and sliding to the left (that is, the first preset direction) becomes more transparent, and sliding to the right (that is, the second preset direction) becomes less transparent. When the terminal device receives a watermark adjustment command carrying a rightward sliding in the touch direction and touch strength, the terminal device detects that the touch strength carried by the watermark adjustment command exceeds the preset touch strength threshold, and the watermark adjustment command corresponds to The touch direction is sliding to the right. In this case, the terminal device adjusts the transparency of the target watermark according to the touch direction, that is, reduces the transparency of the target watermark. Among them, the preset touch force threshold is preset according to experimental calculation data, and can be adjusted according to actual needs in the future.
或者,若终端设备检测到该触控力度小于上述预设触控力度阈值,则不对目标水印进行调整。Or, if the terminal device detects that the touch strength is less than the preset touch strength threshold, it does not adjust the target watermark.
在一个可行的实施例中,在对待处理图像进行水印处理得到目标图像后,输出提示信息,提示信息是用于提示用户确认是否保存该目标图像,当接收到用户针对提示信息输入的确认指令时,将目标图像存储在预设存储区域,存储区域可以是设置的文件夹、系统默认的存储区域等。其中,该提示信息可以是页面提示信息或者是语音提示信息。In a feasible embodiment, after the image to be processed is watermarked to obtain the target image, a prompt message is output. The prompt message is used to prompt the user to confirm whether to save the target image. When a confirmation instruction input by the user for the prompt information is received , Store the target image in the preset storage area, the storage area can be the set folder, the system default storage area, etc. Wherein, the prompt information may be page prompt information or voice prompt information.
例如,当对待处理图像进行水印处理得到目标图像后,如图4所示,终端设备可以弹出一个文本信息框401,该文本信息框中显示有提示信息“是否保存目标图像”,用户可以对多个保存选项(如图4中的“是”、“否”、“取消”)进行操作,若用户选择“是”(即针对提示信息输入确认指令),则将目标图像保存到预设存储区域(例如用户提前建立的文件夹)。若用户选择“否”,则不保存目标图像。For example, when the target image is obtained by watermarking the image to be processed, as shown in Figure 4, the terminal device can pop up a text information box 401, which displays the prompt message "Do you want to save the target image?" There are two save options ("Yes", "No", "Cancel" in Figure 4) to operate, if the user selects "Yes" (that is, enter a confirmation command for the prompt message), the target image will be saved to the preset storage area (For example, a folder created by the user in advance). If the user selects "No", the target image is not saved.
或者,当对待处理图像进行水印处理得到目标图像后,终端设备会发出语音提示信息“是否保存目标图像”,且用户根据该语音提示信息,做出语音回答,终端设备对该语音信息进行识别,若语音信息的识别对应的文本信息为“是”(即针对提示信息输入确认指令),则将目标图像保存到预设存储区域(例如用户提前建立的文件夹)。若语音信息的识别对应的文本信息为“否”,则不保存目标图像。Or, when the target image is obtained by watermarking the image to be processed, the terminal device will issue a voice prompt message "Do you want to save the target image", and the user will make a voice response based on the voice prompt information, and the terminal device will recognize the voice information. If the text information corresponding to the recognition of the voice information is "Yes" (that is, a confirmation instruction is entered for the prompt information), the target image is saved in a preset storage area (for example, a folder created by the user in advance). If the text information corresponding to the recognition of the voice information is "No", the target image is not saved.
本申请实施例中,终端设备获取待处理图像,并根据接收针对待处理图像输入的携带有处理信息的水印处理指令,进而识别上述水印处理指令,然后基于识别结果对待处理图像进行水印操作,得到目标图像,终端设备接收针对该目标图像输入的水印调整指令,并基于该水印调整指令对该目标图像中该目标水印的水印参数进行调整。这样不仅增加图像处理的灵活性,也可以提高水印调整的可玩性。In the embodiment of this application, the terminal device obtains the image to be processed, and according to the received watermark processing instruction carrying processing information input for the image to be processed, and then recognizes the above watermark processing instruction, and then performs the watermark operation on the image to be processed based on the recognition result to obtain For the target image, the terminal device receives a watermark adjustment instruction input for the target image, and adjusts the watermark parameters of the target watermark in the target image based on the watermark adjustment instruction. This not only increases the flexibility of image processing, but also improves the playability of watermark adjustment.
请参阅图5,图5为本申请实施例提供的一种图像处理装置的结构示意图。本实施例中所描述的图像处理装置,包括:Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of an image processing apparatus provided by an embodiment of the application. The image processing device described in this embodiment includes:
获取单元501,用于获取待处理图像。The acquiring unit 501 is configured to acquire an image to be processed.
接收单元502,用于接收针对所述待处理图像输入的携带有处理信息的水印处理指令。The receiving unit 502 is configured to receive a watermark processing instruction carrying processing information input for the image to be processed.
处理单元503,用于识别所述水印处理指令,并基于识别结果对所述待处理图 像进行水印处理操作,得到目标图像。The processing unit 503 is configured to recognize the watermark processing instruction, and perform a watermark processing operation on the image to be processed based on the recognition result to obtain a target image.
可选地,所述装置还包括:确定单元504,其中:Optionally, the device further includes: a determining unit 504, wherein:
所述确定单元504,用于基于模式选择指令从至少一个预设图像模式中确定出目标图像模式;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;
所述获取单元501,还用于在所述目标图像模式下获取待处理图像。The acquiring unit 501 is further configured to acquire the image to be processed in the target image mode.
可选地,所述处理信息包括第一语音信息,所述处理单元503,具体用于:Optionally, the processing information includes first voice information, and the processing unit 503 is specifically configured to:
若识别结果指示了所述水印处理指令用于语音转换,则将所述第一语音信息转换为目标水印;If the recognition result indicates that the watermark processing instruction is used for voice conversion, converting the first voice information into a target watermark;
在所述待处理图像中添加所述目标水印,得到目标图像。The target watermark is added to the to-be-processed image to obtain a target image.
可选地,所述处理信息包括第一语音信息,所述处理单元503,具体用于:Optionally, the processing information includes first voice information, and the processing unit 503 is specifically configured to:
若识别结果指示了所述水印处理指令用于水印调用,则基于所述第一语音信息从至少一个预设水印中选取出目标水印;If the recognition result indicates that the watermark processing instruction is used for watermark invocation, selecting a target watermark from at least one preset watermark based on the first voice information;
在所述待处理图像中添加所述目标水印,得到目标图像。The target watermark is added to the to-be-processed image to obtain a target image.
可选地,所述装置还包括:调整单元505,其中:Optionally, the device further includes: an adjustment unit 505, wherein:
所述接收单元502,还用于接收针对所述目标图像输入的水印调整指令;The receiving unit 502 is further configured to receive a watermark adjustment instruction input for the target image;
所述调整单元505,用于基于所述水印调整指令对所述目标图像中所述目标水印的水印参数进行调整,所述水印参数包括水印位置、透明度、字体大小和倾斜度中的一种或者多种。The adjustment unit 505 is configured to adjust the watermark parameters of the target watermark in the target image based on the watermark adjustment instruction, the watermark parameters including one of watermark position, transparency, font size, and inclination, or Many kinds.
可选地,所述装置还包括:输出单元506,存储单元507,其中:Optionally, the device further includes: an output unit 506 and a storage unit 507, wherein:
所述输出单元506,用于输出提示信息,所述提示信息用于提示用户确认是否保存所述目标图像;The output unit 506 is configured to output prompt information, where the prompt information is used to prompt the user to confirm whether to save the target image;
所述存储单元507,用于当所述接收单元502接收到用户针对所述提示信息输入的确认指令时,将所述目标图像存储至预设存储区域。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 photo mode, a video mode, and an image mode.
可选地,所述水印调整指令的输入方式为语音输入,所述水印调整指令携带有第二语音信息,所述装置还包括:识别单元508,其中:Optionally, the input mode of the watermark adjustment instruction is voice input, the watermark adjustment instruction carries second voice information, and the device further includes: a recognition unit 508, wherein:
所述识别单元508,用于对所述水印调整指令携带的所述第二语音信息进行文 本识别,得到所述第二语音信息对应的文本信息;The recognition unit 508 is 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;
所述调整单元505,还用于基于所述第二语音信息对应的文本信息对所述目标水印的水印参数进行调整。The adjustment unit 505 is further configured to adjust the watermark parameters of the target watermark based on the text information corresponding to the second voice information.
可选地,所述水印调整指令的输入方式为触控输入,所述水印调整指令携带有触控参数,所述调整单元505,具体用于:Optionally, the input mode of the watermark adjustment instruction is touch input, the watermark adjustment instruction carries touch parameters, and the adjustment unit 505 is specifically configured to:
响应所述水印调整指令;Responding to the watermark adjustment instruction;
根据所述水印调整指令携带的所述触控参数对所述目标图像中所述目标水印的水印参数进行调整。The watermark parameter of the target watermark in the target image is adjusted according to the touch parameter carried in the watermark adjustment instruction.
可选地,所述触控参数包括触控方向和触控力度,所述调整单元505,具体用于:Optionally, the touch parameters include touch direction and touch strength, and the adjustment unit 505 is specifically configured to:
检测所述水印调整指令携带的所述触控力度是否大于或者等于预设触控力度阈值;Detecting whether the touch strength carried by the watermark adjustment instruction is greater than or equal to a preset touch strength threshold;
若是,则根据所述水印调整指令中携带的所述触控方向对所述目标图像中目标水印的水印参数进行调整。If yes, adjust the watermark parameters of the target watermark in the target image according to the touch direction carried in the watermark adjustment instruction.
可选地,所述目标水印的水印参数包括透明度,所述识别单元508,具体用于:Optionally, the watermark parameters of the target watermark include transparency, and the identification unit 508 is specifically configured to:
识别所述水印调整指令中携带的所述触控方向,若识别得到所述触控方向为第一预设方向,则增大所述目标水印的透明度;Identifying the touch direction carried in the watermark adjustment instruction, and if it is recognized that the touch direction is a first preset direction, increasing the transparency of the target watermark;
若识别得到所述触控方向为第二预设方向,则减小所述目标水印的透明度。If it is recognized that the touch direction is the second preset direction, the transparency of the target watermark is reduced.
在本申请实施例中,获取单元501用于获取待处理图像,接收单元502,用于接收针对所述待处理图像输入的携带有处理信息的水印处理指令,处理单元503识别该水印处理指令,并基于识别结果对该待处理图像进行水印处理操作,得到目标图像,不仅可以增加水印的多样性,提高待处理图像的趣味性,还可以增加图像处理的智能性。In the embodiment of the present application, the obtaining unit 501 is used to obtain the image to be processed, and the receiving unit 502 is used to receive a watermark processing instruction carrying processing information input for the image to be processed, and the processing unit 503 recognizes the watermark processing instruction, And based on the recognition result, the image to be processed is watermarked to obtain the target image, which can not only increase the diversity of watermarks, improve the interest of the image to be processed, but also increase the intelligence of image processing.
可以理解的是,本实施例的数据信息处理装置的各单元的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It is understandable that the functions of each unit of the data information processing apparatus of this embodiment can be specifically implemented according to the method in the above method embodiment, and the specific implementation process can refer to the relevant description of the above method embodiment, and will not be repeated here.
请参阅图6,图6为本申请实施例提供的一种终端设备的示意性框图。如图6所 示的本实施例中的终端设备可以包括:一个或多个处理器601;一个或多个输入设备602,一个或多个输出设备603和存储器604。上述处理器601、输入设备602、输出设备603和存储器604通过总线605连接。存储器602用于存储计算机程序,所述计算机程序包括程序指令,处理器601用于执行存储器602存储的程序指令,执行以下操作:通过输入设备602获取待处理图像,并接收针对所述待处理图像输入的携带有处理信息的水印处理指令,识别所述水印处理指令,并基于识别结果对所述待处理图像进行水印处理操作,得到目标图像。Please refer to FIG. 6, which is a schematic block diagram of a terminal device according to an embodiment of the application. The terminal device in this embodiment as shown in FIG. 6 may include: one or more processors 601; one or more input devices 602, one or more output devices 603, and a memory 604. The aforementioned processor 601, input device 602, output device 603, and memory 604 are connected via a bus 605. The memory 602 is used to store a computer program, and the computer program includes program instructions. The processor 601 is used to execute the program instructions stored in the memory 602 to perform the following operations: obtain an image to be processed through the input device 602, and receive an image to be processed An input watermark processing instruction carrying processing information is recognized, the watermark processing instruction is recognized, and a watermark processing operation is performed on the image to be processed based on the recognition result to obtain a target image.
可选地,所述处理器601,用于基于模式选择指令从至少一个预设图像模式中确定出目标图像模式,在所述目标图像模式下获取待处理图像。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 obtain the image to be processed in the target image mode.
可选地,所述处理信息包括第一语音信息,所述处理器601,具体用于:Optionally, the processing information includes first voice information, and the processor 601 is specifically configured to:
若识别结果指示了所述水印处理指令用于语音转换,则将所述第一语音信息转换为目标水印;在所述待处理图像中添加所述目标水印,得到目标图像。If the recognition result indicates that the watermark processing instruction is used for voice conversion, the first voice information is converted into a target watermark; the target watermark is added to the image to be processed to obtain a target image.
可选地,所述处理信息包括第一语音信息,所述处理器601具体用于若识别结果指示了所述水印处理指令用于水印调用,则基于所述第一语音信息从至少一个预设水印中选取出目标水印;在所述待处理图像中添加所述目标水印,得到目标图像。Optionally, the processing information includes first voice information, and the processor 601 is specifically configured to: if the recognition result indicates that the watermark processing instruction is used for watermark invoking, then based on the first voice information from at least one preset A target watermark is selected from the watermark; the target watermark is added to the image to be processed to obtain a target image.
可选地,所述处理器601,还用于通过所述输入设备602接收针对所述目标图像输入的水印调整指令,并基于所述水印调整指令对所述目标图像中所述目标水印的水印参数进行调整,所述水印参数包括水印位置、透明度、字体大小和倾斜度中的一种或者多种。Optionally, the processor 601 is further configured to receive a watermark adjustment instruction input for the target image through the input device 602, and to determine the watermark of the target watermark in the target image based on the watermark adjustment instruction. Parameters are adjusted, and the watermark parameters include one or more of watermark position, transparency, font size, and inclination.
可选地,所述处理器601,还用于通过所述输出设备603输出提示信息,所述提示信息用于提示用户确认是否保存所述目标图像;当通过所述输入设备602接收到用户针对所述提示信息输入的确认指令时,将所述目标图像存储至预设存储区域。Optionally, the processor 601 is further configured to output prompt information through the output device 603, and the prompt information is used to prompt the user to confirm whether to save the target image; The target image is stored in a preset storage area when the confirmation instruction of the prompt message input is input.
可选地,所述预设图像模式包括拍照模式、视频模式和图像模式中的一种或者多种。Optionally, the preset image mode includes one or more of a photo mode, a video mode, and an image mode.
可选地,所述水印调整指令的输入方式为语音输入,所述水印调整指令携带有第二语音信息所述处理器601,具体用于对所述水印调整指令携带的所述第二语 音信息进行文本识别,得到所述第二语音信息对应的文本信息;基于所述第二语音信息对应的文本信息对所述目标水印的水印参数进行调整。Optionally, the input mode of the watermark adjustment instruction is voice input, and the watermark adjustment instruction carries second voice information. The processor 601 is specifically configured to adjust the second voice information carried by the watermark adjustment instruction. Perform text recognition to obtain text information corresponding to the second voice information; adjust the watermark parameters of the target watermark based on the text information corresponding to the second voice information.
可选地,所述水印调整指令的输入方式为触控输入,所述水印调整指令携带有触控参数,所述处理器601基于所述水印调整指令对所述目标图像中所述目标水印的水印参数进行调整,具体用于响应所述水印调整指令;根据所述水印调整指令携带的所述触控参数对所述目标图像中所述目标水印的水印参数进行调整。Optionally, the input mode of the watermark adjustment instruction is touch input, the watermark adjustment instruction carries touch parameters, and the processor 601 performs an adjustment to the target watermark in the target image based on the watermark adjustment instruction. The adjustment of the watermark parameter is specifically used to respond to the watermark adjustment instruction; and adjust the watermark parameter of the target watermark in the target image according to the touch parameter carried in the watermark adjustment instruction.
可选地,所述触控参数包括触控方向和触控力度,所述处理器601,具体用于检测所述水印调整指令携带的所述触控力度是否大于或者等于预设触控力度阈值;若是,则根据所述水印调整指令中携带的所述触控方向对所述目标图像中目标水印的水印参数进行调整。Optionally, the touch parameters include touch direction and 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. If yes, adjust the watermark parameters of the target watermark in the target image according to the touch direction carried in the watermark adjustment instruction.
可选地,所述目标水印的水印参数包括透明度,所述处理器601,具体用于识别所述水印调整指令中携带的所述触控方向,若识别得到所述触控方向为第一预设方向,则增大所述目标水印的透明度;若识别得到所述触控方向为第二预设方向,则减小所述目标水印的透明度。Optionally, the watermark parameters of the target watermark include transparency, and the processor 601 is specifically configured to recognize the touch direction carried in the watermark adjustment instruction, and if it is recognized that the touch direction is the first preset If the direction is set, the transparency of the target watermark is increased; if it is recognized that the touch direction is the second preset direction, the transparency of the target watermark is decreased.
应当理解,在本申请实施例中,所称处理器601可以是中央处理单元(Central Processing Unit,CPU),该处理器601还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in this embodiment of the application, the processor 601 may be a central processing unit (Central Processing Unit, CPU), and the processor 601 may also be other general-purpose processors or digital signal processors (Digital Signal Processors, DSPs). ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
该存储器604可以包括只读存储器和随机存取存储器,并向处理器601提供指令和数据。存储器604的一部分还可以包括非易失性随机存取存储器。存储器604可以存储进行水印处理后的目标图像。The memory 604 may include a read-only memory and a random access memory, and provides instructions and data to the processor 601. A part of the memory 604 may also include a non-volatile random access memory. The memory 604 may store the target image after the watermark processing.
具体实现中,本申请实施例中所描述的处理器601、输入设备602、输出设备603和存储器604可执行本申请实施例提供的图像处理方法所描述的实现方式,也可执行本申请实施例所描述的终端设备的实现方式,在此不再赘述。In specific implementation, the processor 601, input device 602, output device 603, and memory 604 described in the embodiment of the present application can execute the implementation described in the image processing method provided in the embodiment of the present application, and can also execute the embodiment of the present application. The implementation of the described terminal device will not be repeated here.
本申请实施例中还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时,可执行上述图像处理实施例中所执行的步骤。An embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the above-mentioned image processing can be performed Steps performed in the embodiment.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The program can be stored in a computer readable storage medium, and the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
以上所述,仅是本申请的较佳实施例而已,并非对本申请作任何形式上的限制,虽然本申请已以较佳实施例揭露如上,然而并非用以限定本申请,任何熟悉本专业的技术人员,在不脱离本申请技术方案范围内,当可利用上述揭示的技术内容作出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本申请技术方案内容,依据本申请的技术实质对以上实施例所作的任何简单修改、等同变化与修饰,均仍属于本申请技术方案的范围内。The above are only the preferred embodiments of the application, and do not limit the application in any form. Although the application has been disclosed as the preferred embodiments, it is not intended to limit the application. Anyone familiar with the profession Technical personnel, without departing from the scope of the technical solution of the present application, can use the technical content disclosed above to make slight changes or modifications to equivalent embodiments with equivalent changes, provided that the content of the technical solution of the present application is not deviated from the technical solution of the present application. Any simple modifications, equivalent changes, and modifications made to the above embodiments by technical essence still fall within the scope of the technical solutions of the present application.

Claims (16)

  1. 一种图像处理方法,其中,包括:An image processing method, which includes:
    获取待处理图像;Obtain the image to be processed;
    接收针对所述待处理图像输入的携带有处理信息的水印处理指令;Receiving a watermark processing instruction carrying processing information input for the to-be-processed image;
    识别所述水印处理指令,并基于识别结果对所述待处理图像进行水印处理操作,得到目标图像。Recognizing the watermark processing instruction, and performing a watermark processing operation on the image to be processed based on the recognition result to obtain a target image.
  2. 根据权利要求1所述的方法,其中,所述获取待处理图像之前,所述方法还包括:The method according to claim 1, wherein, before the obtaining the image to be processed, the method further comprises:
    基于模式选择指令从至少一个预设图像模式中确定出目标图像模式;Determining a target image mode from at least one preset image mode based on the mode selection instruction;
    在所述目标图像模式下获取待处理图像。Obtain the image to be processed in the target image mode.
  3. 根据权利要求1所述方法,其中,所述处理信息包括第一语音信息,所述基于识别结果对所述待处理图像进行水印处理操作,得到目标图像,包括:The method according to claim 1, wherein the processing information includes first voice information, and the watermarking operation on the image to be processed based on the recognition result to obtain the target image includes:
    若识别结果指示了所述水印处理指令用于语音转换,则将所述第一语音信息转换为目标水印;If the recognition result indicates that the watermark processing instruction is used for voice conversion, converting the first voice information into a target watermark;
    在所述待处理图像中添加所述目标水印,得到目标图像。The target watermark is added to the to-be-processed image to obtain a target image.
  4. 根据权利要求1所述方法,所述处理信息包括第一语音信息,所述基于识别结果对所述待处理图像进行水印处理操作,得到目标图像,包括:The method according to claim 1, wherein the processing information includes first voice information, and performing a watermark processing operation on the image to be processed based on the recognition result to obtain a target image includes:
    若识别结果指示了所述水印处理指令用于水印调用,则基于所述第一语音信息从至少一个预设水印中选取出目标水印;If the recognition result indicates that the watermark processing instruction is used for watermark invocation, selecting a target watermark from at least one preset watermark based on the first voice information;
    在所述待处理图像中添加所述目标水印,得到目标图像。The target watermark is added to the to-be-processed image to obtain a target image.
  5. 根据权利要求3或4所述的方法,其中,所述基于识别结果对所述待处理图像进行水印处理操作,得到目标图像之后,所述方法还包括:The method according to claim 3 or 4, wherein after the watermarking operation is performed on the image to be processed based on the recognition result to obtain the target image, the method further comprises:
    接收针对所述目标图像输入的水印调整指令;Receiving a watermark adjustment instruction input for the target image;
    基于所述水印调整指令对所述目标图像中所述目标水印的水印参数进行调整,所述水印参数包括水印位置、透明度、字体大小和倾斜度中的一种或者多种。The watermark parameter of the target watermark in the target image is adjusted based on the watermark adjustment instruction, and the watermark parameter includes one or more of watermark position, transparency, font size, and inclination.
  6. 根据权利要求1所述的方法,其中,所述基于识别结果对所述待处理图像进行水印处理操作,得到目标图像之后,所述方法还包括:The method according to claim 1, wherein after the watermarking operation is performed on the image to be processed based on the recognition result to obtain the target image, the method further comprises:
    输出提示信息,所述提示信息用于提示用户确认是否保存所述目标图像;Outputting prompt information, the prompt information being used to prompt the user to confirm whether to save the target image;
    当接收到用户针对所述提示信息输入的确认指令时,将所述目标图像存储至预设存储区域。When a confirmation instruction input by the user for the prompt information is received, the target image is stored in a preset storage area.
  7. 根据权利要求2所述的方法,其中,所述预设图像模式包括拍照模式、视频模式和图像模式中的一种或者多种。The method according to claim 2, wherein the preset image mode includes one or more of a photo mode, a video mode, and an image mode.
  8. 根据权利要求5所述的方法,其中,所述水印调整指令的输入方式为语音输入,所述水印调整指令携带有第二语音信息,所述基于所述水印调整指令对所述目标图像中所述目标水印的水印参数进行调整,包括:The method according to claim 5, wherein the input mode of the watermark adjustment instruction is voice input, the watermark adjustment instruction carries second voice information, and the watermark adjustment instruction is based on the information in the target image. Adjust the watermark parameters of the target watermark, including:
    对所述水印调整指令携带的所述第二语音信息进行文本识别,得到所述第二语音信息对应的文本信息;Performing text recognition on the second voice information carried by the watermark adjustment instruction to obtain text information corresponding to the second voice information;
    基于所述第二语音信息对应的文本信息对所述目标水印的水印参数进行调整。The watermark parameter of the target watermark is adjusted based on the text information corresponding to the second voice information.
  9. 根据权利要求5所述的方法,其中,所述水印调整指令的输入方式为触控输入,所述水印调整指令携带有触控参数,所述基于所述水印调整指令对所述目标图像中所述目标水印的水印参数进行调整,包括:The method according to claim 5, wherein the input mode of the watermark adjustment instruction is touch input, the watermark adjustment instruction carries touch parameters, and the watermark adjustment instruction is based on the control of all data in the target image. Adjust the watermark parameters of the target watermark, including:
    响应所述水印调整指令;Responding to the watermark adjustment instruction;
    根据所述水印调整指令携带的所述触控参数对所述目标图像中所述目标水印的水印参数进行调整。The watermark parameter of the target watermark in the target image is adjusted according to the touch parameter carried in the watermark adjustment instruction.
  10. 根据权利要求9所述的方法,其中,所述触控参数包括触控方向和 触控力度,所述根据所述水印调整指令携带的所述触控参数对所述目标图像中所述目标水印的水印参数进行调整,包括:The method according to claim 9, wherein the touch parameters include touch direction and touch strength, and the touch parameters carried by the watermark adjustment instruction affect the target watermark in the target image. The watermark parameters are adjusted, including:
    检测所述水印调整指令携带的所述触控力度是否大于或者等于预设触控力度阈值;Detecting whether the touch strength carried by the watermark adjustment instruction is greater than or equal to a preset touch strength threshold;
    若是,则根据所述水印调整指令中携带的所述触控方向对所述目标图像中目标水印的水印参数进行调整。If yes, adjust the watermark parameters of the target watermark in the target image according to the touch direction carried in the watermark adjustment instruction.
  11. 根据权利要求10所述的方法,其中,所述目标水印的水印参数包括透明度,所述根据所述水印调整指令中携带的所述触控方向对所述目标图像中目标水印的水印参数进行调整,包括:The method according to claim 10, wherein the watermark parameters of the target watermark include transparency, and the watermark parameters of the target watermark in the target image are adjusted according to the touch direction carried in the watermark adjustment instruction ,include:
    识别所述水印调整指令中携带的所述触控方向,若识别得到所述触控方向为第一预设方向,则增大所述目标水印的透明度;Identifying the touch direction carried in the watermark adjustment instruction, and if it is recognized that the touch direction is a first preset direction, increasing the transparency of the target watermark;
    若识别得到所述触控方向为第二预设方向,则减小所述目标水印的透明度。If it is recognized that the touch direction is the second preset direction, the transparency of the target watermark is reduced.
  12. 一种图像处理装置,其中,包括:An image processing device, which includes:
    获取单元,用于获取待处理图像;The acquiring unit is used to acquire the image to be processed;
    接收单元,用于接收针对所述待处理图像输入的携带有处理信息的水印处理指令;A receiving unit, configured to receive a watermark processing instruction carrying processing information input for the to-be-processed image;
    处理单元,用于识别所述处理信息,并基于识别结果对所述待处理图像进行水印处理操作,得到目标图像。The processing unit is configured to identify the processing information, and perform a watermark processing operation on the image to be processed based on the identification result to obtain a target image.
  13. 根据权利要求12所述的装置,其中,所述处理单元,具体用于若识别结果指示了所述水印处理指令用于语音转换,则将所述第一语音信息转换为目标水印;在所述待处理图像中添加所述目标水印,得到目标图像。The device according to claim 12, wherein the processing unit is specifically configured to convert the first voice information into a target watermark if the recognition result indicates that the watermark processing instruction is used for voice conversion; The target watermark is added to the image to be processed to obtain the target image.
  14. 根据权利要求12所述的装置,其中,所述处理单元,还具体用于若识别结果指示了所述水印处理指令用于水印调用,则基于所述第一语音信息从至少一个预设水印中选取出目标水印;在所述待处理图像中添加所述目标水印,得到目标图像。The device according to claim 12, wherein the processing unit is further specifically configured to: if the recognition result indicates that the watermark processing instruction is used for watermark invocation, select from at least one preset watermark based on the first voice information Select a target watermark; add the target watermark to the image to be processed to obtain a target image.
  15. 一种终端设备,其中,包括处理器、输入设备、输出设备和存储 器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1-11任一项所述的方法。A terminal device, which includes a processor, an input device, an output device, and a memory, the processor, input device, output device, and memory are connected to each other, wherein the memory is used to store a computer program, and the computer program includes Program instructions, the processor is configured to call the program instructions to execute the method according to any one of claims 1-11.
  16. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1-11任一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause the processor to execute as claimed in claim 1. -11 The method of any one.
PCT/CN2019/122509 2019-09-04 2019-12-02 Image processing method and apparatus, terminal device and medium WO2021042600A1 (en)

Applications Claiming Priority (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
CN201910834615.7 2019-09-04

Publications (1)

Publication Number Publication Date
WO2021042600A1 true WO2021042600A1 (en) 2021-03-11

Family

ID=68711272

Family Applications (1)

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

Country Status (2)

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

Citations (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
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
US20170139573A1 (en) * 2015-11-18 2017-05-18 Framy Inc. Method and system for processing composited images
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

Patent Citations (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
US20170139573A1 (en) * 2015-11-18 2017-05-18 Framy Inc. Method and system for processing composited 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
CN110544197A (en) 2019-12-06

Similar Documents

Publication Publication Date Title
US10606456B2 (en) Method to provide user interface to display menu related to image to be photographed, and photographing apparatus applying the same
WO2019109801A1 (en) Method and device for adjusting photographing parameter, storage medium, and mobile terminal
JP6525617B2 (en) Image processing apparatus and control method thereof
KR101916355B1 (en) Photographing method of dual-lens device, and dual-lens device
CN110100251B (en) Apparatus, method, and computer-readable storage medium for processing document
US9692978B2 (en) Image capturing apparatus, control method therefor, and storage medium
WO2017016030A1 (en) Image processing method and terminal
US7856173B2 (en) Shooting device for electrical image stabilizing using relationship between stabilization information and shooting condition
US11825040B2 (en) Image shooting method and device, terminal, and storage medium
US20150254885A1 (en) Image processing apparatus, method of processing image, and computer-readable storage medium
KR20210042952A (en) Image processing method and device, electronic device and storage medium
US9491401B2 (en) Video call method and electronic device supporting the method
CN113747085A (en) Method and device for shooting video
CN110087118B (en) Comment message processing method, comment message processing device, comment message processing terminal, comment message processing server and comment message processing medium
EP2866434A1 (en) Imaging apparatus
EP3575917A1 (en) Collecting fingerprints
WO2019015522A1 (en) Emoticon image generation method and device, electronic device, and storage medium
EP4167566A1 (en) Screen recording method and screen recording system
CN109151318B (en) Image processing method and device and computer storage medium
CN108234880A (en) A kind of image enchancing method and device
CN110618852B (en) View processing method, view processing device and terminal equipment
CN115689963A (en) Image processing method and electronic equipment
JP2008064797A (en) Optical device, imaging apparatus and method for controlling optical device
WO2021042600A1 (en) Image processing method and apparatus, terminal device and medium
JP2020061081A (en) Image processor and method for processing image

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19944183

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19944183

Country of ref document: EP

Kind code of ref document: A1