CN111461950B - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
CN111461950B
CN111461950B CN201910049861.1A CN201910049861A CN111461950B CN 111461950 B CN111461950 B CN 111461950B CN 201910049861 A CN201910049861 A CN 201910049861A CN 111461950 B CN111461950 B CN 111461950B
Authority
CN
China
Prior art keywords
target
watermark
image
shooting
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910049861.1A
Other languages
Chinese (zh)
Other versions
CN111461950A (en
Inventor
刘宇星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910049861.1A priority Critical patent/CN111461950B/en
Publication of CN111461950A publication Critical patent/CN111461950A/en
Application granted granted Critical
Publication of CN111461950B publication Critical patent/CN111461950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0021Image watermarking
    • G06T1/0092Payload characteristic determination in a watermarking scheme, e.g. number of bits to be embedded
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2201/00General purpose image data processing
    • G06T2201/005Image watermarking
    • G06T2201/0051Embedding of the watermark in the spatial domain

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

The disclosure relates to an image processing method and device for improving the use value of watermarks. The method comprises the following steps: acquiring shooting information of a shot original image; the shooting information comprises at least one of shooting parameters, scene mode information and camera working state information; obtaining a target watermark according to the corresponding relation between the shooting information and the watermark; and adding the target watermark to the original image to obtain a target image carrying the target watermark. The technical scheme of the disclosure can improve the use value of the watermark, and is beneficial to improving the fluxion and transmissibility of the image carrying the watermark.

Description

Image processing method and device
Technical Field
The disclosure relates to the technical field of internet, and in particular relates to an image processing method and device.
Background
With the popularization of intelligent terminals such as intelligent mobile phones and tablet personal computers, the intelligent terminals are more and more diversified in functions and more powerful in performance. For example, the effect of shooting images by some intelligent terminals can be compared with that of professional cameras, and the characteristic of portability of the intelligent terminals is added, so that the intelligent terminals become main equipment for shooting images for users in daily life.
In the related art, the smart terminal may render a watermark, for example, a double-shot watermark, on a photographed image, for explaining that the image is photographed by a photographing device having two cameras. However, how to make the watermark rendered on the image photographed by the intelligent terminal exert higher use value is a problem to be solved.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide an image processing method and apparatus for improving the use value of watermarks.
According to a first aspect of an embodiment of the present disclosure, there is provided an image processing method including:
acquiring shooting information of a shot original image; the shooting information comprises at least one of shooting parameters, scene mode information and camera working state information;
obtaining a target watermark according to the corresponding relation between the shooting information and the watermark;
and adding the target watermark to the original image to obtain a target image carrying the target watermark.
In one embodiment, the photographing parameters may include: at least one of aperture value, shutter speed, color temperature value, exposure amount, and white balance value.
In one embodiment, the photographing information may further include at least one of the number of cameras, type information of the cameras, and device information of the photographing device.
In one embodiment, the original image may be a video frame in a photograph or video.
In one embodiment, the original image may include a foreground image and a background image; the layer where the background image is located below the layer where the foreground image is located; the method may further comprise:
blurring the background image in the target image to obtain a blurred background image;
determining the blurring strength of the blurring background image;
and updating the target watermark according to the blurring strength.
In one embodiment, the photographing information may include photographing parameters, which may include an aperture value; the target watermark carries an aperture value for shooting the background image; the updating the target watermark according to the blurring strength may include:
obtaining a target aperture value according to the blurring strength and the corresponding relation between the blurring strength and the aperture value;
obtaining a new target watermark according to the target aperture value and the corresponding relation between the aperture value and the watermark;
updating the target watermark to the new target watermark.
In one embodiment, before the capturing of the captured original image, the method may further include:
when receiving a shooting instruction, shooting at least two original images based on different shooting information;
after the obtaining the target image carrying the target watermark, the method may further include:
storing at least two target images carrying target watermarks; the target watermarks carried by the at least two target images are different.
In one embodiment, the watermark may include at least one of graphics, text.
According to a second aspect of the embodiments of the present disclosure, there is provided an image processing apparatus including:
a first acquisition module configured to acquire shooting information of a shot original image; the shooting information comprises at least one of shooting parameters, scene mode information and camera working state information;
the second acquisition module is configured to acquire a target watermark according to the shooting information and the corresponding relation between the shooting information and the watermark;
and a third acquisition module configured to add the target watermark to the original image to obtain a target image carrying the target watermark.
In one embodiment, the original image may include a foreground image and a background image; the layer where the background image is located below the layer where the foreground image is located; the device further comprises:
the fourth acquisition module is configured to perform blurring processing on the background image in the target image to obtain a blurring background image;
a determining module configured to determine a blurring strength of the blurring-post-blurring background image;
an updating module configured to update the target watermark according to the blurring strength.
In one embodiment, the photographing information may include photographing parameters including an aperture value; the target watermark carries an aperture value for shooting the background image; the updating module comprises:
the first acquisition submodule is configured to acquire a target aperture value according to the blurring strength and the corresponding relation between the blurring strength and the aperture value;
the second acquisition submodule is configured to acquire a new target watermark according to the target aperture value and the corresponding relation between the aperture value and the watermark;
an updating sub-module configured to update the target watermark to the new target watermark.
In one embodiment, the apparatus may further comprise:
the shooting module is configured to shoot at least two original images based on different shooting information when a shooting instruction is received;
a storage module configured to store at least two target images carrying a target watermark; the target watermarks carried by the at least two target images are different.
According to a third aspect of embodiments of the present disclosure, there is provided a terminal device comprising a processor and a memory; the memory is used for storing a computer program; the processor is configured to execute the computer program stored in the memory, and implement the method steps described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the above-described method steps.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: because the shooting information of the shot original image can be obtained, and the target watermark is obtained according to the shooting information and the corresponding relation between the shooting information and the watermark, the shooting information of the original image is carried in the target watermark. The shooting information comprises at least one of shooting parameters, scene mode information and camera working state information, so that the target watermark carries at least one of the shooting parameters, the scene mode information and the camera working state information. In this way, the target watermark is added to the original image, and the obtained target image carrying the target watermark carries at least one of shooting parameters, scene mode information and camera working state information. Therefore, according to the technical scheme of the embodiment of the disclosure, different watermarks can be correspondingly generated according to different shooting information, so that a user can identify the shooting information of the current image through the watermarks, the use value of the watermarks can be improved, and the fluxion and the transmissibility of the images carrying the watermarks can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic view of an image photographed according to the related art.
Fig. 2 is a schematic diagram of an image carrying a watermark according to the related art.
Fig. 3 is a flowchart illustrating an image processing method according to an exemplary embodiment.
Fig. 4 is a schematic diagram of a watermark shown according to an example embodiment.
Fig. 5 is a schematic diagram of a watermark shown according to another exemplary embodiment.
Fig. 6-7 are schematic diagrams of watermarks shown in accordance with another example embodiment.
Fig. 8 is a flowchart illustrating an image processing method according to another exemplary embodiment.
Fig. 9 is a schematic diagram of a watermark shown according to another exemplary embodiment.
Fig. 10 is a flowchart illustrating an image processing method according to another exemplary embodiment.
Fig. 11 is a schematic diagram of a watermark shown according to another exemplary embodiment.
Fig. 12 is a block diagram of an image processing apparatus according to an exemplary embodiment.
Fig. 13 is a block diagram of an image processing apparatus according to another exemplary embodiment.
Fig. 14 is a block diagram of an image processing apparatus according to another exemplary embodiment.
Fig. 15 is a block diagram of an image processing apparatus according to another exemplary embodiment.
Fig. 16 is a block diagram of an image processing apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
In the related art, as shown in fig. 1 to 2, an intelligent terminal may render a double-shot watermark 12 on a shot image 11 to obtain a composite image 13 carrying the double-shot watermark 12. The double watermark 12 includes a solid circle 121 and a hollow circle 122, and a SHOT ON MI 8AI DUAL CAMERA13, where the solid circle 121 and the hollow circle 122 can be used to indicate that the intelligent terminal has two cameras (a wide-angle camera and a tele camera).
However, the double watermark may be rendered on the image, and although the image may be captured by a camera having two cameras, device information of the camera, for example, brand information may be indicated. However, how to make the watermark rendered on the image photographed by the intelligent terminal exert higher use value is a problem to be solved.
The embodiment of the disclosure provides an image processing method and device, which can solve the technical problems and improve the use value of watermarks.
Fig. 3 is a flowchart illustrating an image processing method according to an exemplary embodiment. The image processing method can be applied to terminal equipment with an image pickup device, wherein the terminal equipment can be a smart phone, a tablet personal computer, a personal digital assistant, a camera, a video camera and the like. As shown in fig. 3, the image processing method includes the following steps S301 to S303:
in step S301, shooting information of a shot original image is acquired. The shooting information comprises at least one of shooting parameters, scene mode information and camera working state information.
In step S302, a target watermark is obtained according to the shooting information and the correspondence between the shooting information and the watermark.
In step S303, the target watermark is added to the original image, and a target image carrying the target watermark is obtained.
In one embodiment, the terminal device may operate in a watermark capture mode, rendering a watermark on the captured original image. In an exemplary embodiment, the terminal device may provide a switch that may be used to control the terminal device to enter or exit the watermark capture mode. After the terminal equipment enters the watermark shooting mode, image processing can be carried out according to the steps to obtain a target image carrying a target watermark.
In the embodiment of the disclosure, the terminal device may acquire the photographing information of the original image during the photographing of the original image, or may acquire the photographing information of the original image after photographing the original image. In one embodiment, the terminal device may store the photographing information of the original image locally, and the terminal device may acquire the photographing information of the original image from the local.
In the embodiment of the disclosure, the shooting information may include any combination of shooting parameters, scene mode information, and camera operation state information. In one embodiment, the photographing information may include photographing parameters. In another embodiment, the photographing information may include photographing parameters and scene mode information. In another embodiment, the shooting information may include scene mode information and camera operation state information. In another embodiment, the shooting information may include shooting parameters, scene mode information, and camera operation status information.
In the embodiment of the present disclosure, the photographing parameters may include: at least one of aperture value, shutter speed, color temperature value, exposure amount, and white balance value. The scene mode information may include information of modes such as a portrait blurring mode (subject matter is clear, background blurring when a portrait is photographed), a wide-angle mode, an intelligent scene recognition mode, an automatic mode, a movie mode, a smiling face mode, a landscape mode, a panorama mode, a sports mode, a night scene mode, a pyrotechnic mode, a sunset mode, a snowfield mode, a beach mode, a party mode, a flower mode, a text mode, and the like. The camera working state information can comprise an off state and an on state.
In the embodiment of the present disclosure, the photographing information may further include at least one of number information of cameras, type information of cameras, and device information of photographing devices. In one embodiment, the photographing information may include the number of cameras, the type of cameras, device information of photographing devices, camera operation state information, and scene mode information. In another embodiment, the photographing information may include the number information of cameras, the type information of the cameras, the device information of the photographing device, and an aperture value. In another embodiment, the photographing information may include the number information of cameras, device information of photographing devices, and an aperture value.
In the embodiments of the present disclosure, the number information of cameras may be two, three, or other numbers. The type information of the camera may include, but is not limited to, a wide-angle camera and a tele camera. The device information of the photographing device may include brand information and/or version information of the photographing device, but is not limited thereto.
In one embodiment, the watermark database may be pre-stored in the terminal device. The corresponding relation between shooting information and the watermark can be stored in the watermark database. The terminal equipment can query the watermark database according to the acquired shooting information to obtain the target watermark.
In an embodiment of the disclosure, the watermark includes at least one of graphics and text. In one embodiment, the watermark may include graphics and text. The figures and the characters can be transversely arranged or vertically arranged. The text may be one line or two lines, but is not limited thereto.
In an exemplary embodiment, the terminal device may be a millet handset, and the terminal device is provided with two cameras, one of which is a wide-angle camera and the other of which is a tele camera. The original image is a photograph. When the terminal equipment takes a picture in the image blurring mode, two cameras are called at the same time. In the present exemplary embodiment, the terminal device acquiring the photographing information of the photographed photograph may include: the camera type information (wide-angle camera, tele camera), the equipment information of shooting equipment (millet mobile phone), the camera working state information (the working state of each of the wide-angle camera and tele camera) and scene mode information. The terminal device can query the watermark database according to the acquired shooting information to obtain the target watermark 41 as shown in fig. 4. The solid circle 411 indicates that the wide-angle CAMERA is in an on state, the solid circle 412 indicates that the telephoto CAMERA is in an on state, the "MI PHONE" in the text SHOT ON MI PHONE MI PORTRAIT CAMERA413 indicates a millet mobile PHONE, and the "PORTRAIT CAMERA" indicates a photograph taken by the terminal device in a PORTRAIT blurring mode. The "MI PORTRAIT CAMERA" in the target watermark 41 may highlight the portrait taking capability of the millet handset.
In another exemplary embodiment, the terminal device may be a millet handset, and the terminal device is provided with two cameras, one of which is a wide-angle camera and the other of which is a tele camera. The original image is a photograph. When the terminal device takes a picture using the wide angle mode, only the wide angle camera is called. In the present exemplary embodiment, the terminal device acquiring the photographing information of the photographed photograph may include: the camera information comprises the number information of cameras, the type information of the cameras, the equipment information of shooting equipment, the working state information of the cameras and scene mode information. The terminal device queries the watermark database according to the acquired shooting information to obtain the target watermark 51 shown in fig. 5. Wherein, the solid circle 511 indicates that the wide-angle camera is in an on state, the hollow circle 512 indicates that the tele camera is in an off state, the "MI PHONE" in the text SHOT ON MI PHONE MI SUPER WIDE CAMERA indicates a millet PHONE, and the "upper WIDE CAMERA" indicates a photograph taken by the terminal device in the wide-angle mode. The "MI SUPER WIDE CAMERA" in the target watermark 51 may highlight the ability of the millet handset to take a SUPER wide angle of view.
In yet another exemplary embodiment, the terminal device may be a millet handset, the terminal device being provided with two cameras, one being a wide angle camera and the other being a tele camera. The original image is a video frame in the video. When the terminal equipment records the video, the wide-angle camera and the long-focus camera are called at the same time to record the video normally, the aperture values of the wide-angle camera and the long-focus camera are both 4, the zooming capability of the long-focus camera is called immediately, and the video is recorded by quickly drawing Jiao Duan. In the process of recording video by pulling in the focal length, the aperture value of the tele camera can be changed. For example, one of the frames may have an aperture value of 8. In the present exemplary embodiment, the terminal device acquiring the photographing information of the photographed photograph may include: the number information of cameras, the type information of cameras, the device information of photographing devices, and aperture values.
In the above-described exemplary embodiment, in the process of normally recording video, the terminal device searches the watermark database according to the acquired shooting information to obtain the target watermark 61 as shown in fig. 6. Here, the aperture icon 611 indicates that the aperture value of the wide-angle CAMERA is 4, the aperture icon 612 indicates that the aperture value of the telephoto CAMERA is 4, the letter SHOT ON MI PHONE MI DUAL CAMERA indicates that "MI PHONE" in the text SHOT ON MI PHONE MI DUAL CAMERA indicates that the terminal device has two CAMERAs. In the process of recording video in the zoom-in section, the terminal device queries the watermark database according to the acquired shooting information to obtain the target watermark 62 as shown in fig. 7. Here, the aperture icon 621 represents that the aperture value of the wide-angle camera is 4, the aperture icon 622 represents that the aperture value of the telephoto camera is 8, and the "LONG TELE CAMERA" in the text SHOT ON MI PHONE MI LONG TELE CAMERA623 may highlight the zoom capability of the millet mobile phone.
In one embodiment, the terminal device may add the target watermark to the original image to obtain a target image carrying the target watermark. In the embodiment of the disclosure, in the target image, the original image and the target watermark may be located in different layers, and the layer in which the target watermark is located may be located above the layer in which the original image is located.
In one embodiment, before step S301, the method may further include: when a photographing instruction is received, at least two original images are photographed based on different photographing information. And after step S303, may further include: storing at least two target images carrying target watermarks; the target watermarks carried by the at least two target images are different. For example, in the continuous shooting mode, after the terminal device receives a shooting instruction, if shooting information changes during shooting, the terminal device may shoot at least two original images based on different shooting information. Then, the terminal device can obtain corresponding target watermarks according to respective shooting information of at least two original images to obtain at least two target watermarks. Then, the terminal device may add at least two target watermarks to the corresponding original images, resulting in at least two target images carrying the target watermarks. Because the shooting information of each of the at least two original images is different, the target watermarks carried by the at least two target images are also different. Thus, the user can conveniently recognize the shooting information of the current image through the watermark, and the use value of the watermark can be improved. It should be noted that, the image processing method in the continuous shooting mode is similar to the image processing method in the video recording process, and will not be illustrated here.
In the embodiment of the disclosure, the target watermark carried by the target image includes at least one of shooting parameters, scene mode information and camera working state information, so that the target image can show that the original image in the target image can be shot under what shooting conditions, and the use value of the watermark, the flow property and the transmissibility of the image are improved. Moreover, the hardware capability of the mobile phone can be better and more exposed and highlighted in the image circulation process.
In the embodiment of the disclosure, because the shooting information of the shot original image can be obtained, and the target watermark is obtained according to the shooting information and the corresponding relation between the shooting information and the watermark, the shooting information of the original image is carried in the target watermark. The shooting information comprises at least one of shooting parameters, scene mode information and camera working state information, so that the target watermark carries at least one of the shooting parameters, the scene mode information and the camera working state information. In this way, the target watermark is added to the original image, and the obtained target image carrying the target watermark carries at least one of shooting parameters, scene mode information and camera working state information. Therefore, according to the technical scheme of the embodiment of the disclosure, different watermarks can be correspondingly generated according to different shooting information, so that a user can identify the shooting information of the current image through the watermarks, the use value of the watermarks can be improved, and the fluxion and the transmissibility of the images carrying the watermarks can be improved.
Fig. 8 is a flowchart illustrating an image processing method according to another exemplary embodiment. In this embodiment, the original image may include a foreground image and a background image. The layer where the background image is located below the layer where the foreground image is located. For example, when the terminal device shoots a person image in a portrait blurring mode, the shot original image includes a foreground image and a background image, the foreground image is a clear person image, the background image is a blurred background image, and a layer where the background image is located below a layer where the foreground image is located. On the basis of the embodiment shown in fig. 1, after the above step S301, the following steps S801 to S803 may be further included:
in step S801, a blurring process is performed on a background image in the target image, so as to obtain a blurred background image.
In one embodiment, the terminal device may provide a function of adjusting the degree of blurring of the background image in the target image. After obtaining the target image carrying the target watermark, the terminal device can perform blurring processing on the background image in the target image according to the received control instruction for adjusting the blurring strength of the background image, so as to obtain a blurring background image.
In step S802, the blurring strength of the blurring-post-blurring background image is determined.
In one exemplary embodiment, the image may be divided into 100 blur levels from sharp to gaussian blur, each blur level corresponding to one blurring strength value. For example, when the image is clear, the blurring level 1 corresponds to a blurring strength value of 1, when the image is gaussian-blurred, the blurring level 100 corresponds to a blurring strength value of 100, and the blurring strength value of 100 corresponds to a blurring strength value of 1. The corresponding relation between the blurring level and blurring strength can be stored in the terminal device.
In the above-described exemplary embodiment, the terminal device may first determine the blur level of the blurred background image, and then obtain the blurring strength of the background image according to the blur level of the background image and the correspondence between the blur level and the blurring strength.
In step S803, the target watermark is updated according to the blurring strength.
In one embodiment, the blurring strengths of the background images are different, as are the corresponding target watermarks. Thus, when the blurring strength of the background image is updated, the target watermark described above is also updated.
In one embodiment, the photographing information includes photographing parameters including an aperture value; the target watermark carries an aperture value for shooting the background image. As shown in fig. 9, a target watermark 91 may be carried on the target image. The aperture icon 911 in the target watermark 91 indicates that the aperture value of the shot background image is 4, the "MI PHONE" in the text SHOT ON MI PHONE MI DUAL CAMERA912 indicates a millet PHONE, and the "DUAL CAMERA" indicates that the terminal device has two CAMERAs. As shown in fig. 10, step S803 may include the following steps S1001 to S1003:
in step S1001, a target aperture value is obtained according to the blurring strength and the correspondence relationship between blurring strength and aperture value.
In one embodiment, the correspondence between the blurring strength and the aperture value is stored in the terminal device in advance. For example, the aperture values 2 to 22 are divided into 100 levels, each level corresponding to one blurring intensity value. For example, the blurring intensity value corresponding to the aperture value 2 is 1, the blurring intensity value corresponding to the aperture value 2.2 is 2, the blurring intensity value corresponding to the aperture value 2.4 is 3, … …, the blurring intensity value corresponding to the aperture value 21.8 is 99, and the blurring intensity value corresponding to the aperture value 22 is 100. The terminal device may obtain the target aperture value according to the determined blurring strength of the background image and a correspondence between the blurring strength and the aperture value.
In step S1002, a new target watermark is obtained according to the target aperture value and the correspondence between the aperture value and the watermark.
In one embodiment, the correspondence between the aperture value and the watermark is pre-stored in the terminal device. The terminal device may obtain a new target watermark according to the target aperture value and the corresponding relation between the aperture value and the watermark. For example, when the target aperture value of the post-blurring-background image obtained after blurring processing is 8, a new target watermark 92 as shown in fig. 11 may be obtained according to the correspondence relationship of the aperture value and the watermark. Wherein the aperture icon 921 in the target watermark 92 indicates that the aperture value of the photographed background image is 8.
In step S1003, the target watermark is updated to the new target watermark.
In one embodiment, after obtaining the new target watermark, the terminal device may update the target watermark before the blurring process to the new target watermark.
In this embodiment, when editing the blurring degree of the photo later in the album, the user can see that the aperture of the watermark changes in opening and closing along with the change of the blurring strength value, which is a visual feedback of the shooting software capability.
In this embodiment, in the process of adjusting the blurring strength of the background image in the target image, the target watermark may be updated according to the blurring strength of the background image, which provides a feedback manner of the visible photographing software capability.
Fig. 12 is a block diagram of an image processing apparatus according to an exemplary embodiment. In this embodiment, the apparatus includes:
a first acquisition module 121 configured to acquire shooting information of a shot original image; the shooting information comprises at least one of shooting parameters, scene mode information and camera working state information;
a second obtaining module 122 configured to obtain a target watermark according to the shooting information and the correspondence between the shooting information and the watermark;
a third obtaining module 123 is configured to add the target watermark to the original image, and obtain a target image carrying the target watermark.
Fig. 13 is a block diagram of an image processing apparatus according to another exemplary embodiment. In this embodiment, the original image may include a foreground image and a background image; the layer where the background image is located below the layer where the foreground image is located; the apparatus may further comprise:
a fourth obtaining module 124, configured to perform blurring processing on the background image in the target image, so as to obtain a blurred background image;
a determining module 125 configured to determine a blurring strength of the blurring of the background image;
an updating module 126 is configured to update the target watermark in dependence of the blurring strength.
Fig. 14 is a block diagram of an image processing apparatus shown according to another exemplary embodiment. In this embodiment, the photographing information may include photographing parameters, and the photographing parameters may include an aperture value; the target watermark carries an aperture value for shooting the background image; the update module 126 may include:
a first obtaining submodule 1261 configured to obtain a target aperture value according to the blurring strength and the corresponding relation between the blurring strength and the aperture value;
a second obtaining submodule 1262 configured to obtain a new target watermark according to the target aperture value and the corresponding relation between the aperture value and the watermark;
an updating sub-module 1263 configured to update the target watermark to the new target watermark.
Fig. 15 is a block diagram of an image processing apparatus according to another exemplary embodiment. In this embodiment, the apparatus may further include:
a photographing module 127 configured to photograph at least two original images based on different photographing information when a photographing instruction is received;
a saving module 128 configured to save at least two target images carrying a target watermark; the target watermarks carried by the at least two target images are different.
The embodiment of the disclosure also provides a terminal device, which comprises a processor and a memory; the memory is used for storing a computer program; the processor is configured to execute the computer program stored in the memory, and implement the method steps described in any one of the foregoing embodiments.
The disclosed embodiments also provide a computer readable storage medium having a computer program stored therein, which when executed by a processor, implements the method steps of any of the embodiments described above.
The specific manner in which the processor performs the operations in the apparatus of the above embodiments has been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 16 is a block diagram of a terminal device according to an exemplary embodiment. For example, apparatus 1500 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, or the like.
Referring to fig. 16, apparatus 1500 may include one or more of the following components: a processing component 1502, a memory 1504, a power component 1506, a multimedia component 1508, an audio component 1510, an input/output (I/O) interface 1512, a sensor component 1514, and a communications component 1516.
The processing component 1502 generally controls overall operation of the apparatus 1500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 1502 may include one or more processors 1520 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1502 may include one or more modules that facilitate interactions between the processing component 1502 and other components. For example, the processing component 1502 may include a multimedia module to facilitate interaction between the multimedia component 1508 and the processing component 1502.
The memory 1504 is configured to store various types of data to support operations at the device 1000. Examples of such data include instructions for any application or method operating on the apparatus 1500, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1504 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 1506 provides power to the various components of the device 1500. The power components 1506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 1500.
The multimedia component 1508 comprises a screen between the device 1500 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, multimedia assembly 1508 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the device 1000 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 1510 is configured to output and/or input audio signals. For example, the audio component 1510 includes a Microphone (MIC) configured to receive external audio signals when the device 1500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 1504 or transmitted via the communication component 1516. In some embodiments, the audio component 1510 further comprises a speaker for outputting audio signals.
The I/O interface 1512 provides an interface between the processing component 1502 and peripheral interface modules, which can be keyboards, click wheels, buttons, and the like. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 1514 includes one or more sensors for providing status assessment of various aspects of the apparatus 1500. For example, the sensor assembly 1514 may detect an on/off state of the device 1000, a relative positioning of the components, such as a display and keypad of the apparatus 1500, the sensor assembly 1514 may also detect a change in position of the apparatus 1500 or one component of the apparatus 1500, the presence or absence of user contact with the apparatus 1500, an orientation or acceleration/deceleration of the apparatus 1500, and a change in temperature of the apparatus 1500. The sensor assembly 1514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1514 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1516 is configured to facilitate communication between the apparatus 1500 and other devices in a wired or wireless manner. The apparatus 1500 may access a wireless network based on a communication standard, such as WiFi,2G or 3G,4G lte,5G NR, or a combination thereof. In one exemplary embodiment, the communication part 1516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 1516 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as memory 1504, including instructions executable by processor 1520 of apparatus 1500 to perform the above-described methods. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. An image processing method, the method comprising:
acquiring shooting information of a shot original image; the shooting information comprises at least one of shooting parameters, scene mode information and camera working state information;
obtaining a target watermark according to the corresponding relation between the shooting information and the watermark;
adding the target watermark to the original image to obtain a target image carrying the target watermark;
the original image comprises a foreground image and a background image; the layer where the background image is located below the layer where the foreground image is located; the method further comprises the steps of:
blurring the background image in the target image to obtain a blurred background image;
determining the blurring strength of the blurring background image;
updating the target watermark according to the blurring strength;
the shooting information comprises shooting parameters, and the shooting parameters comprise aperture values; the target watermark carries an aperture value for shooting the background image; said updating said target watermark according to said blurring strength, comprising:
obtaining a target aperture value according to the blurring strength and the corresponding relation between the blurring strength and the aperture value;
obtaining a new target watermark according to the target aperture value and the corresponding relation between the aperture value and the watermark;
updating the target watermark to the new target watermark.
2. The method of claim 1, wherein the photographing parameters further comprise: at least one of shutter speed, color temperature value, exposure amount, and white balance value.
3. The method of claim 1, wherein the photographing information further comprises at least one of a number of cameras, a type of cameras, and device information of a photographing device.
4. The method of claim 1, wherein the original image is a video frame in a photograph or video.
5. The method according to claim 1, further comprising, prior to the acquiring the photographing information of the photographed original image:
when receiving a shooting instruction, shooting at least two original images based on different shooting information;
after the target image carrying the target watermark is obtained, the method further comprises:
storing at least two target images carrying target watermarks; the target watermarks carried by the at least two target images are different.
6. The method of claim 1, wherein the watermark comprises at least one of graphics and text.
7. An image processing apparatus, characterized in that the apparatus comprises:
a first acquisition module configured to acquire shooting information of a shot original image; the shooting information comprises at least one of shooting parameters, scene mode information and camera working state information;
the second acquisition module is configured to acquire a target watermark according to the shooting information and the corresponding relation between the shooting information and the watermark;
a third acquisition module configured to add the target watermark to the original image, obtaining a target image carrying the target watermark;
the original image comprises a foreground image and a background image; the layer where the background image is located below the layer where the foreground image is located; the device further comprises:
the fourth acquisition module is configured to perform blurring processing on the background image in the target image to obtain a blurring background image;
a determining module configured to determine a blurring strength of the blurring-post-blurring background image;
an updating module configured to update the target watermark according to the blurring strength;
the shooting information comprises shooting parameters, and the shooting parameters comprise aperture values; the target watermark carries an aperture value for shooting the background image; the updating module comprises:
the first acquisition submodule is configured to acquire a target aperture value according to the blurring strength and the corresponding relation between the blurring strength and the aperture value;
the second acquisition submodule is configured to acquire a new target watermark according to the target aperture value and the corresponding relation between the aperture value and the watermark;
an updating sub-module configured to update the target watermark to the new target watermark.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the shooting module is configured to shoot at least two original images based on different shooting information when a shooting instruction is received;
a storage module configured to store at least two target images carrying a target watermark; the target watermarks carried by the at least two target images are different.
9. A terminal device comprising a processor and a memory; the memory is used for storing a computer program; the processor being adapted to execute a computer program stored on the memory for implementing the method steps of any of claims 1-6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-6.
CN201910049861.1A 2019-01-18 2019-01-18 Image processing method and device Active CN111461950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910049861.1A CN111461950B (en) 2019-01-18 2019-01-18 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910049861.1A CN111461950B (en) 2019-01-18 2019-01-18 Image processing method and device

Publications (2)

Publication Number Publication Date
CN111461950A CN111461950A (en) 2020-07-28
CN111461950B true CN111461950B (en) 2023-10-17

Family

ID=71684897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910049861.1A Active CN111461950B (en) 2019-01-18 2019-01-18 Image processing method and device

Country Status (1)

Country Link
CN (1) CN111461950B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143429B (en) * 2021-11-30 2024-03-19 惠州Tcl移动通信有限公司 Image shooting method, device, electronic equipment and computer readable storage medium
CN117479002A (en) * 2023-09-15 2024-01-30 荣耀终端有限公司 Image display method, electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104867095A (en) * 2014-02-21 2015-08-26 腾讯科技(深圳)有限公司 Image processing method and device
CN105005960A (en) * 2014-04-21 2015-10-28 腾讯科技(深圳)有限公司 Method, apparatus and system for obtaining watermarking picture
CN105338237A (en) * 2014-08-06 2016-02-17 腾讯科技(深圳)有限公司 Image processing method and device
CN105554374A (en) * 2015-11-30 2016-05-04 东莞酷派软件技术有限公司 Shooting prompting method and user terminal
CN105847676A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Image processing method and apparatus
WO2017036273A1 (en) * 2015-08-31 2017-03-09 中兴通讯股份有限公司 Imaging method and apparatus
CN109147006A (en) * 2018-06-25 2019-01-04 努比亚技术有限公司 A kind of image processing method, mobile terminal and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104867095A (en) * 2014-02-21 2015-08-26 腾讯科技(深圳)有限公司 Image processing method and device
CN105005960A (en) * 2014-04-21 2015-10-28 腾讯科技(深圳)有限公司 Method, apparatus and system for obtaining watermarking picture
CN105338237A (en) * 2014-08-06 2016-02-17 腾讯科技(深圳)有限公司 Image processing method and device
WO2017036273A1 (en) * 2015-08-31 2017-03-09 中兴通讯股份有限公司 Imaging method and apparatus
CN105554374A (en) * 2015-11-30 2016-05-04 东莞酷派软件技术有限公司 Shooting prompting method and user terminal
CN105847676A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Image processing method and apparatus
CN109147006A (en) * 2018-06-25 2019-01-04 努比亚技术有限公司 A kind of image processing method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN111461950A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN108419016B (en) Shooting method and device and terminal
CN111586282B (en) Shooting method, shooting device, terminal and readable storage medium
CN108154465B (en) Image processing method and device
CN111340731A (en) Image processing method and device, electronic equipment and storage medium
CN114500821B (en) Photographing method and device, terminal and storage medium
CN111461950B (en) Image processing method and device
CN114666490B (en) Focusing method, focusing device, electronic equipment and storage medium
CN114339019B (en) Focusing method, focusing device and storage medium
CN111586296B (en) Image capturing method, image capturing apparatus, and storage medium
CN114070998B (en) Moon shooting method and device, electronic equipment and medium
CN113315903B (en) Image acquisition method and device, electronic equipment and storage medium
CN116866729A (en) Shooting method, shooting device and medium
CN107682623B (en) Photographing method and device
CN110876000B (en) Camera module, image correction method and device, electronic equipment and storage medium
CN107707819B (en) Image shooting method, device and storage medium
CN112346606A (en) Picture processing method and device and storage medium
CN113766115B (en) Image acquisition method, mobile terminal, device and storage medium
CN111464753B (en) Picture shooting method and device and storage medium
CN114339017B (en) Distant view focusing method, device and storage medium
CN113852752B (en) Photo taking method, photo taking device and storage medium
CN118175420A (en) Image acquisition method, device, equipment and storage medium
CN116342373A (en) Image processing method, device, equipment and storage medium
CN116419069A (en) Image preview method, device, terminal equipment and readable storage medium
CN117876275A (en) Image processing method, device, terminal and storage medium
CN117956268A (en) Preview frame rate control method and device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant