A shooting method, device, electronic device and readable storage medium

By displaying the target foreground object on the transparent screen area of ​​the electronic device and collecting images, the problem of poor synthetic image quality is solved, higher quality image synthesis is achieved, and shooting efficiency and equipment performance are improved.

CN115589457BActive Publication Date: 2025-06-24VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211179491.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-26
Publication Date
2025-06-24
Estimated Expiration
2042-09-26

AI Technical Summary

Technical Problem

The prior art causes poor image quality due to algorithms and scene complexity when synthesizing images, especially when portrait hairstyles in self-portrait photos and irregular edges of scenery in scenic spot images, the synthesis traces are obvious.

Method used

By displaying the target foreground object on the transparent screen area of ​​the electronic device, and using the camera to acquire images of the target foreground object and the target object, displaying the target foreground element and the shooting object element in the shooting preview interface, and receiving user input to obtain the target image, thereby realizing the synthesis of the foreground image elements and the shooting object element.

Benefits of technology

The image quality of the composite image is improved, the CPU occupancy rate of electronic devices during shooting is reduced, the shooting speed is increased, and the device heat generation is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115589457B_ABST
    Figure CN115589457B_ABST
Patent Text Reader

Abstract

The present application discloses a shooting method, device, electronic device, and readable storage medium, belonging to the technical field of electronic devices. The method is applied to an electronic device, and the electronic device includes a transparent screen area located between a camera and a target object. The method includes: displaying a target foreground element and a shooting object element corresponding to the target object in a shooting preview interface; the target foreground element is obtained by collecting a target foreground object displayed on the transparent screen area; receiving a first input for shooting; and in response to the first input, obtaining a target image including the target foreground element and the shooting object element.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of electronic devices, and particularly relates to a shooting method, device, electronic device, and readable storage medium. Background Art

[0002] With the development of technology, the shooting function of smart phones has become more and more powerful. The camera function of mobile phones is becoming increasingly important in life and has gradually become the main device for users to take pictures.

[0003] Currently, users' demands for taking pictures are also becoming more and more diverse. For example, select an image of a scenic spot and synthesize a self-taken photo into it to obtain a synthesized image similar to the user's self-taken photo at the scenic spot.

[0004] However, the above solution is limited by the complexity of the algorithm and the scene, resulting in poor quality of the synthesized image. For example, the person in the self-taken photo has a complex hairstyle, and the scenery in the scenic spot image has many irregular edges, making the synthesis trace obvious and resulting in poor image quality of the synthesized image. Summary of the Invention

[0005] The purpose of the embodiments of this application is to provide a shooting method, device, electronic device, and readable storage medium, which can solve the problem of poor quality of the synthesized image.

[0006] In a first aspect, the embodiments of this application provide a shooting method. The electronic device includes a transparent screen area located between the camera and the target object. The method includes:

[0007] Display a target foreground element and a shooting object element corresponding to the target object in the shooting preview interface; the target foreground element is obtained by collecting the target foreground object displayed on the transparent screen area;

[0008] Receive a first input for shooting;

[0009] In response to the first input, obtain a target image including the target foreground element and the shooting object element.

[0010] In a second aspect, the embodiments of this application provide a shooting device applied to an electronic device. The electronic device includes a transparent screen area located between the camera and the target object. The device includes:

[0011] A first display module for displaying a target foreground element and a shooting object element corresponding to the target object in the shooting preview interface; the target foreground element is obtained by collecting the target foreground object displayed on the transparent screen area;

[0012] A first receiving module for receiving a first input for shooting;

[0013] The first response module is configured to obtain a target image including the target foreground element and the photographed object element in response to the first input.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. The memory stores a program or instruction that can be run on the processor. When the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0015] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0016] In a fourth aspect, an embodiment of the present application provides a chip, which 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 instruction to implement the method described in the first aspect.

[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0018] In an embodiment of the present application, a target foreground object is displayed on a transparent screen area, and the target foreground object and the target object are collected through a camera. The target foreground element corresponding to the target foreground object and the photographed object element corresponding to the target object can be displayed in a shooting preview interface. When a first input is received, a target image including a foreground image element and a photographed object element can be obtained, that is, the foreground image element and the photographed object element can be synthesized through shooting, improving the image quality of the synthesized image. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a schematic flowchart of the shooting method provided by an embodiment of the present application;

[0020] Figure 2 It is a schematic diagram of a shooting scene provided by an embodiment of the present application;

[0021] Figure 3 It is a schematic diagram of an atlas of foreground elements provided by an embodiment of the present application;

[0022] Figure 4 It is a schematic diagram of adding a foreground element provided by an embodiment of the present application;

[0023] Figure 5 It is a schematic structural diagram of the shooting device provided by an embodiment of the present application;

[0024] Figure 6 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

[0025] Figure 7 It is a schematic hardware structure diagram of an electronic device to implement an embodiment of the present application. Specific embodiments

[0026] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0027] Terms such as "first" and "second" in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are usually of the same category, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally represents an "or" relationship between the associated objects before and after.

[0028] Next, in conjunction with the accompanying drawings, the shooting method of the electronic device provided by the embodiment of the present application will be described in detail through specific embodiments and their application scenarios.

[0029] Figure 1 It is a schematic flowchart of the shooting method provided by the embodiment of the present application. The shooting method provided by the embodiment of the present application can be executed by, for example, an electronic device, and the electronic device includes, but is not limited to, devices with shooting and display functions such as smart phones, tablet computers, desktop computers, notebook computers, handheld computers, vehicle-mounted terminals, and wearable devices.

[0030] As Figure 2 shown, the electronic device in this embodiment includes a transparent screen area 201, and the transparent screen area 201 is located between the camera 203 and the target object 204. The camera 203 can simultaneously frame the target object 204 and the target foreground object displayed in the transparent screen area 201.

[0031] In this embodiment, the transparent screen area can adopt the electro-wetting principle to control the change of the image by applying a voltage. The transparent screen area itself does not need to be added with a polarizer, so the monochromatic transmittance can be as high as more than 40%. Without installing a backlight, it is easy to see the object behind the transparent screen area.

[0032] As Figure 1 and Figure 2 shown, the shooting method of this embodiment may include the following steps 101 to 103:

[0033] Step 101, display a target foreground element and a shooting object element corresponding to a target object in a shooting preview interface. Among them, the target foreground element is obtained by collecting a target foreground object displayed on a transparent screen area.

