CN114125286A - Shooting method and device thereof - Google Patents

Shooting method and device thereof Download PDF

Info

Publication number
CN114125286A
CN114125286A CN202111373798.0A CN202111373798A CN114125286A CN 114125286 A CN114125286 A CN 114125286A CN 202111373798 A CN202111373798 A CN 202111373798A CN 114125286 A CN114125286 A CN 114125286A
Authority
CN
China
Prior art keywords
preview image
condition
shooting
background information
background
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111373798.0A
Other languages
Chinese (zh)
Inventor
赖炜炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111373798.0A priority Critical patent/CN114125286A/en
Publication of CN114125286A publication Critical patent/CN114125286A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a shooting method and a shooting device, and belongs to the technical field of communication. The method comprises the following steps: acquiring a first preview image displayed on a shooting preview interface; under the condition that the first preview image comprises portrait information, acquiring background information in the first preview image; and processing the first preview image under the condition that the background information meets the preset shooting condition to obtain a second preview image with a silhouette portrait effect.

Description

Shooting method and device thereof
Technical Field
The application belongs to the technical field of communication, and particularly relates to a shooting method and a shooting device.
Background
With the development of computer technology, the functions of terminal equipment become more and more powerful, and the photographing function is a common function of equipment on a terminal. The shooting technology is changing day by day, so that the shooting function of the terminal equipment is more and more powerful, and the requirement of users on shooting is higher and higher.
In the related art, in order to improve the photographing effect, a High-Dynamic Range (HDR) technique may be used to photograph a High-Dynamic Range image. Compared with a common image, the high dynamic range image can provide more dynamic range and image details, can reflect the brightness contrast of the real world better than the low dynamic range image, and is closer to the image effect seen by human eyes.
However, in the HDR shooting mode, the user needs to perform the post-image processing on the photo by using professional image processing software to obtain an image with silhouette effect, which is cumbersome and difficult to operate.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method and a shooting device, which can solve the problems of complex operation and high operation difficulty when an image with a silhouette portrait effect is obtained.
In a first aspect, an embodiment of the present application provides a shooting method, where the method includes:
acquiring a first preview image displayed on a shooting preview interface;
under the condition that the first preview image comprises portrait information, acquiring background information in the first preview image;
and processing the first preview image under the condition that the background information meets the preset shooting condition to obtain a second preview image with a silhouette portrait effect.
In a second aspect, an embodiment of the present application provides a shooting apparatus, including:
the first acquisition module is used for acquiring a first preview image displayed on the shooting preview interface;
the second acquisition module is used for acquiring background information in the first preview image under the condition that the first preview image comprises portrait information;
and the processing module is used for processing the first preview image under the condition that the background information meets the preset shooting condition to obtain a second preview image with a silhouette portrait effect.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, in the process of shooting an image, a first preview image displayed on a shooting preview interface is obtained, background information in the first preview image is obtained under the condition that the first preview image comprises portrait information, and the first preview image is processed under the condition that the background information meets preset shooting conditions, so that a second preview image with a silhouette effect is obtained. Therefore, the second preview image with the silhouette effect can be generated without processing by professional image processing software, and diversified shooting requirements of users can be met. In addition, the embodiment of the application does not need to depend on the shooting technology of the user, the operation is simple, and the shooting difficulty is low. In addition, in the process of shooting preview, the processed second preview image can be visually displayed for the user, so that the user can conveniently adjust the image according to the shooting effect in time, and the use is more convenient.
Drawings
Fig. 1 is a flowchart of a shooting method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a first preview image provided in an embodiment of the present application;
FIG. 3 is a diagram of a second type of background provided by embodiments of the present application;
FIG. 4 is a diagram of another second type of background provided by embodiments of the present application;
fig. 5 is a schematic structural diagram of a shooting device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The shooting method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Please refer to fig. 1, which is a flowchart illustrating a photographing method according to an embodiment of the present application. The method can be applied to electronic equipment, and the electronic equipment can be a mobile phone, a tablet computer, a notebook computer and the like. As shown in fig. 1, the method may include steps 1100-1300, described in detail below.
Step 1100, acquiring a first preview image displayed on a shooting preview interface.
In this embodiment, the capture preview interface may be a capture preview interface of a camera application of the electronic device. The first preview image may be an image collected by a camera for a user to preview and view during a shooting preview process.
Step 1200, acquiring background information in the first preview image when the first preview image includes portrait information.
In this embodiment, the portrait information may be face information, body information, or body shadow information. Illustratively, the first preview image includes portrait information, and the first preview image may include face information, where the face information may be front face information or side face information. Illustratively, the first preview image includes portrait information, which may be that the first preview image includes portrait information. Illustratively, the first preview image includes portrait information, which may be that the first preview image includes human body shadow information.
The background information in the first preview image may be image information excluding portrait information in the first preview image. For example, sky information, building information, object information, and the like in the first preview image.
Step 1300, processing the first preview image to obtain a second preview image with silhouette portrait effect under the condition that the background information meets the preset shooting condition.
The second preview image has a silhouette effect, that is, the second preview image may highlight the image of the background information.
The preset photographing condition may be used to determine whether the first preview image can be processed into an image having a silhouette effect.
In this embodiment, in general, in a backlight environment, an image having a good silhouette portrait effect can be photographed. Based on this, a preset shooting condition may be set to determine whether the first preview image is suitable for processing as an image with silhouette effect according to the preset shooting condition. For example, it may be determined whether the background information of the first preview image satisfies a preset photographing condition according to the type of the background information in the first preview image, that is, an element included in the background information.
For example, whether the background information of the first preview image satisfies the preset photographing condition may be determined according to the degree of clutter of the background information of the first preview image. Specifically, under the condition that the clutter degree of the background information of the first preview image is low, it is described that the background of the first preview image is relatively neat, and when the silhouette is processed, the background information does not interfere with the portrait information, and then the background information of the first preview image is considered to meet the preset shooting condition. Under the condition that the background information of the first preview image is high in disorder degree, the background information interferes with the portrait information when the silhouette portrait is processed, and the background information of the first preview image is considered not to meet the preset shooting condition.
For example, whether the background information of the first preview image satisfies the preset shooting condition may be determined according to the clutter degree of the elements and the background information included in the background information of the first preview image. For example, when the background information of the first preview image includes a sky element and the background information is low in clutter, it is described that the shooting environment may be a backlight shooting environment, and the background of the first preview image is neat and suitable for silhouette processing, and it is considered that the background information of the first preview image satisfies the preset shooting condition. When the background information of the first preview image contains more scene elements, the portrait part cannot be highlighted during silhouette portrait processing, and the silhouette portrait processing is not suitable, and the background information of the first preview image is considered not to meet the preset shooting condition.
The following examples are given by way of illustration.
In some embodiments of the present application, processing the first preview image to obtain a second preview image with silhouette effect when the background information meets a preset shooting condition may further include: processing the first preview image according to a preset exposure parameter under the condition that the background information is a first type of background and meets a first preset condition to obtain a second preview image with a silhouette portrait effect; the first type background comprises a first element, and the display area occupation ratio of the first element in the first preview image is larger than or equal to a first threshold value.
In this embodiment, the first type of background may be a background that includes the first element and has a display area ratio of the first element in the first preview image that is greater than a first threshold. The first element may be sky. E.g. a blue sky, a cloudy sky, a sky with a canyon. In a specific implementation, it may be detected, by the scene detection model, whether the background information of the first preview image is a first type of background. It should be noted that, under the condition that the ambient light intensity is relatively high, an overexposed area may appear in the captured first preview image, and based on this, when the overexposed area is included in the first preview image, it is determined that the background information of the first preview image is the first type of background.
The first threshold may be used to measure the occupancy of the first element in the picture. Illustratively, the first threshold may be that a display area of the sky is greater than or equal to 1/3 in the first preview image. It should be noted that the first threshold may be set according to actual requirements, which is not limited in this embodiment of the application.
The first preset condition can be used for measuring whether the clutter degree of the background information meets the requirement. Under the condition that the background information meets the first preset condition, the background of the first preview image is relatively simple, and the second preview image with the silhouette effect can be directly generated. When the background information does not satisfy the first preset condition, the background of the first preview image is messy, and the second preview image with the silhouette effect cannot be directly generated.
In an alternative embodiment, a background object in the first preview image may be identified, and a depth information image of the first preview image is acquired; and determining whether the background information of the first preview image meets a first preset condition or not according to the background object included in the first preview image and the depth information image of the first preview image.
In this embodiment, background objects of different depths in the depth information image of the first preview image are different in shade of color. The closer the background object is to the portrait, the darker the color, and the further the background object is from the portrait, the lighter the color. That is, the degree of clutter of the background information can be determined from the depth information image of the first preview image. Meanwhile, by recognizing the first preview image, the degree of disorder of the background information can be determined from the recognized background object. Based on this, whether the background information of the first preview image meets a first preset condition is determined according to the background object included in the first preview image and the depth information image of the first preview image. For example, in the depth information image of the first preview image, if the colors around the portrait are relatively uniform, the background information of the first preview image is considered to meet the first preset condition. For example, if the background information of the first preview image does not include a background object having a specific shape, the background information of the first preview image is considered to meet the first preset condition.
In this embodiment, the first preview image is processed according to a preset exposure parameter, which may be to reduce the overall exposure, so that the brightness of the first preview image is reduced to obtain a second preview image with silhouette effect.
In this embodiment, when the background information is the first type of background and the background information meets the first preset condition, the exposure parameter is adjusted, and the second preview image with the silhouette portrait effect can be directly generated without the user processing the background information by means of professional image processing software, so that the operation is simple, and the shooting efficiency can be improved.
In some embodiments of the present application, processing the first preview image to obtain a second preview image with silhouette effect when the background information meets a preset shooting condition may further include: under the condition that the background information is a first-class background and does not meet a first preset condition, identifying a second element in the background information, wherein the second element is an element except the first element in the background information; and under the condition that the second element is located in the first area of the first preview image, processing the first preview image according to preset exposure parameters and a preset shooting angle to obtain a second preview image with a silhouette effect.
In this embodiment, the first type of background may be a background that includes the first element and has a display area ratio of the first element in the first preview image that is greater than a first threshold. The first element may be sky. The second element may be a background element other than the first element. Such as buildings, people, natural landscapes, etc.
Illustratively, the first area may be an area located below the first preview image screen. The first region may also be a region located below the portrait in the first preview image.
In this embodiment, when the background information is the first type of background and the background information does not satisfy the first preset condition, it is described that the background information belongs to a backlight environment in which a silhouette effect can be captured, but the background information is relatively messy. Further, it may be determined whether a second element in the background information is located in the first area of the first preview image to determine whether the second element of the background information may be avoided by adjusting the photographing angle. If the second element is located in the first area of the first preview image, the shooting angle can be adjusted to avoid the disordered part of background information in the first preview image.
Take the first preview image shown in fig. 2 as an example. Specifically, as shown in fig. 2, the first preview image has a sky displayed in a ratio exceeding 1/3 of the screen, and belongs to the first type background. The first preview image includes portrait information 201 therein. The background information of the first preview image also includes cluttered background people 202. It can be seen that the background crowd 202 is located below the portrait information 201, that is, the second element in the background information is located in the first area in the first preview image. At this time, a photographing angle of the electronic device may be adjusted such that only the sky portion is included in the background information of the first preview image. And finally, adjusting exposure parameters to shoot to obtain a second preview image with a silhouette portrait effect.
In this embodiment, when the background information is a first-class background and the background information does not satisfy a first preset condition, a position of a second element in the background information in the first preview image may be determined, and when the second element is located in a first area in the first preview image, the first preview image may be processed according to a preset exposure parameter and a preset shooting angle to obtain a second preview image with a silhouette effect. In addition, the embodiment can also improve the success rate of shooting.
In some embodiments of the present application, processing the first preview image to obtain a second preview image with silhouette effect when the background information meets a preset shooting condition may further include: processing a second area in the first preview image under the condition that the background information is a second type of background to obtain a second preview image with a silhouette effect; the second area is an area containing the portrait information in the first preview image.
In this embodiment, the second type of background may be a single background scene. For example, fig. 3 shows a building background 301 of a single frame construction. Also for example, fig. 4 shows a light-colored wall surface 401.
In this embodiment, although the description of the capturing background of the first preview image is simple when the background information is the second type of background, the capturing environment does not belong to the backlight environment, and the second preview image having the silhouette effect cannot be obtained by adjusting the exposure parameters. At this time, the first preview image may be processed using image processing techniques to obtain a second preview image having silhouette portrait effect.
Illustratively, the first preview image is segmented by using a portrait segmentation technology to obtain a second area containing portrait information, and the second area is processed to obtain a second preview image with silhouette portrait effect.
In this embodiment, when the background information of the first preview image is the second type of background, the first preview image may be processed based on an image processing technology to obtain the second preview image with the silhouette effect, so that the second preview image with the silhouette effect may be obtained by processing the first preview image without depending on an external shooting environment. And when the background information of the first preview image is the first type of background, a second preview image with silhouette portrait effect can be obtained by directly shooting through adjusting exposure parameters. In this embodiment, a plurality of modes of generating the image with the silhouette portrait effect are provided, and the image with the silhouette portrait effect can be shot in different shooting scenes, so that the shooting mode is more flexible, and the user experience is better.
In some embodiments of the present application, a prompt identifier is displayed when the background information meets a preset shooting condition.
In this embodiment, the prompt identifier can be used for prompting the user to perform silhouette portrait processing on the first preview image, so that the user can be reminded that the current shooting effect is the silhouette portrait shooting effect, the user can switch the common shooting mode and the silhouette portrait shooting mode according to actual needs, and user experience is better.
In some embodiments of the present application, after the processing the first preview image to obtain the second preview image with silhouette effect, the method may further include: acquiring shooting scene information corresponding to the shooting preview interface; adjusting display parameters of the second preview image according to the shooting scene information; wherein the display parameters include at least one of: color temperature, hue, brightness and saturation.
In the present embodiment, the shooting scene information may be, for example, the seaside sky, the sky below sunset, or the like. In a specific implementation, the shooting scene information of the first preview image can be identified through the AI scene identification model.
The display parameters may include color temperature, hue, brightness, saturation, and the like. Different shooting scene information corresponds to different shooting parameters. For example, when the shooting scene information is the sky under sunset, the color temperature can be adjusted to-300, the saturation of yellow, orange, red and purple is +20, and the color of Cabernet is highlighted to make the sense of warmth of sunset. Also for example, when the shooting scene information is a seaside sky, the color temperature may be adjusted to +300, and the saturation of blue and green may be adjusted to +20, so as to enhance the vividness of the seaside sky and the sea water color.
In this embodiment, after the first preview image is processed to obtain the second preview image with silhouette effect, the display parameters of the second preview image may be further adjusted according to the shooting scene information to improve the display effect of the second preview image.
In some embodiments of the present application, after the processing the first preview image to obtain the second preview image with silhouette effect, the method may further include: receiving a first input of a user; and outputting the target image based on the screen content of the second preview image in response to the first input.
The first input may be an input for capturing a target image. Illustratively, the first input may be a click input of a target control of the shooting preview interface by a user, or a voice input by the user, or a specific gesture input by the user, which may be determined according to actual use requirements, and is not limited in this embodiment of the application.
The specific gesture in the embodiment of the application can be any one of a single-click gesture, a sliding gesture and a dragging gesture; the click input in the embodiment of the application can be click input, double-click input, click input of any number of times and the like, and can also be long-time press input or short-time press input.
In the embodiment of the application, in the process of shooting an image, a first preview image displayed on a shooting preview interface is obtained, background information in the first preview image is obtained under the condition that the first preview image comprises portrait information, and the first preview image is processed under the condition that the background information meets preset shooting conditions, so that a second preview image with a silhouette effect is obtained. Therefore, the second preview image with the silhouette effect can be generated without processing by professional image processing software, and diversified shooting requirements of users can be met. In addition, the embodiment of the application does not need to depend on the shooting technology of the user, the operation is simple, and the shooting difficulty is low. In addition, in the process of shooting preview, the processed second preview image can be visually displayed for the user, so that the user can conveniently adjust the image according to the shooting effect in time, and the use is more convenient.
In the shooting method provided by the embodiment of the present application, the execution subject may be a shooting device, or a control module in the shooting device for executing the shooting method. The embodiment of the present application takes a method for executing shooting by a shooting device as an example, and describes a shooting device provided by the embodiment of the present application.
Corresponding to the above embodiments, referring to fig. 5, an embodiment of the present application further provides a camera 500, where the camera 500 includes a first obtaining module 501, a second obtaining module 502, and a processing module 503.
The first obtaining module 501 is configured to obtain a first preview image displayed on a shooting preview interface;
the second obtaining module 502 is configured to obtain background information in the first preview image when the first preview image includes portrait information;
the processing module 503 is configured to process the first preview image to obtain a second preview image with silhouette effect when the background information meets a preset shooting condition.
Optionally, the processing module includes: the first processing unit is used for processing the first preview image according to a preset exposure parameter under the condition that the background information is a first type of background and meets a first preset condition to obtain a second preview image with a silhouette portrait effect; the first type background comprises a first element, and the display area occupation ratio of the first element in the first preview image is larger than or equal to a first threshold value.
Optionally, the processing module further includes: the identification unit is used for identifying a second element in the background information under the condition that the background information is a first type of background and the background information does not meet a first preset condition, wherein the second element is an element except the first element in the background information; and the second processing unit is used for processing the first preview image according to preset exposure parameters and a preset shooting angle under the condition that the second element is positioned in the first area in the first preview image, so as to obtain a second preview image with a silhouette effect.
Optionally, the processing module includes: a third processing unit, configured to process a second area in the first preview image to obtain a second preview image with a silhouette effect when the background information is a second type of background; the second area is an area containing the portrait information in the first preview image.
Optionally, the apparatus further comprises: the third acquisition module is used for acquiring shooting scene information corresponding to the shooting preview interface; the adjusting module is used for adjusting the display parameters of the second preview image according to the shooting scene information; wherein the display parameters include at least one of: color temperature, hue, brightness and saturation.
In the embodiment of the application, in the process of shooting an image, a first preview image displayed on a shooting preview interface is obtained, background information in the first preview image is obtained under the condition that the first preview image comprises portrait information, and the first preview image is processed under the condition that the background information meets preset shooting conditions, so that a second preview image with a silhouette effect is obtained. Therefore, the second preview image with the silhouette effect can be generated without processing by professional image processing software, and diversified shooting requirements of users can be met. In addition, the embodiment of the application does not need to depend on the shooting technology of the user, the operation is simple, and the shooting difficulty is low. In addition, in the process of shooting preview, the processed second preview image can be visually displayed for the user, so that the user can conveniently adjust the image according to the shooting effect in time, and the use is more convenient.
The shooting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. The mobile electronic device may be, for example, a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a Personal Digital Assistant (PDA), and the embodiments of the present application are not limited in particular.
The photographing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The shooting device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in an embodiment of the present application, and includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and executable on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the processor 710 is configured to: acquiring a first preview image displayed on a shooting preview interface; under the condition that the first preview image comprises portrait information, acquiring background information in the first preview image; and processing the first preview image under the condition that the background information meets the preset shooting condition to obtain a second preview image with a silhouette portrait effect.
Optionally, the processor 710, when processing the first preview image to obtain a second preview image with silhouette effect under the condition that the background information meets a preset shooting condition, is configured to: processing the first preview image according to a preset exposure parameter under the condition that the background information is a first type of background and meets a first preset condition to obtain a second preview image with a silhouette portrait effect; the first type background comprises a first element, and the display area occupation ratio of the first element in the first preview image is larger than or equal to a first threshold value.
Optionally, the processor 710, when processing the first preview image to obtain a second preview image with silhouette effect under the condition that the background information meets a preset shooting condition, is configured to: under the condition that the background information is a first-class background and does not meet a first preset condition, identifying a second element in the background information, wherein the second element is an element except the first element in the background information; and under the condition that the second element is located in the first area of the first preview image, processing the first preview image according to preset exposure parameters and a preset shooting angle to obtain a second preview image with a silhouette effect.
Optionally, the processor 710, when processing the first preview image to obtain a second preview image with silhouette effect under the condition that the background information meets a preset shooting condition, is configured to: processing a second area in the first preview image under the condition that the background information is a second type of background to obtain a second preview image with a silhouette effect; the second area is an area containing the portrait information in the first preview image.
Optionally, the processor 710, after processing the first preview image to obtain a second preview image with silhouette effect, is further configured to: acquiring shooting scene information corresponding to the shooting preview interface; adjusting display parameters of the second preview image according to the shooting scene information; wherein the display parameters include at least one of: color temperature, hue, brightness and saturation.
In the embodiment of the application, in the process of shooting an image, a first preview image displayed on a shooting preview interface is obtained, background information in the first preview image is obtained under the condition that the first preview image comprises portrait information, and the first preview image is processed under the condition that the background information meets preset shooting conditions, so that a second preview image with a silhouette effect is obtained. Therefore, the second preview image with the silhouette effect can be generated without processing by professional image processing software, and diversified shooting requirements of users can be met. In addition, the embodiment of the application does not need to depend on the shooting technology of the user, the operation is simple, and the shooting difficulty is low. In addition, in the process of shooting preview, the processed second preview image can be visually displayed for the user, so that the user can conveniently adjust the image according to the shooting effect in time, and the use is more convenient.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to applications and operating systems. Processor 710 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above shooting method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A photographing method, characterized in that the method comprises:
acquiring a first preview image displayed on a shooting preview interface;
under the condition that the first preview image comprises portrait information, acquiring background information in the first preview image;
and processing the first preview image under the condition that the background information meets the preset shooting condition to obtain a second preview image with a silhouette portrait effect.
2. The method according to claim 1, wherein the processing the first preview image to obtain a second preview image with silhouette effect in case that the background information satisfies a preset shooting condition comprises:
processing the first preview image according to a preset exposure parameter under the condition that the background information is a first type of background and meets a first preset condition to obtain a second preview image with a silhouette portrait effect;
the first type background comprises a first element, and the display area occupation ratio of the first element in the first preview image is larger than or equal to a first threshold value.
3. The method according to claim 2, wherein the processing the first preview image to obtain a second preview image with silhouette effect if the background information meets a preset shooting condition, further comprises:
under the condition that the background information is a first-class background and does not meet a first preset condition, identifying a second element in the background information, wherein the second element is an element except the first element in the background information;
and under the condition that the second element is located in the first area of the first preview image, processing the first preview image according to preset exposure parameters and a preset shooting angle to obtain a second preview image with a silhouette effect.
4. The method according to claim 1, wherein the processing the first preview image to obtain a second preview image with silhouette effect in case that the background information satisfies a preset shooting condition comprises:
processing a second area in the first preview image under the condition that the background information is a second type of background to obtain a second preview image with a silhouette effect;
the second area is an area containing the portrait information in the first preview image.
5. The method of claim 1, wherein after processing the first preview image to obtain a second preview image with silhouette effect, the method further comprises:
acquiring shooting scene information corresponding to the shooting preview interface;
adjusting display parameters of the second preview image according to the shooting scene information;
wherein the display parameters include at least one of: color temperature, hue, brightness and saturation.
6. A camera, characterized in that the camera comprises:
the first acquisition module is used for acquiring a first preview image displayed on the shooting preview interface;
the second acquisition module is used for acquiring background information in the first preview image under the condition that the first preview image comprises portrait information;
and the processing module is used for processing the first preview image under the condition that the background information meets the preset shooting condition to obtain a second preview image with a silhouette portrait effect.
7. The apparatus of claim 6, wherein the processing module comprises:
the first processing unit is used for processing the first preview image according to a preset exposure parameter under the condition that the background information is a first type of background and meets a first preset condition to obtain a second preview image with a silhouette portrait effect;
the first type background comprises a first element, and the display area occupation ratio of the first element in the first preview image is larger than or equal to a first threshold value.
8. The apparatus of claim 7, wherein the processing module further comprises:
the identification unit is used for identifying a second element in the background information under the condition that the background information is a first type of background and the background information does not meet a first preset condition, wherein the second element is an element except the first element in the background information;
and the second processing unit is used for processing the first preview image according to preset exposure parameters and a preset shooting angle under the condition that the second element is positioned in the first area in the first preview image, so as to obtain a second preview image with a silhouette effect.
9. The apparatus of claim 6, wherein the processing module comprises:
a third processing unit, configured to process a second area in the first preview image to obtain a second preview image with a silhouette effect when the background information is a second type of background;
the second area is an area containing the portrait information in the first preview image.
10. The apparatus of claim 6, further comprising:
the third acquisition module is used for acquiring shooting scene information corresponding to the shooting preview interface;
the adjusting module is used for adjusting the display parameters of the second preview image according to the shooting scene information;
wherein the display parameters include at least one of: color temperature, hue, brightness and saturation.
CN202111373798.0A 2021-11-18 2021-11-18 Shooting method and device thereof Pending CN114125286A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111373798.0A CN114125286A (en) 2021-11-18 2021-11-18 Shooting method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111373798.0A CN114125286A (en) 2021-11-18 2021-11-18 Shooting method and device thereof

