Shooting Method, Device, Electronic Device and Storage Medium

By receiving user input in the shooting preview interface and displaying the first image in the target display style, the problem of single video effects of electronic devices shooting is solved, and the diversity and flexibility of video effects are achieved.

CN116033260BActive Publication Date: 2025-07-18VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211028591.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-25
Publication Date
2025-07-18
Estimated Expiration
2042-08-25

AI Technical Summary

Technical Problem

When shooting videos with existing electronic devices, the display style of the shooting template is fixed, resulting in a relatively single video effect, which cannot meet the user's personalized needs and is less flexible.

Method used

The user input is received in the shooting preview interface, and the target video is displayed according to the first image selected by the user, and the target video is generated based on the display style.

Benefits of technology

It improves the flexibility of electronic devices to shoot videos, and can generate diverse video effects according to user needs to meet personalized needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116033260B_ABST
    Figure CN116033260B_ABST
Patent Text Reader

Abstract

The present application discloses a shooting method, device, electronic device and storage medium, belonging to the technical field of shooting. The method includes: when a shooting preview interface is displayed, receiving a first input to the shooting preview interface, where the first input is used to determine a first image; in response to the first input, displaying the first image in the shooting preview interface in a target display style; receiving a shooting input from the user; and in response to the shooting input, performing shooting based on the first image displayed in the target display style to obtain a target video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Currently, when a user shoots through an electronic device, the user can select a shooting template provided by the electronic device to shoot, so as to obtain a video corresponding to the shooting template.

[0003] However, the above shooting template usually has a fixed display style, so that the video effects obtained by the electronic device are relatively single and cannot meet the needs of users. Thus, the flexibility of the electronic device for shooting videos is relatively low. Summary of the Invention

[0004] The purpose of the embodiments of this application is to provide a shooting method, apparatus, electronic device, and storage medium, which can solve the problem of relatively low flexibility of the electronic device for shooting videos.

[0005] In a first aspect, the embodiments of this application provide a shooting method, which includes: when a shooting preview interface is displayed, receiving a first input to the shooting preview interface, where the first input is used to determine a first image; in response to the first input, displaying the first image in the shooting preview interface in a target display style; receiving a shooting input from the user; and in response to the shooting input, shooting based on the first image displayed in the target display style to obtain a target video.

[0006] In a second aspect, the embodiments of this application provide a shooting apparatus, which includes: a receiving module, a display module, and a shooting module. The receiving module is configured to receive a first input to the shooting preview interface when the shooting preview interface is displayed, where the first input is used to determine a first image. The display module is configured to, in response to the first input received by the receiving module, display the first image in the shooting preview interface in a target display style. The receiving module is further configured to receive a shooting input from the user. The shooting module is configured to, in response to the shooting input received by the receiving module, shoot based on the first image displayed in the target display style to obtain a target video.

[0007] In a third aspect, the embodiments of this application provide an electronic device, which includes a processor and a memory. The memory stores a program or instructions that can run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0008] In a fourth aspect, the embodiments of this application provide a readable storage medium, on which a program or instructions are stored, and when the program or instructions are executed by a processor, the steps of the method described in the first aspect are implemented.

[0009] Fifth 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 programs or instructions to implement the method described in the first aspect.

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

[0011] In an embodiment of the present application, when the shooting preview interface is displayed, the electronic device can, according to the user's first input on the first image, display the first image in a target display style on the shooting preview interface. Thus, the electronic device can perform shooting based on the first image to obtain a target video. In this solution, since the electronic device can set the first image selected by the user to the target display style and obtain the target video based on the first image displayed in the target display style, that is, when the electronic device shoots the target video, the electronic device can set the first image selected by the user to the target display style and obtain the target video through the first image displayed in the target display style, avoiding the problem that the shooting template usually has a fixed display style, resulting in a relatively single video effect obtained by the electronic device. In this way, the flexibility of the electronic device in shooting videos is improved. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0013] Figure 2 is one of the schematic diagrams of an interface of a shooting method provided by an embodiment of the present application;

[0014] Figure 3 is another schematic diagram of an interface of a shooting method provided by an embodiment of the present application;

[0015] Figure 4 is a third schematic diagram of an interface of a shooting method provided by an embodiment of the present application;

[0016] Figure 5 is a fourth schematic diagram of an interface of a shooting method provided by an embodiment of the present application;

[0017] Figure 6 is a fifth schematic diagram of an interface of a shooting method provided by an embodiment of the present application;

[0018] Figure 7 is a sixth schematic diagram of an interface of a shooting method provided by an embodiment of the present application;

[0019] Figure 8It is a schematic structural diagram of a photographing device provided by an embodiment of the present application;

[0020] Figure 9 It is one of the schematic hardware structures of an electronic device provided by an embodiment of the present application;

[0021] Figure 10 It is the second of the schematic hardware structures of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0022] Next, the technical solutions in the embodiments of the present application will be clearly and completely 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 without creative efforts shall fall within the protection scope of the present application.

[0023] The terms "first", "second", etc. 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 type, 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 indicates an "or" relationship between the associated objects before and after.

[0024] Next, in conjunction with the accompanying drawings, the photographing method provided by the embodiments of the present application will be described in detail through specific embodiments and their application scenarios.

[0025] Currently, with the development of communication technology, there are more and more photographing functions in electronic devices. For example, users can select a photographing template in the electronic device to photograph an object, and thus can obtain a video with the photographing effect corresponding to the photographing template. Specifically, when a user uses an electronic device to take a photo, the background, foreground, border and other elements of the video taken by the electronic device can only be selected from the elements provided by the photographing template. However, the elements provided by these photographing templates may not be what the user needs, or different users use the same photographing template, resulting in the same display effect of the videos taken by different users, which cannot meet the needs of users with personalized and customized requirements. In this way, the flexibility of the electronic device to take videos is relatively low.

[0026] In an embodiment of the present application, when the shooting preview interface is displayed, the electronic device can, according to a first input of the user for a first image, display the first image in a target display style on the shooting preview interface, so that the electronic device can shoot based on the first image to obtain a target video. In this solution, since the electronic device can set the first image selected by the user to a target display style and obtain a target video according to the first image displayed in the target display style, that is, when the electronic device shoots a target video, the electronic device can set the first image selected by the user to a target display style and obtain a target video through the first image displayed in the target display style, avoiding the relatively single video effect obtained by the electronic device due to the usually fixed display style of the shooting template. Thus, the flexibility of the electronic device in shooting videos is improved.

[0027] An embodiment of the present application provides a shooting method. Figure 1 The flowchart of a shooting method provided by an embodiment of the present application is shown. As Figure 1 shown, the shooting method provided by an embodiment of the present application may include the following steps 201 to 204.

[0028] Step 201, when the shooting preview interface is displayed, the electronic device receives a first input for the shooting preview interface.

[0029] In an embodiment of the present application, the above first input is used to determine a first image.

[0030] In an embodiment of the present application, the electronic device can, according to the user's first input for the first image, display the first image in a target display style in the shooting preview interface, so that both the first image and the shooting object collected by the electronic device can be displayed to the user, and then the user can perform a shooting input to obtain a video that meets the user's needs.

