Panoramic image generation method and device and electronic equipment

By providing a variety of magnification values ​​in the panoramic shooting mode, users can select and generate diverse panoramic images, solving the problem of single panoramic images in the prior art, increasing the fun and operational flexibility of the images.

CN119521002APending Publication Date: 2025-02-25VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411688666.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The prior art can only use one magnification value when shooting panoramic images, resulting in a relatively single panoramic image that cannot meet the diverse needs of users.

Method used

In panoramic shooting mode, multiple shooting methods are displayed in response to user input, each of which includes different magnification values. The user can select and view preview images of different magnification values ​​in the preview interface, and finally image them according to the user's choices to generate a diverse panoramic image.

Benefits of technology

It realizes the generation of panoramic images that meet the diverse needs of users, increases the visual interest of panoramic images, and supports the effect of extending or shortening the mirror.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119521002A_ABST
    Figure CN119521002A_ABST
Patent Text Reader

Abstract

The invention discloses a panoramic image generation method and device and electronic equipment, and belongs to the technical field of electronic equipment. The method comprises the steps of displaying at least one shooting mode in response to a first input of a user to a first control in a panoramic shooting mode, each shooting mode including shooting a panoramic image of a shooting scene by adopting at least one magnification value; in response to a second input of the user to a first shooting mode, preview images with different magnification values are displayed in different display areas of the preview interface, and the first shooting mode is any one of at least one shooting mode; the preview images with different magnification values are preview images acquired based on at least one magnification value in the first shooting mode; in response to a third input of the user, respectively imaging the preview images with different magnification values to obtain at least one panoramic image; and in response to a fourth input of the user, obtaining a target panoramic image based on the at least one panoramic image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a panoramic image generation method, device and electronic equipment. Background Art

[0002] With the rapid development of the shooting function of electronic devices, it has become a normal practice for people to use electronic devices to take photos to record their lives and work. Since panoramic images can show a wider field of view, they are becoming more and more popular.

[0003] Currently, when shooting a panoramic image, a user clicks a panoramic shooting button and moves the electronic device along an arrow indicating the panoramic shooting to obtain a panoramic image. However, the currently generated panoramic images are relatively simple and cannot meet the diverse needs of users. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a panoramic image generation method, device, electronic device and medium, which can obtain a panoramic image that meets the diverse needs of users.

[0005] In a first aspect, an embodiment of the present application provides a method for generating a panoramic image, the method comprising:

[0006] In the case of being in the panoramic shooting mode, in response to a first input of the user to the first control, at least one shooting mode is displayed, each shooting mode includes shooting a panoramic image of the shooting scene by using at least one magnification value;

[0007] In response to a second input of the user on the first shooting mode, preview images with different magnification values ​​are displayed in different display areas of the preview interface, respectively, wherein the first shooting mode is any one of the at least one shooting mode; and the preview images with different magnification values ​​are preview images acquired based on at least one magnification value in the first shooting mode;

[0008] In response to a third input from the user, imaging the preview images with different magnification values ​​respectively to obtain at least one panoramic image;

[0009] In response to a fourth input of the user, a target panoramic image is obtained based on the at least one panoramic image. In a second aspect, an embodiment of the present application provides a panoramic image generation device, the device comprising:

[0010] A first display module is used to display at least one shooting mode in response to a first input of a user to a first control when in a panoramic shooting mode, each shooting mode includes shooting a panoramic image of a shooting scene using at least one magnification value;

[0011] a second display module, configured to display preview images with different magnification values ​​in different display areas of the preview interface in response to a second input of the user to the first shooting mode, wherein the first shooting mode is any one of the at least one shooting mode; and the preview images with different magnification values ​​are preview images acquired based on at least one magnification value in the first shooting mode;

[0012] A first determining module is used to respectively image the preview images with different magnification values ​​in response to a third input of the user to obtain at least one panoramic image;

[0013] The second determining module is configured to obtain a target panoramic image based on the at least one panoramic image in response to a fourth input from the user.

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

[0015] In a fourth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

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

[0017] In an embodiment of the present application, when in a panoramic shooting mode, at least one shooting method can be displayed in response to a first input from a user to a first control, where each shooting method includes using at least one magnification value to shoot a panoramic image of a shooting scene, and then, according to user needs, by responding to a second input from a user to any one of the at least one shooting methods, preview images of different magnification values ​​corresponding to the selected shooting method can be displayed in different display areas of the preview interface, respectively. In this way, after responding to a third input from the user, preview images of different magnification values ​​can be imaged separately to obtain at least one panoramic image, and then, based on the panoramic images with different magnification values, a target panoramic image that meets the diverse needs of users and has a zoom-in or zoom-out effect can be created, while increasing the visual interest of the panoramic image to the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a flowchart of a panoramic image generation method provided by some embodiments of the present application;

[0019] Figure 2is a schematic diagram of a camera interface when a camera application provided by some embodiments of the present application is in a panoramic shooting mode;

[0020] Figure 3 is a schematic diagram of selecting at least one shooting mode provided in some embodiments of the present application;

[0021] Figure 4 is a schematic diagram of selecting the magnification value provided by some embodiments of the present application;

[0022] Figure 5 is a schematic diagram of a preview image provided by some embodiments of the present application;

[0023] Figure 6 is a schematic diagram of adding filter effects provided in some embodiments of the present application;

[0024] Figure 7 is a schematic diagram of a panoramic image provided by some embodiments of the present application;

[0025] Figure 8 is a schematic diagram of a target panoramic image provided by some embodiments of the present application;

[0026] Fig. 9 is a schematic diagram of a process for generating a dynamic panoramic image provided by some embodiments of the present application;

[0027] Fig.10 is a schematic diagram of a process for generating a dynamic panoramic image provided by some embodiments of the present application;

[0028] Fig.11 is a schematic diagram of a process for generating a dynamic panoramic image provided by some embodiments of the present application;

[0029] Fig.12 is a schematic diagram of adding transition effects between captured images provided in some embodiments of the present application;

[0030] Fig.13 is a schematic diagram of adjusting the image editing track provided by some embodiments of the present application;

[0031] Fig.14 is a schematic structural diagram of a panoramic image generating device shown in some embodiments of the present application;

[0032] Fig.15 is a schematic diagram of the structure of an electronic device shown in some embodiments of the present application;

[0033] Fig.16 It is a schematic diagram of the hardware structure of an electronic device shown in some embodiments of the present application. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions 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. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0035] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or N. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0036] Before introducing the solution of the embodiment of the present application, the background technology of the embodiment of the present application is first introduced:

[0037] In the existing solution, only one magnification value can be used to shoot the panoramic image when generating a panoramic image, so the generated panoramic image is relatively simple and cannot meet the diverse needs of users. In order to solve the above problem, the embodiments of the present application provide a panoramic image generation method, device and electronic device. When the camera application is in a panoramic shooting mode, at least one shooting mode can be displayed by responding to a first input of a user to a first control. Each shooting mode here includes using at least one magnification value to shoot a panoramic image of a shooting scene. Then, according to user needs, by responding to a second input of the user to any one of the at least one shooting mode, preview images of different magnification values ​​corresponding to the selected shooting mode can be displayed in different display areas of the preview interface. In this way, after responding to a third input of the user, preview images of different magnification values ​​can be imaged respectively to obtain at least one panoramic image. Then, based on the panoramic images of different magnification values, a target panoramic image that meets the diverse needs of users and has a zoom-in or zoom-out effect can be created, while increasing the visual interest of the panoramic image to the user.

[0038] The technical solution of the embodiment of the present application can be applied to the shooting scene of panoramic images.

[0039] The panoramic image generation method provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0040] Figure 1It is a flow chart of a panoramic image generation method provided in an embodiment of the present application. The executor of the panoramic image generation method may be an electronic device, which may be but is not limited to a personal computer (PC), a smart phone, a tablet computer or a personal digital assistant (PDA).

[0041] like Figure 1 As shown, the panoramic image generation method provided in the embodiment of the present application may include steps 110 to 140.

[0042] Step 110: In the case of a panoramic shooting mode, in response to a first input of a user to a first control, display at least one shooting mode.

[0043] The panoramic shooting mode may be a mode for shooting panoramic images, such as Figure 2 As shown, the Figure 2 This is a schematic diagram of the camera interface when the camera application is in panoramic shooting mode.

[0044] The first control may be a control for performing panoramic photography with multiple magnification values. For example, the first control may be Figure 2 The "Multi-channel shooting" control in 21.

[0045] The first input is an input to the first control, and the first input is used to display at least one shooting mode, and the first input can be a first operation. Exemplarily, the first input includes but is not limited to: a touch input of the first control by a user through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiments of the present invention are not limited. The specific gesture in the embodiments of the present application can be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiments of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the first input can be: a click input of the first control by the user.

[0046] In some embodiments of the present application, each of the at least one shooting mode may include using at least one magnification value to shoot a panoramic image of the shooting scene.

[0047] Continue to refer Figure 2 , the user clicks the "Multi-channel Shooting" control 21 to display the following Figure 3The interface shown in FIG. 1 includes at least one shooting mode, namely one-way shooting, two-way shooting and three-way shooting. Here, one-way shooting refers to shooting a panoramic image with one magnification value, two-way shooting refers to shooting a panoramic image with two magnification values, and three-way shooting refers to shooting a panoramic image with three magnification values. Figure 3 In the method, one-way shooting may be to use 1X magnification value to shoot panoramic images, two-way shooting may be to use 1X magnification value and 2X magnification value to shoot panoramic images, and three-way shooting may be to use 1X magnification value, 2X magnification value and 5X magnification value to shoot panoramic images.

[0048] It should be noted that the embodiments of the present application are not limited to only Figure 3 The three shooting methods shown are: Figure 3 This is only an example and not a limitation of the embodiments of the present application. Those skilled in the art should know that there may be multiple shooting methods in the embodiments of the present application, which can be set according to user needs and are not limited in the embodiments of the present application.

[0049] In some embodiments of the present application, different magnification values ​​in each shooting mode can be selected according to user needs, that is, after step 110, the above method may further include:

[0050] In response to a thirteenth input of the first magnification value in the first shooting mode by the user, displaying at least one magnification value option;

[0051] In response to a fourteenth input of the user to the first magnification value option, the first magnification value is updated to a magnification value corresponding to the first magnification value option.

[0052] The first shooting mode may be any one of at least one shooting mode.

[0053] The first magnification value may be any one of the at least one magnification value included in the first photographing mode.

[0054] The at least one magnification value option may be at least one option for selecting a magnification value.

[0055] The thirteenth input is an input of the first magnification value in the first shooting mode. The thirteenth input is used to display at least one magnification value option, and the thirteenth input can be a thirteenth operation. Exemplarily, the thirteenth input includes but is not limited to: a user's touch input of the first magnification value in the first shooting mode through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the thirteenth input can be: a user's click input of the first magnification value in the first shooting mode.

[0056] The first magnification value option may be any one of the at least one magnification value option.

[0057] The fourteenth input is an input for the first magnification value option. The fourteenth input is used to update the first magnification value to the magnification value corresponding to the first magnification value option. The fourteenth input can be the fourteenth operation. Exemplarily, the fourteenth input includes but is not limited to: the user's touch input of the first magnification value option through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the fourteenth input can be: the user's click input of the first magnification value option.

[0058] In some embodiments of the present application, at least one magnification value option can be displayed in response to the user's thirteenth input of the first magnification value in the first shooting mode, and then in response to the user's fourteenth input of the first magnification value option, the first magnification value can be updated to a magnification value corresponding to the first magnification value option.