Publications (1)

Publication Number Publication Date
CN114125286A true CN114125286A (en) 2022-03-01

Family

ID=80396528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111373798.0A Pending CN114125286A (en) 2021-11-18 2021-11-18 Shooting method and device thereof

Country Status (1)

Country Link
CN (1) CN114125286A (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009164949A (en) * 2008-01-08 2009-07-23 Fujifilm Corp Image processor, image processing method, and program
CN103152521A (en) * 2013-01-30 2013-06-12 广东欧珀移动通信有限公司 Effect of depth of field achieving method for mobile terminal and mobile terminal
CN103856617A (en) * 2012-12-03 2014-06-11 联想(北京)有限公司 Photographing method and user terminal
US20140226052A1 (en) * 2013-02-08 2014-08-14 Samsung Electronics Co., Ltd. Method and mobile terminal apparatus for displaying specialized visual guides for photography
CN107463051A (en) * 2017-08-25 2017-12-12 维沃移动通信有限公司 A kind of exposure method and device
CN107509031A (en) * 2017-08-31 2017-12-22 广东欧珀移动通信有限公司 Image processing method, device, mobile terminal and computer-readable recording medium
CN107592473A (en) * 2017-10-31 2018-01-16 广东欧珀移动通信有限公司 Exposure parameter method of adjustment, device, electronic equipment and readable storage medium storing program for executing
CN108156366A (en) * 2017-11-30 2018-06-12 维沃移动通信有限公司 A kind of image capturing method and mobile device based on dual camera
CN108734754A (en) * 2018-05-28 2018-11-02 北京小米移动软件有限公司 Image processing method and device
CN109102555A (en) * 2018-06-29 2018-12-28 维沃移动通信有限公司 A kind of image edit method and terminal
KR20190073802A (en) * 2017-12-19 2019-06-27 소수영 Method for photographing of mobile device by composition guide setting
WO2020015470A1 (en) * 2018-07-16 2020-01-23 Oppo广东移动通信有限公司 Image processing method and apparatus, mobile terminal, and computer-readable storage medium
CN111654635A (en) * 2020-06-30 2020-09-11 维沃移动通信有限公司 Shooting parameter adjusting method and device and electronic equipment
CN112532838A (en) * 2020-11-25 2021-03-19 努比亚技术有限公司 Image processing method, mobile terminal and computer storage medium
CN112532882A (en) * 2020-11-26 2021-03-19 维沃移动通信有限公司 Image display method and device
WO2021051995A1 (en) * 2019-09-17 2021-03-25 维沃移动通信有限公司 Photographing method and terminal
WO2021218926A1 (en) * 2020-04-30 2021-11-04 杭州海康威视数字技术股份有限公司 Image display method and apparatus, and computer device

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009164949A (en) * 2008-01-08 2009-07-23 Fujifilm Corp Image processor, image processing method, and program
CN103856617A (en) * 2012-12-03 2014-06-11 联想(北京)有限公司 Photographing method and user terminal
CN103152521A (en) * 2013-01-30 2013-06-12 广东欧珀移动通信有限公司 Effect of depth of field achieving method for mobile terminal and mobile terminal
US20140226052A1 (en) * 2013-02-08 2014-08-14 Samsung Electronics Co., Ltd. Method and mobile terminal apparatus for displaying specialized visual guides for photography
CN107463051A (en) * 2017-08-25 2017-12-12 维沃移动通信有限公司 A kind of exposure method and device
CN107509031A (en) * 2017-08-31 2017-12-22 广东欧珀移动通信有限公司 Image processing method, device, mobile terminal and computer-readable recording medium
CN107592473A (en) * 2017-10-31 2018-01-16 广东欧珀移动通信有限公司 Exposure parameter method of adjustment, device, electronic equipment and readable storage medium storing program for executing
CN108156366A (en) * 2017-11-30 2018-06-12 维沃移动通信有限公司 A kind of image capturing method and mobile device based on dual camera
KR20190073802A (en) * 2017-12-19 2019-06-27 소수영 Method for photographing of mobile device by composition guide setting
CN108734754A (en) * 2018-05-28 2018-11-02 北京小米移动软件有限公司 Image processing method and device
CN109102555A (en) * 2018-06-29 2018-12-28 维沃移动通信有限公司 A kind of image edit method and terminal
WO2020015470A1 (en) * 2018-07-16 2020-01-23 Oppo广东移动通信有限公司 Image processing method and apparatus, mobile terminal, and computer-readable storage medium
WO2021051995A1 (en) * 2019-09-17 2021-03-25 维沃移动通信有限公司 Photographing method and terminal
WO2021218926A1 (en) * 2020-04-30 2021-11-04 杭州海康威视数字技术股份有限公司 Image display method and apparatus, and computer device
CN111654635A (en) * 2020-06-30 2020-09-11 维沃移动通信有限公司 Shooting parameter adjusting method and device and electronic equipment
CN112532838A (en) * 2020-11-25 2021-03-19 努比亚技术有限公司 Image processing method, mobile terminal and computer storage medium
CN112532882A (en) * 2020-11-26 2021-03-19 维沃移动通信有限公司 Image display method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CHING-NUNG YANG: "An Image Secret Sharing Scheme with the Capability of Previvewing the Secret Image", 《2007 IEEE INTERNATIONAL CONFERENCE ON MULTIMEDIA AND EXPO》, 8 August 2007 (2007-08-08) *
梅琦;李骏;: "造"景"生"情" DIY背景 将你的小物件带入梦幻意境中", 摄影之友, no. 03, 15 March 2017 (2017-03-15) *
王琦: "数字暗房(九)", 《影像材料》, 9 January 2004 (2004-01-09) *

Similar Documents

Publication Publication Date Title
CN113129312B (en) Image processing method, device and equipment
CN111654635A (en) Shooting parameter adjusting method and device and electronic equipment
WO2022063023A1 (en) Video shooting method, video shooting apparatus, and electronic device
CN112532882B (en) Image display method and device
CN113794834B (en) Image processing method and device and electronic equipment
CN108765380A (en) Image processing method, device, storage medium and mobile terminal
CN108494996A (en) Image processing method, device, storage medium and mobile terminal
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114025092A (en) Shooting control display method and device, electronic equipment and medium
WO2023071933A1 (en) Camera photographing parameter adjustment method and apparatus and electronic device
CN109089042B (en) Image processing mode identification method and device, storage medium and mobile terminal
CN113450431A (en) Virtual hair dyeing method and device, electronic equipment and storage medium
CN114143461B (en) Shooting method and device and electronic equipment
WO2022247766A1 (en) Image processing method and apparatus, and electronic device
CN116320721A (en) Shooting method, shooting device, terminal and storage medium
CN114125286A (en) Shooting method and device thereof
CN113473008B (en) Shooting method and device
CN113596331B (en) Shooting method, shooting device, shooting equipment and storage medium
CN114245017A (en) Shooting method and device and electronic equipment
CN113873168A (en) Shooting method, shooting device, electronic equipment and medium
CN113747076A (en) Shooting method and device and electronic equipment
CN114327166A (en) Image processing method and device, electronic equipment and readable storage medium
CN113962840A (en) Image processing method, image processing device, electronic equipment and storage medium
CN114125226A (en) Image shooting method and device, electronic equipment and readable storage medium
CN113923368A (en) Shooting method and device

Legal Events

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