[0031] Optionally, in an embodiment of the present application, the above first input may be a click input, a long press input, a slide input, a preset trajectory input of the user for the shooting preview interface; or an input of a physical key combination (such as a power key and a volume key). Specifically, it can be determined according to actual usage requirements, and the embodiment of the present application does not make a limitation.

[0032] Optionally, in an embodiment of the present application, the above shooting object may include at least one of the following: a person, an object, a landscape, an animal, etc.

[0033] Optionally, in an embodiment of the present application, the above first image may be an image selected by the user in a first application (such as an album application), or an image downloaded by the electronic device in a second application (such as a browser application).

[0034] Optionally, in the embodiments of the present application, when the electronic device displays the system desktop, the user can input the icon of the third application icon (i.e., the camera application) displayed on the system desktop, so that the electronic device can start the application corresponding to the third application icon to display the shooting preview interface.

[0035] It should be noted that the first image described in the embodiments of the present application is a broad description, that is, the first image can be understood as a picture or a video.

[0036] Step 202, the electronic device responds to the first input and displays the first image in the shooting preview interface in a target display style.

[0037] Optionally, in the embodiments of the present application, the above-mentioned target display style may include at least one of the following: shooting foreground style, shooting background style, and shooting border style.

[0038] Optionally, in the embodiments of the present application, the above-mentioned target display style can be set by the user; or it is the default of the electronic device.

[0039] Exemplarily, after the user determines the first image, the user can trigger the electronic device to set the first image to the target display style; or, after the user determines the first image, the electronic device can defaultly set the first image to the target display style, and then the user can change the target display style of the first image according to his own needs.

[0040] Specifically, the electronic device can, according to the user's first input, set the first image as the shooting foreground of the shooting preview interface and display it in the shooting preview interface in the shooting foreground style; or, the electronic device can, according to the user's first input, set the first image as the shooting background of the shooting preview interface and display it in the shooting preview interface in the shooting background style; or, the electronic device can, according to the user's first input, set the first image as the shooting border of the shooting preview interface and display it in the shooting preview interface in the shooting border style.

[0041] It can be understood that if the electronic device sets the first image to the shooting foreground style, the first image is overlaid on the shooting object; if the electronic device sets the first image to the shooting background style, the first image is overlaid on the original background of the shooting object and will not have any impact on the shooting object collected by the electronic device (that is, there is no phenomenon of blocking the shooting object); if the electronic device sets the first image to the shooting border style, the first image is overlaid on the shooting image, but will not block the shooting object.

[0042] Optionally, in the embodiments of the present application, when the electronic device sets the first image as the shooting border style, the electronic device may display a hollow style selection control, which is used to display at least one hollow style, so that the user can input to the hollow style selection control, so that the electronic device can overlay the first image according to the hollow style selected by the user.

[0043] Optionally, in the embodiments of the present application, the hollow style may be pre-stored in the electronic device or user-defined.

[0044] Specifically, the above user-defined hollow style may be that the user can input to the second control (the second control is a custom hollow style control) in the shooting preview interface, and then the user can perform a sliding input in the shooting preview interface to draw a hollow style.

[0045] Optionally, in the embodiments of the present application, the electronic device may detect the trajectory formed by the sliding input, and the closed area formed by the trajectory of the sliding input is the hollow style drawn by the user.

[0046] Optionally, the closed area formed by the trajectory of the above sliding input may be the closed area formed by the user's sliding input; or, the closed area formed by the user's sliding input and the edge line of the electronic device.

[0047] Exemplarily, taking the electronic device as a mobile phone as an example, as Figure 2 shown in (A) of, when the mobile phone displays the shooting preview interface 10, the user can click the border button 11, so that the mobile phone can display at least one border style. At this time, the mobile phone defaults to select the first border style ( Figure 2 represented by a square border style in), and displays the default selected target video border style in the shooting preview interface 10. As Figure 2 shown in (B) of, then the user can click on other border styles (such as a circular border style) in the at least one border style, so that the mobile phone can change the border style displayed in the shooting preview interface 10 according to the user's needs.

[0048] Another example is, as Figure 3 shown in (A) of, when the mobile phone displays the shooting preview interface 10, the user can click the border button 11, so that the mobile phone can display 4 border styles. At this time, the mobile phone defaults to select the first border style ( Figure 3 represented by a square border style in), and displays the default selected border style in the shooting preview interface 10. As Figure 3 shown in (B) of, then the user can click the custom control 12. As Figure 3As shown in (C) thereof, the mobile phone can determine the user-defined border style according to the sliding trajectory of the user on the first image ( Figure 3 represented by a heart shape in the figure), and display the user-defined border style on the shooting preview interface 10.

[0049] Optionally, in the embodiments of the present application, after the user selects the hollow-out style, the user can input the pattern corresponding to the hollow-out style displayed in the shooting preview interface to adjust the size or display position of the pattern corresponding to the hollow-out style in the shooting preview interface.

[0050] Optionally, in the embodiments of the present application, the above-mentioned first image can be one or more. Specifically, when the first image is one, the display style corresponding to the first image is the shooting foreground style, the shooting background style, or the shooting border style; when the first image is multiple, each image in the multiple images corresponds to a display style.

[0051] Exemplarily, when the first image is three pictures, the first picture among the three pictures can correspond to the shooting foreground style, the second picture among the three pictures can correspond to the shooting background style, and the third picture among the three pictures can correspond to the shooting border style.

[0052] Another example, when the first image is three videos, the first video among the three videos can correspond to the shooting foreground style, the second video among the three videos can correspond to the shooting background style, and the third video among the three videos can correspond to the shooting border style.

[0053] Optionally, in the embodiments of the present application, when the first image is multiple, after the electronic device corresponds each image in the multiple images to a display style, the electronic device can respectively set the display time of each first image.

[0054] Step 203: The electronic device receives the shooting input of the user.

[0055] In the embodiments of the present application, the electronic device can perform shooting according to the shooting input of the user to obtain a second image.

[0056] Optionally, in the embodiments of the present application, the above-mentioned shooting input can be the input of the user on the shooting control; or the input of the user on the physical button (such as the volume button); or the combined input of the user on the physical buttons (such as the volume button and the power button); or the voice input of the user, etc. Specifically, it can be determined according to the actual usage requirements, and the embodiments of the present application do not make limitations.

[0057] Optionally, in the embodiments of the present application, the above shooting input may include any one of the following: click input, long - press input, slide input, preset trajectory input; or input by a physical key combination (such as the power key and the volume key). Specifically, it can be determined according to actual usage requirements, and the embodiments of the present application do not make limitations.

[0058] Step 204: In response to the shooting input, the electronic device performs shooting based on the first image displayed in the target display style to obtain a target video.

[0059] It can be understood that the target video obtained based on the user's shooting not only includes the images collected by the user, but also includes the first image displayed in the target display style. Thus, the target video obtained by shooting is an image with the shooting effect required by the user.