[0059] Continue to refer Figure 3 , the user clicks on the 2X magnification value in the three-way shooting to display the following Figure 4 Among the multiple magnification value options shown, if the user clicks on the 3X magnification value option 41, the 2X magnification value in the original three-way shooting can be updated to a 3X magnification value.

[0060] In an embodiment of the present application, at least one magnification value option can be displayed in response to the user's thirteenth input of the first magnification value in the first shooting mode, and then in response to the user's fourteenth input of the first magnification value option, the first magnification value can be updated to a magnification value corresponding to the first magnification value option. In this way, any magnification value in any shooting mode can be updated according to user needs, thereby improving the diversity and flexibility of panoramic image shooting.

[0061] Step 120 : In response to the user's second input to the first shooting mode, preview images with different magnification values ​​are displayed in different display areas of the preview interface.

[0062] Among them, the second input is an input for the first shooting mode, and the above-mentioned second input is used to display preview images of different magnification values ​​in different display areas of the preview interface, and the second input can be a second operation. Exemplarily, the above-mentioned second input includes but is not limited to: the user's touch input to the first shooting mode through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible input, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the above-mentioned second input can be: the user's click input for the first shooting mode.

[0063] The preview images with different magnification values ​​may be preview images acquired based on at least one magnification value in the first shooting mode.

[0064] In some embodiments of the present application, by responding to the user's second input to the first shooting mode, the preview interface of the camera application can be divided into different display areas, and different display areas respectively display preview images with different magnification values.

[0065] Continue to refer to the above Figure 3 After the user selects the three-way shooting mode, the following Figure 5The preview interface shown in the figure can be divided into three display areas, namely display area 51, display area 52 and display area 53. Display area 51, display area 52 and display area 53 are respectively used to display preview images captured by three magnification values ​​in the three-way shooting mode, that is, the display area 51 displays the preview image captured by the 1X magnification value, the display area 52 displays the preview image captured by the 2X magnification value, and the display area 53 displays the preview image captured by the 5X magnification value.

[0066] It should be noted that in Figure 5 In the embodiment, when the display area 51, the display area 52 and the display area 53 respectively display the preview images acquired by the three magnification values ​​in the shooting mode of three-way shooting, the preview images acquired by the three magnification values ​​in the shooting mode of three-way shooting can be displayed in sequence from low to high in the order of the three magnification values ​​in the shooting mode of three-way shooting, such as Figure 5 As shown, the preview images captured by the three magnification values ​​in the three-way shooting mode may be displayed in sequence according to the three magnification values ​​in the three-way shooting mode from high to low, or the preview images captured by the three magnification values ​​in the three-way shooting mode may be displayed in sequence according to the three magnification values ​​of the three-way shooting mode, namely, 2X magnification value, 1X magnification value and 5X magnification value. That is, when displaying the preview images captured by the three magnification values ​​in the three-way shooting mode, the order of the three magnification values ​​may be selected arbitrarily. In other words, how to display the preview images captured by the three magnification values ​​in the three-way shooting mode may be set according to user needs and is not limited in the embodiments of the present application.

[0067] It should be noted that after the user selects a certain shooting mode, the shooting mode can be displayed in a preset state to indicate that the shooting mode is selected, such as Figure 3 and Figure 4 As shown, after the user selects the three-way shooting mode, the circle in front of the three-way shooting mode may be highlighted to indicate that the user has selected the shooting mode.

[0068] In some embodiments of the present application, the second input may include a first sub-input and a second sub-input; in order to improve the flexibility of determining the preview image, step 120 may specifically include:

[0069] In response to a first sub-input of at least one magnification value in a first shooting mode by a user, determining at least one magnification value corresponding to the first shooting mode;

[0070] In response to the second sub-input of the user to the second control, preview images with different magnification values ​​are respectively displayed in different display areas of the preview interface.

[0071] Among them, the first sub-input is an input of at least one magnification value in the first shooting mode, and the above-mentioned first sub-input is used to determine at least one magnification value corresponding to the first shooting mode, and the first sub-input can be a first sub-operation. Exemplarily, the above-mentioned first sub-input includes but is not limited to: a user's touch input of at least one magnification value in the first shooting mode through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the above-mentioned first sub-input can be: a user's click input of at least one magnification value in the first shooting mode.

[0072] The second control may be a control for displaying preview images of different magnification values ​​in different display areas of the preview interface, for example, Figure 3 The "Confirm" control in 31.

[0073] The second sub-input is an input to the second control. The second sub-input is used to display preview images with different magnification values ​​in different display areas of the preview interface, and the second sub-input can be a second sub-operation. Exemplarily, the second sub-input includes but is not limited to: a touch input of the second control by a user through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the second sub-input can be: a click input of the second control by the user.

[0074] In some embodiments of the present application, the user can select any one of multiple shooting modes, and then select each magnification value in the shooting mode. Based on the selected magnification value, click the second control to display preview images with different magnification values ​​in different display areas of the preview interface.

[0075] Continue to refer Figure 3After the user selects the three-way shooting mode, the user can select the magnification value of the three-way shooting mode. For example, the user selects a 1X magnification value, a 2X magnification value, and a 5X magnification value. Then the user clicks the "Confirm" control 31, and the following is displayed. Figure 5 The preview interface is shown.

[0076] In an embodiment of the present application, the user can select any one of a plurality of shooting modes according to his or her own needs, and then select a plurality of magnification values ​​of the shooting mode. After determining the shooting mode and the magnification value corresponding to the shooting mode, preview images of different magnification values ​​are displayed in different display areas of the preview interface in response to the user's second sub-input to the second control. In this way, preview images of different magnification values ​​required by the user can be obtained according to the user's needs, thereby improving the flexibility of determining the preview image.

[0077] In some embodiments of the present application, a filter may be added to the preview image in the preview interface, so that the obtained panoramic image also has a filter, and then the target panoramic image also has a filter, which further enhances the visual interest of the target panoramic image.

[0078] Specifically, different display areas of the preview interface may include filter controls, and the filter controls may be controls for adding filter effects to the preview images in different display areas. Figure 5 Filter controls in 54.

[0079] After step 120, the above method may further include:

[0080] In response to a twelfth user input to the filter control within the first display area, displaying at least one candidate filter effect;

[0081] In response to a thirteenth input of the user to the first candidate filter effect, a filter effect corresponding to the first candidate filter effect is added to the preview image displayed in the first display area.

[0082] The first display area may be any one of the different display areas of the preview interface, for example, the first display area may be the display area 51 among the display area 51 , the display area 52 , and the display area 53 .

[0083] The twelfth input is an input to the filter control in the first display area. The twelfth input is used to display at least one candidate filter effect, and the twelfth input can be the twelfth operation. Exemplarily, the twelfth input includes but is not limited to: a user's touch input to the filter control in the first display area through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the twelfth input can be: a user's click input to the filter control in the first display area.

[0084] The first candidate filter effect may be any one of the at least one candidate filter effect.

[0085] In some embodiments of the present application, a user may perform a twelfth input on a filter control in a first display area among different display areas, display at least one candidate filter effect, and then select one of the candidate filter effects, and add a filter effect corresponding to the selected candidate filter effect to the preview image displayed in the first display area.

[0086] Continue to refer Figure 5 Taking the first display area as the display area 51 as an example, the user clicks the "filter" control 54 in the display area 51 to display the following Figure 6 The multiple candidate filter effects shown are grapefruit filter 61 , evening breeze filter 62 and old movie filter 63 . If the user clicks on grapefruit filter 61 , the filter effect corresponding to grapefruit filter 61 can be added to the preview image displayed in display area 51 .

[0087] In an embodiment of the present application, at least one candidate filter effect is displayed in response to the user's twelfth input to the filter control in the first display area, and then in response to the user's thirteenth input to the first candidate filter effect, a filter effect corresponding to the first candidate filter effect is added to the preview image displayed in the first display area. In this way, the filter effect required by the user can be added to the preview image displayed in the display area, and the panoramic image obtained in this way also has a filter, and then the target panoramic image also has a filter, which further enhances the visual interest of the target panoramic image.

[0088] Step 130 : In response to a third input from the user, respectively image the preview images with different magnification values ​​to obtain at least one panoramic image.

[0089] Among them, the third input is an input to the preview interface, and the third input is used to image the preview images of different magnification values ​​respectively to obtain at least one panoramic image, and the third input can be a third operation. Exemplarily, the third input includes but is not limited to: the user's touch input to the preview interface through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the third input can be: a user's click input to the preview interface.

[0090] The at least one panoramic image may be a panoramic image obtained by imaging preview images with different magnification values.

[0091] In some embodiments of the present application, preview images with different magnification values ​​may be imaged separately according to a panoramic image shooting method to obtain at least one panoramic image.

[0092] Continuing with the above example, you can use the same method to capture a panoramic image. Figure 5 The preview images displayed in the display area 51, the display area 52 and the display area 53 are respectively imaged to obtain the following Figure 7 Panoramic image 71, panoramic image 72 and panoramic image 73 are shown, wherein panoramic image 71 is a panoramic image obtained by imaging the preview image displayed in display area 51, panoramic image 72 is a panoramic image obtained by imaging the preview image displayed in display area 52, and panoramic image 73 is a panoramic image obtained by imaging the preview image displayed in display area 53.

[0093] It should be noted that in order to better draw the display area and panoramic image, Figure 7 The panoramic images are all framed by dotted lines.

[0094] In some embodiments of the present application, before imaging the preview image, it is necessary to select the focus subject in the preview image. Since the magnification values ​​corresponding to the preview images are different, the subjects in the preview images may be different. Therefore, in order to improve the diversity of panoramic images containing the focus object, before step 130, the above method may further include:

[0095] Determining the focused object in the preview image at different magnification values;

[0096] Step 130 may specifically include:

[0097] When the focus objects in the preview images of different magnification values ​​have been determined, in response to a third input of the user, the preview images of different magnification values ​​are imaged respectively to obtain at least one panoramic image.

[0098] In some embodiments of the present application, the focus object in the preview images of different magnification values ​​can be determined first, and then, when the focus object in the preview images of different magnification values ​​has been determined, the preview images of different magnification values ​​can be imaged separately in response to the user's third input to obtain at least one panoramic image.

[0099] In an embodiment of the present application, the focus object in the preview images with different magnification values ​​is determined, and then the preview images with different magnification values ​​are imaged respectively to obtain at least one panoramic image. In this way, the panoramic images with different magnification values ​​containing the focus object required by the user can be obtained, thereby improving the diversity of the panoramic images containing the focus object.

[0100] In some embodiments of the present application, multiple focusing methods may be used to determine the focus object in the preview images with different magnification values, which may be specifically as follows:

[0101] Method 1: Auto focus

[0102] That is, determining the focus object in the preview images with different magnification values ​​may specifically include:

[0103] Detecting subjects in preview images at different magnification values ​​based on a focus algorithm;

[0104] The subjects in the preview images with different magnification values ​​are respectively determined as the focus objects of the preview images with different magnification values.

[0105] In some embodiments of the present application, a focus algorithm may be used to detect subjects in preview images of different magnification values, and then the subjects in the preview images of different magnification values ​​may be respectively determined as focus objects of the preview images of different magnification values.

[0106] Continue to refer Figure 5 , through the focus algorithm, it is detected that the preview image in the display area 51 has subjects 1 and 2, the preview image in the display area 52 has subjects 3 and 4, and the preview image in the display area 53 has subjects 5 and 6. In this way, subjects 1 and 2 can be used as the focus objects of the preview image in the display area 51, subjects 3 and 4 can be used as the focus objects of the preview image in the display area 52, and subjects 5 and 6 can be used as the focus objects of the preview image in the display area 53.