[0034] As Figure 2 shown, a target foreground object 202 may be displayed on the transparent screen area 201. During the startup process of the camera 203, the target object 204 and the target foreground object 202 displayed on the transparent screen area 201 may be collected, and the target foreground element 206 corresponding to the target foreground object and the shooting object element 207 corresponding to the target object may be displayed in the shooting preview interface 205.

[0035] In this embodiment, the electronic device may display a shooting preview interface according to the viewfinder content of the camera for the user to preview the shooting effect in advance, and adjust the shooting angle, shooting object, shooting parameters, etc. according to the shooting effect of the shooting preview screen. The execution timing of the first input may also be selected according to the shooting preview screen, facilitating the user to shoot a target image that meets their actual needs.

[0036] In one embodiment, the target foreground object displayed on the transparent screen area may be a planar object or a three-dimensional object.

[0037] The target foreground object in this embodiment may be an image, specifically an image captured by the electronic device, an image obtained from other electronic devices, or an image obtained by performing operations such as cropping, beautifying, changing, repairing, or splicing on an image pre-stored in the electronic device. For example, the target foreground element may be an image containing people and / or scenery.

[0038] Step 102, receive a first input for shooting.

[0039] In this embodiment, the first input may be a click input by the user on a first button provided on the electronic device or a voice command input by the user, which may be determined according to actual usage requirements in practical applications, and this embodiment does not make specific limitations thereon. Among them, the first button may be a virtual button or a physical button, and this embodiment also does not make specific limitations thereon.

[0040] The click input in this embodiment can be a single - click input, a double - click input, or a click input of any number of times, etc. It can also be a long - press input or a short - press input. In practical applications, the number of click inputs can be preset in advance. Users can operate according to the preset number of clicks. The number of click inputs can be independently set by users according to their own operation habits. This embodiment does not make specific limitations on this.

[0041] For example, the first input can be a single - click operation of the user on the first button.

[0042] Step 103, in response to the first input, obtain a target image including a target foreground element and a photographed object element.

[0043] In this embodiment, in response to the first input, the electronic device can obtain the target image according to the picture displayed on the shooting preview interface when receiving the first input. Specifically, the content of the target image is the same as the content of the picture displayed on the shooting preview interface when receiving the first input.

[0044] In the embodiments of the present application, there is no need to perform synthetic processing on the target foreground element and the image obtained by photographing the target object through a software algorithm. Display the target foreground object on the transparent screen area. Collect the target foreground object and the target object through the camera. The target foreground element corresponding to the target foreground object and the photographed object element corresponding to the target object can be displayed in the shooting preview interface. In the case of receiving the first input, a target image including a foreground image element and a photographed object element can be obtained, that is, the synthesis of the foreground image element and the photographed object element can be achieved through shooting, improving the image quality of the synthetic image.

[0045] Moreover, since there is no synthetic processing of the foreground image element and the photographed object element through an algorithm, it can ensure that the target image has the largest output size and bit rate. It can also reduce the CPU occupancy rate of the electronic device during the shooting process, improve the shooting speed, and reduce the heat generation of the electronic device.

[0046] In one embodiment, in step 101, before displaying the target foreground element and the photographed object element corresponding to the target object in the shooting preview interface, the method further includes: displaying at least one foreground element option in the shooting preview interface; receiving a second input for selecting a target foreground element option from the at least one foreground element option. Step 101, displaying the target foreground element and the photographed object element corresponding to the target object in the shooting preview interface can include:

[0047] In response to the second input, display the target foreground object corresponding to the target foreground element option in the transparent screen area; display the target foreground element and the photographed object element in the shooting preview interface.

[0048] Such as Figure 3As shown, at least one foreground element option 301 may be displayed in the shooting preview interface. In response to a second input, a target foreground element 302 is displayed in the shooting preview interface. The target foreground element is obtained by capturing the target foreground object corresponding to the target foreground element option displayed on the transparent screen area.

[0049] In this embodiment, the foreground element option may be an image pre-stored in a specified folder in the memory of the electronic device, or an image added by the user to the specified folder during the use of the electronic device. This embodiment does not make specific limitations on this.

[0050] The second input may be a click input by the user on the target foreground element option among at least one foreground element option, or a voice command input by the user, which can be determined according to actual usage requirements in practical applications. This embodiment does not make specific limitations on this.

[0051] The click input in this embodiment may be a single click input, a double click input, or a click input of any number of times, etc., and may also be a long press input or a short press input. In practical applications, the number of click inputs can be preset in advance. The user can operate according to the preset number of click times. The number of click inputs can be independently set by the user according to his own operation habits. This embodiment does not make specific limitations on this.

[0052] For example, the second input may be a single click operation by the user on the target foreground element option among at least one foreground element option.

[0053] Through this embodiment, the user can select a target foreground element option for foreground shooting from at least one foreground element option displayed in the shooting preview interface according to his own actual needs, and perform a second input on the target foreground element option to display the target foreground object corresponding to the foreground element option on the transparent screen area.

[0054] In the embodiment of the present application, the electronic device may provide at least one foreground element option for the user to select a target foreground element option that meets his own actual needs, and display the target foreground object corresponding to the target foreground element option in the transparent screen area to shoot the target foreground object and the target object, so as to shoot a target image that meets the user's needs, making the shooting effect more rich and improving the user's shooting experience.

[0055] On the basis of this embodiment, after at least one foreground element option is displayed in the shooting preview interface, it further includes: receiving an eighth input; in response to the eighth input, adjusting the foreground element options displayed in the shooting preview interface.

[0056] In this embodiment, the eighth input is used to adjust the foreground element options displayed in the shooting preview interface. The eighth input can be a voice command input by the user or a specific gesture input by the user, which can be determined according to actual usage requirements in practical applications. This embodiment does not make specific limitations on this.

[0057] The specific gesture in this embodiment can be any one of a swipe gesture, a drag gesture, a click gesture, a double-press gesture, and a double-tap gesture. Exemplarily, the specific gesture can be, for example, a swipe input for the display area of the foreground element option in the shooting preview interface. In practical applications, the electronic device can also change the foreground element options displayed in the shooting preview interface according to the direction of the swipe input.

[0058] The direction of the swipe input can be preset, and the user can operate according to the preset direction. The direction of the swipe input can also be independently set by the user according to their own operation habits. This embodiment does not make specific limitations on this.

[0059] For example, the eighth input can be an operation where the user swipes right or left in the display area of the foreground element option in the shooting preview interface.