[0060] Optionally, in the embodiments of the present application, the above step 204 may be specifically implemented by the following step 204a and step 204b.

[0061] Step 204a: The electronic device performs shooting through the shooting preview interface to obtain a first video.

[0062] In the embodiments of the present application, the electronic device may perform synthesis processing on the first image and the first video to obtain a target video.

[0063] Step 204b: The electronic device performs a fusion operation on each frame of the images in the first image and the first video to obtain a target video.

[0064] In the embodiments of the present application, the electronic device may synthesize each frame of the images in the first image and the first video according to the user's shooting input to obtain a target video.

[0065] Optionally, in the embodiments of the present application, the above step 204a may be specifically implemented by the following step 204a1 or step 204a2.

[0066] Step 204a1: When the target display style is the background style, the electronic device covers the first image on the background image area of each frame of the first video to obtain a target video.

[0067] In the embodiments of the present application, when the target display style is the background style, the electronic device can identify the shooting area (i.e., the background image area) in each frame of the first video except the shooting object, extract the background image area, perform fusion processing with the first image to obtain the shooting background of the target video, and then set the shooting object at the corresponding position of the shooting background, thereby obtaining the target video.

[0068] It can be understood that the above background image area is determined according to the shooting object.

[0069] Step 204a2: When the target display style is the foreground style or the border style, the electronic device obtains a target video by using the background image area of each frame of the first video.

[0070] In the embodiments of the present application, when the target display style is the foreground style or the border style, the electronic device can directly overlay the first image on each frame of the first video to obtain the target video.

[0071] It should be noted that when the target display style is the border style, since the user sets the hollowed-out area, when directly overlaying the first image on each frame of the first video, the shooting object in the video captured by the shooting preview interface will not be blocked.

[0072] In the embodiments of the present application, the electronic device can adopt different synthesis methods according to different display styles of the first image in the shooting preview interface to obtain the second image, thereby improving the flexibility of the electronic device to obtain the shooting video.

[0073] Optionally, in the embodiments of the present application, the above step 204 can be specifically implemented by the following step 204c.

[0074] Step 204c: For each of the N images displayed in the target display style, the electronic device performs a fusion process on each image and L frames of the first video within the target time period corresponding to each image to obtain the target video after the fusion process.

[0075] Wherein, L is an integer greater than 1, and the above first video is the video obtained by the electronic device during shooting in the shooting preview interface.

[0076] Optionally, in the embodiments of the present application, the target time periods corresponding to each of the above N images may be the same or different.

[0077] Exemplarily, the electronic device can automatically switch according to the pre-set time period during recording the target video. For example, time period 1 is background image 1, time period 2 is foreground image 2, and time period 3 is border image 3, thus completing the recording of the target video.

[0078] Exemplarily, when the first image is three pictures, the first picture among the three pictures can correspond to the shooting foreground style, and the display time of the first picture is 10 seconds. The second picture among the three pictures can correspond to the shooting background style, and the display time of the second picture is 10 seconds. The third picture among the three pictures can correspond to the shooting border style, and the display time of the third picture is 10 seconds, that is, the electronic device can set different time periods to display different target display styles.

[0079] Exemplarily, when the first image is three videos, the first video among the three videos may correspond to shooting a foreground style, the display time of the first video is 10 seconds, the second video among the three videos may correspond to shooting a background style, the display time of the second video is 10 seconds, and the third video among the three videos may correspond to shooting a border style, the display time of the third video is 10 seconds, that is, the electronic device can set different target display styles to be displayed in different time periods.

[0080] In the embodiments of the present application, the electronic device may perform fusion processing on each of the N images and L frame images in the first video within the target time period corresponding to each image, so as to obtain a target video after the fusion processing. In this way, the flexibility of the electronic device for acquiring a captured video is improved.

[0081] The embodiments of the present application provide a shooting method. When the shooting preview interface is displayed, the electronic device may display the first image in a target display style on the shooting preview interface according to a first input of the user on the first image. Thus, the electronic device may perform shooting based on the first image to obtain a target video. In this solution, since the electronic device may set the first image selected by the user as the target display style and obtain the target video according to the first image displayed in the target display style, that is, when shooting the target video, the electronic device may set the first image selected by the user as the target display style and obtain the target video through the first image displayed in the target display style, avoiding the problem that the shooting template is usually a fixed display style, resulting in a relatively single video effect obtained by the electronic device. In this way, the flexibility of the electronic device for shooting videos is improved.

[0082] Optionally, in the embodiments of the present application, before "receiving the first input of the user on the first image" in step 201 above, the method provided by the embodiments of the present application further includes steps 301 to 305 below.

[0083] Step 301: The electronic device receives a second input on the shooting preview interface.

[0084] In the embodiments of the present application, the electronic device may select a target frame structure required by the user according to the second input of the user in the shooting preview interface, and thus determine the splicing method of the N images according to the target frame structure, and thus obtain the first image according to the splicing method of the N images.

[0085] Optionally, in the embodiments of the present application, the above shooting preview interface includes a first control, which is used to instruct the electronic device to display at least one frame structure; when the electronic device displays the shooting preview interface, the user can input the first control to enable the electronic device to enter the custom shooting template mode, and the custom shooting template mode includes at least one frame structure, so that the user can perform a second input on the at least one frame structure to determine the target frame structure required by the user.

[0086] Optionally, in the embodiments of the present application, the electronic device can display at least one frame structure in the upper bar (for example, the upper half of the shooting preview interface) or the lower bar (for example, the lower half of the shooting preview interface) of the shooting preview interface; alternatively, the electronic device can display a first window in the shooting preview interface, and the first window includes at least one frame structure, so that the user can view at least one frame structure and select the target frame structure required by himself from them.

[0087] Exemplarily, assuming that there are 6 at least one frame structures, the user can click and input the shooting mode control to enable the electronic device to display 3 frame structures in the lower bar of the shooting preview interface. Then, the user can slide and input the lower bar to enable the electronic device to display the hidden 3 frame structures, and at the same time, the electronic device can hide the initially displayed 3 frame structures.

[0088] Optionally, in the embodiments of the present application, the user can input the first window to update the display position of the first window in the shooting preview interface or update the display size of the first window in the shooting preview interface.

[0089] Optionally, in the embodiments of the present application, the electronic device can display at least one frame structure in the first window in the form of a thumbnail.

[0090] Optionally, in the embodiments of the present application, the user can customize the frame structure and add the customized frame structure to at least one frame structure, so as to facilitate the user's subsequent use and meet the user's personalized needs.

[0091] Optionally, in the embodiments of the present application, the electronic device can upload the frame structure (hereinafter referred to as the first frame structure) customized by the user (hereinafter referred to as the first user) to the server, so that other users (hereinafter referred to as the second user) can use the first frame structure.

[0092] Optionally, in the embodiments of the present application, the electronic device can upload the user information and the first frame structure to the server together, so that when the second user uses the first frame structure, the second user can communicate with the first user to achieve the effect of shooting and making friends.