[0107] In an embodiment of the present application, the subjects in the preview images of different magnification values ​​detected by the focus algorithm are respectively determined as the focus objects of the preview images of different magnification values. In this way, the focus objects in the preview images of different magnification values ​​can be quickly determined, thereby improving the efficiency of determining the focus objects in the preview images of different magnification values.

[0108] Method 2: Manual focus

[0109] That is, the above-mentioned determination of the focus object in the preview image with different magnification values ​​may specifically include:

[0110] In response to the user's tenth input to the first object in the preview images of different magnification values, the first object performing the tenth input in the preview images of different magnification values ​​is determined as the focus object of the preview images of different magnification values.

[0111] For a preview image of a certain magnification value, the first object may be at least one object among the objects included in the preview image of the magnification value.

[0112] Continue to refer Figure 5 The preview image in the display area 51 includes a subject 1 and a subject 2 , and the first object may be at least one of the subject 1 and the subject 2 .

[0113] The tenth input is an input of the first object in the preview image of different magnification values. The tenth input is used to determine the focus object of the preview image of different magnification values, and the tenth input can be the tenth operation. Exemplarily, the tenth input includes but is not limited to: the user's touch input of the first object in the preview image of different magnification values ​​through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible input, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the tenth input can be: the user's click input of the first object in the preview image of different magnification values.

[0114] In some embodiments of the present application, the user can manually select a first object in the preview image of each magnification value and use it as the focus object of the preview image of the magnification value.

[0115] Continue to refer Figure 5The user clicks on subject 1 in the preview image in display area 51, clicks on subject 3 in the preview image in display area 52, and clicks on subject 5 in the preview image in display area 53, so that subject 1 can be made the focus object of the preview image in display area 51, subject 3 can be made the focus object of the preview image in display area 52, and subject 5 can be made the focus object of the preview image in display area 53.

[0116] In an embodiment of the present application, the user can manually select the focus object in the preview image of each magnification value as needed, thereby avoiding the problem that the focus object selected by autofocus is not the focus object required by the user, thereby improving the accuracy of the selection of the focus object.

[0117] Method 3: Follow focus

[0118] That is, the above-mentioned determination of the focus object in the preview image with different magnification values ​​may specifically include:

[0119] In response to an eleventh input by the user for a second object in the first preview image of the first magnification value, determining the second object as a focus object of the first preview image;

[0120] According to the focus object of the first preview image, focus objects in preview images of other magnification values ​​except the first preview image are determined.

[0121] The first magnification value may be any one of the different magnification values ​​of the first shooting mode.

[0122] The first preview image may be a preview image corresponding to the first magnification value.

[0123] The second object may be at least one object in the first preview image of the first magnification value.

[0124] Continue to refer Figure 3 , taking the first magnification value as the 1X magnification value in the three-way shooting mode as an example, the first preview image is Figure 5 The preview image in the display area 51 includes the subject 1 and the subject 2 , and the second object may be at least one of the subject 1 and the subject 2 .

[0125] The eleventh input is an input of the second object in the first preview image of the first magnification value. The eleventh input is used to determine the second object as the focus object of the first preview image, and the eleventh input can be the eleventh operation. Exemplarily, the eleventh input includes but is not limited to: the user's touch input of the second object in the first preview image of the first magnification value through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the eleventh input can be: the user's click input of the second object in the first preview image of the first magnification value.

[0126] In some embodiments of the present application, in response to the user's eleventh input of the second object in the first preview image of the first magnification value, the second object can be determined as the focus object of the first preview image, and then the focus object in the preview images of other magnification values ​​except the first preview image can be determined based on the focus object of the first preview image.

[0127] In an embodiment of the present application, a user manually selects a focus object in the first preview image among preview images of different magnification values, and then preview images of other magnification values ​​can automatically follow the manually selected focus object in the first preview image to determine the focus objects of preview images of other magnification values. In this way, the user does not need to manually select a focus object in the preview image of each magnification value, thereby improving the efficiency of determining the focus object.

[0128] In some embodiments of the present application, in order to further improve the efficiency of determining the focus object, determining the focus object in preview images of other magnification values ​​except the first preview image according to the focus object of the first preview image may specifically include:

[0129] According to the first position information inputted eleventhly, the first position information is respectively mapped to preview images of other magnification values ​​except the first preview image, to obtain second position information;

[0130] The objects at the second position information in the preview images of other magnification values ​​are respectively determined as the focus objects of the preview images of other magnification values.

[0131] The first position information may be position information for executing the eleventh input.

[0132] The second position information may be position information obtained by mapping the first position information to preview images of other magnification values ​​except the first preview image among preview images of different magnification values ​​corresponding to the first shooting mode.

[0133] In some embodiments of the present application, a user may first select a focus object from a first preview image of preview images of different magnification values ​​corresponding to a first shooting mode, and then map the position of the focus object to preview images of other magnification values ​​to obtain second position information, and respectively determine the objects at the second position information in the preview images of other magnification values ​​as their corresponding focus objects.

[0134] Continue to refer Figure 5 , the user clicks on subject 1 in the preview image in display area 51, and according to the position information of subject 1 in the preview image in display area 51, it can be mapped to the preview image in display area 52 and the preview image in display area 53 respectively. The position of subject 1 after the position information of subject 1 in the preview image in display area 51 is mapped to the preview image in display area 52 is position B, and the object at position B is subject 3, so subject 3 can be used as the focus object in the preview image in display area 52, and the position of subject 1 after the position information of subject 1 in the preview image in display area 51 is mapped to the preview image in display area 53 is position C, and the object at position C is subject 5, so subject 5 can be used as the focus object in the preview image in display area 53.

[0135] In an embodiment of the present application, a user manually selects a focus object in a first preview image among preview images of different magnification values, and then based on the first position information of the focus object in the first preview image, second position information corresponding to the first position information can be determined in preview images of other magnification values, and then objects at the second position information in preview images of other magnification values ​​are respectively determined as focus objects in preview images of other magnification values. In this way, the user does not need to manually select a focus object in the preview image of each magnification value, thereby improving the efficiency of determining the focus object.

[0136] In some embodiments of the present application, in order to further improve the efficiency of determining the focus object, determining the focus object in preview images of other magnification values ​​except the first preview image according to the focus object of the first preview image may specifically include:

[0137] identifying a second object in preview images of other magnification values ​​other than the first preview image;

[0138] When the second object is recognized in the preview images of the other magnification values, the second objects in the preview images of the other magnification values ​​are respectively determined as the focus objects of the preview images of the other magnification values.

[0139] In some embodiments of the present application, after determining that the second object in the first preview image is the focus object, the second object can also be identified in preview images of other magnification values ​​other than the first preview image. Specifically, the second object in the preview images of other magnification values ​​other than the first preview image can be identified through an object detection algorithm. When it is determined that the second object is identified in the preview images of other magnification values, the second object in the preview images of other magnification values ​​can be respectively determined as the focus object of the preview images of other magnification values.

[0140] Continue to refer Figure 5 , the user clicks on subject 1 in the preview image in display area 51, and subject 1 can be determined as the focus object in the preview image in display area 51. Then, it is detected whether subject 1 also exists in the preview image in display area 52 and the preview image in display area 53 respectively. If so, subject 1 in the preview image in display area 52 can be taken as the focus object in the preview image in display area 52, and subject 1 in the preview image in display area 53 can be taken as the focus object in the preview image in display area 53.

[0141] In an embodiment of the present application, after the user manually selects a focus object in the first preview image among preview images of different magnification values, it is possible to detect whether there is the focus object selected in the first preview image in preview images of other magnification values. If there is, the focus object selected in the first preview image among preview images of other magnification values ​​can be used as the focus object of preview images of other magnification values. In this way, the user does not need to manually select a focus object in the preview image of each magnification value, thereby improving the efficiency of determining the focus object.

[0142] In some embodiments of the present application, in the above-mentioned method of determining the focus object in preview images of other magnification values ​​other than the first preview image based on the focus object of the first preview image, if the object at the second position information in the preview images of other magnification values ​​is not the focus object required by the user, or the second object is not recognized in the preview images of other magnification values, the focus object in the preview images of other magnification values ​​other than the first preview image may be determined in the following manner:

[0143] That is, when it is determined that the object at the second position information in the preview image of other magnification values ​​is not the focus object required by the user, or when the second object is not recognized in the preview image of other magnification values, after determining the second object as the focus object of the first preview image, the above method may further include:

[0144] The object at the center position of the preview image of another magnification value is made the focus object of the preview image of another magnification value.

[0145] In some embodiments of the present application, after the second object is determined as the focus object of the first preview image, if the object at the second position information in the preview images of other magnification values ​​is not the focus object required by the user, or the second object is not recognized in the preview images of other magnification values, the object at the center position of the preview images of other magnification values ​​may be used as the focus object of the preview images of other magnification values.

[0146] Continue to refer Figure 5 If the subject 3 at position B and / or the subject 5 at position C are not the focus object required by the user, the object at the center position of the preview image in the display area 52 can be determined as the focus object of the preview image in the display area 52, and / or the object at the center position of the preview image in the display area 53 can be determined as the focus object of the preview image in the display area 53.

[0147] Continue to refer Figure 5 If subject 1 is not detected in the preview image in display area 52 and / or the preview image in display area 53, the object at the center position of the preview image in display area 52 may be determined as the focus object of the preview image in display area 52 and / or the object at the center position of the preview image in display area 53 may be determined as the focus object of the preview image in display area 53.

[0148] In an embodiment of the present application, after the second object is determined as the focus object of the first preview image, if the object at the second position information in the preview images of other magnification values ​​is not the focus object required by the user, or the second object is not recognized in the preview images of other magnification values, the object at the center position of the preview images of other magnification values ​​can be used as the focus object of the preview images of other magnification values, thereby improving the flexibility of determining the focus object.

[0149] Step 140 : In response to a fourth input from the user, obtain a target panoramic image based on at least one panoramic image.

[0150] Among them, the fourth input is an input to the third control, and the fourth input is used to obtain the target panoramic image based on at least one panoramic image, and the fourth input can be a fourth operation. Exemplarily, the fourth input includes but is not limited to: the user's touch input to the third control through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the fourth input can be: a user's click input to the third control.

[0151] In some embodiments of the present application, in order to increase the visual interest of the panoramic image to the user, step 140 may specifically include:

[0152] In response to a fourth input of the user to the third control, at least one panoramic image is stitched together to obtain a target panoramic image.

[0153] Among them, the third control may be a control for directly obtaining the target family image.

[0154] In some embodiments of the present application, after obtaining at least one panoramic image, the at least one panoramic image may be stitched in response to a fourth input of the user to the third control to obtain a target panoramic image.

[0155] Continuing with the above example, we get Figure 7 After the panoramic images 71, 72 and 73 are displayed, a "save panoramic image" control 74 and a "more creative" control 75 may be displayed. When the user clicks the "save panoramic image" control 74, the panoramic images 71, 72 and 73 can be stitched together to obtain the following image: Figure 8 A target panoramic image 80 is shown.

[0156] It should be noted that when stitching at least one panoramic image, the stitching may be performed according to the arrangement order of the preview images corresponding to the panoramic images on the preview interface, such as Figure 5 and Figure 8 As shown, in Figure 5 The preview image is displayed in the order of 1X magnification value, 2X magnification value and 5X magnification value. Figure 8In the example, the target panoramic image is generated by stitching a panoramic image 71 corresponding to a 1X magnification value, a panoramic image 72 corresponding to a 2X magnification value, and a panoramic image 73 corresponding to a 5X magnification value in this order.