[0060] In one embodiment, the method may further include: displaying candidate images; receiving a third input for selecting a target image element from the candidate images; and in response to the third input, determining foreground element options according to the target image element.

[0061] The candidate images in this embodiment can be images obtained by the electronic device taking pictures of the shooting object through the camera, or images pre-stored in the electronic device, or images downloaded from the network. This embodiment does not make specific limitations on this.

[0062] In the embodiment where the candidate images are images obtained by the electronic device taking pictures of the shooting object through the camera, before displaying the candidate images, it further includes: receiving a ninth input, and in response to the ninth input, displaying a shooting interface, where the shooting interface includes a second button; receiving a tenth input for the second button, and in response to the tenth input, obtaining the viewfinder content of the camera and generating candidate images.

[0063] In this embodiment, the ninth input is used to display the shooting interface. The ninth input can be a click input by the user on the second button provided on the electronic device or a voice command input by the user, which can be determined according to actual usage requirements in practical applications. This embodiment does not make specific limitations on this. Among them, the second button can be a virtual button or a physical button. This embodiment also does not make specific limitations on this.

[0064] The click input in this embodiment can be a single - click input, a double - click input, or a click input of any number of times, etc. It can also be a long - press input or a short - press input. In practical applications, the number of click inputs can be preset. Users can operate according to the preset number of clicks. The number of click inputs can be independently set by users according to their own operation habits. This embodiment does not make specific limitations on this.

[0065] For example, the ninth input can be a single - click operation of the user on the second button.

[0066] In this embodiment, the tenth input is used to obtain the view - finding content of the camera to generate a candidate image. The tenth input can be a click input of the user on the third button provided on the electronic device, or a voice command input by the user. In practical applications, it can be determined according to actual usage requirements. This embodiment does not make specific limitations on this. Among them, the third button can be a virtual button or a physical button. This embodiment also does not make specific limitations on this.

[0067] The click input in this embodiment can be a single - click input, a double - click input, or a click input of any number of times, etc. It can also be a long - press input or a short - press input. In practical applications, the number of click inputs can be preset. Users can operate according to the preset number of clicks. The number of click inputs can be independently set by users according to their own operation habits. This embodiment does not make specific limitations on this.

[0068] For example, the tenth input can be a single - click operation of the user on the Figure 4 second button 401 as shown, to obtain and display the candidate image 402.

[0069] Through this embodiment, the user can take a picture by himself / herself as the candidate image.

[0070] In the embodiment where the candidate image is an image pre - stored in the electronic device, before displaying the candidate image, it further includes: receiving the eleventh input, and in response to the eleventh input, displaying the images stored in the electronic device; receiving the twelfth input for selecting a candidate image from the images stored in the electronic device; and displaying the candidate image can include: in response to the twelfth input, displaying the candidate image.

[0071] In this embodiment, the eleventh input is used to display the images stored in the electronic device. The eleventh input can be a click input of the user on the third button provided on the electronic device, or a voice command input by the user. In practical applications, it can be determined according to actual usage requirements. This embodiment does not make specific limitations on this. Among them, the third button can be a virtual button or a physical button. This embodiment also does not make specific limitations on this.

[0072] The click input in this embodiment can be single - click input, double - click input, or click input of any number of times, etc., and can also be long - press input or short - press input. In practical applications, the number of click inputs can be preset. Users can operate according to the preset number of clicks. The number of click inputs can be independently set by users according to their own operation habits. This embodiment does not make specific limitations on this.

[0073] For example, the eleventh input can be a single - click operation of the user on the third button.

[0074] In this embodiment, the twelfth input is used to select a candidate image from the images stored in the electronic device. The twelfth input can be a click input of the user on the displayed image, or a voice command input by the user, which can be determined according to actual usage requirements in practical applications. This embodiment does not make specific limitations on this.

[0075] The click input in this embodiment can be single - click input, double - click input, or click input of any number of times, etc., and can also be long - press input or short - press input. In practical applications, the number of click inputs can be preset. Users can operate according to the preset number of clicks. The number of click inputs can be independently set by users according to their own operation habits. This embodiment does not make specific limitations on this.

[0076] For example, the twelfth input can be a single - click operation of the user on any one of the displayed images.

[0077] Through this embodiment, the user can select one from the images pre - stored in the electronic device as a candidate image.

[0078] In this embodiment, the candidate image can have at least one image element. This embodiment can select a target image element from at least one image element of the candidate image and determine the foreground element option according to the target image element.

[0079] The third input of this embodiment is used to select a target image element from the candidate image. The third input can be a click input of the user on the target image element selected from the candidate image, or a voice command input by the user, which can be determined according to actual usage requirements in practical applications. This embodiment does not make specific limitations on this.

[0080] The click input in this embodiment can be single - click input, double - click input, or click input of any number of times, etc., and can also be long - press input or short - press input. In practical applications, the number of click inputs can be preset. Users can operate according to the preset number of clicks. The number of click inputs can be independently set by users according to their own operation habits. This embodiment does not make specific limitations on this.

[0081] For example, the third input may be a click operation by the user on a target image element selected from the candidate images.

[0082] In one embodiment, element recognition may be performed on the candidate images based on a preset machine learning model. Specifically, the preset elements included in the candidate images may be recognized based on the machine learning model to obtain the image elements in the candidate images. The preset elements may be set in advance according to the application scenario or specific requirements. For example, the preset elements may include people, flowers, plants, trees, animals, items, buildings, frames, etc. As Figure 4 shown, by performing element recognition on the candidate images, the image elements 403 in the candidate images can be obtained.

[0083] In one example, the frame may be a door or window, a picture frame, a hole, a tree branch, or a fence opening, etc.; it may also be a characteristic building or natural scenery of a scenic spot.

[0084] In the case of obtaining the image elements in the candidate images, identification may be performed for the user to view.

[0085] In the embodiments of the present application, the user may select a target image element from the candidate images according to their actual needs, determine a foreground element option based on the target image element, and display it in the shooting preview interface for the user to select. In this way, the target foreground element option can be obtained according to the actual needs of the user, the target foreground object corresponding to the target foreground element option is displayed in the transparent screen area, and then the target foreground element corresponding to the target foreground object is displayed in the shooting preview interface. In this way, a target image that better meets the user's needs can be taken, improving the user's shooting experience.

