CN115589457A - Shooting method, shooting device, electronic equipment and readable storage medium - Google Patents

Shooting method, shooting device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115589457A
CN115589457A CN202211179491.1A CN202211179491A CN115589457A CN 115589457 A CN115589457 A CN 115589457A CN 202211179491 A CN202211179491 A CN 202211179491A CN 115589457 A CN115589457 A CN 115589457A
Authority
CN
China
Prior art keywords
shooting
input
target
image
target foreground
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
CN202211179491.1A
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 CN202211179491.1A priority Critical patent/CN115589457A/en
Publication of CN115589457A publication Critical patent/CN115589457A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/272Means for inserting a foreground image in a background image, i.e. inlay, outlay

Landscapes

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

Abstract

The application discloses a shooting method, a shooting device, electronic equipment and a readable storage medium, and belongs to the technical field of electronic equipment. The method is applied to an electronic device, the electronic device comprises a transparent screen area, the transparent screen area is located between a camera and a target object, and the method comprises the following steps: displaying a target foreground element and a shooting object element corresponding to a target object in a shooting preview interface; the target foreground element is acquired from a target foreground object displayed on the transparent screen area; receiving a first input for photographing; in response to the first input, a target image including the target foreground element and the photographic subject element is obtained.

Description

Shooting method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a shooting method, a shooting device, electronic equipment and a readable storage medium.
Background
With the development of science and technology, the shooting function of the smart phone is increasingly powerful, and the shooting function of the smart phone is more and more important in life and gradually becomes the main equipment for users to shoot.
At present, the user's needs for taking pictures are more and more abundant, for example, an image of a scenery spot is selected, and a self-shot picture is synthesized to obtain a synthesized image similar to a user self-shot in the scenery spot.
However, the above scheme is limited by the complexity of the algorithm and the scene, so that the quality of the synthesized image is poor. For example, the portrait in a self-shot photo has a complicated hairstyle, and the scenery in the scenery spot image has many irregular edges, so that the synthesized trace is obvious, and the image quality of the synthesized image is poor.
Disclosure of Invention
An object of the embodiments of the present application is to provide a shooting method, an apparatus, an electronic device, and a readable storage medium, which can solve the problem of poor quality of a composite image.
In a first aspect, an embodiment of the present application provides a shooting method, where an electronic device includes a transparent screen area, and the transparent screen area is located between a camera and a target object, where the method includes:
displaying a target foreground element and a shooting object element corresponding to a target object in a shooting preview interface; the target foreground element is acquired from a target foreground object displayed on the transparent screen area;
receiving a first input for photographing;
in response to the first input, a target image including the target foreground element and the photographic subject element is obtained.
In a second aspect, an embodiment of the present application provides a shooting device applied to an electronic device, where the electronic device includes a transparent screen area, and the transparent screen area is located between a camera and a target object, the device includes:
the first display module is used for displaying the target foreground element and the shooting object element corresponding to the target object in the shooting preview interface; the target foreground element is acquired from a target foreground object displayed on the transparent screen area;
the first receiving module is used for receiving a first input for shooting;
a first response module for obtaining a target image including the target foreground element and the photographic subject element in response to the first input.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, 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 fourth 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 a fifth aspect, embodiments of the present application provide a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, the target foreground object is displayed in the transparent screen area, the target foreground object and the target object are collected through the camera, the target foreground element corresponding to the target foreground object and the shooting object element corresponding to the target object can be displayed in the shooting preview interface, and the target image comprising the foreground image element and the shooting object element can be obtained under the condition of receiving the first input, namely, the synthesis of the foreground image element and the shooting object element can be realized through shooting, and the image quality of the synthesized image is improved.
Drawings
Fig. 1 is a schematic flowchart of a shooting method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a shooting scene provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of an atlas of foreground elements provided by an embodiment of the application;
FIG. 4 is a schematic diagram of adding a foreground element according to an embodiment 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 provided in an embodiment of the present application;
fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below clearly 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 are capable of operation in sequences other than those illustrated or described herein, and that the terms "first," "second," etc. are generally used in a generic sense and do not limit the number of terms, e.g., a 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 "/", and generally means that the former and latter related objects are in an "or" relationship.
The shooting method of the electronic device 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.
Fig. 1 is a schematic flowchart of a shooting method provided in an embodiment of the present application. The shooting method provided by the embodiment of the application can be executed by electronic equipment, for example, the electronic equipment includes, but is not limited to, a smart phone, a tablet computer, a desktop computer, a notebook computer, a palm computer, a vehicle-mounted terminal, and wearable equipment and other equipment with shooting and display functions.
As shown in fig. 2, the electronic device of the present embodiment includes a transparent screen area 201, and the transparent screen area 201 is located between a camera 203 and a target object 204. The camera 203 can simultaneously view the target object 204 and the target foreground object displayed by the transparent screen area 201.
In this embodiment, the transparent screen area may be controlled by applying a voltage to control the change of the image by using an electrowetting principle. The transparent screen area itself does not need to add a polaroid, so the single-color transmittance can reach more than 40 percent, and objects behind the transparent screen area can be easily seen under the condition of not installing a backlight source.
As shown in fig. 1 and 2, the photographing method of the present embodiment may include steps 101 to 103 as follows:
step 101, displaying a target foreground element and a shooting object element corresponding to a target object in a shooting preview interface. And acquiring the target foreground element displayed on the transparent screen area.
As shown in fig. 2, a target foreground object 202 may be displayed on the transparent screen area 201, and during the starting process, the camera 203 may collect the target object 204 and the target foreground object 202 displayed on the transparent screen area 201, and display a target foreground element 206 corresponding to the target foreground object and a shooting object element 207 corresponding to the target object in the shooting preview interface 205.
In this embodiment, the electronic device may display a shooting preview interface according to the framing content of the camera, so that a user can check a shooting effect in advance, adjust a shooting angle, a shooting object, shooting parameters and the like according to the shooting effect of the shooting preview picture, and select a first input execution time according to the shooting preview picture, so that the user can shoot a target image meeting the actual needs of the user.
In one embodiment, the target foreground object displayed on the transparent screen region may be a planar object or a stereoscopic object.
The target foreground object in this embodiment may be an image, specifically, an image captured by an electronic device, an image acquired from another electronic device, or an image obtained by performing processing such as cutting, beautifying, changing, repairing, or stitching on an image stored in advance in the electronic device. The target foreground element, for example, may be an image containing a person and/or scene.
Step 102, receiving a first input for shooting.
In this embodiment, the first input may be a click input of a first key provided on the electronic device by a user, or a voice instruction input by the user, and may be determined according to an actual use requirement in an actual application, which is not specifically limited in this embodiment. The first key may be a virtual key or a physical key, which is not limited in this embodiment.
The click input in this embodiment may be a single click input, a double click input, or any number of click inputs, and may also be a long-press input or a short-press input. In practical applications, the number of times of the click input may be preset, and the user may perform operations according to the preset number of times of the click input, and the number of times of the click input may be set by the user according to the operation habit of the user, which is not specifically limited in this embodiment.
For example, the first input may be a single-click operation of the first key by the user.
Step 103, responding to the first input, obtaining a target image comprising a target foreground element and a shooting object element.
In this embodiment, in response to the first input, the electronic device may capture a screen displayed on the preview interface according to the reception of the first input, and obtain the target image. Specifically, the content of the target image is the same as the content of the screen displayed on the shooting preview interface when the first input is received.
In the embodiment of the application, the target foreground element and the image obtained by shooting the target object do not need to be synthesized through a software algorithm, the target foreground object is displayed on the transparent screen area, the target foreground object and the target object are collected through the camera, the target foreground element corresponding to the target foreground object and the shooting object element corresponding to the target object can be displayed in a shooting preview interface, the target image comprising the foreground image element and the shooting object element can be obtained under the condition of receiving the first input, the synthesis of the foreground image element and the shooting object element can be realized through shooting, and the image quality of the synthesized image is improved.
In addition, because the foreground image elements and the shooting object elements are not synthesized through an algorithm, the maximum output size and code rate of the target image can be ensured, the CPU occupancy rate of electronic equipment in the shooting process can be reduced, the shooting speed is increased, and the heating of the electronic equipment is reduced.
In one embodiment, in step 101, before the target foreground element and the target object corresponding to the target object are presented in the shooting preview interface, the method further includes: displaying at least one foreground element option in a shooting preview interface; a second input is received for selecting a target foreground element option from the at least one foreground element option. Step 101, displaying a target foreground element and a shooting object element corresponding to a target object in a shooting preview interface, which may include:
responding to the second input, and displaying a target foreground object corresponding to the target foreground element option in the transparent screen area; and displaying the target foreground element and the shooting object element in a shooting preview interface.
As shown in fig. 3, at least one foreground element option 301 may be displayed in the shooting preview interface, and in response to the second input, a target foreground element 302 is displayed in the shooting preview interface, where the target foreground element is obtained by collecting a target foreground object corresponding to the target foreground element option displayed on the transparent screen area.
In this embodiment, the foreground element option may be an image preset in a specified folder in a memory of the electronic device, or may also be an image added to the specified folder by a user in a using process of the electronic device, which is not specifically limited in this embodiment.
The second input may be a click input of a user on a target foreground element option in the at least one foreground element option, or a voice instruction input by the user, which may be determined according to an actual use requirement in actual application, which is not specifically limited in this embodiment.
The click input in this embodiment may be a single click input, a double click input, or any number of click inputs, and may also be a long-press input or a short-press input. In practical applications, the number of times of the click input may be preset, the user may perform operations according to the preset number of times of the click input, and the number of times of the click input may be set by the user according to the operation habit of the user, which is not specifically limited in this embodiment.
For example, the second input may be a single click operation by the user on a target one of the at least one foreground element option.
Through the embodiment, a user can select a target foreground element option for foreground shooting from at least one foreground element option displayed on a shooting preview interface according to the actual requirement of the user, and execute a second input for the target foreground element option, so as to display a target foreground object corresponding to the foreground element option in the transparent screen area.
In the embodiment of the application, the electronic device can provide at least one foreground element option for a user to select a target foreground element option meeting actual requirements of the user, and a target foreground object corresponding to the target foreground element option is displayed in the transparent screen area so as to shoot the target foreground object and the target object, so that a target image meeting requirements of the user can be shot, the shooting effect is richer, and the shooting experience of the user is improved.
On the basis of the embodiment, after at least one foreground element option is displayed in the shooting preview interface, the method further includes: receiving an eighth input; and responding to the eighth input, and adjusting the foreground element options displayed in the shooting preview interface.
In this embodiment, the eighth input is used to adjust a foreground element option displayed in the shooting preview interface, where the eighth input may be a voice instruction input by a user or a specific gesture input by the user, and may be determined according to an actual use requirement in an actual application, which is not specifically limited in this embodiment.
The specific gesture in this embodiment may be any one of a slide gesture, a drag gesture, a click gesture, a double-press gesture, and a double-click gesture. Illustratively, the particular gesture may be, for example, a sliding input to a display area of a foreground element option in the capture preview interface. In practical application, the electronic device may further change the foreground element option displayed in the shooting preview interface according to the direction of the sliding input.
The direction of the slide input can be preset, and the user can operate according to the preset direction. The direction of the slide input may be set by the user according to the operation habit of the user, which is not particularly limited in this embodiment.
For example, the eighth input may be an operation of the user to slide right or left within a display area of the foreground element option in the photographing preview interface.
In one embodiment, the method may further comprise: displaying the candidate image; receiving a third input for selecting a target image element from the candidate image; in response to a third input, a foreground element option is determined from the target image element.
The candidate image in this embodiment may be an image obtained by the electronic device shooting the shooting object through the camera, may also be an image pre-stored in the electronic device, and may also be an image downloaded from a network, which is not specifically limited in this embodiment.
In an embodiment where the candidate image is an image obtained by the electronic device shooting the shooting object through the camera, before displaying the candidate image, the method further includes: receiving a ninth input, responding to the ninth input, and displaying a shooting interface, wherein the shooting interface comprises a second key; and receiving a tenth input to the second key, and acquiring the framing content of the camera in response to the tenth input to generate a candidate image.
In this embodiment, the ninth input is used to display a shooting interface, the ninth input may be a click input of a second key provided on the electronic device by a user, or a voice instruction input by the user, and may be determined according to an actual use requirement in an actual application, which is not specifically limited in this embodiment. The second key may be a virtual key or a physical key, which is not limited in this embodiment.
The click input in this embodiment may be a single click input, a double click input, or any number of click inputs, and may also be a long-press input or a short-press input. In practical applications, the number of times of the click input may be preset, and the user may perform operations according to the preset number of times of the click input, and the number of times of the click input may be set by the user according to the operation habit of the user, which is not specifically limited in this embodiment.
For example, the ninth input may be a single-click operation of the second key by the user.
In this embodiment, the tenth input is used to acquire the framing content of the camera to generate a candidate image, and the tenth input may be a click input of a third key provided on the electronic device by a user or a voice instruction input by the user, and may be determined according to an actual use requirement in actual application, which is not specifically limited in this embodiment. The third key may be a virtual key or a physical key, which is not limited in this embodiment.
The click input in this embodiment may be a single click input, a double click input, or any number of click inputs, and may also be a long-press input or a short-press input. In practical applications, the number of times of the click input may be preset, and the user may perform operations according to the preset number of times of the click input, and the number of times of the click input may be set by the user according to the operation habit of the user, which is not specifically limited in this embodiment.
For example, the tenth input may be a single-click operation of the second key 401 shown in fig. 4 by the user, resulting in and displaying the candidate image 402.
With the present embodiment, it is possible that one image is taken by the user himself as a candidate image.
In an embodiment where the candidate image is an image pre-stored in the electronic device, before displaying the candidate image, the method further includes: receiving an eleventh input, and displaying an image stored in the electronic device in response to the eleventh input; receiving a twelfth input selecting a candidate image from the images stored in the electronic device; presenting the candidate images may then include: in response to a twelfth input, presenting the candidate image.
In this embodiment, the eleventh input is used to display an image stored in the electronic device, and the eleventh input may be a click input of a third key provided on the electronic device by a user or a voice instruction input by the user, and may be determined according to an actual use requirement in an actual application, which is not specifically limited in this embodiment. The third key may be a virtual key or a physical key, which is not limited in this embodiment.
The click input in this embodiment may be a single click input, a double click input, or any number of click inputs, and may also be a long-press input or a short-press input. In practical applications, the number of times of the click input may be preset, the user may perform operations according to the preset number of times of the click input, and the number of times of the click input may be set by the user according to the operation habit of the user, which is not specifically limited in this embodiment.
For example, the eleventh input may be a single-click operation of the third key by the user.
In this embodiment, the twelfth input is used to select a candidate image from images stored in the electronic device, where the twelfth input may be a click input of the user on a displayed image or a voice instruction input by the user, and may be determined according to an actual use requirement in an actual application, which is not specifically limited in this embodiment.
The click input in this embodiment may be a single click input, a double click input, or any number of click inputs, and may also be a long-press input or a short-press input. In practical applications, the number of times of the click input may be preset, and the user may perform operations according to the preset number of times of the click input, and the number of times of the click input may be set by the user according to the operation habit of the user, which is not specifically limited in this embodiment.
For example, the twelfth input may be a single-click operation of the user on any one of the presented images.
With the embodiment, the user can select one image from the images stored in the electronic equipment in advance as the candidate image.
In this embodiment, the candidate image may have at least one image element, and the embodiment may select a target image element from the at least one image element of the candidate image, and determine a foreground element option according to the target image element.
The third input of this embodiment is used to select a target image element from the candidate image, and the third input may be a click input of the user on the target image element selected in the candidate image, or a voice instruction input by the user, which may be determined according to an actual use requirement in an actual application, which is not specifically limited in this embodiment.
The click input in this embodiment may be a single click input, a double click input, or any number of click inputs, and may also be a long-press input or a short-press input. In practical applications, the number of times of the click input may be preset, the user may perform operations according to the preset number of times of the click input, and the number of times of the click input may be set by the user according to the operation habit of the user, which is not specifically limited in this embodiment.
For example, the third input may be a single-click operation by the user on a selected target image element in the candidate image.
In one embodiment, the element recognition may be performed on the candidate image based on a preset machine learning model. Specifically, the preset elements included in the candidate image may be identified based on the machine learning model, so as to obtain the image elements in the candidate image. The preset elements may be preset according to an application scenario or specific requirements. For example, the preset elements may include characters, flowers, trees, animals, objects, buildings, frames, and the like. As shown in fig. 4, by performing element recognition on the candidate image, image elements 403 in the candidate image can be obtained.
In one example, the frame may be a door or window, a mirror frame, an opening, a branch, or a fence opening, etc.; but also can be characteristic buildings or natural scenery of scenic spots.
In the case of image elements in the candidate image, identification may be performed for viewing by the user.
In the embodiment of the application, a user can select a target image element from candidate images according to actual needs of the user, and determine a foreground element option according to the target image element so as to be displayed in a shooting preview interface for the user to select.
In one embodiment, determining the foreground element option from the target image element in response to the third input may further include: in response to the third input, providing a dialog box, as shown in fig. 4, the dialog box 404 including a fourth button 405 and a text prompt for prompting the user whether to determine a foreground element option from the target image element; receiving a thirteenth input; in response to the thirteenth input, a foreground element option is determined from the target image element.
In this embodiment, the thirteenth input is used to display a dialog box, and the thirteenth input may be a click input of a fourth key provided on the electronic device by the user or a voice instruction input by the user, and may be determined according to an actual use requirement in an actual application, which is not specifically limited in this embodiment. The fourth key may be a virtual key or a physical key, which is not limited in this embodiment.
The click input in this embodiment may be a single click input, a double click input, or any number of click inputs, and may also be a long-press input or a short-press input. In practical applications, the number of times of the click input may be preset, the user may perform operations according to the preset number of times of the click input, and the number of times of the click input may be set by the user according to the operation habit of the user, which is not specifically limited in this embodiment.
For example, the thirteenth input may be a single-click operation of the fourth key by the user.
Through the embodiment, the target image element used for determining the foreground element option can be selected from the candidate images according to the user, and the shooting experience of the user is improved.
In one example, the target image element may be the foreground element option.
In another example, the target image element may be a planar object, and the foreground element option may be determined according to the target image element, and the planar target image element may be converted into a stereoscopic target image element as the foreground element option.
In this embodiment, in response to the third input, determining a foreground element option according to the target image element may further include: displaying, in response to a third input, a first option to display a target image element that is converted to stereo and a second option to display a target image element that is not converted to stereo; receiving a fourteenth input for the first option; in response to a fourteenth input, the planar target image element is converted to a stereoscopic target image element as a foreground element option.
In this embodiment, it may be that, in response to a fifteenth input to the second option, the target image element is taken as the foreground element option.
In one embodiment, the method may further comprise: receiving a fourth input for selecting a first image element displayed in the shooting preview interface; and responding to a fourth input, taking the first image element as a target foreground object, and displaying the target foreground object in the transparent screen area.
In this embodiment, at least one shooting object is shot by the camera, so that an image element corresponding to the at least one shooting object can be displayed in the shooting preview interface.
The fourth input of this embodiment is used to select the first image element from the shooting preview interface, where the fourth input may be a click input of the user on the first image element selected in the shooting preview interface, or a voice instruction input by the user, and may be determined according to an actual use requirement in an actual application, which is not specifically limited in this embodiment.
The click input in this embodiment may be a single click input, a double click input, or any number of click inputs, and may also be a long-press input or a short-press input. In practical applications, the number of times of the click input may be preset, the user may perform operations according to the preset number of times of the click input, and the number of times of the click input may be set by the user according to the operation habit of the user, which is not specifically limited in this embodiment.
For example, the fourth input may be a single-click operation of the user on the first image element selected in the photographing preview interface.
In one embodiment, element recognition may be performed on the shooting preview interface based on a preset machine learning model. Specifically, preset elements included in the shooting preview interface may be recognized based on the machine learning model, so as to obtain image elements in the shooting preview interface. The preset elements may be preset according to an application scenario or specific requirements. For example, the preset elements may include characters, flowers, trees, animals, objects, buildings, frames, and the like.
Under the condition that the image elements in the shooting preview interface are obtained, identification can be carried out so as to be viewed by a user.
In the embodiment of the application, the user can select the first image element from the shooting preview interface according to the actual demand of the user, the first image element is displayed in the transparent screen area as the target foreground object so as to be shot by the camera, and therefore the target foreground element corresponding to the target foreground object can be displayed in the shooting preview interface according to the actual demand of the user, so that the target image which meets the demand of the user can be shot, and the shooting experience of the user is improved.
In one embodiment, before performing step 102, and before receiving the first input for photographing, the method may further include: receiving a fifth input for adjusting the shooting parameters of the target foreground element; responding to the fifth input, and updating and displaying a target foreground object corresponding to the target foreground element in the transparent screen area according to the adjusted shooting parameters; and updating and displaying the target foreground element in the shooting preview interface.
In one embodiment, the target foreground object is a planar object or a stereoscopic object. The shooting parameters of the target foreground element can comprise at least one of the following items: size, position, blurring degree, transparency, shooting angle.
In this embodiment, the fifth input is used to adjust a shooting parameter of the target foreground element, and the fifth input may be a voice instruction input by a user or a specific gesture input by the user, and may be determined according to an actual use requirement in an actual application, which is not specifically limited in this embodiment.
The specific gesture in this embodiment may be any one of a drag gesture, a long-press gesture, a double-press gesture, and a double-click gesture.
In an embodiment where the photographing parameters of the target foreground element include a position, the specific gesture may be, for example, a drag input with respect to the target foreground element displayed in the photographing preview screen. In practical application, the position where the user releases the dragging gesture is the adjusted position of the target foreground element in the shooting preview picture. For example, the fifth input may be a drag input by the user with respect to the target foreground element in the photographing preview screen.
In this embodiment, when the fifth input is that the target foreground element is dragged to move a first distance in the first direction in the shooting preview picture, the target foreground object corresponding to the target foreground element is updated and displayed in the transparent screen area according to the adjusted shooting parameter; and updating and displaying the target foreground element in the shooting preview interface, wherein the target foreground element can be moved to a second direction by a second distance in the transparent screen area, so that when the camera shoots the target object and the target foreground object displayed on the transparent screen area, the target foreground element in the shooting preview image is moved to the first direction by a first distance.
The second distance may be positively correlated with the first distance, and specifically, the second distance may be determined according to the first distance, a distance between the transparent screen area and the camera, and a focal length of the camera.
In an embodiment where the photographing parameters of the target foreground element include a size, the specific gesture may be, for example, a zoom input for the target foreground element displayed in the photographing preview screen. For example, the fifth input may be a zoom-out operation of the user at two fingers at the target foreground element displayed in the shooting preview screen simultaneously; the fifth operation may also be an operation of zooming in two fingers of the user at the target foreground element displayed in the shooting preview screen simultaneously outward.
In this embodiment, when the fifth input is that the target foreground element is zoomed by the first multiple in the shooting preview picture, the target foreground object corresponding to the target foreground element is updated and displayed in the transparent screen area according to the adjusted shooting parameter; and updating and displaying the target foreground element in the shooting preview interface, wherein the target foreground element can be zoomed from a first size to a second size in the transparent screen area according to a first multiple, so that when the target object and the target foreground object displayed on the transparent screen area are shot by the camera, the target foreground element in the shooting preview image is zoomed from a third size to a fourth size. The first quotient and the second quotient are equal and are both first multiples, the first quotient is the quotient between the second size and the first size, and the second quotient is the quotient between the fourth size and the third size.
The first size and the third size may be in positive correlation, the second size and the fourth size may be in positive correlation, and specifically, the second size may be determined according to the first size and the focal length of the camera.
The first multiple of the present embodiment may be determined according to the moving distance of the finger of the user at the target foreground element displayed in the shooting preview screen. In one example, a mapping function reflecting a mapping relationship between the finger movement distance and the zoom factor may be preset, and the corresponding zoom factor may be obtained as the first factor according to the movement distance of the finger when the user performs the zoom operation and the mapping function. In another example, a comparison table representing the corresponding relationship between the finger moving distance and the zoom multiple may be preset, and the comparison table may be searched according to the finger moving distance when the user performs the zoom operation, so as to obtain the corresponding zoom multiple as the first multiple.
In an embodiment where the shooting parameter of the target foreground element includes a degree of blurring or transparency, the fifth input may also be an input of a specific numerical value representing the degree of blurring or transparency in the input box, or a click input to a fifth key provided on the electronic device. In practical applications, the determination may be determined according to actual use requirements, and this embodiment is not particularly limited in this respect. The fifth key may include a key for increasing a numerical value and a key for decreasing the numerical value, and the fifth key may be a virtual key or a physical key, which is not specifically limited in this embodiment. Illustratively, the shooting preview screen may further include a progress bar indicating a degree of blurring or transparency of the target foreground element, and the specific gesture may be, for example, a drag input to the progress bar.
The click input in this embodiment may be a single click input, a double click input, or any number of click inputs, and may also be a long-press input or a short-press input. In practical applications, the number of times of the click input may be preset, the user may perform operations according to the preset number of times of the click input, and the number of times of the click input may be set by the user according to the operation habit of the user, which is not specifically limited in this embodiment.
For example, the fifth input may be a drag operation performed by the user for a progress bar representing the degree of blurring or the transparency of the target foreground element.
In this embodiment, in a case that the fifth input is to set the blurring degree of the target foreground element as a set value, according to the adjusted shooting parameter, the target foreground object corresponding to the target foreground element is updated and displayed in the transparent screen area; and updating the displayed target foreground element in the shooting preview interface, wherein the blurring degree of the target foreground object can be adjusted to be a set value in the transparent screen area, so that when the camera shoots the target object and the target foreground object displayed on the transparent screen area, the blurring degree of the target foreground element in the shooting preview image is also the set value.
Therefore, a large aperture can be simulated in the shooting preview picture, the depth feeling is added to the shooting preview picture, and the shooting experience of a user is improved.
According to the embodiment, in response to the fifth input, the target foreground object corresponding to the target foreground element is updated and displayed in the transparent screen area according to the adjusted shooting parameter; the target foreground element is updated and displayed in the shooting preview interface, so that the shooting parameters of the target foreground element in the target image can be adjusted without algorithm, the obtained shooting parameters of the target foreground element in the target image can be correspondingly adjusted under the condition of receiving the first input, the target image which meets the requirements of a user better can be shot, and the shooting experience of the user is improved.
Moreover, as the shooting parameters of the target foreground elements in the target image are not adjusted through an algorithm, the CPU occupancy rate of the electronic equipment in the shooting process can be reduced, the shooting speed is increased, and the heating of the electronic equipment is reduced.
In one embodiment, before performing step 102, and before receiving the first input for photographing, the method may further include: receiving a sixth input for adjusting the photographing parameters of the photographing object element; and responding to a sixth input, and updating and displaying the shooting object element in the shooting preview interface according to the adjusted shooting parameter.
In one embodiment, the photographing parameters of the photographing object element may include at least one of: size, position, blurring degree, transparency, shooting angle.
For the sixth input in this embodiment, reference may be made to the description of the fifth input in the foregoing embodiment, and details are not repeated here.
In response to the sixth input, the step of updating and displaying the object element in the preview shooting interface according to the adjusted shooting parameter may specifically refer to the embodiment of updating and displaying the object foreground element in the preview shooting interface according to the adjusted shooting parameter in response to the fifth input, which is not described herein again.
Through the embodiment, in response to the sixth input, the shooting object element is updated and displayed in the shooting preview interface according to the adjusted shooting parameter, so that the shooting parameter of the shooting object element in the target image can be adjusted without an algorithm, and under the condition of receiving the first input, the shooting parameter of the shooting object element in the obtained target image can be correspondingly adjusted, so that the target image which meets the requirements of a user better can be shot, and the shooting experience of the user is improved.
Moreover, because the shooting parameters of the shooting object elements in the target image are not adjusted through an algorithm, the CPU occupancy rate of the electronic equipment in the shooting process can be reduced, the shooting speed can be increased, and the heating of the electronic equipment can be reduced.
In one embodiment, before performing step 102, and before receiving the first input for photographing, the method may further include: receiving a seventh input for eliminating the second image element displayed in the shooting preview interface; and updating and displaying the shooting preview interface in response to a seventh input.
In this embodiment, the second image element may be a target foreground element or a shooting object element.
In one embodiment, element recognition can be performed on the shooting preview interface based on a preset machine learning model. Specifically, preset elements included in the shooting preview interface may be recognized based on the machine learning model, so as to obtain image elements in the shooting preview interface. The preset elements may be preset according to an application scenario or specific requirements. For example, the preset elements may include characters, flowers, trees, animals, objects, buildings, frames, and the like.
In the case of image elements in the candidate image, identification may be performed for viewing by the user.
In the embodiment of the application, the user can select the second image element from the shooting preview interface to eliminate the second image element according to the actual requirement of the user.
Through the embodiment, the user eliminates redundant second image elements displayed in the shooting preview interface by executing the seventh input, so that the target image does not contain redundant third image elements without an algorithm under the condition of receiving the first input, the target image which meets the requirements of the user better can be shot, and the shooting experience of the user is improved.
In addition, because redundant second image elements are not eliminated through an algorithm, the CPU occupancy rate of the electronic equipment in the shooting process can be reduced, the shooting speed is improved, and the heat generation of the electronic equipment is reduced.
According to the shooting method provided by the embodiment of the application, the execution main body can be a shooting device. The embodiment of the present application takes an example in which a shooting device executes a shooting method, and the shooting device provided in the embodiment of the present application is described. In this embodiment, the electronic device includes a transparent screen region located between the camera and the target object.
Fig. 5 is a schematic structural diagram of a shooting device according to an embodiment of the present application. As shown in fig. 5, the photographing apparatus 500 of the embodiment of the present application includes a first display module 501, a first receiving module 502, and a first responding module 503.
A first display module 501, configured to display a target foreground element and a shooting object element corresponding to a target object in a shooting preview interface; and the target foreground element is acquired from a target foreground object displayed on the transparent screen area.
A first receiving module 502, configured to receive a first input for shooting.
A first response module 503, configured to obtain a target image including the target foreground element and the photographic subject element in response to the first input.
In the embodiment of the application, the target foreground element and the image obtained by shooting the target object do not need to be synthesized through a software algorithm, the target foreground object is displayed on the transparent screen area, the target foreground object and the target object are collected through the camera, the target foreground element corresponding to the target foreground object and the shooting object element corresponding to the target object can be displayed in a shooting preview interface, and the target image comprising the foreground image element and the shooting object element can be obtained under the condition of receiving the first input, namely, the synthesis of the foreground image element and the shooting object element can be realized through shooting, and the image quality of the synthesized image is improved.
In addition, because the foreground image elements and the shooting object elements are not synthesized through an algorithm, the maximum output size and code rate of the target image can be ensured, the CPU occupancy rate of electronic equipment in the shooting process can be reduced, the shooting speed is increased, and the heating of the electronic equipment is reduced.
In one embodiment, the photographing apparatus 500 further includes a second display module and a second receiving module.
And the second display module is used for displaying at least one foreground element option in the shooting preview interface.
A second receiving module to receive a second input to select a target foreground element option from the at least one foreground element option.
The first display module 501 includes a first display unit and a second display unit.
And the first display unit is used for responding to the second input and displaying the target foreground object corresponding to the target foreground element option in the transparent screen area.
And the second display unit is used for displaying the target foreground element and the shooting object element corresponding to the target object in the shooting preview interface.
In the embodiment of the application, the electronic device can provide at least one foreground element option for a user to select a target foreground element option meeting the actual requirement of the user, and a target foreground object corresponding to the target foreground element option is displayed in the transparent screen area so as to shoot the target foreground object and the target object, so that a target image meeting the requirement of the user can be shot, the shooting effect is richer, and the shooting experience of the user is improved.
In one embodiment, the photographing apparatus 500 further includes a third display module, a third receiving module, and a third responding module.
And the third display module is used for displaying the candidate images.
A third receiving module for receiving a third input for selecting a target image element from the candidate image.
A third response module to determine the foreground element option from the target image element in response to the third input.
In the embodiment of the application, a user can select a target image element from a candidate image according to actual needs of the user, and a foreground element option is determined according to the target image element so as to be displayed in a shooting preview interface for the user to select.
In one embodiment, the photographing apparatus 500 further includes a fourth receiving module and a fourth responding module.
A fourth receiving module, configured to receive a fourth input for selecting the first image element displayed in the shooting preview interface.
And the fourth response module is used for responding to the fourth input, taking the shooting object corresponding to the first image element as the target foreground object, and displaying the target foreground object in the transparent screen area.
In the embodiment of the application, the user can select the first image element from the shooting preview interface according to the actual demand of the user, the first image element is displayed in the transparent screen area as the target foreground object, the camera is used for shooting, and therefore the target foreground element corresponding to the target foreground object can be displayed in the shooting preview interface according to the actual demand of the user, so that the target image which meets the demand of the user better can be shot, and the shooting experience of the user is improved.
In one embodiment, the photographing apparatus 500 further includes a fifth receiving module, a fifth responding module, and a fourth displaying module.
And the fifth receiving module is used for receiving a fifth input for adjusting the shooting parameters of the target foreground element.
And the fifth response module is used for responding to the fifth input and updating and displaying the target foreground object corresponding to the target foreground element in the transparent screen area according to the adjusted shooting parameters.
And the fourth display module is used for updating and displaying the target foreground element in the shooting preview interface.
According to the embodiment, in response to the fifth input, the target foreground object corresponding to the target foreground element is updated and displayed in the transparent screen area according to the adjusted shooting parameter; the target foreground element is updated and displayed in the shooting preview interface, so that the shooting parameters of the target foreground element in the target image can be adjusted without an algorithm, the shooting parameters of the target foreground element in the obtained target image can be adjusted correspondingly under the condition that the first input is received, the target image which meets the requirements of a user can be shot, and the shooting experience of the user is improved.
Moreover, as the shooting parameters of the target foreground elements in the target image are not adjusted through an algorithm, the CPU occupancy rate of the electronic equipment in the shooting process can be reduced, the shooting speed is increased, and the heating of the electronic equipment is reduced.
In one embodiment, the foreground object is a planar object or a stereoscopic object; the shooting parameters of the target foreground element comprise at least one of the following items: size, position, blurring degree, transparency, shooting angle.
In one embodiment, the photographing apparatus 500 further includes a sixth receiving module and a sixth responding module.
A sixth receiving module, configured to receive a sixth input for adjusting the shooting parameters of the shooting object element.
And the sixth response module is used for responding to the sixth input and updating and displaying the shooting object element in the shooting preview interface according to the adjusted shooting parameter.
Through the embodiment, in response to the sixth input, the shooting object element is updated and displayed in the shooting preview interface according to the adjusted shooting parameter, so that the shooting parameter of the shooting object element in the target image can be adjusted without an algorithm, and under the condition of receiving the first input, the shooting parameter of the shooting object element in the obtained target image can be correspondingly adjusted, so that the target image which meets the requirements of a user better can be shot, and the shooting experience of the user is improved.
Moreover, because the shooting parameters of the shooting object elements in the target image are not adjusted through an algorithm, the CPU occupancy rate of the electronic equipment in the shooting process can be reduced, the shooting speed can be increased, and the heating of the electronic equipment can be reduced.
In one embodiment, the photographing parameters of the photographing object element include at least one of: size, position, blurring degree, transparency, shooting angle.
In one embodiment, the photographing apparatus 500 further includes a seventh receiving module and a seventh responding module.
A seventh receiving module, configured to receive a seventh input for eliminating the candidate image element displayed in the shooting preview interface.
And the seventh response module is used for responding to the seventh input and updating and displaying the shooting preview interface.
Through the embodiment, the user eliminates redundant second image elements displayed in the shooting preview interface by executing the seventh input, so that the target image does not contain redundant third image elements without an algorithm under the condition of receiving the first input, the target image which better meets the requirements of the user can be shot, and the shooting experience of the user is improved.
In addition, because redundant second image elements are not eliminated through an algorithm, the CPU occupancy rate of the electronic equipment in the shooting process can be reduced, the shooting speed is improved, and the heat generation of the electronic equipment is reduced.
The shooting device in the embodiment of the present application may be an electronic device, and may also be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The 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 Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
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, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present application.
The shooting device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 4, 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 and a memory 602, where a program or an instruction that can be executed on the processor 601 is stored in the memory 602, and when the program or the instruction is executed by the processor 601, the steps of the foregoing shooting method embodiment are implemented, and the same technical effects can be achieved, and are not described again here to avoid repetition.
In this embodiment, the electronic device 600 further includes a transparent screen area, and the transparent screen area is located between the camera and the target object.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-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 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through 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.
The display unit 1006 is configured to display, in a shooting preview interface, a target foreground element and a shooting object element corresponding to a target object; and the target foreground element is acquired from a target foreground object displayed on the transparent screen area.
A user input unit 1007 for receiving a first input for photographing.
A processor 1010 configured to obtain a target image including the target foreground element and the photographic subject element in response to the first input.
In the embodiment of the application, the target foreground element and the image obtained by shooting the target object do not need to be synthesized through a software algorithm, the target foreground object is displayed on the transparent screen area, the target foreground object and the target object are collected through the camera, the target foreground element corresponding to the target foreground object and the shooting object element corresponding to the target object can be displayed in a shooting preview interface, and the target image comprising the foreground image element and the shooting object element can be obtained under the condition of receiving the first input, namely, the synthesis of the foreground image element and the shooting object element can be realized through shooting, and the image quality of the synthesized image is improved.
In addition, because the foreground image elements and the shooting object elements are not synthesized through an algorithm, the maximum output size and code rate of the target image can be ensured, the CPU occupancy rate of electronic equipment in the shooting process can be reduced, the shooting speed is increased, and the heating of the electronic equipment is reduced.
Optionally, the display unit 1006 is further configured to display at least one foreground element option in the shooting preview interface.
The user input unit 1007 is further configured to receive a second input for selecting a target foreground element option from the at least one foreground element option.
A display unit 1006, further configured to display, in response to the second input, the target foreground object corresponding to the target foreground element option in the transparent screen area; and displaying the target foreground element and a shooting object element corresponding to the target object in the shooting preview interface.
In the embodiment of the application, the electronic device can provide at least one foreground element option for a user to select a target foreground element option meeting the actual requirement of the user, and a target foreground object corresponding to the target foreground element option is displayed in the transparent screen area so as to shoot the target foreground object and the target object, so that a target image meeting the requirement of the user can be shot, the shooting effect is richer, and the shooting experience of the user is improved.
Optionally, the display unit 1006 is further configured to display the candidate image.
A user input unit 1007 further configured to receive a third input for selecting a target image element from the candidate image
A processor 1010, further configured to determine the foreground element option from the target image element in response to the third input.
In the embodiment of the application, a user can select a target image element from a candidate image according to actual needs of the user, and a foreground element option is determined according to the target image element so as to be displayed in a shooting preview interface for the user to select.
Optionally, the user input unit 1007 is further configured to receive a fourth input for selecting a first image element displayed in the shooting preview interface.
The processor 1010 is further configured to, in response to the fourth input, take the photographic object corresponding to the first image element as the target foreground object, and display the target foreground object in the transparent screen area.
In the embodiment of the application, the user can select the first image element from the shooting preview interface according to the actual demand of the user, the first image element is displayed in the transparent screen area as the target foreground object, the camera is used for shooting, and therefore the target foreground element corresponding to the target foreground object can be displayed in the shooting preview interface according to the actual demand of the user, so that the target image which meets the demand of the user better can be shot, and the shooting experience of the user is improved.
Optionally, the user input unit 1007 is further configured to receive a fifth input for adjusting the shooting parameters of the target foreground element.
The processor 1010 is further configured to update and display a target foreground object corresponding to the target foreground element in the transparent screen area according to the adjusted shooting parameter in response to the fifth input.
The display unit 1006 is further configured to update and display the target foreground element in the shooting preview interface.
According to the embodiment, in response to the fifth input, the target foreground object corresponding to the target foreground element is updated and displayed in the transparent screen area according to the adjusted shooting parameter; the target foreground element is updated and displayed in the shooting preview interface, so that the shooting parameters of the target foreground element in the target image can be adjusted without an algorithm, the shooting parameters of the target foreground element in the obtained target image can be adjusted correspondingly under the condition that the first input is received, the target image which meets the requirements of a user can be shot, and the shooting experience of the user is improved.
Moreover, as the shooting parameters of the target foreground elements in the target image are not adjusted through an algorithm, the CPU occupancy rate of the electronic equipment in the shooting process can be reduced, the shooting speed is increased, and the heating of the electronic equipment is reduced.
Optionally, the target foreground object is a planar object or a stereoscopic object; the shooting parameters of the target foreground element comprise at least one of the following: size, position, blurring degree, transparency, shooting angle.
Optionally, the user input unit 1007 is further configured to receive a sixth input for adjusting the shooting parameters of the shooting object element.
The processor 1010 is further configured to update and display the photographic object element in the photographic preview interface according to the adjusted photographic parameter in response to the sixth input.
Through the embodiment, in response to the sixth input, the shooting object element is updated and displayed in the shooting preview interface according to the adjusted shooting parameter, so that the shooting parameter of the shooting object element in the target image can be adjusted without an algorithm, and under the condition of receiving the first input, the shooting parameter of the shooting object element in the obtained target image can be correspondingly adjusted, so that the target image which meets the requirements of a user better can be shot, and the shooting experience of the user is improved.
Moreover, because the shooting parameters of the shooting object elements in the target image are not adjusted through an algorithm, the CPU occupancy rate of the electronic equipment in the shooting process can be reduced, the shooting speed can be increased, and the heating of the electronic equipment can be reduced.
Optionally, the photographing parameters of the photographing object element include at least one of: size, position, blurring degree, transparency, shooting angle.
Optionally, the user input unit 1007 is further configured to receive a seventh input for eliminating the second image element displayed in the shooting preview interface.
The display unit 1006 is further configured to update and display the shooting preview interface in response to the seventh input.
Through the embodiment, the user eliminates redundant second image elements displayed in the shooting preview interface by executing the seventh input, so that the target image does not contain redundant third image elements without an algorithm under the condition of receiving the first input, the target image which meets the requirements of the user better can be shot, and the shooting experience of the user is improved.
In addition, because redundant second image elements are not eliminated through an algorithm, the CPU occupancy rate of the electronic equipment in the shooting process can be reduced, the shooting speed is improved, and the heat generation of the electronic equipment is reduced.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of a still image or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 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.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or non-volatile memory, or the memory 1009 may include both volatile and non-volatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct bus RAM (DRRAM). The memory 1009 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor, which primarily handles operations related to the operating system, user interface, applications, etc., and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the foregoing shooting method embodiment, and can achieve the same technical effects, 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 computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
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.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing shooting method embodiments, and achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
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 one of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element. Further, it should be noted that the scope of the methods and apparatuses in 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 recited, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, 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 (15)