[0157] In an embodiment of the present application, by responding to the user's fourth input to the third control, at least one panoramic image can be directly stitched to obtain a target panoramic image. The target panoramic image thus obtained includes panoramic images shot at three magnification values, thereby creating a target panoramic image that meets the diverse needs of users and has a zooming-in or zooming-out effect, while increasing the visual interest of the user in the panoramic image.

[0158] In some embodiments of the present application, the above Figure 8 The generated target panoramic image 80 is only a stitching of at least one panoramic image, without other effects. In order to further enhance the visual interest of the panoramic image for the user, the fourth input may include a third sub-input and a fourth sub-input. Step 140 may specifically include:

[0159] In response to a third sub-input of the user to the fourth control, displaying at least one candidate type of the target panoramic image;

[0160] In response to a fourth sub-input of the user to the first candidate type, displaying a target panoramic image generation interface of the first candidate type;

[0161] At least one panoramic image on at least one image editing track is edited to obtain a target panoramic image of a first candidate type.

[0162] The fourth control may be a control for making the generated target panoramic image have more effects, such as the above Figure 7 More Creative controls in 75.

[0163] The third sub-input is an input to the fourth control, and the third sub-input is used to display at least one candidate type of the target panoramic image, and the third sub-input can be a third sub-operation. Exemplarily, the third sub-input includes but is not limited to: a touch input of the fourth control by a user through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the third sub-input can be: a click input of the fourth control by the user.

[0164] Candidate types of the target panoramic image may include two types: dynamic panoramic image and static panoramic image.

[0165] The first candidate type may be any one of the at least one candidate type, that is, the first candidate type may be a dynamic panoramic image or a static panoramic image.

[0166] The fourth sub-input is an input to the first candidate type. The fourth sub-input is used to display the target panoramic image generation interface of the first candidate type. The fourth sub-input can be a fourth sub-operation. Exemplarily, the fourth sub-input includes but is not limited to: the user's touch input to the first candidate type through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements and are not limited in the embodiments of the present invention. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the fourth sub-input can be: the user's click input to the first candidate type.

[0167] The target panoramic image generation interface may be an interface for generating a target panoramic image, such as Fig. 9 The interface shown in this Fig. 9 The interface shown may include at least one image editing track, such as Fig. 9 Image editing track 91, image editing track 92 and image editing track 93 in it.

[0168] At least one image editing track corresponds to at least one panoramic image, that is, each image editing track is used to place the corresponding panoramic image, such as Fig. 9 As shown, image editing track 91 is used to place panoramic image 71 , image editing track 92 is used to place panoramic image 72 , and image editing track 93 is used to place panoramic image 73 .

[0169] It should be noted that in order to better draw the image editing track and the panoramic image placed on the image editing track, Fig. 9 In the figure, the panoramic image is represented by a dotted frame, and the specific content of the panoramic image is not shown.

[0170] In some embodiments of the present application, by responding to the user's third sub-input to the fourth control, at least one candidate type of the target panoramic image can be displayed, and then the first candidate type is selected, and a target panoramic image generation interface of the first candidate type can be displayed, wherein the target panoramic image generation interface includes at least one image editing track, and the target panoramic image of the first candidate type can be obtained by editing at least one panoramic image on at least one image editing track.

[0171] Continue to refer Figure 7 , the user clicks the "More Creative" control 75 to display the following Fig.10 The two candidate types of target panoramic images shown in FIG. 1 are dynamic panoramic images 101 and static panoramic images 102. If the user clicks on the dynamic panoramic image 101 or the static panoramic image 102, the following image will be displayed: Fig. 9 The interface shown is Fig. 9 The panoramic image 71 placed on the image editing track 91, the panoramic image 72 placed on the image editing track 92, and the panoramic image 73 placed on the image editing track 93 are edited separately to obtain a dynamic target panoramic image or a static target panoramic image.

[0172] In an embodiment of the present application, by responding to the user's third sub-input to the fourth control, at least one candidate type of the target panoramic image can be displayed, and then the first candidate type is selected, and a target panoramic image generation interface of the first candidate type can be displayed. The target panoramic image generation interface includes at least one image editing track, and the target panoramic image of the first candidate type can be obtained by editing at least one panoramic image on at least one image editing track. In this way, different types of target panoramic images can be generated according to user needs, thereby improving the flexibility of generating target panoramic images.

[0173] In some embodiments of the present application, the third sub-input may include a fifth sub-input and a sixth sub-input; and in response to the user's third sub-input to the fourth control, displaying at least one candidate type of the target panoramic image may specifically include:

[0174] In response to a fifth sub-input of the user to the fourth control, displaying an image editing interface;

[0175] In response to a sixth sub-input of the user to the fifth control, at least one candidate type of the target panoramic image is displayed.

[0176] Among them, the fifth sub-input is an input to the fourth control, and the fifth sub-input is used to display the image editing interface, and the fifth sub-input can be a fifth sub-operation. Exemplarily, the fifth sub-input includes but is not limited to: the user's touch input to the fourth control through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the fifth sub-input can be: the user's click input to the fourth control.

[0177] The image editing interface may be an interface displayed after the fifth sub-input is executed on the fourth control, such as Fig.10 The interface shown is the image editing interface.

[0178] In some embodiments of the present application, a fifth control may be included in the image editing interface, and the fifth control may be used to determine the type of the target panoramic image, such as Fig.10 The "panoramic creativity" control 100 is the fifth control.

[0179] The sixth sub-input is an input to the fifth control, and the sixth sub-input is used to display at least one candidate type of the target panoramic image, and the sixth sub-input can be a sixth sub-operation. Exemplarily, the sixth sub-input includes but is not limited to: a touch input of the fifth control by a user through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the sixth sub-input can be: a click input of the fifth control by the user.

[0180] In some embodiments of the present application, in response to a fifth sub-input of a user to a fourth control, an image editing interface can be displayed, in which a fifth control can be included, and in response to a sixth sub-input of the user to the fifth control, at least one candidate type of the target panoramic image can be displayed.

[0181] Continue to refer Figure 7, the user clicks the "More Creative" control 75 to display Fig.10 In the interface shown, the user clicks the “Panorama Creativity” control 100 to display a dynamic panoramic image 101 and a static panoramic image 102 .

[0182] In an embodiment of the present application, an image editing interface can be displayed in response to a fifth sub-input of a user to a fourth control, in which a fifth control can be included. In response to a sixth sub-input of a user to the fifth control, at least one candidate type of the target panoramic image can be accurately displayed.

[0183] In some embodiments of the present application, in order to enhance the visual interest of the panoramic image, editing at least one panoramic image on at least one image editing track to obtain a target panoramic image of the first candidate type may specifically include:

[0184] In response to a fifth input of the user to a first cropping control on the first image editing track, determining a first cropped image of the first panoramic image on the first image editing track;

[0185] Determining a position of a second interception control in a second image editing track based on the position of the first interception control;

[0186] Determining a second captured image of the second panoramic image on the second image editing track according to a position of a second captured control in the second image editing track;

[0187] Displaying the first captured image and the second captured image in a preview track of a target panoramic image generation interface of the first candidate type;

[0188] In response to a sixth input of the user to the sixth control, a target panoramic image of a first candidate type is generated based on the first captured image and the second captured image.

[0189] The first image editing track may be any one of at least one image editing track, for example, image editing track 91.

[0190] The first capture control may be a capture control on the first image editing track, and the capture control may be used to capture a screen segment of the panoramic image placed on the first image editing track.

[0191] Continue to refer Fig. 9 Taking the first image editing track as image editing track 91 as an example, the first interception control can be interception control 911 and interception control 912.

[0192] The fifth input is an input to the first interception control on the first image editing track. The fifth input is used to determine the first interception image of the first panoramic image on the first image editing track. The fifth input can be a fifth operation. Exemplarily, the fifth input includes but is not limited to: a touch input of the first interception control on the first image editing track by a user through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the fifth input can be: a click input of the first interception control on the first image editing track by the user.

[0193] The first panoramic image may be a panoramic image placed on the first image editing track.

[0194] Continue to refer Fig. 9 , when the first image editing track is image editing track 91 , the first panoramic image is panoramic image 71 .

[0195] The first captured image may be an image of the first panoramic image captured by using the first capture control on the first image editing track. Specifically, the first captured image may be a picture segment between two capture controls on the first image editing track.

[0196] Continue to refer Fig. 9 , taking the first image editing track as image editing track 91 as an example, the picture between the capture control 911 and the capture control 912 in the panoramic image 71 is the first captured image.

[0197] The second image editing track may be another image editing track among the at least one image editing track except the first image editing track.

[0198] The second capture control may be a capture control in a second image editing track.

[0199] Continue to refer Fig. 9 Taking the first image editing track as image editing track 91 as an example, the second image editing track is image editing track 92 and image editing track 93, and the interception control 921 and the interception control 922 on image editing track 92, as well as the interception control 931 and the interception control 932 on image editing track 93 are all second interception controls.

[0200] The second panoramic image may be a panoramic image placed on the second image editing track.

[0201] The second captured image may be a screen segment of the second panoramic image captured by a second capture control on the second image editing track.

[0202] Continue to refer Fig. 9 , taking the first image editing track as image editing track 91 as an example, the panoramic image 72 placed on image editing track 92 and the panoramic image 73 placed on image editing track 93 are both second panoramic images.

[0203] The frame between the capture control 921 and the capture control 922 in the panoramic image 72 is the second captured image, and the frame between the capture control 931 and the capture control 932 in the panoramic image 73 is also the second captured image.

[0204] The preview track may be a track for previewing a target panoramic image, such as Fig. 9 Preview track 94 in .

[0205] The sixth control may be a control in the target panoramic image generation interface of the first candidate type, and the sixth control may be used to generate the target panoramic image of the first candidate type based on the first captured image and the second captured image displayed in the preview track. The sixth control here may be Fig. 9 The Confirm Export control in 95.

[0206] The sixth input is an input to the sixth control, and the sixth input is used to generate a target panoramic image of the first candidate type based on the first captured image and the second captured image. The sixth input can be a sixth operation. Exemplarily, the sixth input includes but is not limited to: a touch input of the sixth control by a user through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the sixth input can be: a click input of the sixth control by the user.

[0207] In some embodiments of the present application, a user may perform a fifth input on a first capture control on a first image editing track, and may capture a first panoramic image on the first image editing track to obtain a first captured image; then, based on the position of the first capture control, a position of a second capture control in a second image editing track may be automatically determined; and then, based on the position of the second capture control in the second image editing track, a second panoramic image on the second image editing track may be captured to obtain a second captured image; and then, in response to a sixth input on a sixth control by the user, a target panoramic image of a first candidate type may be generated based on the first captured image and the second captured image.

[0208] In some embodiments of the present application, after the first panoramic image is captured based on the first capture control to obtain the first captured image, and the second panoramic image is captured based on the second capture control to obtain the second captured image, the first captured image and the second captured image may be displayed on the preview track.

[0209] It should be noted that when the preview track displays the first captured image and the second captured image, they may be displayed according to the arrangement of at least one image editing track in the target panoramic image generation interface of the first candidate type, such as Fig. 9 As shown, the image editing track 91 corresponding to the panoramic image 71 is located at the top, the image editing track 92 corresponding to the panoramic image 72 is located in the middle, and the image editing track 93 corresponding to the panoramic image 73 is located at the bottom. When the preview track 94 displays the first captured image and the second captured image, the captured image 711 obtained by capturing the panoramic image 71 is placed in the front, the captured image 721 obtained by capturing the panoramic image 72 is placed in the middle, and the captured image 731 obtained by capturing the panoramic image 73 is placed at the back.