[0093] Optionally, in the embodiments of the present application, the above user information may include at least one of the following: username, gender, age, and time information of the user-defined picture frame structure.

[0094] Step 302: In response to the second input, the electronic device displays the target picture frame structure in the shooting preview interface.

[0095] In the embodiments of the present application, the shooting preview interface includes N picture frame structure areas, where N is a positive integer.

[0096] In the embodiments of the present application, the electronic device may determine the target picture frame structure in the shooting preview interface according to the user's second input, and obtain the first image through the target picture frame structure.

[0097] Step 303: The electronic device receives the user's third input.

[0098] In the embodiments of the present application, the above third input is an input to N picture frame structure areas and N images among the N picture frame structure areas.

[0099] In the embodiments of the present application, the user may perform the third input on all N picture frame structure areas among the N picture frame structure areas, so that the electronic device can add N images to the N picture frame structure areas and display them in the shooting preview interface.

[0100] Optionally, in the embodiments of the present application, each picture frame structure in the above N picture frame structure areas may correspond to a different display style, that is, the electronic device may preset the display styles corresponding to the N picture frame structure areas, so that after the user adds N images to the N picture frame structure areas among the N picture frame structure areas, the electronic device can determine the display styles of the N images in the shooting preview interface.

[0101] Optionally, in the embodiments of the present application, when each picture frame structure in the N picture frame structure areas may correspond to a different display style, after the user adds N images to the N picture frame structure areas, the electronic device may display the display styles of the N images in the shooting preview interface in the shooting preview interface, that is, the electronic device may display the display styles of the N images in the shooting preview interface in real time.

[0102] Optionally, the above N images may be selected by the user in the first application (photo album application); or, the above N images may be selected by the user in the second application (browser application), or a part of the above N images may be selected in the first application, and another part of the N images may be selected in the second application.

[0103] Exemplarily, such as Figure 4As shown in (A) of [reference], when the mobile phone is displaying the shooting preview interface 10, the user can click on the template control 13. As Figure 4 shown in (B) of [reference], so that the mobile phone displays the frame structure selection bar 14. Four frame structures are displayed in the frame structure selection bar 14, and then the user can click on the second frame structure among the four frame structures for input. As Figure 4 shown in (C) of [reference], the mobile phone can divide the shooting preview interface 10 into two image addition areas ( Figure 4 represented by 15 and 16 in [reference]), and each image addition area includes an addition control 17. As Figure 4 shown in (D) of [reference], the user can click on the addition control 17 in the image addition area 15. As Figure 4 shown in (E) of [reference], so that the mobile phone can jump to the first interface 18 in the album application. Nine pictures are displayed in the first interface 18 ( Figure 4 represented by Picture 1 to Picture 9 in [reference]), and the user can click on Picture 1 for input. As Figure 4 shown in (F) of [reference], the mobile phone can display the selected Picture 1 in the image addition area 15.

[0104] Optionally, in the embodiments of the present application, the user can input on the shooting preview interface so that the electronic device can cancel the display of N frame structure selection bars in the shooting preview interface.

[0105] Optionally, in the embodiments of the present application, after the electronic device adds M images to M frame structure areas, the electronic device can synthesize the M images into a first image; or, after the electronic device adds M images to M frame structure areas, the user can click on a third control so that the electronic device can synthesize the M images into a first image.

[0106] Step 304: The electronic device, in response to the third input, displays N images in N frame structure areas.

[0107] Optionally, in the embodiments of the present application, the electronic device can display N images in N frame structure areas, so that the user can adjust the N images, and then the electronic device can obtain a first image according to the adjusted N images.

[0108] Step 305: The electronic device obtains a first image according to the N images.

[0109] In the embodiments of the present application, the above N frame structure areas correspond one-to-one with the N images.

[0110] In an embodiment of the present application, after N images are displayed in N frame structure areas, the electronic device may perform a synthesis process on the N images to obtain a first image.

[0111] Specifically, the electronic device may perform a splicing process on the N images to obtain a first image.

[0112] Optionally, in an embodiment of the present application, the electronic device may splice N images that have been processed by the user to obtain a first image.

[0113] In an embodiment of the present application, the electronic device may display a target frame structure selected by the user in the shooting preview interface, so that the electronic device synthesizes M images according to the selected target frame structure to obtain a first image. In this way, the display effect of the images captured by the electronic device is improved.

[0114] Optionally, in an embodiment of the present application, after the above step 304, the shooting method provided in the embodiment of the present application further includes the following steps 401 and 402, and the above step 305 may specifically be implemented through the following step 305a.

[0115] Step 401: The electronic device receives a fourth input from the user for the target image.

[0116] In an embodiment of the present application, the above target image is one of the N images displayed in the N frame structure areas.

[0117] Optionally, in an embodiment of the present application, after the electronic device displays N images in N frame structure areas, the electronic device may receive an input from the user for the N images to adjust the display position of the N images in the N frame structures, or adjust the display size of the N images, or perform a cropping operation on the N images.

[0118] Specifically, taking one image as an example, the above cropping operation on the M images is that the user can drag the one image to the edge area of the target frame structure area so that the electronic device can perform a cropping operation on the one image.

[0119] Step 402: The electronic device performs a first editing operation on the target image in response to the fourth input to obtain an edited target image.

[0120] In an embodiment of the present application, the above first editing operation includes any one of the following: adjusting the display parameters of the N images, adjusting the layer relationship between the N images and the video captured by the shooting preview interface, and performing a cropping operation on the N images.

[0121] Step 305a: The electronic device performs a synthesis process on the edited target image to obtain a first image.

[0122] In an embodiment of the present application, the electronic device may perform a splicing process on the edited target image to obtain a first image.

[0123] In an embodiment of the present application, the electronic device may perform an editing process on the target image among N images to obtain a first image, thereby enhancing the diversity and flexibility of the electronic device in displaying the first image.

[0124] Optionally, in an embodiment of the present application, after the above step 202, the shooting method provided by the embodiment of the present application further includes the following step 501, and "shooting the first image displayed in the target display style to obtain a second image" in the above step 203 may be specifically implemented by the following step 203b.

[0125] Step 501: The electronic device determines the target display style of the N images.

[0126] In an embodiment of the present application, the target display style of the above N images corresponds one-to-one with N frame structure regions.

[0127] In an embodiment of the present application, each of the above N frame structure regions corresponds to a target display style. Thus, after the electronic device adds the N images to the N frame structure regions, the electronic device can determine the target display style of the N images according to the target display style corresponding to each frame structure region, and then obtain a target video through the N images displayed in the target display style.

[0128] Optionally, in an embodiment of the present application, the target display style corresponding to each of the above N frame structure regions may be preset by the electronic device or user-defined.

[0129] Step 203b: The electronic device obtains a target video according to the N images displayed in the target display style.

[0130] In an embodiment of the present application, the target display style corresponding to each of the above N images is different.

[0131] It can be understood that the electronic device can obtain a target video according to different target display styles of the N images.

[0132] In an embodiment of the present application, the electronic device may display the N images and the target display styles corresponding to the N images in the shooting preview interface, so that the user can perform shooting, enabling the electronic device to obtain a second image including different target display styles. Thus, the diversity of the electronic device in shooting a target video is enhanced.