[0086] In one embodiment, in response to the third input, determining the foreground element option according to the target image element may further include: in response to the third input, providing a dialog box, as Figure 4 shown, the dialog box 404 includes a fourth button 405 and a text prompt for prompting the user whether to determine the foreground element option according to the target image element; receiving a thirteenth input; and in response to the thirteenth input, determining the foreground element option according to the target image element.

[0087] In this embodiment, the thirteenth input is used to display the dialog box. The thirteenth input may be a click input by the user on the fourth button provided on the electronic device, or a voice command input by the user, which can be determined according to the actual usage needs in practical applications. This embodiment does not make specific limitations in this regard. The fourth button may be a virtual button or a physical button, and this embodiment also does not make specific limitations in this regard.

[0088] The click input in this embodiment can be single - click input, double - click input, or click input of any number of times, etc. It can also be long - press input or short - press input. In practical applications, the number of click inputs can be preset. Users can operate according to the preset number of click times, and the number of click inputs can be independently set by users according to their own operation habits. This embodiment does not make specific limitations on this.

[0089] For example, the thirteenth input can be a single - click operation of the user on the fourth button.

[0090] Through this embodiment, the user can select a target image element from the candidate images to determine the foreground element option, improving the user's shooting experience.

[0091] In one example, the target image element can be used as the foreground element option.

[0092] In another example, the target image element can be a planar object. Determining the foreground element option according to the target image element can be to convert the planar target image element into a three - dimensional target image element as the foreground element option.

[0093] In this embodiment, in response to the third input, determining the foreground element option according to the target image element may further include: in response to the third input, displaying a first option to convert the target image element into a three - dimensional one and a second option not to convert the target image element into a three - dimensional one; receiving a fourteenth input for the first option; in response to the fourteenth input, converting the planar target image element into a three - dimensional target image element as the foreground element option.

[0094] In this embodiment, it can be in response to a fifteenth input for the second option to use the target image element as the foreground element option.

[0095] In one embodiment, the method may further include: receiving a fourth input for selecting a first image element displayed in the shooting preview interface; in response to the fourth input, using the first image element as the target foreground object and displaying the target foreground object in the transparent screen area.

[0096] In this embodiment, at least one shooting object is photographed through a camera, so that image elements corresponding to at least one shooting object can be displayed in the shooting preview interface.

[0097] The fourth input in this embodiment is used to select a first image element from the shooting preview interface. The fourth input can be a click input of the user on the first image element selected in the shooting preview interface, or a voice command input by the user, which can be determined according to actual usage requirements in practical applications. This embodiment does not make specific limitations on this.

[0098] The click input in this embodiment can be single - click input, double - click input, or click input of any number of times, etc., and can also be long - press input or short - press input. In practical applications, the number of click inputs can be preset in advance. Users can operate according to the preset number of clicks. The number of click inputs can be independently set by users according to their own operation habits. This embodiment does not make specific limitations on this.

[0099] For example, the fourth input can be a single - click operation by the user on the first image element selected in the shooting preview interface.

[0100] In one embodiment, it can be based on a preset machine - learning model to perform element recognition on the shooting preview interface. Specifically, it can be based on this machine - learning model to identify the preset elements included in the shooting preview interface, and obtain the image elements in the shooting preview interface. Among them, the preset elements can be set in advance according to the application scenario or specific requirements. For example, the preset elements can include people, flowers, plants, trees, animals, items, buildings, frames, etc.

[0101] In the case of obtaining the image elements in the shooting preview interface, they can be marked for the user to view.

[0102] In the embodiments of the present application, the user can select the first image element from the shooting preview interface according to their actual needs, and display the first image element as the target foreground object in the transparent screen area for the camera to shoot. In this way, the target foreground elements corresponding to the target foreground object can be displayed in the shooting preview interface according to the actual needs of the user. In this way, a target image that better meets the user's needs can be taken, improving the user's shooting experience.

[0103] In one embodiment, before step 102 of receiving the first input for shooting, the method may further include: receiving a fifth input for adjusting the shooting parameters of the target foreground element; in response to the fifth input, 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 updating and displaying the target foreground element in the shooting preview interface.

[0104] In one embodiment, the target foreground object is a planar object or a three - dimensional object. The shooting parameters of the target foreground element may include at least one of the following: size, position, blurring degree, transparency, shooting angle.

[0105] In this embodiment, the fifth input is used to adjust the shooting parameters of the target foreground element. The fifth input can be a voice command input by the user or a specific gesture input by the user, which can be determined according to the actual usage requirements in practical applications. This embodiment does not make specific limitations on this.

[0106] The specific gesture in this embodiment can be any one of a drag gesture, a long - press gesture, a double - press gesture, and a double - click gesture.

[0107] In an embodiment where the shooting parameters of the target foreground element include position, the specific gesture can be, for example, a drag input for the target foreground element displayed in the shooting preview screen. In practical applications, the position where the user releases the drag gesture is the adjusted position of the target foreground element in the shooting preview screen. For example, the fifth input can be a drag input by the user for the target foreground element in the shooting preview screen.

[0108] In this embodiment, when the fifth input is to drag the target foreground element to move a first distance in a first direction in the shooting preview screen, according to the adjusted shooting parameters, the target foreground object corresponding to the target foreground element is updated and displayed in the transparent screen area; updating the display of the target foreground element in the shooting preview interface can be moving the target foreground object a second distance in a second direction 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 screen moves a first distance in the first direction.

[0109] Among them, there can be a positive correlation between the second distance and the first distance. Specifically, the second distance can be determined according to the first distance, the distance between the transparent screen area and the camera, and the focal length of the camera.

[0110] In an embodiment where the shooting parameters of the target foreground element include size, the specific gesture can be, for example, a zoom - in or zoom - out input for the target foreground element displayed in the shooting preview screen. For example, the fifth input can be an inward shrinking operation by the user's two fingers at the target foreground element displayed in the shooting preview screen; the fifth operation can also be an outward enlarging operation by the user's two fingers at the target foreground element displayed in the shooting preview screen.

[0111] In this embodiment, when the fifth input is to zoom in or out the target foreground element by a first multiple in the shooting preview screen, according to the adjusted shooting parameters, the target foreground object corresponding to the target foreground element is updated and displayed in the transparent screen area; updating the display of the target foreground element in the shooting preview interface can be that the transparent screen area scales the target foreground object from a first size to a second size according to the first multiple, 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 screen scales from a third size to a fourth size. Among them, the first quotient and the second quotient are equal, both being the first multiple. 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.