[0210] In an embodiment of the present application, the panoramic image placed on each image editing track can be captured through the capture control in each image editing track to obtain the corresponding captured image, and then a target panoramic image of the first candidate type can be generated based on the captured image corresponding to each image editing track. In this way, panoramic images with different magnification values ​​can be generated according to user needs, thereby enhancing the visual interest of the panoramic image.

[0211] In some embodiments of the present application, the first interception control may include a first sub-interception control and a second sub-interception control. Here, the first sub-interception control and the second sub-interception control may be Fig. 9 Intercept control 911 and intercept control 912 in.

[0212] The second interception control may include a third sub-interception control and a fourth sub-interception control, where the third sub-interception control and the fourth sub-interception control may be interception control 921 and interception control 922 , and interception control 931 and interception control 932 .

[0213] In the target panoramic image generation interface of the first candidate type, at least one image editing track can be as follows: Fig. 9 Shown are arranged side by side from top to bottom.

[0214] In order to accurately determine the position of the second interception control in the second image editing track, determining the position of the second interception control in the second image editing track based on the position of the first interception control may specifically include:

[0215] When the first image editing track is at the first position, the first sub-clip control is located at the beginning of the first panoramic image, the second sub-clip control is located at the first position of the first panoramic image, the position of the third sub-clip control in the second panoramic image is the same as the first position, and the fourth sub-clip control is located at the end of the second panoramic image;

[0216] When the first image editing track is located in the middle position, the first sub-capture control is located at the second position of the first panoramic image, the second sub-capture control is located at the third position of the first panoramic image, the third sub-capture control of the first target image editing track is located at the beginning position of the first target panoramic image, the fourth sub-capture control of the first target image editing track is located at the same position as the second position in the first target panoramic image, the third sub-capture control of the second target image editing track is located at the same position as the third position in the second target panoramic image, and the fourth sub-capture control of the second target image editing track is located at the end position of the second target panoramic image.

[0217] The first image editing track being located at the first position may mean that the first image editing track is located at the top among multiple image editing tracks.

[0218] The first position may be a certain position in the first panoramic image. Specifically, the first position is located between the beginning position and the end position of the first panoramic image.

[0219] Continue to refer Fig. 9 Taking the first image editing track as image editing track 91 as an example, the capture control 911 is located at the beginning of the panoramic image 71, and the capture control 912 is located at position 1 of the panoramic image 71.

[0220] The first image editing track being located at a middle position may be that the first image editing track is located at a middle position among a plurality of image editing tracks.

[0221] The second position and the third position may be two positions in the first panoramic image. Specifically, in the first panoramic image, the third position is located after the second position, and both the second position and the third position are located between the beginning position and the end position of the first panoramic image. Fig. 9 As shown, taking the first image editing track as image editing track 92 as an example, the interception control 921 and the interception control 922 are located between the beginning position and the end position of the panoramic image 72 .

[0222] The second image editing track may include a first target image editing track and a second target image editing track.

[0223] The first target panoramic image is a panoramic image on the first target image editing track. The second target panoramic image is a panoramic image on the second target image editing track. The first target image editing track may be located in the upper order of the first image editing track, and the second target image editing track may be located in the lower order of the first image editing track.

[0224] Continue to refer Fig. 9 , taking the first image editing track as image editing track 92 as an example, image editing track 91 and image editing track 93 are both second image editing tracks, wherein image editing track 91 and image editing track 93 can be the first target image editing track and the second target image editing track respectively. For example, image editing track 91 can be the first target image editing track, and image editing track 93 can be the second target image editing track, that is, the first target image editing track is located in the upper sequence of the first image editing track, and the second target image editing track is located in the lower sequence of the first image editing track.

[0225] The panoramic image 71 on the image editing track 91 is a first target panoramic image, and the panoramic image 73 on the image editing track 93 is a second target panoramic image.

[0226] In some embodiments of the present application, the captured image captured by the capture control in each image editing track may include the length of the entire image editing track.

[0227] Continue to refer Fig. 9 , the track lengths of image editing track 91, image editing track 92 and image editing track 93 are the same, and the sum of the captured images corresponding to image editing track 91, the captured images corresponding to image editing track 92 and the captured images corresponding to image editing track 93 should be equal to the length of image editing track 91.

[0228] In order to achieve the above purpose, the position of the capture control on the image editing track needs to be strictly controlled. Specifically, when the first image editing track is in the first position, the first sub-capture control is located at the beginning of the first panoramic image, the second sub-capture control is located at the first position of the first panoramic image, the position of the third sub-capture control in the second panoramic image is the same as the first position, and the fourth sub-capture control is located at the end of the second panoramic image.

[0229] In one example, reference Fig.11 , taking the second image editing track as 1 and the first image editing track as image editing track 111 as an example, the interception control 1111 is located at the beginning of the panoramic image 11, the interception control 1112 is located at position 4 of the panoramic image 11, the interception control 1121 of the image editing track 112 is at position 7 which is the same as position 4 of the panoramic image 12, and the interception control 1122 is at the end of the panoramic image 12.

[0230] In the case where there are multiple second image editing tracks, the next capture control of the last image editing track is at the end of its corresponding panoramic image.

[0231] Continue to refer Fig. 9 Taking the first image editing track as image editing track 91 as an example, the interception control 911 is located at the beginning of the panoramic image 71, the interception control 912 is located at position 1 of the panoramic image 71, the interception control 921 of the image editing track 92 is at position 5 of the panoramic image 72 which is the same as position 1, the interception control 922 is at position 2 of the panoramic image 72, the interception control 931 of the image editing track 93 is at position 6 of the panoramic image 73 which is the same as position 3, and the interception control 932 is at the end of the panoramic image 73.

[0232] When the first image editing track is located in the middle position, the first sub-clip control is located at the second position of the first panoramic image, the second sub-clip control is located at the third position of the first panoramic image, the third sub-clip control of the first target image editing track is located at the beginning position of the first target panoramic image, the fourth sub-clip control of the first target image editing track is located at the same position as the second position in the first target panoramic image, the third sub-clip control of the second target image editing track is located at the same position as the third position in the second target panoramic image, and the fourth sub-clip control of the second target image editing track is located at the end position of the second target panoramic image

[0233] Continue to refer Fig. 9, taking the first image editing track as image editing track 92, image editing track 91 as the first target image editing track, and image editing track 93 as the second target image editing track as an example, the interception control 921 is located at position 5 of the panoramic image 72, and the interception control 922 is located at position 2 of the panoramic image 72, then the interception control 911 in the image editing track 91 is located at the beginning of the panoramic image 71, position 1 of the interception control 912 is the same as position 5, position 6 of the interception control 931 of the image editing track 93 is the same as position 3, and the interception control 932 is located at the end of the panoramic image 73.

[0234] In an embodiment of the present application, the position of the second capture control in the second image editing track can be accurately determined by the position of the first capture control.

[0235] In some embodiments of the present application, when the first candidate type is a dynamic panoramic image, in order to further increase the interest of the target panoramic image, a transition effect may be added between two adjacent captured images in the preview track. Specifically, in the preview track, a transition control may be included between each two adjacent captured images in the first captured image and the second captured image, such as Fig. 9 The “Transition” controls 96 and “Transition” controls 97 in FIG.

[0236] Before generating a target panoramic image of the first candidate type based on the first captured image and the second captured image in response to a sixth input of the user to the sixth control, the method may further include:

[0237] In response to a seventh input of the user to the first transition control, displaying at least one candidate transition effect;

[0238] In response to an eighth input of the user on the first candidate transition effect, determining a target transition effect between two captured images corresponding to the first transition control;

[0239] In response to the sixth input of the user to the sixth control, generating a target panoramic image of the first candidate type based on the first captured image and the second captured image may specifically include:

[0240] In response to a sixth input of the user to the sixth control, a dynamic panoramic image is generated based on the first captured image, the second captured image, and the target transition effect.

[0241] The first transition control may be any one of the at least one transition control. For example, it may be Fig. 9 96 in the Transitions control.

[0242] The seventh input is an input to the first transition control, and the seventh input is used to display at least one candidate transition effect, and the seventh input can be a seventh operation. Exemplarily, the seventh input includes but is not limited to: a user's touch input to the first transition control through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the seventh input can be: a user's click input to the first transition control.

[0243] The first candidate transition effect may be any one of the at least one candidate transition effect.

[0244] The eighth input is an input for the first candidate transition effect. The eighth input is used to determine the target transition effect between the two captured images corresponding to the first transition control. The eighth input can be the eighth operation. Exemplarily, the eighth input includes but is not limited to: the user's touch input of the first candidate transition effect through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the eighth input can be: the user's click input of the first candidate transition effect.

[0245] The target transition effect may be a transition effect between two captured images corresponding to the first transition control determined in response to the user's eighth input on the first candidate transition effect.

[0246] In some embodiments of the present application, at least one candidate transition effect can be displayed in response to the user's seventh input to the first transition control, and then in response to the user's eighth input to the first candidate transition effect, a target transition effect between two captured images corresponding to the first transition control can be determined, so that a dynamic panoramic image can be generated based on the first captured image, the second captured image and the target transition effect.

[0247] Continue to refer Fig. 9Taking the first transition control as the "transition" control 96 as an example, the user can click the "transition" control 96 to display the following Fig.12 There are multiple candidate transition effects shown, such as fade-in and fade-out 121, stereo rotation 122 and dissolve 123. When the user clicks fade-in and fade-out 121, it can be determined that the transition effect between the screenshot image 711 before the "Transition" control 96 and the screenshot image 721 before the "Transition" control 96 is fade-in and fade-out 121. In this way, a dynamic panoramic image can be generated based on the screenshot image 711, the screenshot image 721 and the screenshot image 731, and fade-in and fade-out 121. That is, in the generated dynamic panoramic image, when the screenshot image 711 is transferred to the screenshot image 721, it is transferred to the screenshot image 721 in the transition manner of fade-in and fade-out 121.

[0248] In an embodiment of the present application, by setting a transition effect between two adjacent screenshot images, the interest of the target panoramic image is further increased.

[0249] It should be noted that when the first candidate type is a static panoramic image, the method of generating a static panoramic image is the same as that of generating a dynamic panoramic image, except that there is no transition control in the preview track. After the user captures the captured image, he clicks the "Confirm Export" control 95 to directly generate a static panoramic image.

[0250] In some embodiments of the present application, after displaying at least one image editing track, the above method may further include:

[0251] In response to a ninth input of the user to the first image editing track, the position of the first image editing track is updated.

[0252] Among them, the ninth input is an input to the first image editing track, and the ninth input is used to update the position of the first image editing track. The ninth input can be the ninth operation. Exemplarily, the ninth input includes but is not limited to: the user's touch input to the first image editing track through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use requirements, and the embodiment of the present invention is not limited. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the ninth input can be: the user's drag input to the first image editing track.

[0253] In some embodiments of the present application, a user may drag at least one image editing track, thereby changing the position of each image editing track.

[0254] Continuing with the above example, Fig.13 As shown, taking the first image editing track as image editing track 91 as an example, if the user drags image editing track 91 downward to below image editing track 92, the position of image editing track 91 and the position of image editing track 92 can be interchanged.

[0255] In an embodiment of the present application, according to user demand, the position of the first image editing track can be updated in response to the user's ninth input to the first image editing track, thereby improving the flexibility of the position of the image editing track.