1. A shooting method is applied to electronic equipment, and is characterized in that the electronic equipment comprises a transparent screen area which is positioned between a camera and a target object, and the method comprises the following steps:
displaying a target foreground element and a shooting object element corresponding to a target object in a shooting preview interface; the target foreground element is acquired from a target foreground object displayed on the transparent screen area;
receiving a first input for photographing;
in response to the first input, a target image including the target foreground element and the photographic subject element is obtained.
2. The method of claim 1, wherein the step of displaying the target foreground element and the target object corresponding to the target object in the shooting preview interface is preceded by the step of:
displaying at least one foreground element option in the capture preview interface;
receiving a second input for selecting a target foreground element option from the at least one foreground element option;
the displaying of the target foreground element and the shooting object element corresponding to the target object in the shooting preview interface includes:
in response to the second input, displaying the target foreground object corresponding to the target foreground element option in the transparent screen area;
and displaying the target foreground element and a shooting object element corresponding to the target object in the shooting preview interface.
3. The method of claim 2, further comprising:
displaying the candidate image;
receiving a third input for selecting a target image element from the candidate image;
in response to the third input, determining the foreground element option from the target image element.
4. The method of claim 1, further comprising:
receiving a fourth input for selecting a first image element displayed in the shooting preview interface;
and responding to the fourth input, taking a shooting object corresponding to the first image element as the target foreground object, and displaying the target foreground object in the transparent screen area.
5. The method of claim 1, wherein the step of receiving a first input for capturing is preceded by:
receiving a fifth input for adjusting the shooting parameters of the target foreground element;
responding to the fifth input, and updating and displaying a target foreground object corresponding to the target foreground element in the transparent screen area according to the adjusted shooting parameters;
and updating and displaying the target foreground element in the shooting preview interface.
6. The method of claim 5, wherein the target foreground object is a planar object or a stereo object; the shooting parameters of the target foreground element comprise at least one of the following: size, position, blurring degree, transparency, shooting angle.
7. The method of claim 1, wherein the step of receiving a first input for photography is preceded by:
receiving a sixth input for adjusting a photographing parameter of the photographing object element;
and responding to the sixth input, and updating and displaying the shooting object element in the shooting preview interface according to the adjusted shooting parameter.
8. The method according to claim 7, wherein the photographing parameters of the photographic subject element include at least one of: size, position, blurring degree, transparency, shooting angle.
9. The method of claim 1, wherein the step of receiving a first input for photography is preceded by:
receiving a seventh input for eliminating a second image element displayed in the shooting preview interface;
and responding to the seventh input, and updating and displaying the shooting preview interface.
10. A shooting device is applied to electronic equipment, and is characterized in that the electronic equipment comprises a transparent screen area which is positioned between a camera and a target object, and the device comprises:
the first display module is used for displaying a target foreground element and a shooting object element corresponding to a target object in a shooting preview interface; the target foreground element is acquired from a target foreground object displayed on the transparent screen area;
the first receiving module is used for receiving a first input for shooting;
a first response module for obtaining a target image including the target foreground element and the photographic subject element in response to the first input.
11. The apparatus of claim 10, further comprising:
a fourth receiving module, configured to receive a fourth input for selecting a first image element displayed in the shooting preview interface;
and the fourth response module is used for responding to the fourth input, taking the shooting object corresponding to the first image element as the target foreground object and displaying the target foreground object in the transparent screen area.
12. The apparatus of claim 10, further comprising:
a fifth receiving module, configured to receive a fifth input for adjusting the shooting parameters of the target foreground element;
a fifth response module, configured to respond to the fifth input, and update and display a target foreground object corresponding to the target foreground element in the transparent screen area according to the adjusted shooting parameter;
and the fourth display module is used for updating and displaying the target foreground element in the shooting preview interface.
13. The apparatus of claim 1, further comprising:
a sixth receiving module, configured to receive a sixth input for adjusting the shooting parameters of the shooting object element;
and the sixth response module is used for responding to the sixth input and updating and displaying the shooting object element in the shooting preview interface according to the adjusted shooting parameter.
14. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the steps of the method of any one of claims 1-9.
15. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, carry out the steps of the method according to any one of claims 1 to 9.
CN202211179491.1A 2022-09-26 2022-09-26 Shooting method, shooting device, electronic equipment and readable storage medium Pending CN115589457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211179491.1A CN115589457A (en) 2022-09-26 2022-09-26 Shooting method, shooting device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211179491.1A CN115589457A (en) 2022-09-26 2022-09-26 Shooting method, shooting device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN115589457A true CN115589457A (en) 2023-01-10

