CN111461950A - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
CN111461950A
CN111461950A CN201910049861.1A CN201910049861A CN111461950A CN 111461950 A CN111461950 A CN 111461950A CN 201910049861 A CN201910049861 A CN 201910049861A CN 111461950 A CN111461950 A CN 111461950A
Authority
CN
China
Prior art keywords
target
watermark
image
information
shooting
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.)
Granted
Application number
CN201910049861.1A
Other languages
Chinese (zh)
Other versions
CN111461950B (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

Images

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; acquiring a target watermark according to the shooting information and 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 can improve the use value of the watermark and is beneficial to improving the circulation and the propagation of the image carrying the watermark.

Description

Image processing method and device
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to an image processing method and apparatus.
Background
Along with the popularization of intelligent terminals such as smart phones and tablet computers, the intelligent terminals are more and more diversified in functions and more powerful in performance. For example, the effect of some intelligent terminals for shooting images can be comparable to that of professional cameras, and the characteristic of portability of the intelligent terminals makes the intelligent terminals become the main equipment for users to shoot images daily.
In the related art, the smart terminal may render a watermark, for example, a double shot watermark, on a captured image, for explaining that the image is captured by a capturing device having two cameras. However, how to make the watermark rendered on the image shot by the intelligent terminal play higher use value is a problem to be solved.
Disclosure of Invention
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 embodiments 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 shooting information and 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 number information of cameras, type information of cameras, and device information of the photographing device.
In one embodiment, the original image may be a photograph or a video frame in a 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 include:
blurring the background image in the target image to obtain a blurred background image;
determining the blurring strength of the blurred background image;
and updating the target watermark according to the blurring strength.
In one 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 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;
acquiring a new target watermark according to the target aperture value and the corresponding relation between the aperture value and the watermark;
and updating the target watermark to the new target watermark.
In one embodiment, before the acquiring the photographing information of the photographed original image, the method may further include:
when a shooting instruction is received, shooting at least two original images based on different shooting information;
after the obtaining of 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 a graphic and a 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 photographing information of a photographed 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 the third acquisition module is 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, still include:
the fourth acquisition module is configured to perform blurring processing on a background image in the target image to obtain a blurred background image;
a determining module configured to determine a blurring strength of the blurred 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 update module includes:
the first acquisition sub-module 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 obtaining submodule is 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 update sub-module configured to update the target watermark to the new target watermark.
In one embodiment, the apparatus may further include:
a photographing module configured to photograph at least two original images based on different photographing information when a photographing instruction is received;
the storage module is configured to store at least two target images carrying target watermarks; the target watermarks carried by the at least two target images are different.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal device comprising a processor and a memory; the memory for storing a computer program; the processor is configured to execute the computer program stored in the memory to implement the above method steps.
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, performs the above-mentioned method steps.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the target watermark is obtained according to the shooting information and the corresponding relation between the shooting information and the watermark, so that the shooting information of the original image is carried in the target watermark. And because the shooting information comprises at least one of shooting parameters, scene mode information and camera working state information, 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, and therefore, the use value of the watermarks can be improved, and the improvement of the circulation and the propagation of the image carrying the watermarks is facilitated.
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 invention and together with the description, serve to explain the principles of the invention.
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 flow diagram illustrating an image processing method according to an exemplary embodiment.
Fig. 4 is a schematic diagram of a watermark shown in accordance with an example embodiment.
Fig. 5 is a schematic diagram of a watermark shown in accordance with another example embodiment.
Fig. 6-7 are schematic diagrams of watermarks shown in accordance with another exemplary 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 in accordance with another example 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 in accordance with another example embodiment.
Fig. 12 is a block diagram illustrating an image processing apparatus according to an exemplary embodiment.
Fig. 13 is a block diagram illustrating an image processing apparatus according to another exemplary embodiment.
Fig. 14 is a block diagram illustrating an image processing apparatus according to another exemplary embodiment.
Fig. 15 is a block diagram illustrating an image processing apparatus according to another exemplary embodiment.
Fig. 16 is a block diagram illustrating an image processing apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
In the related art, as shown in fig. 1 to fig. 2, the smart terminal may render a double watermark 12 ON a captured image 11 to obtain a composite image 13 carrying the double watermark 12, where the double watermark 12 includes a solid circle 121 and an open circle 122 and a SHOT ON MI 8AI DUA L CAMERA13, and the solid circle 121 and the open circle 122 may be used to indicate that the smart terminal has two CAMERAs (a wide CAMERA and a telephoto CAMERA).
However, although the image is captured by the image capturing device having two cameras, the image may be rendered as a double shot watermark, and device information of the image capturing device, such as brand information, may be indicated. However, how to make the watermark rendered on the image shot by the intelligent terminal play higher use value is a problem to be solved.
The embodiments of the present disclosure provide an image processing method and apparatus, which can solve the above technical problems and improve the use value of a watermark.
FIG. 3 is a flow diagram 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 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 corresponding relationship between the shooting information and the watermark.
In step S303, the target watermark is added to the original image, so as to obtain a target image carrying the target watermark.
In one embodiment, the terminal device may operate in a watermark capture mode to render a watermark on a captured original image. In an exemplary embodiment, the terminal device may be provided with a switch, which may be used to control the terminal device to enter or exit the watermark capture mode. After the terminal device enters the watermark shooting mode, image processing can be performed according to the steps to obtain a target image carrying the target watermark.
In the embodiment of the present disclosure, the terminal device may acquire the shooting information of the original image during shooting of the original image, or may acquire the shooting information of the original image after shooting of the original image. In one embodiment, the terminal device may store the shooting information of the original image locally, and the terminal device may acquire the shooting information of the original image locally.
In the embodiment of the present disclosure, the shooting information may include any combination of shooting parameters, scene mode information, and camera operating 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 operating state information. In another embodiment, the shooting information may include shooting parameters, scene mode information, and camera operating state 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 a portrait blurring mode (subject is clear and background is blurred when the 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 sport mode, a night view mode, a firework mode, a sunset mode, a snow view mode, a beach mode, a party mode, a flower mode, a text mode, and the like. The working state information of the camera can comprise a closing state and an opening state.
In the embodiment of the present disclosure, the photographing information may further include at least one of information on the number of cameras, information on the type of the camera, and information on the apparatus of the photographing apparatus. In one embodiment, the photographing information may include number information of cameras, type information of the cameras, device information of the photographing apparatus, camera operating state information, and scene mode information. In another embodiment, the photographing information may include number information of cameras, type information of cameras, device information of a photographing device, and an aperture value. In another embodiment, the photographing information may include number information of cameras, device information of a photographing device, and an aperture value.
In the embodiment of the present disclosure, the number information of the cameras may be two, three, or other numbers. The type information of the camera may include a wide camera and a telephoto camera, but is not limited thereto. 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. Wherein, the corresponding relation between the 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 present disclosure, the watermark includes at least one of a graphic and a text. In one embodiment, the watermark may include graphics and text. Wherein, the figure and the characters can be transversely arranged and also can be vertically arranged. The text may be in one row or two rows, but is not limited thereto.
In an exemplary embodiment, the terminal device may be a millet mobile phone, and the terminal device is provided with two cameras, wherein one camera is a wide-angle camera and the other camera is a long-focus camera. The original image is a photograph. When the terminal equipment uses the portrait blurring mode to take a picture, two cameras are called simultaneously. In the present exemplary embodiment, the acquiring, by the terminal device, the photographing information of the photographed photo may include: the number information (two) of the cameras, the type information (wide-angle camera and long-focus camera) of the cameras, the equipment information (millet mobile phone) of the shooting equipment, the working state information (the respective working states of the wide-angle camera and the long-focus camera) of the cameras and the scene mode information. The terminal device queries the watermark database according to the acquired shooting information to obtain the target watermark 41 shown in fig. 4. Wherein, the solid circle 411 of the graph indicates that the wide-angle CAMERA is in an open state, the solid circle 412 of the graph indicates that the telephoto CAMERA is in an open state, and "MI PHONE" in the words SHOT ON MI PHONE MI portable 413 indicates a mobile PHONE of millet, and "portable CAMERA" indicates a photo taken by the terminal device in a PORTRAIT blurring mode. The "MI pore CAMERA" in the target watermark 41 may highlight the PORTRAIT shooting capability of the millet handset.
In another exemplary embodiment, the terminal device may be a millet mobile phone, and the terminal device is provided with two cameras, one of which is a wide-angle camera and the other is a telephoto camera. The original image is a photograph. When the terminal device takes a picture using the wide-angle mode, only the wide-angle camera may be called. In the present exemplary embodiment, the acquiring, by the terminal device, the photographing information of the photographed photo may include: the information processing method comprises the following steps of acquiring information of the number of cameras, the type information of the cameras, the equipment information of the shooting equipment, the working state information of the cameras and the 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. The solid circle 511 indicates that the wide-angle camera is in an ON state, the hollow circle 512 indicates that the telephoto camera is in an off state, the word "MI PHONE" in the SHOT ON MI PHONE within the wireless camera513 indicates a cellular PHONE, and the "SUPER WIDE CAMERA" indicates a photo 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 cell phone to take a picture of a SUPER wide angle.
In yet another exemplary embodiment, the terminal device may be a millet mobile phone, and the terminal device is provided with two cameras, one of which is a wide-angle camera and the other of which is a telephoto camera. The original image is a video frame in the video. When the terminal equipment records the video, in the recording process, the wide-angle camera and the long-focus camera are simultaneously called to normally record the video, 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 focus segment is quickly drawn to record the video. In the process of recording a video in a zoom-in section, the aperture value of the telephoto camera changes. For example, the aperture value of one of the video frames may be 8. In the present exemplary embodiment, the acquiring, by the terminal device, the photographing information of the photographed photo may include: information on the number of cameras, information on the type of camera, information on the apparatus of the photographing apparatus, and an aperture value.
In the above exemplary embodiment, during normal recording of video, the terminal device queries the watermark database to obtain the target watermark 61 as shown in fig. 6, where the aperture icon 611 indicates that the aperture value of the wide CAMERA is 4, the aperture icon 612 indicates that the aperture value of the tele CAMERA is 4, the words "MI PHONE" in the SHOT MI PHONE MIDUA L CAMERA613 indicates that the millet cell PHONE is provided, and "DUA L CAMERA" indicates that the terminal device has two CAMERAs, during zooming in, the terminal device queries the watermark database to obtain the target watermark 62 as shown in fig. 7, where the aperture icon 621 indicates that the aperture value of the wide CAMERA is 4, the aperture icon 622 indicates that the aperture value of the tele CAMERA is 8, and the words "L PHONE L E CAMERA" in the SHOT MI L PHONE MI L E CAMERA623 indicates that the zoom capability of the millet cell PHONE is highlighted.
In one embodiment, the terminal device may add the target watermark to the original image to obtain the target image carrying the target watermark. In the embodiment of the present disclosure, in the target image, the original image and the target watermark may be located in different image layers, and the image layer where the target watermark is located may be located above the image layer where 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 may obtain corresponding target watermarks according to respective shooting information of the at least two original images, so as to obtain at least two target watermarks. Then, the terminal device may add the at least two target watermarks to the corresponding original images to obtain at least two target images carrying the target watermarks. Because the shooting information of at least two original images is different, the target watermarks carried by at least two target images are different. Therefore, the shooting information of the current image can be conveniently identified by the user 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 the original image in the target image under what shooting condition, and the use value of the watermark and the circulation and the dissemination of the image are improved. In addition, in the process of image circulation, the hardware capability of the mobile phone can be better exposed and highlighted.
In the embodiment of the present disclosure, since the shooting information of the shot original image can be acquired, and the target watermark is obtained according to the shooting information and the corresponding relationship between the shooting information and the watermark, the target watermark carries the shooting information of the original image. And because the shooting information comprises at least one of shooting parameters, scene mode information and camera working state information, 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, and therefore, the use value of the watermarks can be improved, and the improvement of the circulation and the propagation of the image carrying the watermarks is facilitated.
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. And the layer where the background image is located is positioned below the layer where the foreground image is located. For example, when the terminal device shoots a person image in the 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 step S301, the following steps S801 to S803 may be further included:
in step S801, a background image in the target image is blurred, and a blurred background image is obtained.
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 the terminal device obtains the target image carrying the target watermark, the terminal device may 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 blurred background image.
In step S802, the blurring strength of the blurred 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 a blurring intensity value. For example, when an image is sharp, the blurring level is 1, the blurring level 1 corresponds to a blurring intensity value of 1, when the image is gaussian blurred, the blurring level is 100, and the blurring intensity value of 100 corresponds to the blurring level 100. The terminal device may store a correspondence between the blur level and the blurring strength.
In the above exemplary embodiment, the terminal device may determine the blurring level of the background image after blurring, and then obtain the blurring strength of the background image according to the blurring level of the background image and the corresponding relationship between the blurring level and the blurring strength.
In step S803, the target watermark is updated according to the blurring strength.
In one embodiment, the blurring strength of the background image is different, and the corresponding target watermark is different. Therefore, when the blurring strength of the background image is updated, the above-described target watermark is also updated.
In one embodiment, the shooting information includes shooting parameters including aperture values, the target watermark carries an aperture value for shooting the background image, as shown in FIG. 9, the target watermark 91 may be carried ON the target image, wherein the aperture icon 911 in the target watermark 91 indicates that the aperture value for shooting the background image is 4, the words SHOT ON MI PHONI DUA L CAMERA912 "MI PHONE" indicates a cell PHONE, and "DUA L CAMERA" indicates that the terminal device has two CAMERAs, as shown in FIG. 10, step S803 may include the following steps S1001-S1003:
in step S1001, a target aperture value is obtained according to the blurring strength and the correspondence between the blurring strength and the 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 blurred intensity value. For example, the blurring strength value corresponding to aperture value 2 is 1, the blurring strength value corresponding to aperture value 2.2 is 2, the blurring strength value corresponding to aperture value 2.4 is 3, … …, the blurring strength value corresponding to aperture value 21.8 is 99, and the blurring strength value corresponding to 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 the corresponding relationship 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 corresponding relationship between the aperture value and the watermark.
In one embodiment, the terminal device stores the corresponding relationship between the aperture value and the watermark in advance. The terminal equipment can 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 blurred background image obtained after the blurring process is 8, a new target watermark 92 as shown in fig. 11 may be obtained according to the correspondence between the aperture value and the watermark. Here, aperture icon 921 in target watermark 92 indicates that the aperture value of the captured 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 the embodiment, when the blurring degree of the photo is edited in the middle and later period of the photo album, the user can see that the aperture of the watermark is changed along with the change of the blurring strength value, which is a feedback of the visible capability of the photographing software.
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, so as to provide a feedback mode of the visible capability of the photographing software.
Fig. 12 is a block diagram illustrating an image processing apparatus according to an exemplary embodiment. In this embodiment, the apparatus includes:
a first acquisition module 121 configured to acquire photographing information of a photographed 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 corresponding relationship between the shooting information and the watermark;
a third obtaining module 123, 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 illustrating 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 include:
a fourth obtaining module 124, configured to perform blurring processing on a 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 blurred background image;
an updating module 126 configured to update the target watermark according to the blurring strength.
Fig. 14 is a block diagram illustrating an image processing apparatus according to another exemplary embodiment. In this embodiment, the shooting information may include shooting parameters, and the shooting parameters may include aperture values; the target watermark carries an aperture value for shooting the background image; the update module 126 may include:
a first obtaining sub-module 1261 configured to obtain a target aperture value according to the blurring strength and the corresponding relationship between the blurring strength and the aperture value;
a second obtaining sub-module 1262, configured to obtain a new target watermark according to the target aperture value and the corresponding relationship between the aperture value and the watermark;
an update sub-module 1263 configured to update the target watermark to the new target watermark.
Fig. 15 is a block diagram illustrating 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 upon receiving a photographing instruction;
a saving module 128 configured to save at least two target images carrying target watermarks; the target watermarks carried by the at least two target images are different.
The embodiment of the present disclosure further provides a terminal device, which includes a processor and a memory; the memory for storing a computer program; the processor is configured to execute the computer program stored in the memory to implement the method steps of any of the above embodiments.
The embodiments of the present disclosure also provide a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method steps described in any of the above embodiments are implemented.
The specific manner in which the processor performs the operations with respect to the apparatus in the above-described embodiment has been described in detail in relation to the embodiment of the method, and will not be elaborated upon here.
Fig. 16 is a block diagram illustrating a terminal device according to an example embodiment. For example, the apparatus 1500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 16, apparatus 1500 may include one or more of the following components: processing components 1502, memory 1504, power components 1506, multimedia components 1508, audio components 1510, input/output (I/O) interfaces 1512, sensor components 1514, and communication components 1516.
The processing component 1502 generally controls overall operation of the device 1500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 1502 may include one or more processors 1520 executing instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1502 may include one or more modules that facilitate interaction between 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 operation at the device 1000. Examples of such data include instructions for any application or method operating on the device 1500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1504 may be implemented by any type or combination of volatile or non-volatile 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 disks.
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 device 1500.
The multimedia component 1508 includes a screen that provides an output interface between the apparatus 1500 and a user, hi some embodiments, the screen may include a liquid crystal display (L CD) 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 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 apparatus 1500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1504 or transmitted via the communication component 1516. In some embodiments, audio component 1510 also includes 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, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a 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 can detect an open/closed state of the device 1000, the relative positioning of components, such as a display and keypad of the apparatus 1500, the sensor assembly 1514 can also detect a change in position of the apparatus 1500 or a component of the apparatus 1500, the presence or absence of user contact with the apparatus 1500, 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 a nearby object 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 gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communications component 1516 is configured to facilitate wired or wireless communication between the apparatus 1500 and other devices the apparatus 1500 can access a wireless network based on a communications standard, such as WiFi, 2G or 3G, 4G L TE, 5G NR, or combinations thereof.
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 (P L D), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1504 comprising instructions, executable by the processor 1520 of the apparatus 1500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
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 variations, 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. An image processing method, characterized in that the method comprises:
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 shooting information and 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.
2. The method of claim 1, wherein the shooting parameters comprise: at least one of aperture value, shutter speed, color temperature value, exposure amount, and white balance value.
3. The method according to claim 1, wherein the photographing information further includes at least one of number information of cameras, type information of cameras, device information of photographing devices.
4. The method of claim 1, wherein the original image is a video frame in a photograph or video.
5. The method of claim 1, wherein 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 following steps:
blurring the background image in the target image to obtain a blurred background image;
determining the blurring strength of the blurred background image;
and updating the target watermark according to the blurring strength.
6. The method according to claim 5, wherein the photographing information includes photographing parameters including 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 includes:
obtaining a target aperture value according to the blurring strength and the corresponding relation between the blurring strength and the aperture value;
acquiring a new target watermark according to the target aperture value and the corresponding relation between the aperture value and the watermark;
and updating the target watermark to the new target watermark.
7. The method according to claim 1, further comprising, before said acquiring the photographing information of the photographed original image:
when a shooting instruction is received, shooting at least two original images based on different shooting information;
after the obtaining of the target image carrying the target watermark, the method further includes:
storing at least two target images carrying target watermarks; the target watermarks carried by the at least two target images are different.
8. The method of claim 1, wherein the watermark comprises at least one of a graphic and a text.
9. An image processing apparatus, characterized in that the apparatus comprises:
a first acquisition module configured to acquire photographing information of a photographed 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 the third acquisition module is configured to add the target watermark to the original image to obtain a target image carrying the target watermark.
10. The apparatus of claim 9, wherein 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, still include:
the fourth acquisition module is configured to perform blurring processing on a background image in the target image to obtain a blurred background image;
a determining module configured to determine a blurring strength of the blurred background image;
an updating module configured to update the target watermark according to the blurring strength.
11. The apparatus according to claim 10, wherein the photographing information includes photographing parameters including an aperture value; the target watermark carries an aperture value for shooting the background image; the update module includes:
the first acquisition sub-module 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 obtaining submodule is 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 update sub-module configured to update the target watermark to the new target watermark.
12. The apparatus of claim 9, further comprising:
a photographing module configured to photograph at least two original images based on different photographing information when a photographing instruction is received;
the storage module is configured to store at least two target images carrying target watermarks; the target watermarks carried by the at least two target images are different.
13. A terminal device comprising a processor and a memory; the memory for storing a computer program; the processor, for executing the computer program stored on the memory, implements the method steps of any of claims 1-8.
14. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 8.
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 true CN111461950A (en) 2020-07-28
CN111461950B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143429A (en) * 2021-11-30 2022-03-04 惠州Tcl移动通信有限公司 Image shooting method, image shooting 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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143429A (en) * 2021-11-30 2022-03-04 惠州Tcl移动通信有限公司 Image shooting method, image shooting device, electronic equipment and computer readable storage medium
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

Also Published As

Publication number Publication date
CN111461950B (en) 2023-10-17

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
CN111586280B (en) Shooting method, shooting device, terminal and readable storage medium
CN114339019B (en) Focusing method, focusing device and storage medium
CN114666490B (en) Focusing method, focusing device, electronic equipment and storage medium
CN111586296B (en) Image capturing method, image capturing apparatus, and storage medium
CN113315903B (en) Image acquisition method and device, electronic equipment and storage medium
CN114070998B (en) Moon shooting method and device, electronic equipment and medium
CN112866555B (en) Shooting method, shooting device, shooting equipment and storage medium
CN110876000B (en) Camera module, image correction method and device, electronic equipment and storage medium
CN111835977B (en) Image sensor, image generation method and device, electronic device, and storage medium
CN107682623B (en) Photographing method and device
CN111464753B (en) Picture shooting method and device and storage medium
CN113766115B (en) Image acquisition method, mobile terminal, device and storage medium
CN113852752B (en) Photo taking method, photo taking device and storage medium
CN114339017B (en) Distant view focusing method, device and storage medium
CN111225158B (en) Image generation method and device, electronic equipment and computer readable storage medium
CN112188095B (en) Photographing method, photographing device and storage medium
CN110933300B (en) Image processing method and electronic terminal equipment
CN107317977B (en) Shooting method and device
CN118102095A (en) Camera control method, device, camera, readable storage medium and chip

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