[0133] Optionally, in the embodiments of the present application, after the above step 202, the shooting method provided by the embodiments of the present application further includes the following steps 601 to 603, and the above step 204 can be specifically implemented by the following step 204d.

[0134] Step 601: The electronic device receives a fifth input from the user for the first image.

[0135] In the embodiments of the present application, the electronic device can display a style selection interface according to the fourth input from the user for the first image, so that the electronic device can perform an editing operation on the first image in the style selection interface, thereby obtaining the first image after the editing operation (i.e., the following third image).

[0136] Step 602: The electronic device responds to the fifth input and performs a second editing operation on the first image to obtain a second image.

[0137] In the embodiments of the present application, the above second editing operation includes at least one of the following: adjusting the display parameters of the first image, adjusting the layer relationship between the first image and the image collected by the shooting preview interface, and cropping the first image.

[0138] Optionally, in the embodiments of the present application, the above display parameters include at least one of the following: transparency, brightness, contrast, grayscale, and resolution.

[0139] Optionally, in the embodiments of the present application, the user can input to the fourth control to trigger the electronic device to perform an editing operation on the first image.

[0140] Exemplarily, as Figure 5 shown in (A) of, when the mobile phone displays the shooting preview interface 10, the mobile phone can default the first picture to the shooting background style, set the transparency of the first picture to 0, and display the transparency adjustment control 20. As Figure 5 shown in (B) and (C) of, the user can perform a drag input on the transparency adjustment control 20 to increase the transparency of the first image and display the first image with the adjusted transparency on the shooting preview interface 10.

[0141] Another exemplarily, as Figure 6 shown in (A) of, when the mobile phone displays the shooting preview interface 10, the mobile phone can default the first picture to the shooting foreground style, set the transparency of the first picture to 0.5, and display the transparency adjustment control 20, as Figure 6 shown in (B) and (C) of, the user can perform a drag input on the transparency adjustment control 20 to adjust the transparency of the first image and display the first image with the adjusted transparency on the shooting preview interface 10.

[0142] Step 603: The electronic device updates the first image displayed in the shooting preview interface to the second image that is edited and displayed in the target display style.

[0143] Optionally, in the embodiments of the present application, after obtaining the second image, the electronic device may display the second image in the shooting preview interface according to the default display style; or, the user may input to the fourth control (i.e., the target display style setting control) to trigger the electronic device to set the third image to the target display style and display the second image in the shooting preview interface.

[0144] Optionally, in the embodiments of the present application, the user may input to the fourth control again so that the electronic device can change the display style of the second image in the shooting preview interface.

[0145] Step 204d: The electronic device performs shooting based on the second image to obtain a target video.

[0146] In the embodiments of the present application, the electronic device may synthesize the second image and the video collected by the shooting preview interface into a video to obtain the target video.

[0147] It should be noted that for the above process of synthesizing the third image and the image collected by the shooting preview interface into one image to obtain the second image, the specific implementation process may refer to the above Step 204a1 or 204a2. To avoid repetition, it will not be elaborated here.

[0148] In the embodiments of the present application, the electronic device may perform an editing operation on the first image according to the user's input to obtain the third image, and then obtain the target video according to the third image, avoiding the single image effect obtained by the electronic device during shooting and not meeting the user's needs, and improving the flexibility of shooting videos.

[0149] Optionally, in the embodiments of the present application, the above Step 602 may be specifically implemented through the following Step 602a.

[0150] Step 602a: The electronic device responds to the fifth input and performs a cropping operation on the first image according to the input trajectory of the fifth input to obtain the second image.

[0151] In the embodiments of the present application, when the target display style is the foreground style or the background style, the above second image is the image included in the input trajectory of the fifth input; when the target display style is the border style, the second image is the image in the first image except for the image included in the input trajectory of the fifth input.

[0152] Optionally, in the embodiments of the present application, the electronic device may perform a cropping operation on the complete closed area formed by the user's input trajectory to obtain a second image; or, the electronic device may perform a cropping operation on the complete closed area formed by the user's input trajectory and the edge line of the electronic device to obtain a second image.

[0153] In the embodiments of the present application, the electronic device may perform a cropping operation on the first image according to the user's input trajectory, that is, the user can customize the area according to their own needs. In this way, the flexibility of the electronic device for image editing is improved.

[0154] Optionally, in the embodiments of the present application, the electronic device may perform a segmentation operation on the first image according to the fifth input to obtain at least two image elements.

[0155] In the embodiments of the present application, the electronic device may process the first image through image segmentation to obtain at least two image elements in the first image.

[0156] It can be understood that the above image elements are each shooting object that makes up the first image.

[0157] Exemplarily, assuming that the first image consists of a blue sky, white clouds, and grassland, the image elements are the blue sky, white clouds, and grassland.

[0158] Optionally, in the embodiments of the present application, the electronic device may perform an image segmentation process on the first image according to the user's input to the fifth control (i.e., the element segmentation control) to obtain at least two image elements in the first image.

[0159] Optionally, in the embodiments of the present application, after obtaining at least two image elements in the first image, the electronic device may default set the at least two image elements to the shooting foreground style and set the transparency of the at least two image elements to 0.

[0160] Optionally, in the embodiments of the present application, after obtaining at least two image elements in the first image, the electronic device may perform a marking process on the at least two image elements through the first marking.

[0161] Optionally, in the embodiments of the present application, the above first marking may include at least one of the following: color marking, line marking (such as a dotted line), and label marking.

[0162] Optionally, in the embodiments of the present application, the electronic device may receive the fifth input of the user to the target image element among the at least two image elements.

[0163] In the embodiments of the present application, the electronic device may select the target image element among the at least two image elements according to the user's fifth input, and then perform an editing operation on the target image element.

[0164] It should be noted that the layers can distinguish the occlusion relationships of all elements in the shooting foreground or all elements in the shooting background, that is, the upper layer element can occlude the lower layer element, and the foreground element layer is always above the background element layer. Finally, the layer relationship of the second image is that the shooting foreground is above the image collected in the shooting preview interface, and the image collected in the shooting preview interface is above the shooting background.

[0165] Optionally, in the embodiments of the present application, the above deletion operation on the target image element may specifically be that the user can drag the target image element to the edge area of the electronic device so that the electronic device can perform a deletion operation on the target image element; or, the user can perform a long-press input on the target image element so that the electronic device displays a deletion prompt box, and thus the user can input to the deletion prompt box so that the electronic device deletes the target image element.

[0166] Optionally, in the implementation of the present application, when the electronic device performs a deletion operation on the target image element, it can control the target image element to be displayed on the topmost layer of the layer to avoid misoperation by the user.

[0167] Optionally, in the embodiments of the present application, the above repositioning operation on the target image element may specifically be that the user can perform a drag input on the target image element so that the electronic device can change the display position of the target image element in the shooting preview interface.