[0256] The panoramic image generation method provided in the embodiment of the present application can be executed by a panoramic image generation device. In the embodiment of the present application, the panoramic image generation device executing the panoramic image generation method is taken as an example to illustrate the panoramic image generation device provided in the embodiment of the present application.

[0257] Fig.14 FIG. 1 is a schematic diagram showing a panoramic image generation device according to an exemplary embodiment. Fig.14 As shown, the panoramic image generating device 1400 may include:

[0258] The first display module 1410 is used to display at least one shooting mode in response to a first input of a user to a first control when in a panoramic shooting mode, each shooting mode including shooting a panoramic image of a shooting scene by using at least one magnification value;

[0259] The second display module 1420 is configured to display preview images with different magnification values ​​in different display areas of the preview interface in response to a second input of the user to the first shooting mode, wherein the first shooting mode is any one of the at least one shooting mode; and the preview images with different magnification values ​​are preview images acquired based on at least one magnification value in the first shooting mode;

[0260] A first determining module 1430 is configured to respectively image the preview images with different magnification values ​​in response to a third input of the user to obtain at least one panoramic image;

[0261] The second determining module 1440 is configured to obtain a target panoramic image based on the at least one panoramic image in response to a fourth input from the user.

[0262] In an embodiment of the present application, when in a panoramic shooting mode, at least one shooting method can be displayed in response to a first input from a user to a first control, where each shooting method includes using at least one magnification value to shoot a panoramic image of a shooting scene, and then, according to user needs, by responding to a second input from a user to any one of the at least one shooting methods, preview images of different magnification values ​​corresponding to the selected shooting method can be displayed in different display areas of the preview interface, respectively. In this way, after responding to a third input from the user, preview images of different magnification values ​​can be imaged separately to obtain at least one panoramic image, and then, based on the panoramic images with different magnification values, a target panoramic image that meets the diverse needs of users and has a zoom-in or zoom-out effect can be created, while increasing the visual interest of the panoramic image to the user.

[0263] In some embodiments of the present application, the second input includes a first sub-input and a second sub-input; the second display module 1420 can be specifically used for:

[0264] In response to a first sub-input of at least one magnification value in a first shooting mode by a user, determining at least one magnification value corresponding to the first shooting mode;

[0265] In response to the second sub-input of the user to the second control, preview images with different magnification values ​​are respectively displayed in different display areas of the preview interface.

[0266] In some embodiments of the present application, the second determining module 1440 is specifically used to:

[0267] In response to a fourth input of the user to the third control, the at least one panoramic image is stitched to obtain a target panoramic image.

[0268] In some embodiments of the present application, the fourth input includes a third sub-input and a fourth sub-input;

[0269] The second determining module 1440 may include:

[0270] a first display unit, configured to display at least one candidate type of the target panoramic image in response to a third sub-input of a fourth control by a user;

[0271] a second display unit, configured to display a target panoramic image generation interface of the first candidate type in response to a fourth sub-input of the user to the first candidate type, wherein the target panoramic image generation interface comprises at least one image editing track, the at least one image editing track corresponds to the at least one panoramic image in a one-to-one manner, each image editing track is used to place a panoramic image corresponding thereto, the first candidate type is any one of the at least one candidate type, and the first candidate type is a dynamic panoramic image or a static panoramic image;

[0272] The first determining unit is configured to edit the at least one panoramic image on the at least one image editing track to obtain a target panoramic image of the first candidate type.

[0273] In some embodiments of the present application, the third sub-input includes a fifth sub-input and a sixth sub-input; and the first display unit is specifically used for:

[0274] In response to a fifth sub-input of the user to the fourth control, displaying an image editing interface, wherein the image editing interface includes a fifth control, and the fifth control is used to determine the type of the target panoramic image;

[0275] In response to a sixth sub-input of the user to the fifth control, at least one candidate type of the target panoramic image is displayed.

[0276] In some embodiments of the present application, the first determining unit may include:

[0277] A first determining subunit is configured to determine a first captured image of a first panoramic image on a first image editing track in response to a fifth input of a user to a first captured control on a first image editing track, wherein the first image editing track is any one of the at least one image editing track;

[0278] A second determining subunit is used to determine the position of a second interception control in a second image editing track based on the position of the first interception control, wherein the second image editing track is another image editing track in the at least one image editing track except the first image editing track;

[0279] a third determining subunit, configured to determine a second captured image of the second panoramic image on the second image editing track according to a position of a second captured control in the second image editing track;

[0280] A first display subunit, configured to display the first intercepted image and the second intercepted image on a preview track of a target panoramic image generation interface of the first candidate type;

[0281] The fourth determining subunit is configured to generate a target panoramic image of the first candidate type based on the first captured image and the second captured image in response to a sixth input of the user to a sixth control.

[0282] In some embodiments of the present application, the first interception control includes a first sub-interception control and a second sub-interception control, the second interception control includes a third sub-interception control and a fourth sub-interception control, and the at least one image editing track is arranged in parallel from top to bottom;

[0283] The second determining subunit is specifically used for:

[0284] In the case where the first image editing track is located at the first position, the first sub-intercept control is located at the beginning position of the first panoramic image, the second sub-intercept control is located at the first position of the first panoramic image, the position of the third sub-intercept control in the second panoramic image is the same as the first position, the fourth sub-intercept control is located at the end position of the second panoramic image, and the first position is located between the beginning position and the end position of the first panoramic image;

[0285] In the case where the first image editing track is located at the middle position, the first sub-intercept control is located at the second position of the first panoramic image, the second sub-intercept control is located at the third position of the first panoramic image, the third sub-intercept control of the first target image editing track is located at the beginning position of the first target panoramic image, the fourth sub-intercept control of the first target image editing track is located at the same position as the second position in the first target panoramic image, the third sub-intercept control of the second target image editing track is located at the same position as the third position in the second target panoramic image, and the fourth sub-intercept control of the second target image editing track is located at the end position of the second target panoramic image;

[0286] Among them, in the first panoramic image, the third position is located after the second position, and the second position and the third position are both located between the beginning position and the end position of the first panoramic image; the second image editing track includes the first target image editing track and the second target image editing track, the first target panoramic image is a panoramic image on the first target image editing track, and the second target panoramic image is a panoramic image on the second target image editing track; the first target image editing track is located in the upper sequence of the first image editing track, and the second target image editing track is located in the lower sequence of the first image editing track.

[0287] In some embodiments of the present application, when the first candidate type is a dynamic panoramic image, in the preview track, a transition control is included between each adjacent two intercepted images in the first intercepted image and the second intercepted image;

[0288] The above-mentioned device may also include:

[0289] a third display module, configured to display at least one candidate transition effect in response to a seventh input of a first transition control by the user before generating a target panoramic image of the first candidate type based on the first captured image and the second captured image in response to a sixth input of a sixth control by the user, wherein the first transition control is any one of the at least one transition control;

[0290] A third determining module is configured to determine, in response to an eighth input of the user on a first candidate transition effect, a target transition effect between two captured images corresponding to the first transition control, wherein the first candidate transition effect is any one of the at least one candidate transition effect;

[0291] The second determining module 1440 is specifically used for:

[0292] In response to a sixth input of the user to a sixth control, a dynamic panoramic image is generated based on the first captured image, the second captured image, and the target transition effect.

[0293] In some embodiments of the present application, the above-mentioned device may further include:

[0294] The updating module is used for updating the position of the first image editing track in response to a ninth input of the user to the first image editing track after displaying the at least one image editing track.

[0295] In some embodiments of the present application, the above-mentioned device may further include:

[0296] A fourth determination module, configured to determine the focus objects in the preview images with different magnification values ​​before respectively imaging the preview images with different magnification values ​​to obtain at least one panoramic image in response to the third input of the user;

[0297] The first determining module 1430 is specifically used for:

[0298] When the focus objects in the preview images of different magnification values ​​have been determined, in response to a third input of the user, the preview images of different magnification values ​​are imaged respectively to obtain at least one panoramic image.

[0299] In some embodiments of the present application, the fourth determination module is specifically used to:

[0300] Detecting subjects in preview images at different magnification values ​​based on a focus algorithm;

[0301] The subjects in the preview images with different magnification values ​​are respectively determined as the focus objects of the preview images with different magnification values.

[0302] In some embodiments of the present application, the fourth determination module is specifically used to:

[0303] In response to the user's tenth input to the first object in the preview images of different magnification values, the first object performing the tenth input in the preview images of different magnification values ​​is determined as the focus object of the preview images of different magnification values.

[0304] In some embodiments of the present application, the fourth determination module specifically includes:

[0305] a fifth determining subunit, configured to determine the second object as a focus object of the first preview image in response to an eleventh input of the user for the second object in the first preview image of the first magnification value;

[0306] The sixth determining subunit is configured to determine, according to the focused object of the first preview image, a focused object in preview images of other magnification values ​​except the first preview image.

[0307] In some embodiments of the present application, the sixth determining subunit is specifically used to:

[0308] According to the first position information of the eleventh input, the first position information is respectively mapped to preview images of other magnification values ​​except the first preview image to obtain second position information;

[0309] The objects at the second position information in the preview images of the other magnification values ​​are respectively determined as the focus objects of the preview images of the other magnification values.

[0310] In some embodiments of the present application, the sixth determining subunit is specifically used to:

[0311] identifying the second object in preview images of other magnification values ​​except the first preview image;

[0312] When the second object is recognized in the preview images of the other magnification values, the second object in the preview images of the other magnification values ​​is determined as a focus object of the preview images of the other magnification values.

[0313] In some embodiments of the present application, when it is determined that the object at the second position information in the preview image of the other magnification value is not the focus object required by the user, or when the second object is not recognized in the preview image of the other magnification value, the above-mentioned apparatus may further include:

[0314] The fourth determining module is used to use the object at the center position of the preview image of the other magnification value as the focus object of the preview image of the other magnification value.

[0315] In some embodiments of the present application, different display areas of the preview interface include filter controls, and the above-mentioned apparatus may further include:

[0316] a fourth display module, configured to display at least one candidate filter effect in response to a twelfth input of a user to a filter control in a first display area after displaying preview images of different magnification values ​​in different display areas of the preview interface, wherein the first display area is any one of the different display areas of the preview interface;

[0317] A filter adding module is used to add a filter effect corresponding to the first candidate filter effect to the preview image displayed in the first display area in response to the user's thirteenth input to the first candidate filter effect, and the first candidate filter effect is any one of the at least one candidate filter effect.

[0318] The panoramic image generating device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or a device other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0319] The panoramic image generation device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0320] The panoramic image generation device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0321] Alternatively, if Fig.15As shown, an embodiment of the present application further provides an electronic device 1500, including a processor 1501 and a memory 1502, wherein the memory 1502 stores programs or instructions that can be executed on the processor 1501, and when the program or instructions are executed by the processor 1501, the various steps of the above-mentioned panoramic image generation method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

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

[0323] Fig.16 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0324] The electronic device 1600 includes but is not limited to: a radio frequency unit 1601, a network module 1602, an audio output unit 1603, an input unit 1604, a sensor 1605, a display unit 1606, a user input unit 1607, an interface unit 1608, a memory 1609, and a processor 1610 and other components.

[0325] Those skilled in the art will appreciate that the electronic device 1600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.16 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0326] The display unit 1606 is used to display at least one shooting mode in response to a first input of a user to a first control when in a panoramic shooting mode, each shooting mode including shooting a panoramic image of a shooting scene using at least one magnification value;

[0327] The display unit 1606 is further configured to display preview images with different magnification values ​​in different display areas of the preview interface in response to a second input of the user to the first shooting mode, wherein the first shooting mode is any one of the at least one shooting mode; and the preview images with different magnification values ​​are preview images acquired based on at least one magnification value in the first shooting mode;