[0112] Among them, there may be a positive correlation between the first dimension and the third dimension, and there may be a positive correlation between the second dimension and the fourth dimension. Specifically, the second dimension may be determined according to the first dimension and the focal length of the camera.

[0113] The first magnification of this embodiment may be determined according to the moving distance of the user's finger at the target foreground element displayed in the shooting preview screen. In one example, a mapping function reflecting the mapping relationship between the finger moving distance and the zoom magnification may be preset in advance. According to the moving distance of the finger when the user performs the zoom operation and this mapping function, the corresponding zoom magnification can be obtained as the first magnification. In another example, a look-up table representing the corresponding relationship between the finger moving distance and the zoom magnification may be preset in advance. According to the moving distance of the finger when the user performs the zoom operation, this look-up table is searched to obtain the corresponding zoom magnification as the first magnification.

[0114] In an embodiment where the shooting parameters of the target foreground element include the degree of blurring or transparency, the fifth input may also be the input of the specific value representing the degree of blurring or transparency in the input box, or the click input on the fifth button provided on the electronic device. In practical applications, it can be determined according to the actual usage requirements, and this embodiment does not make specific limitations on this. Among them, the fifth button may include a button for increasing the value and a button for decreasing the value. The fifth button may be a virtual button or a physical button, and this embodiment also does not make specific limitations on this. Exemplarily, the shooting preview screen may also include a progress bar indicating the degree of blurring or transparency of the target foreground element, and the specific gesture may be a drag input for this progress bar.

[0115] The click input in this embodiment may be a single click input, a double click input, or a click input of any number of times, etc., and may also be a long press input or a short press input. In practical applications, the number of click inputs may be preset in advance. The user can operate according to the preset number of click times. The number of click inputs can be independently set by the user according to his own operation habits, and this embodiment does not make specific limitations on this.

[0116] For example, the fifth input may be a drag operation performed by the user on the progress bar indicating the degree of blurring or transparency of the target foreground element.

[0117] In this embodiment, when the fifth input is to set the blurring degree of the target foreground element to a set value, according to the adjusted shooting parameters, the target foreground object corresponding to the target foreground element is updated and displayed in the transparent screen area; updating and displaying the target foreground element in the shooting preview interface may be to adjust the blurring degree of the target foreground object to the 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 picture is also the set value.

[0118] In this way, a large aperture can be simulated in the shooting preview picture, adding a sense of depth to the shooting preview picture and enhancing the user's shooting experience.

[0119] Through this embodiment, in response to the fifth input, according to the adjusted shooting parameters, the target foreground object corresponding to the target foreground element is updated and displayed in the transparent screen area; updating and displaying the target foreground element in the shooting preview interface. In this way, it is not necessary to adjust the shooting parameters of the target foreground element in the target image through an algorithm. When the first input is received, the shooting parameters of the target foreground element in the obtained target image can be adjusted accordingly, and a target image that better meets the user's needs can be taken, enhancing the user's shooting experience.

[0120] Moreover, since the shooting parameters of the target foreground element in the target image are not adjusted through an algorithm, the CPU occupancy rate of the electronic device during the shooting process can be reduced, the shooting speed can be increased, and the heat generation of the electronic device can be reduced.

[0121] In one embodiment, before performing step 102 of receiving the first input for shooting, the method may further include: receiving a sixth input for adjusting the shooting parameters of the shooting object element; in response to the sixth input, according to the adjusted shooting parameters, updating and displaying the shooting object element in the shooting preview interface.

[0122] In one embodiment, the shooting parameters of the shooting object element may include at least one of the following: size, position, blurring degree, transparency, shooting angle.

[0123] The sixth input in this embodiment may refer to the description of the fifth input in the foregoing embodiments and will not be elaborated here.

[0124] The step of updating and displaying the shooting object element in the shooting preview interface according to the adjusted shooting parameters in response to the sixth input may specifically refer to the foregoing embodiment of updating and displaying the target foreground element in the shooting preview interface according to the adjusted shooting parameters in response to the fifth input and will not be elaborated here.

[0125] In this embodiment, in response to the sixth input, according to the adjusted shooting parameters, the shooting object element is updated and displayed in the shooting preview interface. In this way, it is not necessary to adjust the shooting parameters of the shooting object element in the target image through an algorithm. When the first input is received, the shooting parameters of the shooting object element in the obtained target image can be adjusted accordingly, and a target image that better meets the user's needs can be taken, improving the user's shooting experience.

[0126] Moreover, since the shooting parameters of the shooting object element in the target image are not adjusted through an algorithm, the CPU occupancy rate of the electronic device during the shooting process can be reduced, the shooting speed can be increased, and the heat generation of the electronic device can be reduced.

[0127] In one embodiment, before performing step 102 of receiving the first input for shooting, the method may further include: receiving a seventh input for eliminating a second image element displayed in the shooting preview interface; and in response to the seventh input, updating and displaying the shooting preview interface.

[0128] In this embodiment, the second image element may be a target foreground element or a shooting object element.

[0129] In one embodiment, element recognition of the shooting preview interface may be performed based on a preset machine learning model. Specifically, the preset elements included in the shooting preview interface may be recognized based on the machine learning model to obtain the image elements in the shooting preview interface. The preset elements may be set in advance according to the application scenario or specific requirements. For example, the preset elements may include people, flowers, plants, trees, animals, items, buildings, frames, etc.

[0130] When the image elements in the candidate image are obtained, they may be marked for the user to view.

[0131] In the embodiments of the present application, the user may select the second image element from the shooting preview interface for elimination according to their actual needs.

[0132] In this embodiment, the user eliminates the redundant second image element displayed in the shooting preview interface by performing the seventh input. In this way, when the first input is received, it is not necessary to use an algorithm to ensure that the target image does not contain redundant third image elements, and a target image that better meets the user's needs can be taken, improving the user's shooting experience.

[0133] Moreover, since the redundant second image element is not eliminated through an algorithm, the CPU occupancy rate of the electronic device during the shooting process can be reduced, the shooting speed can be increased, and the heat generation of the electronic device can be reduced.

[0134] The shooting method provided by the embodiment of the present application may be executed by a shooting device. In the embodiment of the present application, taking the shooting device executing the shooting method as an example, the shooting device provided by the embodiment of the present application is described. In this embodiment, the electronic device includes a transparent screen area, and the transparent screen area is located between the camera and the target object.