[0168] Optionally, in the embodiments of the present application, the above adjustment of the display parameters of the target image element may specifically be that the user can input to the fourth control so that the electronic device can adjust the display parameters of the target image element.

[0169] Optionally, in the embodiments of the present application, the above adjustment of the layer relationship between the target image element and the image collected in the shooting preview interface may specifically be that the user can input to the sixth control (i.e., the layer adjustment control) so that the electronic device can adjust the layer relationship between the target image element and the image collected in the shooting preview interface.

[0170] Optionally, in the embodiments of the present application, after the electronic device edits the first image, the user can input to the fifth control again. So that the electronic device exits the second editing operation to obtain a third image.

[0171] In the embodiments of the present application, the electronic device can obtain at least two image elements in the first image according to the user's input, and then the electronic device can edit the target image element according to the user's input on the target image element. In this way, the flexibility of the electronic device in editing images is improved.

[0172] Optionally, in the embodiments of the present application, after "shooting through the shooting preview interface to obtain the first video" in step 204a above, the shooting method provided by the embodiments of the present application further includes the following steps 701 to 703, and step 204b above can be specifically implemented by the following step 204b1.

[0173] Step 701: The electronic device displays the first video and the target control.

[0174] In the embodiments of the present application, the above target control is used to adjust the display style of the first image.

[0175] In the embodiments of the present application, the electronic device can display the first video and the target control in the shooting preview interface, so that the user can input to the target control, so that the electronic device can adjust the display style of the first image in the first video to obtain the target video.

[0176] Step 702: The electronic device receives a sixth input from the user to the target control.

[0177] Optionally, in the embodiments of the present application, the above sixth input can be a click input, a long press input, a slide input, a preset trajectory input by the user to the target control; or an input of a physical key combination (such as a power key and a volume key). Specifically, it can be determined according to actual usage requirements, and the embodiments of the present application do not make limitations.

[0178] Step 703: The electronic device responds to the sixth input and adjusts the display effect of the first image to dynamically switch the first image from the target display style to the first display style.

[0179] Optionally, in the embodiments of the present application, the electronic device can dynamically switch the display style of the first image from the target display style to the first display style according to the target scale value to obtain the target video.

[0180] Optionally, in the embodiments of the present application, the above target scale value can be preset by the user; or determined by the electronic device according to the first image.

[0181] Exemplarily, assume that the user sets the maximum scale of the slider to background ∞, the minimum to border ∞, and the scale interval to Step. Then the total number of scales M = (background ∞ - border ∞) / Step. Set the maximum value Max and minimum value Min of the picture sizes corresponding to border ∞ and background ∞. Then, by calculation, obtain the picture size value Size of the current scale N as Size = N * (Max - Min) / M. Set SizeK = K * (Max - Min) / M corresponding to the key scale K where the border cuts to the background. When the scale ranges from border ∞ to K, the picture size of the border shrinks continuously according to the calculation formula of Size, but the rectangular border of the person remains unchanged, only the content size changes. Starting from K to background ∞, the border disappears, and the picture of the border is set into the background. The transparency of the background picture is always 1. As the scale N increases, the picture size continues to shrink until it reaches the second size.

[0182] Also exemplarily, as Figure 7 shown in (A) of Figure 7 , after the mobile phone starts recording, the mobile phone can display the slider 22 in the recording interface 21 and display the minimum value of the border of the slider ( Figure 7 represented by border ∞ in Figure 7 ) and the maximum value of the background (

[0183] represented by background ∞ in

[0184] ). As shown in (B), (C), and (D) of

[0185] , the user can slide the slider 22 until the desired size is reached, and then obtain the target video.

[0186] It should be noted that for the shooting method provided in the embodiments of the present application, the execution subject may be a shooting device. In the embodiments of the present application, taking the shooting device executing the shooting method as an example, the shooting device provided in the embodiments of the present application is described.

[0187] Figure 8 shows a possible structural schematic diagram of the shooting device involved in the embodiments of the present application. As Figure 8 shown, the shooting device 70 may include: a receiving module 71, a display module 72, and a shooting module 73.

[0188] Among them, the above-mentioned receiving module 71 is used to receive a first input to the shooting preview interface when the shooting preview interface is displayed, and the first input is used to determine a first image. The above-mentioned display module 72 is used to display the first image in the shooting preview interface in a target display style in response to the first input received by the receiving module 71. The above-mentioned receiving module 71 is further used to receive a shooting input from the user. The above-mentioned shooting module 73 is used to perform shooting based on the first image displayed in the target display style in response to the shooting input received by the receiving module, and obtain a target video.

[0189] In a possible implementation manner, the shooting device provided in the embodiment of the present application further includes: an acquisition module; before the above-mentioned receiving module 71 receives a first input from the user for the first image, the above-mentioned receiving module 71 is further used to receive a second input from the user to the shooting preview interface. The above-mentioned display module 72 is further used to display a target frame structure in the shooting preview interface in response to the second input received by the receiving module 71, and the target frame structure includes N frame structure regions, where N is a positive integer. The above-mentioned receiving module 71 is further used to receive a third input from the user, and the third input is an input for N frame structure regions and N images among the N frame structure regions. The above-mentioned display module 73 is further used to display N images in the N frame structure regions in response to the third input received by the receiving module 71. The acquisition module is used to obtain the first image according to the N images, and the N frame structure regions correspond to the N images one by one.

[0190] In a possible implementation manner, the shooting device provided in the embodiment of the present application further includes: an editing module and a synthesizing module; the above-mentioned receiving module 71 is further used to receive a fourth input from the user for the target image, and the target image is one of the N images displayed in the N frame structure regions. The editing module is used to perform a first editing operation on the target image in response to the fourth input, and obtain an edited target image. The above-mentioned acquisition module is used to perform a synthesis process on the edited target image to obtain the first image; among them, the first editing operation includes any one of the following: adjusting the display parameters of the N images, adjusting the layer relationship between the N images and the video collected by the shooting preview interface, and cropping the N images.

[0191] In a possible implementation manner, the above-mentioned first image includes N images; the shooting device provided in the embodiment of the present application further includes: a determining module. The determining module is used to determine the target display style of the N images after the first image is displayed in the shooting preview interface in the target display style, and the target display styles of the N images correspond to the N frame structure regions one by one; the above-mentioned acquisition module is further used to obtain the target video according to the N images displayed in the target display style.

[0192] In a possible implementation manner, the above-mentioned acquisition module is specifically configured to, for each of the N images displayed in the target display style, perform a fusion process on each image and L frame images in the first video within the target time period corresponding to each image, to obtain a target video after the fusion process, where L is an integer greater than 1; wherein, the first video is a video obtained by the electronic device during shooting in the shooting preview interface.

[0193] In a possible implementation manner, the shooting device provided in the embodiments of the present application further includes: an editing module and an updating module. The above-mentioned receiving module 71 is further configured to receive a fifth input of the user on the first image after the display module 73 displays the first image in the shooting preview interface in the target display style. The editing module is configured to perform a second editing operation on the first image in response to the fifth input received by the receiving module 71, to obtain a second image, and the second editing operation includes at least one of the following: adjusting the display parameters of the first image, adjusting the layer relationship between the first image and the image collected by the shooting preview interface, and cropping the first image. The updating module is configured to update the first image displayed in the shooting preview interface to the second image displayed in the target display style. The above-mentioned shooting module 73 is specifically configured to perform shooting based on the second image to obtain a target video.