[0328] The processor 1610 is configured to respectively image the preview images with different magnification values ​​in response to a third input of the user to obtain at least one panoramic image;

[0329] The processor 1610 is further configured to obtain a target panoramic image based on the at least one panoramic image in response to a fourth input from the user.

[0330] In this way, when in the panoramic shooting mode, at least one shooting method can be displayed in response to the user's first input to the first control, and each shooting method here includes using at least one magnification value to shoot a panoramic image of the shooting scene. Then, according to user needs, by responding to the user's second input to any one of the at least one shooting methods, preview images of different magnification values ​​corresponding to the selected shooting method can be displayed in different display areas of the preview interface. In this way, after responding to the user's third input, the preview images with different magnification values ​​can be imaged separately to obtain at least one panoramic image. Then, based on the panoramic images with different magnification values, a target panoramic image that meets the diverse needs of users and has the effect of zooming in or out can be created, while increasing the visual interest of the panoramic image to the user.

[0331] Optionally, the second input includes a first sub-input and a second sub-input; the processor 1610 is further configured to determine at least one magnification value corresponding to the first shooting mode in response to a user's first sub-input of at least one magnification value in the first shooting mode;

[0332] The display unit 1606 is further configured to display preview images with different magnification values ​​in different display areas of the preview interface in response to a second sub-input of the user to the second control.

[0333] In this way, the user can select any one of the multiple shooting modes according to their own needs, and then select multiple magnification values ​​of the shooting mode. After determining the shooting mode and the magnification value corresponding to the shooting mode, by responding to the user's second sub-input to the second control, preview images with different magnification values ​​are displayed in different display areas of the preview interface. In this way, preview images with different magnification values ​​required by the user can be obtained according to user needs, thereby improving the flexibility of determining the preview image.

[0334] Optionally, the processor 1610 is further configured to, in response to a fourth input of the user to the third control, stitch the at least one panoramic image to obtain a target panoramic image.

[0335] In this way, by responding to the user's fourth input to the third control, at least one panoramic image can be directly stitched to obtain a target panoramic image. The target panoramic image thus obtained includes panoramic images shot at three magnification values, thereby creating a target panoramic image that meets the diverse needs of users and has a zooming-in or zooming-out effect, while increasing the user's visual interest in the panoramic image.

[0336] Optionally, the fourth input includes a third sub-input and a fourth sub-input; the display unit 1606 is further used to display at least one candidate type of the target panoramic image in response to the user's third sub-input to the fourth control; in response to the user's fourth sub-input to the first candidate type, display a target panoramic image generation interface of the first candidate type, wherein the target panoramic image generation interface includes at least one image editing track, the at least one image editing track corresponds to the at least one panoramic image one-to-one, each image editing track is used to place the panoramic image corresponding thereto, the first candidate type is any one of the at least one candidate type, and the first candidate type is a dynamic panoramic image or a static panoramic image;

[0337] The processor 1610 is further configured to edit the at least one panoramic image on the at least one image editing track to obtain a target panoramic image of the first candidate type.

[0338] In this way, by responding to the user's third sub-input to the fourth control, at least one candidate type of the target panoramic image can be displayed, and then the first candidate type is selected, and a target panoramic image generation interface of the first candidate type can be displayed. The target panoramic image generation interface includes at least one image editing track, and the target panoramic image of the first candidate type can be obtained by editing at least one panoramic image on at least one image editing track. In this way, different types of target panoramic images can be generated according to user needs, thereby improving the flexibility of generating target panoramic images.

[0339] Optionally, the third sub-input includes a fifth sub-input and a sixth sub-input; the display unit 1606 is further used to display an image editing interface in response to the user's fifth sub-input to the fourth control, wherein the image editing interface includes a fifth control, and the fifth control is used to determine the type of the target panoramic image; in response to the user's sixth sub-input to the fifth control, at least one candidate type of the target panoramic image is displayed.

[0340] In this way, by responding to the user's fifth sub-input to the fourth control, an image editing interface can be displayed, which can include a fifth control, and in response to the user's sixth sub-input to the fifth control, at least one candidate type of the target panoramic image can be accurately displayed.

[0341] Optionally, the processor 1610 is further configured to determine, in response to a fifth input of a user to a first interception control on a first image editing track, a first interception image of a first panoramic image on the first image editing track, wherein the first image editing track is any one of the at least one image editing track; determine, based on the position of the first interception control, a position of a second interception control in a second image editing track, wherein the second image editing track is an image editing track other than the first image editing track in the at least one image editing track; determine, according to the position of the second interception control in the second image editing track, a second interception image of a second panoramic image on the second image editing track;

[0342] The display unit 1606 is further configured to display the first intercepted image and the second intercepted image in a preview track of the target panoramic image generation interface of the first candidate type;

[0343] The processor 1610 is further configured to generate, in response to a sixth input of the user to a sixth control, a target panoramic image of the first candidate type based on the first captured image and the second captured image.

[0344] In this way, through the capture control in each image editing track, the panoramic image placed on each image editing track can be captured to obtain the corresponding captured image, and then the target panoramic image of the first candidate type can be generated based on the corresponding captured image of each image editing track. In this way, panoramic images with different magnification values ​​can be generated according to user needs, thereby enhancing the visual interest of the panoramic image.

[0345] Optionally, the first interception control includes a first sub-interception control and a second sub-interception control, the second interception control includes a third sub-interception control and a fourth sub-interception control, and the at least one image editing track is arranged in parallel from top to bottom; the processor 1610 is also used to, when the first image editing track is in the first position, the first sub-interception control is located at the beginning position of the first panoramic image, the second sub-interception control is located at the first position of the first panoramic image, the position of the third sub-interception control in the second panoramic image is the same as the first position, and the fourth sub-interception control is located at the end position of the second panoramic image, and the first position is located between the beginning position and the end position of the first panoramic image; when the first image editing track is in the middle position, the first sub-interception control is located at the second position of the first panoramic image, the second sub-interception control is located at the third position of the first panoramic image, and the third sub-interception control of the first target image editing track is located at the beginning position of the first target panoramic image. , the fourth sub-intercept control of the first target image editing track is located at the same position as the second position in the first target panoramic image, the third sub-intercept control of the second target image editing track is located at the same position as the third position in the second target panoramic image, and the fourth sub-intercept control of the second target image editing track is located at the end position of the second target panoramic image; wherein, in the first panoramic image, the third position is located after the second position, and the second position and the third position are both located between the beginning position and the end position of the first panoramic image; the second image editing track includes the first target image editing track and the second target image editing track, the first target panoramic image is a panoramic image on the first target image editing track, and the second target panoramic image is a panoramic image on the second target image editing track; the first target image editing track is located in the upper sequence of the first image editing track, and the second target image editing track is located in the lower sequence of the first image editing track.

[0346] In this way, the position of the second capture control in the second image editing track can be accurately determined by the position of the first capture control.

[0347] Optionally, when the first candidate type is a dynamic panoramic image, in the preview track, a transition control is included between each two adjacent intercepted images in the first intercepted image and the second intercepted image; the display unit 1606 is further configured to display at least one candidate transition effect in response to a seventh input of the user to the first transition control, wherein the first transition control is any one of the at least one transition control;

[0348] Processor 1610 is also used to determine, in response to the user's eighth input to the first candidate transition effect, a target transition effect between the two captured images corresponding to the first transition control, the first candidate transition effect being any one of the at least one candidate transition effect; and to generate, in response to the user's sixth input to the sixth control, a dynamic panoramic image based on the first captured image, the second captured image and the target transition effect.

[0349] In this way, by setting a transition effect between two adjacent screenshot images, the interest of the target panoramic image is further increased.

[0350] Optionally, the processor 1610 is further configured to update the position of the first image editing track in response to a ninth input of the user to the first image editing track.

[0351] In this way, according to user needs, the position of the first image editing track can be updated in response to the user's ninth input to the first image editing track, thereby improving the flexibility of the position of the image editing track.

[0352] Optionally, the processor 1610 is further configured to determine a focus object in preview images of different magnification values;

[0353] The display unit 1606 is further configured to, when the focus object in the preview images of different magnification values ​​has been determined, image the preview images of different magnification values ​​respectively in response to a third input of the user to obtain at least one panoramic image.

[0354] In this way, by determining the focus object in the preview images with different magnification values, and then imaging the preview images with different magnification values ​​respectively, at least one panoramic image is obtained. In this way, the panoramic images with different magnification values ​​containing the focus object required by the user can be obtained, thereby improving the diversity of the panoramic images containing the focus object.

[0355] Optionally, the processor 1610 is further configured to detect subjects in preview images with different magnification values ​​based on a focus algorithm; and determine the subjects in the preview images with different magnification values ​​as focus objects of the preview images with different magnification values, respectively.

[0356] In this way, the subjects in the preview images with different magnification values ​​detected by the focus algorithm are respectively determined as the focus objects of the preview images with different magnification values. In this way, the focus objects in the preview images with different magnification values ​​can be quickly determined, thereby improving the efficiency of determining the focus objects in the preview images with different magnification values.

[0357] Optionally, processor 1610 is further configured to, in response to a user's tenth input to a first object in preview images of different magnification values, determine the first object that performs the tenth input in the preview images of different magnification values ​​as a focus object of the preview images of different magnification values.

[0358] In this way, the user can manually select the focus object in the preview image of each magnification value according to needs, avoiding the problem that the focus object selected by automatic focus is not the focus object required by the user, thereby improving the accuracy of focus object selection.

[0359] Optionally, processor 1610 is further used to determine, in response to an eleventh input by a user for a second object in a first preview image of a first magnification value, the second object as a focus object of the first preview image; and determine, based on the focus object of the first preview image, a focus object in preview images of other magnification values ​​except the first preview image.

[0360] In this way, the user manually selects a focus object in the first preview image among preview images of different magnification values, and then the preview images of other magnification values ​​can automatically follow the focus object manually selected in the first preview image to determine the focus objects of the preview images of other magnification values. In this way, the user does not need to manually select a focus object in the preview image of each magnification value, thereby improving the efficiency of determining the focus object.

[0361] Optionally, processor 1610 is further used to map the first position information of the eleventh input to preview images of other magnification values ​​except the first preview image to obtain second position information; and determine the objects at the second position information in the preview images of the other magnification values ​​as focus objects of the preview images of the other magnification values.

[0362] In this way, the user manually selects a focus object in the first preview image among preview images of different magnification values, and then determines the second position information corresponding to the first position information in preview images of other magnification values ​​based on the first position information of the focus object in the first preview image, and then determines the objects at the second position information in the preview images of other magnification values ​​as the focus objects in the preview images of other magnification values, respectively. In this way, the user does not need to manually select a focus object in the preview images of each magnification value, thereby improving the efficiency of determining the focus object.

[0363] Optionally, processor 1610 is further used to identify the second object in preview images of other magnification values ​​except the first preview image; when it is determined that the second object is identified in the preview images of the other magnification values, the second object in the preview images of the other magnification values ​​is respectively determined as the focus object of the preview images of the other magnification values.

[0364] In this way, after the user manually selects a focus object in the first preview image among preview images with different magnification values, it can be detected in preview images of other magnification values ​​whether there is the focus object selected in the first preview image. If there is, the focus object selected in the first preview image among preview images of other magnification values ​​can be used as the focus object of preview images of other magnification values. In this way, the user does not need to manually select a focus object in the preview image of each magnification value, thereby improving the efficiency of determining the focus object.