[0135] Figure 5 It is a schematic structural diagram of the shooting device according to the embodiment of the present application. As Figure 5 shown, the shooting device 500 according to the embodiment of the present application includes a first display module 501, a first receiving module 502, and a first response module 503.

[0136] The first display module 501 is configured to display a target foreground element and a shooting object element corresponding to the target object in a shooting preview interface; the target foreground element is obtained by collecting a target foreground object displayed on the transparent screen area.

[0137] The first receiving module 502 is configured to receive a first input for shooting.

[0138] The first response module 503 is configured to obtain a target image including the target foreground element and the shooting object element in response to the first input.

[0139] In the embodiment of the present application, there is no need to perform composite processing on the target foreground element and the image obtained by shooting the target object through a software algorithm. By displaying the target foreground object on the transparent screen area and collecting the target foreground object and the target object 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. When the first input is received, a target image including the foreground image element and the shooting object element can be obtained, that is, the synthesis of the foreground image element and the shooting object element can be achieved through shooting, improving the image quality of the composite image.

[0140] Moreover, since the foreground image element and the shooting object element are not synthesized through an algorithm, it can be ensured that the target image has the maximum output size and bit rate, and the CPU occupancy rate of the electronic device during the shooting process can also be reduced, the shooting speed can be increased, and the heat generation of the electronic device can be reduced.

[0141] In one embodiment, the shooting device 500 further includes a second display module and a second receiving module.

[0142] The second display module is configured to display at least one foreground element option in the shooting preview interface.

[0143] The second receiving module is configured to receive a second input for selecting a target foreground element option from the at least one foreground element option.

[0144] The first display module 501 includes a first display unit and a second display unit.

[0145] The first display unit is configured to, in response to the second input, display the target foreground object corresponding to the target foreground element option in the transparent screen area.

[0146] The second display unit is configured to display the target foreground element and the shooting object element corresponding to the target object in the shooting preview interface.

[0147] In the embodiments of the present application, the electronic device can provide at least one foreground element option for the user to select a target foreground element option that meets the actual needs of the user, and display the target foreground object corresponding to the target foreground element option in the transparent screen area to shoot the target foreground object and the target object, so as to shoot a target image that meets the user's needs, making the shooting effect more rich and improving the user's shooting experience.

[0148] In one embodiment, the shooting device 500 further includes a third display module, a third receiving module, and a third response module.

[0149] The third display module is configured to display candidate images.

[0150] The third receiving module is configured to receive a third input for selecting a target image element from the candidate images.

[0151] The third response module is configured to, in response to the third input, determine the foreground element option according to the target image element.

[0152] In the embodiments of the present application, the user can select a target image element from the candidate images according to the actual needs of the user, determine the foreground element option according to the target image element, and display it in the shooting preview interface for the user to select. In this way, the target foreground element option can be obtained according to the actual needs of the user, the target foreground object corresponding to the target foreground element option is displayed in the transparent screen area, and then the target foreground element corresponding to the target foreground object is displayed in the shooting preview interface. In this way, a target image that more meets the user's needs can be shot, improving the user's shooting experience.

[0153] In one embodiment, the shooting device 500 further includes a fourth receiving module and a fourth response module.

[0154] The fourth receiving module is configured to receive a fourth input for selecting a first image element displayed in the shooting preview interface.

[0155] The fourth response module is configured to, in response to the fourth input, use the shooting object corresponding to the first image element as the target foreground object, and display the target foreground object in the transparent screen area.

[0156] In the embodiment of the present application, the user can select the first image element from the shooting preview interface according to their actual needs, and use the first image element as the target foreground object to be displayed in the transparent screen area for the camera to shoot. In this way, the target foreground element corresponding to the target foreground object can be displayed in the shooting preview interface according to the user's actual needs, so that a target image that better meets the user's needs can be taken, improving the user's shooting experience.

[0157] In one embodiment, the shooting device 500 further includes a fifth receiving module, a fifth response module, and a fourth display module.

[0158] The fifth receiving module is configured to receive a fifth input for adjusting the shooting parameters of the target foreground element.

[0159] The fifth response module is configured to, in response to the fifth input, update and display the target foreground object corresponding to the target foreground element in the transparent screen area according to the adjusted shooting parameters.

[0160] The fourth display module is configured to update and display the target foreground element in the shooting preview interface.

[0161] Through this embodiment, in response to the fifth input, according to the adjusted shooting parameters, the target foreground object corresponding to the target foreground element is updated and displayed in the transparent screen area; the target foreground element is updated and displayed in the shooting preview interface. In this way, it is possible to adjust the shooting parameters of the target foreground element in the target image without using an algorithm. When the first input is received, the shooting parameters of the target foreground element in the obtained target image can also be adjusted accordingly, so that a target image that better meets the user's needs can be taken, improving the user's shooting experience.

[0162] Moreover, since the shooting parameters of the target foreground element in the target image are not adjusted by an algorithm, the CPU occupancy rate of the electronic device during the shooting process can be reduced, the shooting speed can be increased, and the heat generation of the electronic device can be reduced.

[0163] In one embodiment, the foreground object is a planar object or a three-dimensional object; the shooting parameters of the target foreground element include at least one of the following: size, position, blurring degree, transparency, shooting angle.

[0164] In one embodiment, the shooting device 500 further includes a sixth receiving module and a sixth response module.

[0165] A sixth receiving module, configured to receive a sixth input for adjusting the shooting parameters of the shooting object element.

[0166] A sixth response module, configured to, in response to the sixth input, update and display the shooting object element in the shooting preview interface according to the adjusted shooting parameters.

[0167] In this 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 parameters. In this way, it is not necessary to adjust the shooting parameters of the shooting object element in the target image through an algorithm. When the first input is received, the shooting parameters of the shooting object element in the obtained target image can be adjusted accordingly, and a target image that better meets the user's needs can be captured, improving the user's shooting experience.

[0168] Moreover, since the shooting parameters of the shooting object element in the target image are not adjusted through an algorithm, the CPU occupancy rate of the electronic device during the shooting process can be reduced, the shooting speed can be increased, and the heat generation of the electronic device can be reduced.

[0169] In one embodiment, the shooting parameters of the shooting object element include at least one of the following: size, position, blurring degree, transparency, shooting angle.

[0170] In one embodiment, the shooting device 500 further includes a seventh receiving module and a seventh response module.