[0194] In a possible implementation manner, the above-mentioned editing module is specifically configured to crop the first image according to the input trajectory of the fifth input to obtain a second image. Wherein, when the target display style is the foreground style or the background style, the second image is the image included in the input trajectory of the fifth input; when the target display style is the border style, the second image is the image in the first image except the image included in the input trajectory of the fifth input.

[0195] In a possible implementation manner, the above-mentioned shooting module 71 is specifically configured to perform shooting through the shooting preview interface to obtain a first video; and perform a fusion operation on the first image and each frame image in the first video to obtain a target video.

[0196] In a possible implementation manner, the above-mentioned shooting module 71 is specifically configured to, when the target display style is the background style, cover the first image on the background image area of each frame image in the first video to obtain a target video; when the target display style is the foreground style or the border style, cover the first image on each frame image in the first video to obtain a target video.

[0197] In a possible implementation manner, the shooting method provided by the embodiments of the present application further includes: a display module and an adjustment module. The display module is configured to display a first video and a target control after shooting through a shooting preview interface to obtain the first video, where the target control is used to adjust the display style of the first image. The receiving module 72 is further configured to receive a sixth input from the user to the target control. The adjustment module is configured to adjust the display effect of the first image in response to the sixth input received by the receiving module 72, so as to dynamically switch the first image from the target display style to the first display style. The shooting module 71 is specifically configured to perform a fusion operation on the first image adjusted to the first display style and each frame of image in the first video to obtain a target video.

[0198] The embodiments of the present application provide a shooting device. Since the shooting device can set the first image selected by the user to the target display style and obtain the target video based on the first image displayed according to the target display style, that is, when the electronic device shoots the target video, the shooting device can set the first image selected by the user to the target display style and obtain the target video through the first image displayed in the target display style, which avoids the relatively single video effect obtained by the shooting device due to the usually fixed display style of the shooting template. In this way, the flexibility of the shooting device for shooting videos is improved.

[0199] The shooting device in the embodiments of the present application may be a device, or a component, an integrated circuit, or a chip in an electronic device. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a palmtop 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 server, a Network Attached Storage (NAS), 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.

[0200] The photographing device in the embodiments of the present application may be a device with an operating system. The operating system may be the Android operating system, the iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

[0201] The photographing device provided by the embodiments of the present application can implement Figures 1 to 7 each process implemented by the method embodiments. To avoid repetition, it will not be described in detail here.

[0202] Optionally, as Figure 9 shown, the embodiments of the present application further provide an electronic device 90, including a processor 91 and a memory 92. A program or instruction that can run on the processor 91 is stored on the memory 92. When the program or instruction is executed by the processor 91, 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 described in detail here.

[0203] It should be noted that the electronic device in the embodiments of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.

[0204] Figure 10 It is a schematic diagram of the hardware structure of an electronic device for implementing the embodiments of the present application.

[0205] The electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc.

[0206] Those skilled in the art can understand that the electronic device 100 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 110 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 10 The structure of the electronic device shown in

[0207] does not constitute a limitation to 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 described in detail here.

[0208] An embodiment of the present application provides an electronic device. Since the electronic device can set the first image selected by the user to a target display style and obtain a target video based on the first image displayed in the target display style, that is, when the electronic device captures a target video, the electronic device can set the first image selected by the user to a target display style and obtain a target video through the first image displayed in the target display style, avoiding the problem that the shooting template usually has a fixed display style, resulting in a relatively single video effect captured by the electronic device. In this way, the flexibility of the electronic device in shooting videos is improved.

[0209] Optionally, in an embodiment of the present application, the above-mentioned user input unit 107 is further configured to receive a second input from the user on the shooting preview interface before receiving the first input from the user on the first image. The above-mentioned display unit 106 is further configured to display a target frame structure in the shooting preview interface in response to the second input. The shooting preview interface includes N frame structure regions, where N is a positive integer. The above-mentioned user input unit 107 is further configured to receive a third input from the user, and the third input is an input to N frame structure regions and N images among the N frame structure regions. The above-mentioned display unit 106 is further configured to display N images in the N frame structure regions in response to the third input to obtain a first image, and the N frame structure regions correspond to the N images one by one.

[0210] Optionally, in an embodiment of the present application, the above-mentioned user input unit 107 is further configured to receive a fourth input from the user on the target image after displaying N images in the N frame structure regions in response to the third input. The target image is one of the N images displayed in the N frame structure regions. The above-mentioned processor 110 is further configured to perform a first editing operation on the target image in response to the fourth input to obtain an edited target image; specifically, the processor 110 is configured to perform a synthesis process on the edited target image to obtain a first image; where the first editing operation includes any one of the following: adjusting the display parameters of the N images, adjusting the layer relationship between the N images and the video captured by the shooting preview interface, and cropping the N images.

[0211] Optionally, in an embodiment of the present application, the above-mentioned first image includes N images; the above-mentioned processor 110 is further configured to determine the target display style of the N images after displaying the first image in the shooting preview interface in the target display style, and the target display style of the N images corresponds to the N frame structure regions one by one; specifically, the processor 110 is configured to obtain a target video based on the N images displayed in the target display style.

[0212] Optionally, in the embodiments of the present application, the above-mentioned processor 110 is specifically configured to, for each of the N images displayed in the target display style, perform a fusion process on each image and L frame images in the first video within the target time period corresponding to each image, to obtain the target video after the fusion process, where L is an integer greater than 1; wherein, the first video is a video obtained by the electronic device during shooting in the shooting preview interface.

[0213] Optionally, in the embodiments of the present application, the above-mentioned user input unit 107 is further configured to, after the first image is displayed in the shooting preview interface in the target display style, receive a fifth input from the user for the first image.

[0214] The above-mentioned processor 110 is further configured to, in response to the fifth input, perform a second editing operation on the first image to obtain a second image, and the second editing operation includes at least one of the following: adjusting the display parameters of the first image, adjusting the layer relationship between the first image and the image collected by the shooting preview interface, and performing a cropping operation on the first image; and updating the first image displayed in the shooting preview interface to the second image displayed in the target display style. The above-mentioned processor 110 is specifically configured to perform shooting based on the second image to obtain the target video.

[0215] Optionally, in the embodiments of the present application, the above-mentioned processor 110 is specifically configured to perform a cropping operation on the first image according to the input trajectory of the fifth input to obtain the second image; wherein, when the target display style is the foreground style or the background style, the second image is the image included in the input trajectory of the fifth input; when the target display style is the border style, the second image is the image in the first image except for the image included in the input trajectory of the fifth input.

[0216] Optionally, in the embodiments of the present application, the above-mentioned processor 110 is specifically configured to perform shooting through the shooting preview interface to obtain the first video; and perform a fusion operation on the first image and each frame image in the first video to obtain the target video.