Family

ID=84772897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211179491.1A Pending CN115589457A (en) 2022-09-26 2022-09-26 Shooting method, shooting device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115589457A (en)

Similar Documents

Publication Publication Date Title
CN113014801B (en) Video recording method, video recording device, electronic equipment and medium
CN115278084A (en) Image processing method, image processing device, electronic equipment and storage medium
CN113194256B (en) Shooting method, shooting device, electronic equipment and storage medium
CN112954209B (en) Photographing method and device, electronic equipment and medium
CN114025100B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN115967854A (en) Photographing method and device and electronic equipment
CN114125297B (en) Video shooting method, device, electronic equipment and storage medium
CN114025237B (en) Video generation method and device and electronic equipment
CN115037874A (en) Photographing method and device and electronic equipment
CN113596331B (en) Shooting method, shooting device, shooting equipment and storage medium
CN113873165B (en) Photographing method and device and electronic equipment
CN112954197B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114285922A (en) Screenshot method, screenshot device, electronic equipment and media
CN115589457A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114245017A (en) Shooting method and device and electronic equipment
CN113873168A (en) Shooting method, shooting device, electronic equipment and medium
CN112887621B (en) Control method and electronic device
CN114143454B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114143455B (en) Shooting method and device and electronic equipment
CN117097982B (en) Target detection method and system
CN112367468B (en) Image processing method and device and electronic equipment
CN115242976A (en) Shooting method, shooting device and electronic equipment
CN114710624A (en) Photographing method and photographing apparatus
CN117331469A (en) Screen display method, device, electronic equipment and readable storage medium
CN114827493A (en) Shooting method and device and electronic equipment

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