[0171] A seventh receiving module, configured to receive a seventh input for eliminating the candidate image element displayed in the shooting preview interface.

[0172] A seventh response module, configured to, in response to the seventh input, update and display the shooting preview interface.

[0173] In this embodiment, the user executes the seventh input to eliminate the redundant second image element displayed in the shooting preview interface. In this way, when the first input is received, it is not necessary to use an algorithm to ensure that the target image does not contain redundant third image elements, and a target image that better meets the user's needs can be captured, improving the user's shooting experience.

[0174] Moreover, since the redundant second image element is not eliminated through an algorithm, the CPU occupancy rate of the electronic device during the shooting process can be reduced, the shooting speed can be increased, and the heat generation of the electronic device can be reduced.

[0175] The photographing device in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than terminals. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld 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), etc. It may also be a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.

[0176] The photographing device in the embodiments of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.

[0177] The photographing device provided by the embodiments of the present application can implement Figures 1 to 4 each process implemented by the method embodiments. To avoid repetition, it will not be elaborated here.

[0178] Optionally, as Figure 6 shown, the embodiments of the present application further provide an electronic device 600, including a processor 601 and a memory 602. A program or instruction that can run on the processor 601 is stored on the memory 602. When the program or instruction is executed by the processor 601, it implements each step of the above-mentioned photographing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0179] 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.

[0180] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0181] Figure 7 Schematic diagram of the hardware structure of an electronic device for implementing the embodiments of the present application.

[0182] The electronic device 1000 includes, but is not limited to, components such as 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, etc.

[0183] Those skilled in the art can understand that the electronic device 1000 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 1010 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 7 The structure of the electronic device shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0184] Among them, the display unit 1006 is used to display a target foreground element and a captured object element corresponding to a target object in a shooting preview interface; the target foreground element is obtained by collecting a target foreground object displayed on the transparent screen area.

[0185] The user input unit 1007 is used to receive a first input for shooting.

[0186] The processor 1010 is used to obtain a target image including the target foreground element and the captured object element in response to the first input.

[0187] In the embodiments of the present application, there is no need to perform synthetic processing on the target foreground element and the image obtained by shooting the target object through a software algorithm. The target foreground object is displayed on the transparent screen area, and the target foreground object and the target object are collected through a camera. The target foreground element corresponding to the target foreground object and the captured object element corresponding to the target object can be displayed in the shooting preview interface. When the first input is received, a target image including a foreground image element and a captured object element can be obtained, that is, the synthesis of the foreground image element and the captured object element can be achieved through shooting, improving the image quality of the synthetic image.

[0188] Moreover, since there is no synthetic processing of the foreground image element and the captured object element through an algorithm, it can be ensured that the target image has the maximum output size and bit rate, and the CPU occupancy rate of the electronic device during the shooting process can also be reduced, the shooting speed can be increased, and the heat generation of the electronic device can be reduced.

[0189] Optionally, the display unit 1006 is further used to display at least one foreground element option in the shooting preview interface.

[0190] 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.

[0191] The display unit 1006 is further configured to, in response to the second input, display the target foreground object corresponding to the target foreground element option in the transparent screen area; and display the target foreground element and the shooting object element corresponding to the target object in the shooting preview interface.

[0192] In an embodiment of the present application, the electronic device may provide at least one foreground element option for the user to select a target foreground element option that meets the actual needs of the user, and display the target foreground object corresponding to the target foreground element option in the transparent screen area to shoot the target foreground object and the target object, so as to take a target image that meets the user's needs, making the shooting effect more rich and improving the user's shooting experience.

[0193] Optionally, the display unit 1006 is further configured to display candidate images.

[0194] The user input unit 1007 is further configured to receive a third input for selecting a target image element from the candidate images.

[0195] The processor 1010 is further configured to, in response to the third input, determine the foreground element option according to the target image element.

[0196] In an embodiment of the present application, the user can select a target image element from the candidate images according to the actual needs of the user, and determine the foreground element option according to the target image element to be displayed in the shooting preview interface for the user to select. In this way, the target foreground element option can be obtained according to the actual needs of the user, and the target foreground object corresponding to the target foreground element option is displayed in the transparent screen area, and then the target foreground element corresponding to the target foreground object is displayed in the shooting preview interface. In this way, a target image that more meets the user's needs can be taken, improving the user's shooting experience.

[0197] 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.

[0198] The processor 1010 is further configured to, in response to the fourth input, use the shooting object corresponding to the first image element as the target foreground object and display the target foreground object in the transparent screen area.

[0199] In an embodiment of the present application, the user can select a first image element from the shooting preview interface according to their actual needs, and display the first image element as a target foreground object in the transparent screen area for the camera to shoot. In this way, the target foreground element corresponding to the target foreground object can be displayed in the shooting preview interface according to the user's actual needs, so that a target image that better meets the user's needs can be taken, improving the user's shooting experience.

[0200] Optionally, the user input unit 1007 is further configured to receive a fifth input for adjusting the shooting parameters of the target foreground element.

[0201] The processor 1010 is further configured to, in response to the fifth input, update and display the target foreground object corresponding to the target foreground element in the transparent screen area according to the adjusted shooting parameters.

[0202] The display unit 1006 is further configured to update and display the target foreground element in the shooting preview interface.

[0203] In this 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 parameters; the target foreground element is updated and displayed in the shooting preview interface. In this way, it is not necessary to adjust the shooting parameters of the target foreground element in the target image through an algorithm. When the first input is received, the shooting parameters of the target foreground element in the obtained target image can be adjusted accordingly, and a target image that better meets the user's needs can be taken, improving the user's shooting experience.

[0204] Moreover, since the shooting parameters of the target foreground element in the target image are not adjusted through an algorithm, the CPU occupancy rate of the electronic device during shooting can be reduced, the shooting speed can be increased, and the heat generation of the electronic device can be reduced.

[0205] Optionally, the target foreground object is a planar object or a three-dimensional object; the shooting parameters of the target foreground element include at least one of the following: size, position, blurring degree, transparency, shooting angle.

[0206] Optionally, the user input unit 1007 is further configured to receive a sixth input for adjusting the shooting parameters of the shooting object element.

[0207] The processor 1010 is further configured to, in response to the sixth input, update and display the shooting object element in the shooting preview interface according to the adjusted shooting parameters.