[0217] Optionally, in the embodiments of the present application, the above-mentioned processor 110 is specifically configured to, when the target display style is the background style, cover the first image on the background image area of each frame image in the first video to obtain the target video; when the target display style is the foreground style or the border style, cover the first image on each frame image in the first video to obtain the target video.

[0218] Optionally, in the embodiments of the present application, the above display unit 106 is further configured to perform shooting through the shooting preview interface, and after obtaining the first video, display the first video and the target control, where the target control is used to adjust the display style of the first image. The above user input unit 107 is further configured to receive a fifth input from the user to the target control. The above processor 110 is further configured to, in response to the fifth input, adjust the display effect of the first image to dynamically switch the first image from the target display style to the first display style; and perform a fusion operation on each frame image of the first image and the first video adjusted to the first display style to obtain a target video.

[0219] The electronic device provided in the embodiments of the present application can implement each process implemented in the above method embodiments and achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0220] The beneficial effects of various implementation manners in this embodiment can specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments. To avoid repetition, it will not be elaborated here.

[0221] It should be understood that in the embodiments of the present application, the input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042. The graphics processor 1041 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. The other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.

[0222] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area may 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 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may 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 may 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 109 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memories.

[0223] The processor 110 may include one or more processing units; optionally, the processor 110 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 110 either.

[0224] 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 method embodiments and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

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

[0226] 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 method embodiment and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

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

[0228] 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 shooting method embodiment and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0229] 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 explicitly listed, or further includes elements inherent to such a process, method, article, or device. Without more 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 the reverse order according to the functions involved. For example, the described method may be executed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0230] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described example methods 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 for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.

[0231] 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 and not 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, characterized in that, The method includes: When a shooting preview interface is displayed, receiving a first input to the shooting preview interface, where the first input is used to determine a first image; In response to the first input, displaying the first image in the shooting preview interface in a target display style, where the target display style is set by the user; Receiving a shooting input from the user; In response to the shooting input, performing shooting based on the first image displayed in the target display style to obtain a target video; After displaying the first image in the shooting preview interface in the target display style, the method further includes: Receiving a fifth input from the user to the first image; In response to the fifth input, performing a cropping operation on the first image according to the input trajectory of the fifth input to obtain a second image; where, when the target display style is a foreground style or a background style, the second image is the image included in the input trajectory of the fifth input; when the target display style is a border style, the second image is the image in the first image except for the image included in the input trajectory of the fifth input; Updating the first image displayed in the shooting preview interface to the second image displayed in the edited target display style; The performing shooting based on the first image displayed in the target display style to obtain a target video includes: Performing shooting based on the second image to obtain the target video.

2. The method according to claim 1, characterized in that, Before receiving the first input from the user to the first image, the method further includes: Receiving a second input to the shooting preview interface; In response to the second input, displaying a target frame structure in the shooting preview interface, where the target frame structure includes N frame structure regions, and N is a positive integer; Receiving a third input from the user, where the third input is an input to the N frame structure regions and N images among the N frame structure regions; In response to the third input, displaying the N images in the N frame structure regions; Obtaining the first image according to the N images, where the N frame structure regions correspond to the N images one by one.

3. The method according to claim 2, wherein After displaying the N images in the N frame structure regions in response to the third input, the method further includes: Receiving a fourth input from the user to a target image, where the target image is one of the N images displayed in the N frame structure regions; In response to the fourth input, performing a first editing operation on the target image to obtain the edited target image; The obtaining the first image according to N images includes: Performing a synthesis process on the edited target image to obtain the first image; Where, the first editing operation includes any one of the following: adjusting the display parameters of the N images, adjusting the layer relationship between the N images and the video captured by the shooting preview interface, and performing a cropping operation on the N images.

4. The method according to claim 1 or 3, characterized in that, The first image includes N images; after displaying the first image in the shooting preview interface in the target display style, the method further includes: Determine the target display styles of the N images, where the target display styles of the N images correspond one-to-one with N frame structure regions; The shooting to obtain a target video based on the first image displayed in the target display style includes: Obtain the target video according to the N images displayed in the target display style.

5. The method according to claim 4, characterized in that, The obtaining the target video according to the N images displayed in the target display style includes: For each of the N images displayed in the target display style, perform a fusion process on each image and L frame images in a first video within a target time period corresponding to each image, to obtain the target video after the fusion process, where L is an integer greater than 1; Wherein, the first video is a video obtained by the electronic device during shooting in a shooting preview interface.

6. The method according to claim 1, characterized in that, The shooting to obtain a target video based on the first image displayed in the target display style includes: Shoot through the shooting preview interface to obtain a first video; Perform a fusion operation on the first image and each frame image in the first video to obtain the target video.

7. The method according to claim 6, wherein The performing a fusion operation on the first image and each frame image in the first video to obtain the target video includes: In the case where the target display style is a background style, cover the first image on the background image region of each frame image in the first video to obtain the target video; In the case where the target display style is a foreground style or a border style, cover the first image on each frame image in the first video to obtain the target video.

8. The method according to claim 6, characterized in that, After the shooting through the shooting preview interface to obtain a first video, the method further includes: Display the first video and a target control, where the target control is used to adjust the display style of the first image; Receive a sixth input from the user to the target control; In response to the sixth input, adjust the display effect of the first image to dynamically switch the first image from the target display style to a first display style; The performing a fusion operation on the first image and each frame image in the first video to obtain the target video includes: Perform a fusion operation on the first image adjusted to the first display style and each frame image in the first video to obtain the target video.

9. A photographing device, characterized in that, The shooting device includes: a receiving module, a display module, and a shooting module; The receiving module is configured to receive a first input to the shooting preview interface when the shooting preview interface is displayed, where the first input is used to determine a first image; The display module is configured to, in response to the first input received by the receiving module, display the first image in the shooting preview interface in a target display style, where the target display style is set by the user; The receiving module is further configured to receive a shooting input from the user; The shooting module is configured to, in response to the shooting input received by the receiving module, shoot based on the first image displayed in the target display style to obtain a target video; The device further includes an editing module and an updating module; The receiving module is further configured to receive a fifth input from the user to the first image after the first image is displayed in the shooting preview interface in the target display style; The editing module is configured to, in response to the fifth input, perform a cropping operation on the first image according to the input trajectory of the fifth input to obtain a second image; Wherein, when the target display style is a foreground style or a background style, the second image is the image included in the input trajectory of the fifth input; when the target display style is a border style, the second image is the image in the first image except for the image included in the input trajectory of the fifth input; The updating module is configured to update the first image displayed in the shooting preview interface to the second image displayed in the edited target display style; The shooting module is specifically configured to perform shooting based on the second image to obtain the target video.

10. An electronic device, characterized in that, It includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 8 are implemented.

11. A readable storage medium, characterized in that, A program or instruction is stored on the readable storage medium. When the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Image processing method, mobile terminal and computer storage medium

    CN112511741A

  • Image processing method and terminal

    WO2015032099A1