[0365] Optionally, processor 1610 is further used to, when it is determined that the object at the second position information in the preview image of the other magnification value is not the focus object desired by the user, or when the second object is not recognized in the preview image of the other magnification value, use the object at the center position of the preview image of the other magnification value as the focus object of the preview image of the other magnification value.

[0366] In this way, after the second object is determined as the focus object of the first preview image, if the object at the second position information in the preview images of other magnification values ​​is not the focus object required by the user, or the second object is not recognized in the preview images of other magnification values, the object at the center position of the preview images of other magnification values ​​can be used as the focus object of the preview images of other magnification values, thereby improving the flexibility of determining the focus object.

[0367] Optionally, the different display areas of the preview interface all include filter controls, and the display unit 1606 is further configured to display at least one candidate filter effect in response to a twelfth input of the user to the filter control in the first display area, where the first display area is any one of the different display areas of the preview interface;

[0368] Processor 1610 is also used to add a filter effect corresponding to the first candidate filter effect to the preview image displayed in the first display area in response to the user's thirteenth input to the first candidate filter effect, where the first candidate filter effect is any one of the at least one candidate filter effect.

[0369] In this way, in response to the user's twelfth input to the filter control in the first display area, at least one candidate filter effect is displayed, and then in response to the user's thirteenth input to the first candidate filter effect, a filter effect corresponding to the first candidate filter effect is added to the preview image displayed in the first display area. In this way, the filter effect required by the user can be added to the preview image displayed in the display area, and the panoramic image obtained in this way also has a filter, and thus the target panoramic image also has a filter, which further enhances the visual interest of the target panoramic image.

[0370] It should be understood that in the embodiment of the present application, the input unit 1604 may include a graphics processor (Graphics Processing Unit, GPU) 16041 and a microphone 16042, and the graphics processor 16041 processes the image data of the static picture or video obtained by the image capture device (such as a color camera) in the video capture mode or the image capture mode. The display unit 1606 may include a display panel 16061, and the display panel 16061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1607 includes a touch panel 16071 and at least one of other input devices 16072. The touch panel 16071 is also called a touch screen. The touch panel 16071 may include two parts: a touch detection device and a touch controller. Other input devices 16072 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 repeated here.

[0371] The memory 1609 can be used to store software programs and various data. The memory 1609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1609 may include a volatile memory or a non-volatile memory, or the memory 1609 may include both volatile and non-volatile memories. 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 (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1609 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0372] The processor 1610 may include one or more processing units; optionally, the processor 1610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1610.

[0373] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned panoramic image generation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0374] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0375] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned panoramic image generation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0376] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0377] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the panoramic image generation method embodiment as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0378] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the 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 reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

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

[0380] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for generating a panoramic image, characterized in that: The method comprises: In the case of being in the panoramic shooting mode, in response to a first input of the user to the first control, at least one shooting mode is displayed, each shooting mode includes shooting a panoramic image of the shooting scene by using at least one magnification value; In response to a second input of the user on the first shooting mode, preview images with different magnification values ​​are displayed in different display areas of the preview interface, respectively, wherein the first shooting mode is any one of the at least one shooting mode; and the preview images with different magnification values ​​are preview images acquired based on at least one magnification value in the first shooting mode; In response to a third input from the user, imaging the preview images with different magnification values ​​respectively to obtain at least one panoramic image; In response to a fourth input of the user, a target panoramic image is obtained based on the at least one panoramic image.

2. The method according to claim 1, characterized in that The second input includes a first sub-input and a second sub-input; The method of displaying preview images with different magnification values ​​in different display areas of the preview interface in response to the user's second input of the first shooting mode comprises: In response to a first sub-input of at least one magnification value in a first shooting mode by a user, determining at least one magnification value corresponding to the first shooting mode; In response to the second sub-input of the user to the second control, preview images with different magnification values ​​are respectively displayed in different display areas of the preview interface.

3. The method according to claim 1, characterized in that The step of obtaining a target panoramic image based on the at least one panoramic image in response to a fourth input of the user includes: In response to a fourth input of the user to the third control, the at least one panoramic image is stitched to obtain a target panoramic image.

4. The method according to claim 1, characterized in that: The fourth input includes a third sub-input and a fourth sub-input; The step of obtaining a target panoramic image based on the at least one panoramic image in response to a fourth input of the user includes: In response to a third sub-input of the user to a fourth control, displaying at least one candidate type of the target panoramic image; In response to a fourth sub-input of the user for a first candidate type, a target panoramic image generation interface of the first candidate type is displayed, wherein the target panoramic image generation interface of the first candidate type includes at least one image editing track, the at least one image editing track corresponds to the at least one panoramic image in a one-to-one manner, each image editing track is used to place a panoramic image corresponding thereto, the first candidate type is any one of the at least one candidate type, and the first candidate type is a dynamic panoramic image or a static panoramic image; The at least one panoramic image on the at least one image editing track is edited to obtain a target panoramic image of the first candidate type.

5. The method according to claim 4, characterized in that The third sub-input includes a fifth sub-input and a sixth sub-input; The step of displaying at least one candidate type of the target panoramic image in response to the user's third sub-input to the fourth control comprises: In response to a fifth sub-input of the user to the fourth control, displaying an image editing interface, wherein the image editing interface includes a fifth control, and the fifth control is used to determine the type of the target panoramic image; In response to a sixth sub-input of the user to the fifth control, at least one candidate type of the target panoramic image is displayed.

6. The method according to claim 4, characterized in that The step of editing the at least one panoramic image on the at least one image editing track to obtain a target panoramic image of the first candidate type includes: In response to a fifth input of a user to a first cropping control on a first image editing track, determining a first cropped image of a first panoramic image on the first image editing track, wherein the first image editing track is any one of the at least one image editing track; Determining a position of a second interception control in a second image editing track based on the position of the first interception control, wherein the second image editing track is another image editing track in the at least one image editing track except the first image editing track; determining a second captured image of the second panoramic image on the second image editing track according to a position of a second captured control in the second image editing track; Displaying the first captured image and the second captured image in a preview track of a target panoramic image generation interface of the first candidate type; In response to a sixth input of the user to a sixth control, a target panoramic image of the first candidate type is generated based on the first captured image and the second captured image.

7. The method according to claim 6, characterized in that The first interception control includes a first sub-interception control and a second sub-interception control, the second interception control includes a third sub-interception control and a fourth sub-interception control, and the at least one image editing track is arranged in parallel from top to bottom; The determining the position of the second interception control in the second image editing track based on the position of the first interception control includes: In the case where the first image editing track is located at the first position, the first sub-intercept control is located at the beginning position of the first panoramic image, the second sub-intercept control is located at the first position of the first panoramic image, the position of the third sub-intercept control in the second panoramic image is the same as the first position, the fourth sub-intercept control is located at the end position of the second panoramic image, and the first position is located between the beginning position and the end position of the first panoramic image; In the case where the first image editing track is located at the middle position, the first sub-intercept control is located at the second position of the first panoramic image, the second sub-intercept control is located at the third position of the first panoramic image, the third sub-intercept control of the first target image editing track is located at the beginning position of the first target panoramic image, the fourth sub-intercept control of the first target image editing track is located at the same position as the second position in the first target panoramic image, the third sub-intercept control of the second target image editing track is located at the same position as the third position in the second target panoramic image, and the fourth sub-intercept control of the second target image editing track is located at the end position of the second target panoramic image; Among them, in the first panoramic image, the third position is located after the second position, and the second position and the third position are both located between the beginning position and the end position of the first panoramic image; the second image editing track includes the first target image editing track and the second target image editing track, the first target panoramic image is a panoramic image on the first target image editing track, and the second target panoramic image is a panoramic image on the second target image editing track; the first target image editing track is located in the upper sequence of the first image editing track, and the second target image editing track is located in the lower sequence of the first image editing track.

8. The method according to claim 6, characterized in that In the case where the first candidate type is a dynamic panoramic image, in the preview track, a transition control is included between each two adjacent intercepted images in the first intercepted images and the second intercepted images; Before generating the target panoramic image of the first candidate type based on the first captured image and the second captured image in response to a sixth input of the user to the sixth control, the method further includes: In response to a seventh input of the user to the first transition control, displaying at least one candidate transition effect, wherein the first transition control is any one of the at least one transition control; In response to an eighth input of the user on a first candidate transition effect, determining a target transition effect between two captured images corresponding to the first transition control, wherein the first candidate transition effect is any one of the at least one candidate transition effect; The step of generating, in response to a sixth input of the user to a sixth control, a target panoramic image of the first candidate type based on the first captured image and the second captured image comprises: In response to a sixth input of the user to a sixth control, a dynamic panoramic image is generated based on the first captured image, the second captured image, and the target transition effect.

9. The method according to claim 4, characterized in that After displaying at least one image editing track, the method further includes: In response to a ninth input of the user to the first image editing track, the position of the first image editing track is updated.

10. The method according to claim 1, characterized in that Before respectively imaging the preview images with different magnification values ​​to obtain at least one panoramic image in response to the third input of the user, the method further includes: Determining the focused object in the preview image at different magnification values; The method of imaging preview images with different magnification values ​​respectively in response to the third input of the user to obtain at least one panoramic image includes: When the focus objects in the preview images of different magnification values ​​have been determined, in response to a third input of the user, the preview images of different magnification values ​​are imaged respectively to obtain at least one panoramic image.

11. The method according to claim 10, characterized in that The determining of the focus object in the preview images with different magnification values ​​includes: In response to an eleventh input by a user for a second object in the first preview image of the first magnification value, determining the second object as a focus object of the first preview image; According to the focus object of the first preview image, focus objects in preview images of other magnification values ​​except the first preview image are determined.

12. The method according to claim 11, characterized in that The determining, based on the focus object of the first preview image, the focus object in preview images of other magnification values ​​other than the first preview image, comprises: According to the first position information of the eleventh input, the first position information is respectively mapped to preview images of other magnification values ​​except the first preview image to obtain second position information; The objects at the second position information in the preview images of the other magnification values ​​are respectively determined as the focus objects of the preview images of the other magnification values.

13. The method according to claim 12, characterized in that The determining, based on the focus object of the first preview image, the focus object in preview images of other magnification values ​​other than the first preview image, comprises: identifying the second object in preview images of other magnification values ​​except the first preview image; When the second object is recognized in the preview images of the other magnification values, the second object in the preview images of the other magnification values ​​is determined as a focus object of the preview images of the other magnification values.

14. The method according to claim 12 or 13, characterized in that In a case where it is determined that the object at the second position information in the preview image of the other magnification value is not the focus object required by the user, or the second object is not recognized in the preview image of the other magnification value, the method further includes: The object at the center position of the preview image of the other magnification value is made the focus object of the preview image of the other magnification value.

15. A panoramic image generating device, characterized in that: The device comprises: A first display module is used to display at least one shooting mode in response to a first input of a user to a first control when in a panoramic shooting mode, each shooting mode includes shooting a panoramic image of a shooting scene using at least one magnification value; a second display module, configured to display preview images with different magnification values ​​in different display areas of the preview interface in response to a second input of the user to the first shooting mode, wherein the first shooting mode is any one of the at least one shooting mode; and the preview images with different magnification values ​​are preview images acquired based on at least one magnification value in the first shooting mode; A first determining module is used to respectively image the preview images with different magnification values ​​in response to a third input of the user to obtain at least one panoramic image; The second determining module is configured to obtain a target panoramic image based on the at least one panoramic image in response to a fourth input from the user.

16. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the panoramic image generation method according to any one of claims 1 to 14 are implemented.