[0208] In this embodiment, in response to a sixth input, according to the adjusted shooting parameters, the shooting object element is updated and displayed in the shooting preview interface. In this way, it is not necessary to adjust the shooting parameters of the shooting object element in the target image through an algorithm. When a first input is received, the shooting parameters of the shooting object element in the obtained target image can be adjusted accordingly, and a target image that better meets the user's needs can be captured, improving the user's shooting experience.

[0209] Moreover, since the shooting parameters of the shooting object element in the target image are not adjusted through an algorithm, the CPU occupancy rate of the electronic device during the shooting process can be reduced, the shooting speed can be increased, and the heat generation of the electronic device can be reduced.

[0210] Optionally, the shooting parameters of the shooting object element include at least one of the following: size, position, blurring degree, transparency, shooting angle.

[0211] Optionally, the user input unit 1007 is further configured to receive a seventh input for eliminating a second image element displayed in the shooting preview interface.

[0212] The display unit 1006 is further configured to update and display the shooting preview interface in response to the seventh input.

[0213] In this embodiment, the user eliminates the redundant second image element displayed in the shooting preview interface by performing a seventh input. In this way, when a first input is received, it is not necessary to use an algorithm to ensure that the target image does not contain redundant third image elements, and a target image that better meets the user's needs can be captured, improving the user's shooting experience.

[0214] Moreover, since the redundant second image element is not eliminated through an algorithm, the CPU occupancy rate of the electronic device during the shooting process can be reduced, the shooting speed can be increased, and the heat generation of the electronic device can be reduced.

[0215] It should be understood that in the embodiments of the present application, the input unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042. The graphics processor 10041 processes the image data of static images or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture 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, etc. 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. The other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated herein.

[0216] The memory 1009 can be used to store software programs and various data. The memory 1009 mainly includes a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area can store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1009 can include a volatile memory or a non-volatile memory, or the memory 1009 can include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 1009 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.

[0217] The processor 1010 can include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 1010.

[0218] The embodiments of the present application also provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above-mentioned shooting method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0219] Among them, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.

[0220] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above-mentioned shooting method embodiment and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0221] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.

[0222] The embodiments of the present application provide a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement each process of the above-mentioned shooting method embodiment and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0223] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitations, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0224] Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases, the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to enable a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.

[0225] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative rather than restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.

Claims

1. A shooting method, applied to an electronic device, characterized in that, The electronic device includes a transparent screen area located between the camera and the target object. The method includes: Displaying at least one foreground element option in a shooting preview interface; Receiving a second input for selecting a target foreground element option from the at least one foreground element option; In response to the second input, displaying a target foreground object corresponding to the target foreground element option in the transparent screen area; Displaying a target foreground element and a shooting object element corresponding to the target object in the shooting preview interface; the target foreground element is obtained by capturing the target foreground object displayed on the transparent screen area; Receiving a first input for shooting; In response to the first input, obtaining a target image including the target foreground element and the shooting object element.

2. The method according to claim 1, characterized in that, The method further includes: Displaying candidate images; Receiving a third input for selecting a target image element from the candidate images; In response to the third input, determining the foreground element option according to the target image element.

3. The method according to claim 1, characterized in that The method further includes: Receiving a fourth input for selecting a first image element displayed in the shooting preview interface; In response to the fourth input, using 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.

4. The method according to claim 1, wherein Before the step of receiving the first input for shooting, the method further includes: Receiving a fifth input for adjusting shooting parameters of the target foreground element; In response to the fifth input, updating and displaying the target foreground object corresponding to the target foreground element in the transparent screen area according to the adjusted shooting parameters; Updating and displaying the target foreground element in the shooting preview interface.

5. The method according to claim 4, wherein The target foreground object is a planar object or a three-dimensional object; the shooting parameters of the target foreground element include at least one of the following: size, position, blurring degree, transparency, shooting angle.

6. The method according to claim 1, wherein Before the step of receiving the first input for shooting, the method further includes: Receiving a sixth input for adjusting shooting parameters of the shooting object element; In response to the sixth input, updating and displaying the shooting object element in the shooting preview interface according to the adjusted shooting parameters.

7. The method according to claim 6, wherein The shooting parameters of the shooting object element include at least one of the following: size, position, blurring degree, transparency, shooting angle.

8. The method according to claim 1, characterized in that, Before the step of receiving the first input for shooting, the method further includes: Receiving a seventh input for eliminating a second image element displayed in the shooting preview interface; In response to the seventh input, updating and displaying the shooting preview interface.

9. A photographing device, applied to an electronic device, characterized in that, The electronic device includes a transparent screen area located between the camera and the target object. The device includes: A first display module for displaying a target foreground element and a shooting object element corresponding to the target object in a shooting preview interface; the target foreground element is obtained by capturing the target foreground object displayed on the transparent screen area; A first receiving module for receiving a first input for shooting; A first response module, configured to obtain a target image including the target foreground element and the photographed object element in response to the first input; A second display module, configured to display at least one foreground element option in the photographing preview interface; A second receiving module, configured to receive a second input for selecting a target foreground element option from the at least one foreground element option; Wherein, the first display module includes a first display unit and a second display unit; The first display unit is configured to display the target foreground object corresponding to the target foreground element option in the transparent screen area in response to the second input; The second display unit is configured to display the target foreground element and the photographed object element corresponding to the target object in the photographing preview interface.

10. The device according to claim 9, characterized in that, The apparatus further includes: A fourth receiving module, configured to receive a fourth input for selecting a first image element displayed in the photographing preview interface; A fourth response module, configured to use the photographed object corresponding to the first image element as the target foreground object in response to the fourth input, and display the target foreground object in the transparent screen area.

11. The device according to claim 9, characterized in that, The apparatus further includes: 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 update and display the target foreground object corresponding to the target foreground element in the transparent screen area according to the adjusted shooting parameters in response to the fifth input; A fourth display module, configured to update and display the target foreground element in the photographing preview interface.

12. The device according to claim 9, characterized in that, The apparatus further includes: A sixth receiving module, configured to receive a sixth input for adjusting the shooting parameters of the photographed object element; A sixth response module, configured to update and display the photographed object element in the photographing preview interface according to the adjusted shooting parameters in response to the sixth input.

13. An electronic device, characterized in that, Comprising a processor and a memory, the memory stores a program or instruction that can run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1-8 are implemented.

14. A readable storage medium, characterized in that, The program or instruction is stored on the readable storage medium, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1-8 are implemented.

Citation Information

Patent Citations

  • Portable camera photographing assist tool

    JP2014115432A