Dynamic photo shooting method and device, electronic equipment and medium

By superimposing fisheye special effects in the cover image and video of dynamic photos, the problem of single dynamic photo shooting mode is solved, and rich visual effects and natural and exaggerated dynamic photo experience is achieved.

CN120416653APending Publication Date: 2025-08-01VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510702697.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-28
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

The existing dynamic photo shooting mode leads to a relatively single photo presentation effect, lacking diversity and interactivity, unable to effectively highlight the subject and poor dynamic adaptability.

Method used

By superimposing fisheye special effects in the cover image and video of dynamic photos, using the distortion center point and distortion coefficient for image processing, the rich visual effects of dynamic photos are achieved, and dynamic photos with fisheye special effects are directly generated during the shooting preview stage.

Benefits of technology

It realizes the natural exaggerated visual effect of dynamic photos, enhancing the visual tension and fun of dynamic photos, and users can get a rich visual experience without post-editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120416653A_ABST
    Figure CN120416653A_ABST
Patent Text Reader

Abstract

The invention discloses a dynamic photo shooting method and device, electronic equipment and a medium, and belongs to the technical field of camera shooting. The method comprises the following steps: receiving a first input for a shooting preview interface; in response to the first input, taking a dynamic photo, the dynamic photo comprising a cover image and a video; the cover image and the video both present fisheye special effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of camera technology, and particularly relates to a method, device, electronic device and medium for taking dynamic photos. Background Art

[0002] With the continuous improvement of the performance of the electronic device camera, users have generally used the shooting function of the electronic device camera to record life, and gradually extended from static image recording to "combination of static and dynamic" image expression.

[0003] Currently, as a format that combines static photos and dynamic clips, dynamic photos can enrich the image expression method. However, due to the use of a fixed shooting mode for shooting dynamic photos, the presentation effect of dynamic photos is relatively single. Summary of the Invention

[0004] The purpose of the embodiments of this application is to provide a method, device, electronic device and medium for taking dynamic photos. By adding a fisheye effect to the cover image and video of the dynamic photo, the cover image and the associated video of the dynamic photo present a rich visual effect. Users can directly obtain a special-effect dynamic photo with a fisheye effect at the shooting stage without post-editing, and can achieve a natural and exaggerated visual effect of the dynamic photo.

[0005] In a first aspect, the embodiments of this application provide a method for taking dynamic photos. The method includes: receiving a first input to the shooting preview interface; in response to the first input, taking a dynamic photo, where the dynamic photo includes a cover image and a video; both the cover image and the video present a fisheye effect.

[0006] In some embodiments of this application, before receiving the first input to the shooting preview interface, it further includes: receiving a fifth input to the shooting preview interface; in response to the fifth input, starting the fisheye effect shooting mode, adding a fisheye effect to the image captured by the camera, displaying each frame of the image with the fisheye effect added on the shooting preview interface, and continuously caching each frame of the image with the fisheye effect added, where the image includes a preview image or a cached image.

[0007] In some embodiments of this application, before receiving the first input to the shooting preview interface, it further includes: receiving a second input to the shooting preview interface; in response to the second input, starting the fisheye effect shooting mode, adding a fisheye effect to each frame of the preview image captured by the camera, displaying each frame of the preview image with the fisheye effect added on the shooting preview interface, and continuously caching each frame of the preview image with the fisheye effect added.

[0008] In some embodiments of the present application, taking a dynamic photo includes: performing image processing on a preview image with a fisheye effect added and cached at a reference moment to generate a cover image; performing video encoding on all preview images with a fisheye effect added and cached in a first time period and a second time period to generate a video; wherein the first time period is a first duration before the reference moment, and the second time period is a second duration after the reference moment.

[0009] In some embodiments of the present application, after performing video encoding on all preview images with a fisheye effect added and cached in the first time period and the second time period to generate a video, it further includes: performing encapsulation processing on the video and the cover image to generate a dynamic photo; or, associatively storing the video and the cover image, wherein the dynamic photo includes the associatively stored video and cover image.

[0010] In some embodiments of the present application, after receiving a first input to the shooting preview interface, it further includes: adding a fisheye effect to each frame of the preview image captured by the camera, and displaying each frame of the preview image with the fisheye effect added on the shooting preview interface.

[0011] In some embodiments of the present application, before receiving a second input to the shooting preview interface, the method further includes: receiving a selection input to the live mode control in the shooting preview interface; in response to the selection input, displaying a fisheye effect control in the shooting preview interface; receiving a second input to the shooting preview interface includes: receiving a second input to the fisheye effect control.

[0012] In some embodiments of the present application, adding a fisheye effect to the preview image captured by the camera includes: determining a distortion center point; based on the distortion center point, adding a fisheye effect to the preview image captured by the camera; wherein the distortion center point includes: the center point of the preview image captured by the camera, the center point of the foreground object in the preview image captured by the camera, or the coordinate point of the input position of the user's distortion center point selection input on the shooting preview interface.

[0013] In some embodiments of the present application, determining the distortion center point includes: in the case of meeting a first condition, determining the center point of the preview image captured by the camera as the distortion center point; wherein the first condition includes: the preview image captured by the camera does not include a foreground object; or, the preview image captured by the camera includes at least two foreground objects; or, no user's distortion center point selection input is received on the shooting preview interface; or, the preview image captured by the camera includes at least two foreground objects, and no user's foreground object selection input is received on the shooting preview interface.

[0014] In some embodiments of the present application, determining the distortion center point includes: identifying the center point of the foreground object in the preview image collected by the camera; and determining the center point of the foreground object as the distortion center point of the preview image collected by the camera.

[0015] In some embodiments of the present application, before identifying the center point of the foreground object in the preview image collected by the camera, the method further includes: performing foreground object recognition on the preview image collected by the camera to determine the foreground object in the preview image collected by the camera.

[0016] In some embodiments of the present application, before identifying the center point of the foreground object in the preview image, the method further includes: receiving a third input to the shooting preview interface; in response to the third input, determining the foreground object in the preview image according to the input information of the third input; wherein the input information includes the input position or the input trajectory.

[0017] In some embodiments of the present application, after determining the foreground object in the preview image, the method further includes:

[0018] displaying a foreground object frame on the foreground object, where the foreground object frame is used to mark the position of the foreground object and determine the distortion center point;

[0019] Determining the center point of the foreground object as the distortion center point of the preview image collected by the camera includes:

[0020] determining the center point of the foreground object frame as the center point of the foreground object;

[0021] determining the center point of the foreground object as the distortion center point of the preview image collected by the camera.

[0022] In some embodiments of the present application, when the distortion center point is the center point of the preview image collected by the camera, the method further includes:

[0023] receiving a fourth input to the shooting preview interface in the shooting preview state;

[0024] in response to the fourth input, updating the distortion center point to the coordinate point of the input position of the fourth input.

[0025] In some embodiments of the present application, adding a fisheye effect to the preview image collected by the camera based on the distortion center point includes:

[0026] adding a fisheye effect to the preview image collected by the camera according to the distortion coefficient and the distortion center point.

[0027] In some embodiments of the present application, after adding a fisheye effect to the preview image collected by the camera according to the distortion coefficient and the distortion center point, the method further includes:

[0028] In the shooting preview state, receive parameter adjustment input for the distortion degree adjustment control in the shooting preview interface;

[0029] Update the distortion coefficient according to the input information of the parameter adjustment input.

[0030] In some embodiments of the present application, adding a fish-eye effect to each frame of preview image collected by the camera, displaying each frame of preview image with the fish-eye effect added in the shooting preview interface, and continuously caching each frame of preview image with the fish-eye effect added, including:

[0031] Adding a fish-eye effect and a first sticker effect to each frame of preview image collected by the camera, displaying each frame of preview image with the fish-eye effect and the first sticker effect added in the shooting preview interface, and continuously caching each frame of preview image with the fish-eye effect and the first sticker effect added.

[0032] In some embodiments of the present application, adding a first sticker effect to each frame of preview image collected by the camera, including:

[0033] Adding a first sticker effect to each frame of preview image collected by the camera when the second condition is met;

[0034] Wherein, the second condition includes:

[0035] The preview image collected by the camera does not include a foreground object;

[0036] Or, the preview image collected by the camera includes at least two foreground objects;

[0037] Or, no input for selecting the distortion center point is received from the user on the shooting preview interface;

[0038] Or, the preview image collected by the camera includes at least two foreground objects, and no input for selecting a foreground object is received from the user on the shooting preview interface.

[0039] In some embodiments of the present application, when the preview image collected by the camera includes a foreground object, adding a fish-eye effect and a first sticker effect to each frame of preview image collected by the camera, displaying each frame of preview image with the fish-eye effect and the first sticker effect added in the shooting preview interface, and continuously caching each frame of preview image with the fish-eye effect and the first sticker effect added, including:

[0040] Adding a fish-eye effect and a first sticker effect to each frame of preview image collected by the camera, adding a second sticker effect at the position corresponding to the feature points of the foreground object, displaying each frame of preview image with the fish-eye effect, the first sticker effect and the second sticker effect added in the shooting preview interface, and continuously caching each frame of preview image with the fish-eye effect, the first sticker effect and the second sticker effect added.

[0041] In some embodiments of the present application, when the preview image captured by the camera includes a foreground object, a fisheye effect is added to each frame of the preview image captured by the camera, and each frame of the preview image with the fisheye effect added is displayed on the shooting preview interface, and each frame of the preview image with the fisheye effect added is continuously cached, including:

[0042] A fisheye effect is added to each frame of the preview image captured by the camera, and a second sticker effect is added at the position corresponding to the feature points of the foreground object. Each frame of the preview image with the fisheye effect and the second sticker effect added is displayed on the shooting preview interface, and each frame of the preview image with the fisheye effect and the second sticker effect added is continuously cached.

[0043] In some embodiments of the present application, the shooting preview interface includes at least one sticker effect option;

[0044] The method further includes:

[0045] Receiving a selection input from the user for at least one sticker effect option;

[0046] In response to the selection input, updating the first sticker effect to a third sticker effect;

[0047] Wherein, the third sticker effect is the sticker effect indicated by the sticker effect option selected by the selection input.

[0048] In a second aspect, an embodiment of the present application provides a dynamic photo shooting device, which includes a receiving module and a processing module, wherein: the receiving module is used to receive a first input to the shooting preview interface; the processing module is used to shoot a dynamic photo in response to the first input received by the receiving module, and the dynamic photo includes a cover image and a video; both the cover image and the video present a fisheye effect.

[0049] In some embodiments of the present application, before the receiving module receives the first input to the shooting preview interface, it further includes: receiving a fifth input to the shooting preview interface; in response to the fifth input, starting the fisheye effect shooting mode, adding a fisheye effect to the image captured by the camera, and displaying each frame of the image with the fisheye effect added on the shooting preview interface, and continuously caching each frame of the image with the fisheye effect added, where the image includes a preview image or a cached image.

[0050] In some embodiments of the present application, before the receiving module receives the first input to the shooting preview interface, it is further used to receive a second input to the shooting preview interface;

[0051] The processing module is further configured to, in response to the second input received by the receiving module, start the fisheye effect shooting mode, add the fisheye effect to each frame of preview image collected by the camera, display each frame of preview image with the fisheye effect added in the shooting preview interface, and continuously cache each frame of preview image with the fisheye effect added.

[0052] In some embodiments of the present application, the processing module is specifically configured to:

[0053] Perform image processing on the preview image with the fisheye effect added cached at the reference moment to generate a cover image;

[0054] Perform video encoding on all the preview images with the fisheye effect added cached in the first time period and the second time period to generate a video;

[0055] Wherein, the first time period is the first duration before the reference moment, and the second time period is the second duration after the reference moment.

[0056] In some embodiments of the present application, the processing module is further configured to, after performing video encoding on all the preview images with the fisheye effect added cached in the first time period and the second time period to generate a video, perform encapsulation processing on the video and the cover image to generate a live photo;

[0057] Alternatively, the processing module is further configured to, after performing video encoding on all the preview images with the fisheye effect added cached in the first time period and the second time period to generate a video, store the video and the cover image in an associated manner, wherein the live photo includes the video and the cover image stored in an associated manner.

[0058] In some embodiments of the present application, the processing module is further configured to, after receiving the first input to the shooting preview interface, add the fisheye effect to each frame of preview image collected by the camera, and display each frame of preview image with the fisheye effect added in the shooting preview interface.

[0059] In some embodiments of the present application, the receiving module is further configured to receive a selection input to the live mode control in the shooting preview interface before receiving the second input to the shooting preview interface;

[0060] The device further includes: a display module;

[0061] The display module, in response to the selection input received by the receiving module, displays a fisheye effect control in the shooting preview interface;

[0062] The receiving module is specifically configured to receive the second input to the fisheye effect control.

[0063] In some embodiments of the present application, the processing module is specifically configured to:

[0064] Determine the distortion center point;

[0065] Add a fisheye effect to the preview image captured by the camera based on the distortion center point;

[0066] Among them, the distortion center point includes: the center point of the preview image captured by the camera, the center point of the foreground object in the preview image captured by the camera, or the coordinate point of the input position input by the user for selecting the distortion center point on the shooting preview interface.

[0067] In some embodiments of the present application, the processing module is specifically configured to determine the center point of the preview image captured by the camera as the distortion center point when the first condition is met;

[0068] Among them, the first condition includes:

[0069] The preview image captured by the camera does not include a foreground object;

[0070] Or, the preview image captured by the camera includes at least two foreground objects;

[0071] Or, no input for selecting the distortion center point by the user on the shooting preview interface is received;

[0072] Or, the preview image captured by the camera includes at least two foreground objects, and no input for selecting a foreground object by the user on the shooting preview interface is received.

[0073] In some embodiments of the present application, the processing module is specifically configured to:

[0074] Identify the center point of the foreground object in the preview image captured by the camera;

[0075] Determine the center point of the foreground object as the distortion center point of the preview image captured by the camera.

[0076] In some embodiments of the present application, the processing module is further configured to perform foreground object recognition on the preview image captured by the camera before identifying the center point of the foreground object in the preview image captured by the camera, and determine the foreground object in the preview image captured by the camera.

[0077] In some embodiments of the present application, the receiving module is further configured to receive a third input to the shooting preview interface before identifying the center point of the foreground object in the preview image;

[0078] The processing module is further configured to, in response to the third input received by the receiving module, determine the foreground object in the preview image according to the input information of the third input;

[0079] Among them, the input information includes the input position or the input trajectory.

[0080] In some embodiments of the present application, the device further includes a display module;

[0081] The display module is configured to, after determining the foreground object in the preview image, display a foreground object frame on the foreground object, where the foreground object frame is used to mark the position of the foreground object and determine the distortion center point;

[0082] The processing module is specifically configured to determine the center point of the foreground object frame as the center point of the foreground object;

[0083] The processing module is specifically configured to determine the center point of the foreground object as the distortion center point of the preview image collected by the camera.

[0084] In some embodiments of the present application, the receiving module is further configured to, when the distortion center point is the center point of the preview image collected by the camera, receive a fourth input to the shooting preview interface in the shooting preview state;

[0085] The processing module is further configured to, in response to the fourth input received by the receiving module, update the distortion center point to the coordinate point of the input position of the fourth input.

[0086] In some embodiments of the present application, the processing module is specifically configured to add a fish-eye effect to the preview image collected by the camera according to the distortion coefficient and the distortion center point.

[0087] In some embodiments of the present application, the receiving module is further configured to, after adding a fish-eye effect to the preview image collected by the camera according to the distortion coefficient and the distortion center point, receive a parameter adjustment input to the distortion degree adjustment control in the shooting preview interface in the shooting preview state;

[0088] The processing module is further configured to update the distortion coefficient according to the input information of the parameter adjustment input.

[0089] In some embodiments of the present application, the processing module is specifically configured to add a fish-eye effect and a first sticker effect to each frame of the preview image collected by the camera, display each frame of the preview image with the fish-eye effect and the first sticker effect added in the shooting preview interface, and continuously cache each frame of the preview image with the fish-eye effect and the first sticker effect added.

[0090] In some embodiments of the present application, the processing module is specifically configured to add a first sticker effect to each frame of the preview image collected by the camera when a second condition is satisfied;

[0091] Wherein, the second condition includes:

[0092] The preview image collected by the camera does not include a foreground object;

[0093] Or, the preview image collected by the camera includes at least two foreground objects;

[0094] Or, no input for selecting the distortion center point from the user is received on the shooting preview interface;

[0095] Or, the preview image captured by the camera includes at least two foreground objects, and no input for selecting the foreground object from the user is received on the shooting preview interface.

[0096] In some embodiments of the present application, when the preview image captured by the camera includes a foreground object, the processing module is specifically configured to add a fish-eye special effect and a first sticker special effect to each frame of the preview image captured by the camera, add a second sticker special effect at the position corresponding to the feature points of the foreground object, display each frame of the preview image with the fish-eye special effect, the first sticker special effect and the second sticker special effect added on the shooting preview interface, and continuously cache each frame of the preview image with the fish-eye special effect, the first sticker special effect and the second sticker special effect added.

[0097] In some embodiments of the present application, when the preview image captured by the camera includes a foreground object, the processing module is specifically configured to add a fish-eye special effect to each frame of the preview image captured by the camera, add a second sticker special effect at the position corresponding to the feature points of the foreground object, display each frame of the preview image with the fish-eye special effect and the second sticker special effect added on the shooting preview interface, and continuously cache each frame of the preview image with the fish-eye special effect and the second sticker special effect added.

[0098] In some embodiments of the present application, the shooting preview interface includes at least one sticker special effect option;

[0099] The receiving module is further configured to receive a selection input from the user for at least one sticker special effect option;

[0100] The processing module is further configured to update the first sticker special effect to a third sticker special effect in response to the selection input received by the receiving module;

[0101] Wherein, the third sticker special effect is the sticker special effect indicated by the sticker special effect option selected by the selection input.

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

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

[0104] Fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run programs or instructions to implement the method described in the first aspect.

[0105] Sixth 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.

[0106] In an embodiment of the present application, a first input to a shooting preview interface is received. In response to the first input, a dynamic photo is taken, and the dynamic photo includes a cover image and a video, both of which present a fisheye effect. In this solution, by superimposing the fisheye effect on the cover image and the video of the dynamic photo, the cover image of the dynamic photo and the associated video present a rich visual effect. Without post-editing, the user can directly obtain a special-effect dynamic photo with a fisheye effect during the shooting stage, achieving a natural and exaggerated visual effect of the dynamic photo. BRIEF DESCRIPTION OF THE DRAWINGS

[0107] Figure 1 It is a schematic flowchart of a dynamic photo shooting method provided by some embodiments of the present application;

[0108] Figure 2 It is a schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0109] Figure 3A It is a schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0110] Figure 3B It is a schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0111] Figure 4 It is a schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0112] Figure 5A It is a schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0113] Figure 5B It is a schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0114] Figure 5C It is a schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0115] Figure 6 It is a schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0116] Figure 7ASchematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0117] Figure 7B Schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0118] Figure 8 Schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0119] Figure 9A Schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0120] Figure 9B Schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0121] Figure 10A Schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0122] Figure 10B Schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0123] Figure 11 Schematic diagram of a dynamic photo generation process provided by some embodiments of the present application;

[0124] Figure 12 Schematic diagram of a shooting preview interface provided by some embodiments of the present application;

[0125] Figure 13 Schematic flow chart of a dynamic photo shooting method provided by some embodiments of the present application;

[0126] Figure 14 Schematic diagram of the structure of a dynamic photo shooting device provided by some embodiments of the present application;

[0127] Figure 15 Schematic diagram of the structure of an electronic device provided by some embodiments of the present application;

[0128] Figure 16 Schematic diagram of the hardware structure of an electronic device provided by some embodiments of the present application. Detailed implementation manners

[0129] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application belong to the scope protected by the present application.

[0130] The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances, so that the embodiments of this application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same category, and do not limit the number of objects. For example, the first object can be one or more. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / ", generally indicates an "or" relationship between the associated objects before and after.

[0131] The terms "at least one (item)", "at least one of", etc. in the description and claims of this application refer to any one, any two or more combinations of the objects it contains. For example, at least one (item) of a, b, and c can represent: "a", "b", "c", "a and b", "a and c", "b and c", and "a, b, and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" means two or more, and its meaning is similar to that of "at least one (item)".

[0132] The identifiers in this application are words, symbols, images, etc. used to indicate information, and can use controls or other containers as the carriers for displaying information, including but not limited to text identifiers, symbol identifiers, and image identifiers.

[0133] Control: It refers to a graphical element that can be directly operated or perceived by the user during the interaction process, used to receive user input, trigger functions, or display real-time information. It is the interaction bridge between the user and the device or application function, and realizes instruction transmission and status feedback through a visual form.

[0134] Dynamic Photo: A dynamic photo generally includes a static cover image and a short video. A dynamic photo can be understood as a data set composed of a static cover image and a short video. The static cover image and the short video can be regarded as a whole to understand the data composition of the dynamic photo. A two-way pointer is established between the static cover image and the short video through a lightweight data format or an index file of Extensible Markup Language (XML) to associate the data structures of the static cover image and the short video. Users can play the short video by operating on the static image, such as the common long-press operation. For example, a general dynamic photo includes a static image in Joint Photographic Experts Group (JEPG) format and a video in Moving Picture Experts Group 4 (MP4) format that are stored associatively. A dynamic photo can also have other names, such as Live Photo, dynamic picture, live photo, etc. When users browse photos in the gallery or album, the first thing they see is this static cover image, which is equivalent to the home page or entrance of the short video, similar to the cover of a book or magazine. This static cover image provides a quick visual overview, allowing users to understand the theme or scene of the content without playing the short video. Therefore, the "cover image" not only technically identifies the static component of the entire dynamic photo but also provides a visual or interactive entrance in terms of user experience. If a user wants to delete a dynamic photo, both the static cover image and the short video that make up the dynamic photo will be deleted. Correspondingly, if a user wants to share a dynamic photo, the static cover image and the short video that make up the dynamic photo will be sent to the sharing destination together.

[0135] The process for an electronic device to generate a dynamic photo is as follows: When the dynamic photo function is enabled, the camera continuously sends the RAW format image data it captures to the Image Signal Processor (ISP) for image processing such as demosaicing, white balance calibration, noise reduction, sharpening, and dynamic range optimization to obtain RGB format image data. After converting the RGB format image data in the color space, YUV format image data can be obtained. Then, the YUV format image data is sent to the image data cache space for caching. The display module of the electronic device can obtain the cached YUV format image data from the image data cache space in real time, perform real-time rendering and display on the YUV format image data, and thus the preview image can be displayed in real time on the camera preview interface.

[0136] It should be noted that the above-mentioned image data cache space can be the memory of the electronic device or the video encoding buffer of the electronic device.

[0137] Interface: It refers to the graphical interaction layer that the user sees through the screen of an electronic device. That is, the "user interface (UI)", which is the media interface for interaction and information exchange between an application or an operating system and the user, and realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is the source code written in specific computer languages such as Java and XML. The interface source code is parsed and rendered on the electronic device and finally presented as content recognizable by the user. The common form of presentation of the user interface is the graphical user interface (GUI), which refers to the user interface related to computer operations displayed in a graphical way. It can be visual interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets (Web widget, Widget) displayed on the display screen of the electronic device.

[0138] Application: It refers to a computer program developed and run on an operating system to complete a certain or several specific tasks. The application runs in user mode, can interact with the user, and has a visual user interface.

[0139] Camera preview interface: It is the interface of the real-time viewfinder screen that the user sees through the device screen before taking a photo, and is the visual interaction area that is rendered in real time after the image data captured by the camera sensor is processed. It can be a GUI, on which visual interface elements such as buttons, navigation bars, and widgets can be displayed.

[0140] The dynamic photo shooting method provided by the embodiments of the present application can be applied to the scenario of shooting dynamic photos of people. Among them, a specific scenario is that the user uses an electronic device to take a dynamic photo of user B, and the user hopes that both the cover image and the video of the dynamic photo taken of user B present a fish-eye effect; another specific scenario is that the user uses an electronic device to take a group photo of dynamic photos of user B and user C at the same time, and the user hopes that both the cover image and the video of the dynamic photos taken of user B and user C present a fish-eye effect; and another specific scenario is that the user takes a self-portrait with the electronic device, that is, takes a dynamic photo including his own portrait, and the user hopes that his portrait in the taken dynamic photo presents a fish-eye effect.

[0141] It should be noted that the dynamic photo shooting method provided by the embodiments of the present application is not limited to the scenario of shooting dynamic photos of people, and can also be applied to scenarios such as shooting animals, shooting natural scenery, or shooting stage scenes. The dynamic photo shooting method provided by the embodiments of the present application can be applied to the scenario of self-portrait with a front camera or the scenario of shooting with a rear camera.

[0142] The execution subject of the dynamic photo shooting method provided by the embodiments of the present application may be a dynamic photo shooting device, which may be an electronic device, or a functional module or functional entity in the electronic device. Hereinafter, taking an electronic device executing the dynamic photo shooting method as an example, the dynamic photo shooting method provided by the embodiments of the present application will be described.

[0143] Next, with reference to the accompanying drawings, the dynamic photo shooting method provided by the embodiments of the present application will be described in detail through specific embodiments and their application scenarios.

[0144] Figure 1 It is a schematic flowchart of the dynamic photo shooting method provided by the embodiments of the present application. As Figure 1 shown, the dynamic photo shooting method may include the following steps 201 and 202:

[0145] Step 201: The electronic device receives a first input to the shooting preview interface.

[0146] In some embodiments of the present application, the above shooting preview interface may include a toolbar, a preview window, a camera mode option, an album quick control, a shooting control, a camera flip control, etc. As Figure 2 shown, the photo shooting preview interface 20 includes a toolbar 21, a preview window 22, a "night scene" option, a "portrait" option, a "photo" option, a "live" option, a preview pane 23, a shooting control 24, and a camera flip control 25. Exemplarily, the shooting preview interface 20 may further include a fisheye effect control 26. Exemplarily, the shooting preview interface may further include a Hitchcock backward dolly control 27.

[0147] Further, the shooting preview interface 20 may further include a filter control 27, a filter control 28, and a filter control 29.

[0148] It should be noted that the live mode option may also be referred to as a dynamic photo mode option or a Livephoto option, etc. The fisheye effect refers to an effect that can make the captured image produce a unique visual effect of bulging outwards and curved edges in the dynamic photo mode or the dynamic photo function. The user triggers the electronic device to start the dynamic photo mode or the dynamic photo function by clicking the live mode option.

[0149] Exemplarily, the toolbar 21 may be used to display one or more function controls. As Figure 2 shown, the one or more function controls may include a flash control 21a, a high dynamic range (HDR) control 21b, etc. It can be understood that the toolbar may further include more or fewer function controls.

[0150] Exemplarily, the "Night Scene" option is used to trigger entering the night scene shooting mode; the "Photo" option is used to switch the shooting mode to the photo shooting mode; the "Portrait" option is used to trigger the portrait shooting mode; the "Live" option is used to turn on the live photo shooting function; the preview pane 23 is used to preview the shooting effect in a smaller size; the shooting control 24 is used to trigger the shooting operation. When the user clicks on this control, the electronic device will immediately take a shot and record the picture in the current preview window, generating a photo or video file; the camera flip control 25 is used to switch between the front and rear cameras; the fish-eye effect control 26 is used to turn on or off the fish-eye effect function. When the user clicks on this control to turn on the fish-eye effect, the picture in the preview window will present the unique outward bulging and edge-curved fish-eye effect of a fish-eye lens; the filter controls 27, 28, and 29 are used to add different filter effects to the image; the flash control 21a is used to control the turning on, turning off, and flash intensity of the flash; the high dynamic range (HDR) control 21b is used to turn on or off the high dynamic range shooting function; the Hitchcock backward dolly control 27, and this Hitchcock backward dolly control 27 is used to trigger and start the shooting mode of the Hitchcock backward dolly to shoot dynamic photos.

[0151] Exemplarily, the dynamic photo function indicated by the live mode option can capture video and audio within a period of time before and after the image is taken. For example, the dynamic photo function can record the taken image and the video of 1.5 seconds before and after the moment when the shooting control is pressed, that is, a total of 3 seconds of video, to obtain a dynamic photo containing the image and 3 seconds of video.

[0152] It should be noted that the live mode can be related shooting modes for dynamic photos, including but not limited to the fish-eye effect mode.

[0153] Exemplarily, the preview window 22 can be used to display the preview image obtained after the image data is rendered in real time. The preview window can also be referred to as the viewfinder. Further, the preview image in this preview window presents the fish-eye effect.

[0154] Exemplarily, the camera mode option can be a preset function module that can be selected by the user and is used to adapt to different shooting scenarios or operation requirements. By adjusting the combination of hardware parameters and software algorithms, specific shooting effects or creative intentions can be achieved.

[0155] In some embodiments of the present application, when the electronic device starts the camera application, it can display the shooting preview interface. Then, after the user selects the live mode option or the dynamic photo mode option, the shooting preview interface of the dynamic photo mode is displayed.

[0156] Exemplarily, when the user needs to take a photo, the camera application can be opened first, and then as Figure 2As shown, a shooting preview interface is displayed. At this time, the dynamic photo function is not yet enabled. If the user wants to enable the dynamic photo function, the user clicks on Figure 2 the "Live Photo" option in

[0157] After the dynamic photo function is enabled, the camera continuously caches the images captured by the camera in the background. When the dynamic photo function is turned off, the video caching in the background stops, and the normal shooting preview display state is restored.

[0158] In some embodiments of the present application, the above shooting preview interface is used to display the preview image captured after the camera enters the dynamic photo mode, and the preview image presents a fish-eye effect.

[0159] In some embodiments of the present application, the above camera may include any one of the following: a wide-angle camera, a 2x camera, a telephoto camera, a depth camera, etc. The above main camera may also be other cameras, and the embodiments of the present application do not make any limitations in this regard.

[0160] In some embodiments of the present application, the above first input may include any one of the following: the user's touch input, voice input, gesture input, folding or unfolding operation of the foldable screen, or other feasible inputs, and the embodiments of the present application do not make any limitations in this regard. Further, the above touch input may be: the user's click input, swipe input, press input, etc. Further, the above click operation may be any number of click operations. The above swipe operation may be a swipe operation in any direction, such as swiping up, swiping down, swiping left, or swiping right, etc., and the embodiments of the present application do not make any limitations in this regard.

[0161] In some embodiments of the present application, the above first input is used to trigger the shooting of dynamic photos, that is, to control the electronic device to shoot dynamic photos.

[0162] Exemplarily, the above first input may be the user's touch input on the shooting control in the shooting preview interface, or the folding input of the foldable screen, or the swipe input in the shooting preview interface. For example, in combination with the above Figure 2 , the first input is the user's click input on the shooting control 24 in the shooting preview interface.

[0163] Step 202: The electronic device responds to the above first input and shoots a dynamic photo.

[0164] Among them, the above dynamic photo includes a cover image and a video, and both the cover image and the video present a fish-eye effect.

[0165] In some embodiments of the present application, after receiving a first input, the electronic device generates a shooting instruction and, based on the shooting instruction, takes a dynamic photo.

[0166] Exemplarily, in combination with the above Figure 2 , when taking a dynamic photo of person A, the electronic device controls the camera to continuously collect a preview image of person A and displays the image of person A in the shooting preview interface 20. After the user clicks the shooting control 24, the electronic device takes a dynamic photo, and both the cover image and the video of the dynamic photo present a fish-eye effect.

[0167] In some embodiments of the present application, after entering the dynamic photo mode, the electronic device can add a fish-eye effect to each frame of the image collected by the camera, thereby obtaining a dynamic photo presenting a fish-eye effect.

[0168] It should be noted that the fish-eye effect is a visual effect generated by simulating the imaging characteristics of a fish-eye lens. Due to the ultra-wide-angle design of the fish-eye lens, the field of view angle is extremely large, and strong barrel distortion will occur at the edge of the image during imaging, and the straight line will bend into an arc. By deforming the image through an algorithm to simulate the visual effect of a fish-eye lens imaging, the image can present a unique perspective and visual distortion effect, thereby meeting the user's personalized needs for images.

[0169] In the existing photography technology, the fish-eye effect usually exists in the form of a static filter, and it has the following limitations. First, the dynamic adaptability is poor, that is, the traditional fish-eye algorithm cannot maintain the temporal consistency of the distortion parameters in the multi-frame continuous images of live photography, resulting in distorted and jumping dynamic images. Second, the interactivity is insufficient, that is, there is a lack of intelligent cooperation with decoration and sticker effects, and the stickers cannot be dynamically adjusted with the deformation of the main body, and the visual effect is fragmented. In addition, the dynamic photo usually has the same perspective as the default camera function, and cannot effectively focus on and highlight the main body, and cannot meet the user's needs for novel gameplay.

[0170] In some embodiments of the present application, the fish-eye effect special effect has the following characteristics: exaggerated deformation increases fun: it produces barrel distortion, further amplifying the cute features of pets and children, such as big eyes and round faces, making the image more cute and interesting. Ultra-large perspective accommodates everything: the wide perspective can include a large number of elements such as their playing environment and surrounding items in the picture, enriching the story. Focusing on the main body is more eye-catching: the center of the picture is prominent, making the pets and children in the center more attractive, and the background is deformed to set off the main body. The dynamic photo has more tension: the large perspective and deformation characteristics magnify the amplitude of the action, making the dynamic moment more tense and energetic.

[0171] In the embodiments of the present application, by adding a fisheye effect to both the video and the cover image, a dynamic fisheye effect is achieved in the dynamic photo mode. Through multi-modal data processing, a dynamic image with an exaggerated visual effect is generated, enhancing the user's creative and social sharing experience. The user can generate a dynamic image that combines artistry and fun through simple operations, reducing the dependence on professional photography skills. A cross-platform ecosystem is built to ensure that the output file is compatible with the dynamic media formats of mainstream social platforms, improving the convenience of sharing.

[0172] In the dynamic photo shooting method provided by the embodiments of the present application, the electronic device receives a first input to the shooting preview interface, and in response to the first input, shoots a dynamic photo, which includes a cover image and a video, and both the cover image and the video present a fisheye effect. In this solution, the electronic device superimposes a fisheye effect on the cover image and the video of the dynamic photo, so that the cover image of the dynamic photo and the associated video present rich visual effects. The user can directly obtain a special-effect dynamic photo with a fisheye effect at the shooting stage without post-editing, thereby improving the display effect of the dynamic photo.

[0173] In some embodiments of the present application, before the above step 201, the above dynamic photo shooting mode further includes the following steps C1 and C2:

[0174] Step C1: The electronic device receives a fifth input to the shooting preview interface.

[0175] Step C2: In response to the fifth input, the electronic device activates the fisheye effect shooting mode, adds a fisheye effect to the image captured by the camera, displays each frame of the image with the fisheye effect added on the shooting preview interface, and continuously caches each frame of the image with the fisheye effect added, and the image includes a preview image or a cached image.

[0176] It should be noted that the process in which the electronic device activates the fisheye effect shooting mode, adds a fisheye effect to each frame of the image captured by the camera, displays each frame of the image with the fisheye effect added on the shooting preview interface, and continuously caches each frame of the image with the fisheye effect added can be executed in parallel or serially.

[0177] In some embodiments of the present application, the electronic device activates the fisheye effect shooting mode, adds a fisheye effect to the image captured by the camera, displays the image with the fisheye effect added on the shooting preview interface, and caches the image with the fisheye effect added for subsequent generation of a dynamic photo.

[0178] Exemplarily, for the images captured by the camera of the electronic device, two independent processing flows can be enabled. On the one hand, a fish-eye effect is added to the captured images, and the images with the fish-eye effect added are presented in real time on the shooting preview interface so that the user can intuitively see the visual effect of the current shooting scene under the fish-eye effect; on the other hand, a fish-eye effect is also added to the captured images, and the images with the fish-eye effect added are cached. That is to say, the preview display and the cache storage of the images are independently carried out through two different video streams, and the two do not interfere with each other.

[0179] In some embodiments of the present application, the above fifth input may include any one of the following: the user's touch input, voice input, gesture input, folding or unfolding operation of the foldable screen, or other feasible inputs, and the embodiments of the present application do not make any limitations thereto. Further, the above touch input may be: the user's click input, slide input, press input, etc. Further, the above click operation may be a click operation of any number of times. The above slide operation may be a slide operation in any direction, such as upward slide, downward slide, left slide, or right slide, etc., and the embodiments of the present application do not make any limitations thereto.

[0180] In some embodiments of the present application, the above fifth input is used to trigger the start of the fish-eye effect shooting mode, add a fish-eye effect to each frame of the image captured by the camera, display each frame of the image with the fish-eye effect added on the shooting preview interface, and continuously cache each frame of the image with the fish-eye effect added.

[0181] It should be noted that the explanation of this embodiment can be referred to the relevant explanations of step 203 and step 204 below.

[0182] In some embodiments of the present application, before the above step 201, the dynamic photo shooting method provided by the embodiments of the present application may further include the following steps 203 and 204:

[0183] Step 203: The electronic device receives a second input to the shooting preview interface.

[0184] Step 204: In response to the above second input, the electronic device starts the fish-eye effect shooting mode, adds a fish-eye effect to each frame of the preview image captured by the camera, displays each frame of the preview image with the fish-eye effect added on the shooting preview interface, and continuously caches each frame of the preview image with the fish-eye effect added.

[0185] It should be noted that the process in which the electronic device starts the fish-eye effect shooting mode, adds a fish-eye effect to each frame of the preview image captured by the camera, displays each frame of the preview image with the fish-eye effect added on the shooting preview interface, and continuously caches each frame of the preview image with the fish-eye effect added can be executed in parallel or serially.

[0186] In some embodiments of the present application, the second input may include any one of the following: the user's touch input, voice input, gesture input, folding or unfolding operation on the foldable screen, or other feasible inputs, and the embodiments of the present application do not make any limitations thereto. Further, the touch input may be: the user's click input, swipe input, press input, etc. Further, the click operation may be a click operation of any number of times. The swipe operation may be a swipe operation in any direction, such as swiping up, swiping down, swiping left, or swiping right, etc., and the embodiments of the present application do not make any limitations thereto.

[0187] In some embodiments of the present application, the second input is used to trigger the start of the fisheye special effect shooting mode, add a fisheye special effect to each frame of preview image collected by the camera, display each frame of preview image with the fisheye special effect added in the shooting preview interface, and continuously cache each frame of preview image with the fisheye special effect added.

[0188] Exemplarily, the second input may be the user's swipe input on the shooting preview interface, or the user's click input on the fisheye special effect control in the shooting preview interface.

[0189] In some embodiments of the present application, the fisheye special effect shooting mode is used to shoot dynamic photos presenting the fisheye special effect.

[0190] In some embodiments of the present application, after adding a fisheye special effect to each frame of preview image collected by the camera, the electronic device may store each frame of preview image with the fisheye special effect added in the image data cache space, so as to facilitate subsequent acquisition of the stored preview images with the fisheye special effect added to generate dynamic photos.

[0191] In some embodiments of the present application, after adding a fisheye special effect to each frame of preview image collected by the camera, the electronic device may render the preview image with the fisheye special effect added to the shooting preview interface for display, so that the user can view the real-time preview image with the fisheye special effect added.

[0192] In some examples, in combination with the above Figure 2 , as Figure 3A shown, in the scenario of shooting a single-person portrait, the user opens the camera application, the electronic device collects the preview image of the person A, and displays the preview image in the shooting preview interface, and the preview image is an image without fisheye distortion. When the user wants to shoot a dynamic photo of the person A, after receiving the user's first input, as described above Figure 2As shown, the electronic device adds a fish-eye effect to each frame of the preview image of person A continuously captured by the camera, and displays each frame of the preview image with the fish-eye effect in the shooting preview interface 20, and stores each frame of the fish-eye image with the fish-eye effect in the image data cache space to obtain a dynamic photo of person A subsequently.

[0193] In some examples, as Figure 3B shown, when shooting a dynamic photo of a pet dog, the electronic device adds a fish-eye effect to each frame of the preview image of the pet dog continuously captured by the camera, and displays each frame of the preview image with the fish-eye effect in the shooting preview interface 31, and stores each frame of the fish-eye image with the fish-eye effect in the image data cache space to obtain a dynamic photo of the pet dog subsequently.

[0194] In some examples, when shooting a group photo of person B, person C, and person D, the electronic device adds a fish-eye effect to each frame of the preview image including person B, person C, and person D continuously captured by the camera, and displays each frame of the preview image with the fish-eye effect in the shooting preview interface, and stores each frame of the fish-eye image with the fish-eye effect in the image data cache space to obtain a group dynamic photo of person B, person C, and person D subsequently.

[0195] In some embodiments of the present application, after the electronic device triggers shooting, it can continuously cache each frame of the preview image presenting the fish-eye effect until shooting ends, or until exiting the fish-eye effect shooting mode, or until exiting the dynamic photo mode. That is to say, the fish-eye effect processing runs through the entire process of previewing and shooting dynamic photos, thereby ensuring the consistency of the special effects between the cover image and the video dynamic content, and avoiding the visual disconnection problem caused by traditional dynamic photo special effects only acting on static images or post-editing.

[0196] In the embodiments of the present application, the electronic device can start the fish-eye effect shooting mode. In the fish-eye effect shooting mode, it can add a fish-eye effect to each frame of the preview image captured by the camera in real time, and synchronously render and display and cache each frame of the preview image with the added fish-eye effect in the shooting preview interface. Through real-time fish-eye distortion processing, it gives the dynamic photo stronger visual tension, improves the display effect of the dynamic image, and at the same time enables the user to preview the image effect with the added fish-eye effect in the shooting preview interface in real time.

[0197] In some embodiments of the present application, the above step 201 may include the following steps 201a and 201b:

[0198] Step 201a: The electronic device performs image processing on the preview image with the added fish-eye effect cached at the reference moment to generate a cover image.

[0199] Step 201b: The electronic device performs video encoding on all the preview images with the fisheye effect added and cached in the first time period and the second time period to generate a video.

[0200] Wherein, the first time period is the first duration before the reference moment, and the second time period is the second duration after the reference moment.

[0201] In some embodiments of the present application, the first duration and the second duration may be equal or unequal. Exemplarily, both the first duration and the second duration may be 1.5 s, or the first duration is 1.5 s and the second duration is 2 s, or the first duration is 2 s and the second duration is 1 s.

[0202] In some embodiments of the present application, the reference moment may be the shooting trigger moment or the shooting moment, that is, the moment when the electronic device triggers the shooting of a dynamic photo after receiving the first input from the user; alternatively, the reference moment may be the moment after the shooting trigger moment.

[0203] In some embodiments of the present application, the electronic device may obtain the preview images with the fisheye effect added and cached at the reference moment from the image data cache space.

[0204] In some embodiments of the present application, the electronic device may perform processing such as resolution enhancement and noise reduction optimization on the preview images with the fisheye effect added and cached at the reference moment to obtain a cover image.

[0205] In some embodiments of the present application, the electronic device may obtain the preview images with the fisheye effect added and cached within the first duration before the reference moment, and obtain the preview images with the fisheye effect added and cached within the second duration after the reference moment, and encode the preview images with the fisheye effect added before and after the reference moment into a continuous video in chronological order to obtain the dynamic segment of the dynamic photo.

[0206] In some embodiments of the present application, after receiving the first input, the electronic device generates a shooting instruction, and based on this shooting instruction, obtains the image frames cached before the first input moment from the image cache space, and obtains the image frames cached after the first input moment, and then generates a dynamic photo based on the image frames cached before the first input moment, the image frames cached after the first input moment, and the image frames collected at the first input moment.

[0207] Exemplarily, after receiving a first input from a user, an electronic device may generate a shooting instruction. Based on this shooting instruction, an image encoder may obtain the image data cached at the first input moment from the image data cache space, and perform discrete cosine transform (DCT) processing, quantization, and encoding on the obtained image data, thereby obtaining a first cover image, and the format of the first cover image may be the JPEG format. At the same time, after receiving the first input executed by the user on the shooting control, the video encoder may also obtain all the image data cached within a first time period from the image data cache space, and perform video encoding on all the image data cached within the first time period, thereby generating a video.

[0208] Exemplarily, in combination with the above Figure 2 , when shooting a dynamic photo of person A approaching the camera and waving, the electronic device captures a preview image of person A in real time in the fish-eye special effect shooting mode, and displays the real-time preview image with the fish-eye special effect added on the shooting preview interface and caches the real-time preview image with the fish-eye special effect added. After the electronic device receives the click operation of the user on the shooting control, it performs resolution enhancement processing on the preview image of person A cached at the reference moment to obtain a cover image, and encodes the preview images with the fish-eye special effect added cached within 1.5 s before the reference moment and the preview images with the fish-eye special effect added cached within 1.5 s after the reference moment into a video. For example, it performs resolution enhancement processing on the preview image of person A smiling and with the fish-eye special effect added cached at the reference moment, and encodes the images with the fish-eye special effect added of person A approaching the camera cached in the previous 1.5 s and person A waving cached in the next 1.5 s, that is, the preview images in a total of 3 s before and after, into a video in chronological order to obtain a dynamic photo with the cover image being person A smiling and the video being person A approaching the camera and waving with the fish-eye special effect presented. For example, when the user clicks the shooting control at 2:00:00 pm, the electronic device encodes the image frames with the fish-eye special effect added cached from 1:59:58 pm to 2:00:00 pm and the image frames cached from 2:00:00 pm to 2:00:02 pm into a video.

[0209] For ease of description, the photo presenting the fish-eye special effect in the embodiments of the present application may be referred to as a fish-eye special effect photo, and the image or image frame presenting the fish-eye special effect may be referred to as a fish-eye special effect image.

[0210] In the embodiments of the present application, by embedding the fish-eye special effect processing into the dynamic photo shooting process, based on the real-time fish-eye special effect rendering and caching in the preview stage, both the cover image and the dynamic video directly reuse the same special effect processing result, avoiding the problem of the disconnection between the static cover and the dynamic video special effects, and by pre-caching the fish-eye special effect images in the symmetric time periods (such as 1.5 s each) before and after the reference moment, a dynamic photo presenting the fish-eye special effect is generated, thereby being able to efficiently generate fish-eye special effect photos with stronger visual effects.

[0211] In some embodiments of the present application, after the above step 201b, the dynamic photo shooting method provided by the embodiments of the present application may further include the following step 201c or step 201d:

[0212] Step 201c: The electronic device performs encapsulation processing on the above video and the above cover image to generate a dynamic photo.

[0213] Step 201d: The electronic device stores the above video and the above cover image in an associated manner, where the above dynamic photo includes the above video and the above cover image stored in an associated manner.

[0214] In some embodiments of the present application, the electronic device encapsulates the cover image and the video segment into a container file, and associates the cover image and the video through the in-file metadata to obtain a dynamic photo.

[0215] Exemplarily, in combination with the above example, taking the cover image as a fisheye special effect image when person A smiles, and the video as a 3-second video of person A approaching and waving, the electronic device encapsulates the above fisheye special effect image and the 3s video into a file to obtain a dynamic photo of person A approaching and waving.

[0216] In some embodiments of the present application, the electronic device stores the cover image and the video, and establishes an association relationship between the cover image and the video through an index. Exemplarily, when the electronic device stores the cover image and the video, it assigns a unique association identifier to the cover image and the video to establish an association relationship between the two.

[0217] Exemplarily, in combination with the above example, taking the cover image as a fisheye special effect image when person A smiles, and the video as a 3-second video of person A approaching and waving, the electronic device stores the above fisheye special effect image and the 3s video in an associated manner to obtain a dynamic photo of person A approaching and waving.

[0218] In some embodiments of the present application, when the user views a dynamic photo in the album, long-pressing the cover image can trigger the electronic device to play the video for 3 seconds before and after.

[0219] In the embodiments of the present application, the electronic device directly encapsulates the video and the cover image to generate a live photo. For example, encapsulate a fisheye effect image of person A smiling as the cover image and a 3-second video of person A approaching and waving into a container file, and associate the two through the metadata in the file to obtain a live photo, so that the image and the video can be integrated into a file structure, facilitating subsequent management and transmission; or the electronic device stores the video and the cover image in an associated manner, and the live photo includes the video and the cover image stored in this associated manner. For example, the electronic device assigns a unique association identifier to the cover image and the video to establish an association relationship between the two, and establishes a connection through the external association identifier, so that a live photo can be generated efficiently.

[0220] In some embodiments of the present application, after step 201 above, the live photo shooting method provided by the embodiments of the present application may further include the following step 205:

[0221] Step 205: The electronic device adds a fisheye effect to each frame of preview image collected by the camera, and displays each frame of preview image with the fisheye effect added on the shooting preview interface.

[0222] In some embodiments of the present application, after the user clicks the shooting control, the electronic device performs real-time processing on each frame of preview image collected by the camera, that is, adds a fisheye effect, and after adding the fisheye effect, displays each frame of preview image with the fisheye effect added on the shooting preview interface, so that the user can intuitively view the real-time effect of the shooting object or shooting content after being processed by the fisheye effect.

[0223] Further, the electronic device may store each frame of image with the fisheye effect added in the image data cache space for subsequent operations such as generating a live photo.

[0224] In some examples, in combination with the above Figure 2 , when the user wants to shoot a live photo of person A, after the user clicks the shooting control, the electronic device adds a fisheye effect to each frame of preview image of person A continuously collected by the camera. At this time, on the shooting preview interface 20, the user can intuitively view the preview image of person A with the fisheye effect. Further, the image with the special effect added is stored in the image data cache space and is subsequently used to generate the live photo of person A.

[0225] In the embodiments of the present application, after the user clicks the shooting control, the user can see the image with the fisheye effect added in real time on the shooting preview interface, so that the user can intuitively view the effect of the shooting object or shooting content after being processed by the fisheye effect, so as to be able to judge in advance whether the image effect meets the user's own needs, and then adjust the shooting angle in time according to the preview effect, improving the shooting efficiency and effect.

[0226] In some embodiments of the present application, before the above step 203, the dynamic photo shooting method provided by the embodiments of the present application may further include the following steps 206 and 207:

[0227] Step 206: The electronic device receives a selection input for the live mode control in the shooting preview interface.

[0228] Step 207: In response to the above selection input, the electronic device displays a fisheye effect control in the above shooting preview interface.

[0229] Exemplarily, in combination with the above steps 206 and 207, the above step 203 may include the following step 203a:

[0230] Step 203a: The electronic device receives a second input for the above fisheye effect control.

[0231] In some embodiments of the present application, the above live mode control may be a picture, icon, character, or button, etc. Exemplarily, the user activates the dynamic photo shooting function by clicking on the live mode control and triggers the display of the fisheye effect control.

[0232] In some embodiments of the present application, the above selection input may include any one of the following: the user's touch input, voice input, gesture input, folding or unfolding operation of the foldable screen, or other feasible inputs, and the embodiments of the present application do not make any limitations thereto. Further, the above touch input may be: the user's click input, slide input, press input, etc. Further, the above click operation may be a click operation of any number of times. The above slide operation may be a slide operation in any direction, such as upward slide, downward slide, left slide, or right slide, etc., and the embodiments of the present application do not make any limitations thereto.

[0233] In some embodiments of the present application, the above selection input is the user's click input on the live mode control.

[0234] In some embodiments of the present application, the above fisheye effect control may be a picture, icon, character, or button, etc. Exemplarily, the user activates the fisheye effect shooting mode by clicking on the fisheye effect control.

[0235] In some embodiments of the present application, after the electronic device displays the fisheye effect control, it receives the user's second input for the fisheye effect control, starts the fisheye effect shooting mode, adds a fisheye effect to each frame of the preview image collected by the camera, displays each frame of the preview image with the fisheye effect added in the shooting preview interface, and continuously caches each frame of the preview image with the fisheye effect added.

[0236] Exemplarily, in combination with the above Figure 3A, taking the portrait scenario as an example, after the electronic device starts the camera application, the shooting preview interface includes a preview image of person A captured by the camera. After the user clicks the "Live" option in the shooting preview interface 20, as Figure 4 shown, the electronic device displays the fisheye effect control 41 in the shooting preview interface 20. Then, after the user clicks the fisheye effect control 41, the electronic device starts the fisheye effect shooting mode, adds the fisheye effect to each frame of the preview image captured by the camera, and displays each frame of the preview image with the fisheye effect added in the shooting preview interface, as Figure 2 shown.

[0237] In the embodiment of the present application, the electronic device can first receive the selection input for the live mode control, then display the fisheye effect control, and finally start the fisheye effect shooting mode according to the user's input for the fisheye effect control. By providing the fisheye effect control in the live mode, the selection of the live mode and the fisheye effect is integrated in the shooting preview interface. On the one hand, it enables the user to avoid switching between different interfaces to find the special effect option, reducing the operation steps and time and improving the shooting efficiency. On the other hand, the user can freely choose whether to use the fisheye effect according to their own preferences and shooting needs, thus meeting the personalized needs of different users for shooting effects.

[0238] In some embodiments of the present application, the process of adding the fisheye effect to the preview image captured by the camera in step 204 above can be implemented through the following steps 204a and 204b.

[0239] Step 204a: The electronic device determines the distortion center point.

[0240] Step 204b: The electronic device adds the fisheye effect to the preview image captured by the camera based on the above distortion center point.

[0241] Among them, the above distortion center point includes: the center point of the preview image captured by the camera, or the center point of the foreground object in the preview image captured by the camera, or the coordinate point of the input position of the user's distortion center point selection input on the shooting preview interface.

[0242] In some embodiments of the present application, the electronic device can directly determine the center point of the preview image captured by the camera as the distortion center point, so that the distortion effect of the image presents a relatively symmetrical and uniform visual effect as a whole.

[0243] In some embodiments of the present application, the electronic device uses image recognition technology to identify the foreground object in the preview image, and then determines the center point of the foreground object as the distortion center point, so that the fisheye effect is more focused on the foreground object, highlighting the main body and thus enhancing the visual impact of the picture.

[0244] In some embodiments of the present application, on the shooting preview interface, the user can select and input the distortion center point by clicking or other means, and the electronic device determines the coordinate point of the user input position as the distortion center point, so that the user can flexibly specify the position of the distortion center point according to their own shooting needs, thereby obtaining a personalized fisheye special effect.

[0245] In some embodiments of the present application, after determining the distortion center point, the electronic device can add a fisheye special effect to the preview image collected by the camera based on the distortion center point. Exemplarily, taking the distortion center point as a reference, operations such as position transformation are performed on each pixel point in the image, so that the image produces a fisheye special effect.

[0246] In some examples, when the user is shooting a landscape, the center point of the preview image of the electronic device is determined as the distortion center point, and then a fisheye special effect is added to the image, so that the entire picture will be distorted outward with the center point as the reference, and distant mountains, nearby flowers and plants, etc. will all present a deformed visual effect.

[0247] In some examples, when the user takes a portrait photo, the electronic device recognizes the person as the foreground object and determines its center point as the distortion center point. After adding the fisheye special effect, the person will become the core area of the distortion effect, and obvious deformations will occur in the head, body and other parts of the person, making the person more prominent and visually appealing.

[0248] In the embodiments of the present application, the electronic device can determine the center point of the preview image, the center point of the foreground object or the user-defined input coordinate point as the distortion center point, so as to meet the diverse needs of different users in different shooting scenarios.

[0249] In some embodiments of the present application, step 204a may include the following steps 204a1:

[0250] Step 204a1: When the first condition is met, determine the center point of the preview image collected by the camera as the distortion center point.

[0251] Wherein, the above-mentioned first condition includes:

[0252] The preview image collected by the camera does not include a foreground object;

[0253] Or, the preview image collected by the camera includes at least two foreground objects;

[0254] Or, no distortion center point selection input from the user is received on the shooting preview interface;

[0255] Or, the preview image collected by the camera includes at least two foreground objects, and no foreground object selection input from the user is received on the shooting preview interface.

[0256] In some embodiments of the present application, when the preview image captured by the camera does not include a foreground object, that is, there is no obvious subject in the image, the electronic device may use the center of the image as the distortion center, so that the distortion effect of the entire picture is uniform.

[0257] In some embodiments of the present application, if the preview image captured by the camera includes at least two foreground objects, the electronic device may determine the center point of the preview image as the distortion center point, so as to ensure that the distortion effect of the overall picture is relatively balanced, and no distortion special effect is added to a certain foreground object to highlight a certain foreground object, causing the fisheye effect of the overall picture to be unbalanced.

[0258] In some embodiments of the present application, when no input for selecting the distortion center point is received from the user on the shooting preview interface, the electronic device automatically determines the center point of the preview image as the distortion center point to simplify the dynamic photo shooting process, thereby ensuring the dynamic photo shooting efficiency.

[0259] In some embodiments of the present application, when the preview image captured by the camera includes at least two foreground objects and no input for selecting a foreground object is received from the user on the shooting preview interface, the center point of the preview image is determined as the distortion center point, thereby avoiding the problem of the overall picture effect being unbalanced due to the distortion center point being biased towards a certain foreground object.

[0260] In some examples, assume that the user is shooting a picture of the sky and there are no obvious objects or people in the preview image as foreground objects. At this time, the electronic device detects that the preview image does not include a foreground object, meets the first condition, determines the center point of the preview image as the distortion center point, and then adds a fisheye special effect based on this center point to make the entire sky picture produce a uniform fisheye effect.

[0261] In some examples, the user takes a group photo, and there are three people in the picture as foreground objects. And no input for selecting the distortion center point is received from the user on the shooting preview interface. The electronic device may determine the center point of the preview image as the distortion center point, and then add a fisheye special effect according to this distortion center point to ensure the coordination of the overall fisheye effect of the picture.

[0262] In some examples, after entering the fisheye special effect mode, when the electronic device does not receive the selection operation of the distortion center point from the user on the shooting preview interface, it automatically determines the center point of the preview image as the distortion center point.

[0263] In the embodiments of the present application, when the corresponding conditions are met, the electronic device automatically determines the center point of the preview image as the distortion center point without manual intervention by the user, simplifying the dynamic photo shooting process.

[0264] In some embodiments of the present application, the above step 204a may include the following steps 204b1 and 204b2:

[0265] Step 204b1: The electronic device identifies the center point of the foreground object in the preview image captured by the camera.

[0266] Step 204b2: The electronic device determines the center point of the foreground object as the distortion center point of the preview image captured by the camera.

[0267] In some embodiments of the present application, the electronic device may use image recognition technology to perform foreground object recognition processing on the preview image captured by the camera, determine the foreground object, and after determining the foreground object, the electronic device may calculate the center point coordinates of the foreground object, that is, the geometric center position of the foreground object on the two-dimensional image plane.

[0268] In some embodiments of the present application, the electronic device may identify the foreground object through image feature point recognition, multi-point laser ranging data, etc.

[0269] It can be understood that the foreground object refers to an object that is relatively close to the lens, that is, the main body that the user wants to prominently display, such as a person, an animal, a specific item, etc.

[0270] In some embodiments of the present application, after identifying the center point of the foreground object, the electronic device automatically determines the center point as the distortion center point of the preview image captured by the camera.

[0271] It should be noted that after determining the distortion center point in the preview state, when adding the fish-eye effect to the subsequent captured image frames, the center point of the foreground object will be used as the distortion center point for operations such as position transformation and brightness adjustment of the pixel points in the image, so that the distortion effect of the fish-eye effect surrounds the foreground object, and there is no need to determine the distortion center point again.

[0272] In some examples, when taking a dynamic photo of person A, the electronic device uses image recognition technology to identify person A in the picture as the foreground object. Then, it calculates the center point coordinates of person A in the preview image. Next, the electronic device determines the center point of this person as the distortion center point. After adding the fish-eye effect, obvious deformations will occur in the head, body, etc. of the person, thus highlighting the main body of the person.

[0273] In the embodiments of the present application, by determining the center point of the foreground object as the distortion center point, the distortion effect of the fish-eye effect can be mainly concentrated on the foreground object, thereby highlighting the main body and enhancing the visual effect of the dynamic image.

[0274] In some embodiments of the present application, before the electronic device starts the fisheye special effect shooting mode, the user can perform touch input on the shooting preview interface, such as clicking, and the electronic device determines the position of the user's click as the distortion center point.

[0275] In some embodiments of the present application, before the above step 204b1, the dynamic photo shooting method provided by the embodiments of the present application may further include the following step 208a:

[0276] Step 208: The electronic device performs foreground object recognition on the preview image collected by the camera to determine the foreground object in the preview image collected by the camera.

[0277] In some embodiments of the present application, the electronic device can automatically perform foreground object recognition on the collected preview image by using image recognition algorithms such as deep learning to determine the foreground object in the preview image.

[0278] Exemplarily, the foreground object can be an object of types such as a human face, a pet, a tree, a house, etc.

[0279] Exemplarily, when the user is shooting person A on the grassland, the electronic device performs foreground object recognition on the collected preview image through a deep learning algorithm, and recognizes the foreground object of person A. Further, after determining that the foreground object is person A, a fisheye special effect is added with the center point of person A as the distortion center point in the subsequent process, making person A more prominent in the picture.

[0280] In the embodiments of the present application, through automatic foreground object recognition, the electronic device can quickly and accurately determine the main body that the user wants to highlight in the preview image. Thus, when adding a fisheye special effect in the subsequent process, the center point of the foreground object is used as the distortion center point, so that the distortion effect of the special effect acts on the foreground object more precisely, improving the accuracy of adding the fisheye special effect. On the other hand, since the foreground object recognition process is automatically completed, the user does not need to manually specify the foreground object, thereby reducing the operation steps and improving the shooting efficiency.

[0281] In some embodiments of the present application, before the above step 204b1, the dynamic photo shooting method provided by the embodiments of the present application may further include the following step 208b1 and step 208b2:

[0282] Step 208b1: The electronic device receives a third input to the shooting preview interface.

[0283] Step 208b2: In response to the above third input, the electronic device determines the foreground object in the above preview image according to the input information of the above third input.

[0284] Wherein, the above input information includes an input position or an input trajectory.

[0285] In some embodiments of the present application, the above third input may include any one of the following: a touch input of a user, a voice input, a gesture input, a folding or unfolding operation of a foldable screen, or other feasible inputs, and the embodiments of the present application do not make any limitation thereto. Further, the above touch input may be: a click input, a slide input, a press input, etc., of the user. Further, the above click operation may be a click operation of any number of times. The above slide operation may be a slide operation in any direction, such as a slide up, a slide down, a slide left, or a slide right, etc., and the embodiments of the present application do not make any limitation thereto.

[0286] Exemplarily, the above third input may be a click input or a slide input of the user in a shooting preview interface, and the electronic device may determine an object in the preview image according to the input trajectory of the slide input or the position of the click input.

[0287] In some examples, as Figure 5A shown, when taking a group photo of person B, person C, and person D, the shooting preview interface 50 includes images of the person B, person C, and person D, as well as a fish-eye effect control 51. When the user wants to take a dynamic photo with a fish-eye effect for person C, the user clicks on person D in the shooting preview interface 50, and the electronic device determines the person D as the foreground object, and takes the center point of the person D as the distortion center to add a fish-eye effect to the preview image captured by the camera, as Figure 5B shown.

[0288] In some examples, as Figure 5C shown, when taking a photo of person A, the shooting preview interface 52 includes an image of the person A. When the user wants to take a dynamic photo with a fish-eye effect for person A, the user clicks on person A in the shooting preview interface 52, and the electronic device determines the person A as the foreground object, and takes the center point of the person A as the distortion center to add a fish-eye effect to the preview image captured by the camera.

[0289] In the embodiments of the present application, the electronic device may determine the foreground object according to the input position or input trajectory of the user, so as to accurately determine the main body that the user wants to highlight, thereby improving the accuracy of adding a fish-eye effect to the preview image.

[0290] In some embodiments of the present application, after determining the foreground object in the preview image in the above step 208 or step 208b2, the dynamic photo shooting method provided by the embodiments of the present application may further include the following step 209:

[0291] Step 209: The electronic device displays a foreground object frame on the foreground object.

[0292] Among them, the above foreground object frame is used to mark the position of the foreground object and determine the distortion center point;

[0293] Combined with the above step 209, the process of determining the center point of the above foreground object as the distortion center point of the preview image collected by the camera in the above step 204b2 may include the following steps A1 and B1:

[0294] Step A1: The electronic device determines the center point of the foreground object frame as the center point of the foreground object.

[0295] Step B1: The electronic device determines the center point of the foreground object as the distortion center point of the preview image collected by the camera.

[0296] In some embodiments of the present application, the above foreground object frame may be a closed or unclosed square or rectangle.

[0297] It should be noted that the above foreground object frame is a frame that can mark the position of the foreground object, enabling the user to intuitively view the specific position of the foreground object. Moreover, the electronic device can add a fisheye distortion to the preview image with the center point of the foreground object frame as the reference.

[0298] In some embodiments of the present application, the electronic device can calculate the center point coordinates of the foreground object frame. For example, for a rectangular foreground object frame, the center point coordinates are the coordinates of the intersection of the two diagonals of the rectangle.

[0299] In some embodiments of the present application, after obtaining the center point of the foreground object frame, the electronic device determines this center point as the distortion center point of the preview image collected by the camera. Further, when adding a fisheye effect subsequently, the electronic device performs operations such as position transformation on the pixel points in the preview image with this distortion center point as the reference.

[0300] Exemplarily, combined with the above Figure 5C , taking the example of photographing a person, when the user takes a portrait photo, the electronic device recognizes the person as the foreground object and displays a rectangular foreground object frame around the person, as Figure 6 shown. Further, the electronic device calculates the center point coordinates of the rectangular foreground object frame, then determines this center point as the geometric center point of the person, and further uses it as the distortion center point of the preview image to add a fisheye effect.

[0301] In the embodiments of the present application, by displaying the foreground object frame and using its center point as the distortion center point, the distortion center point can be accurately determined, and thus the fisheye effect can be added to the preview image more precisely. On the other hand, by displaying the foreground object frame, the user can clearly see the range and position of the foreground object, and thus adjust the selection of the foreground object according to their own needs, and then change the position of the foreground object frame and the distortion center point, thereby improving the flexibility of taking dynamic photos.

[0302] In some embodiments of the present application, when the distortion center point is the center point of the preview image collected by the camera, the dynamic photo shooting method provided by the embodiments of the present application may further include the following steps 210 and 211:

[0303] Step 210: When the electronic device is in the shooting preview state, receive a fourth input to the above shooting preview interface.

[0304] Step 211: In response to the above fourth input, the electronic device updates the distortion center point to the coordinate point of the input position of the above fourth input.

[0305] In some embodiments of the present application, the above fourth input may include any one of the following: the user's touch input, voice input, gesture input, folding or unfolding operation of the foldable screen, or other feasible inputs, and the embodiments of the present application do not make any limitations thereto. Further, the above touch input may be: the user's click input, slide input, press input, etc. Further, the above click operation may be a click operation of any number of times. The above slide operation may be a slide operation in any direction, such as upward slide, downward slide, left slide, or right slide, etc., and the embodiments of the present application do not make any limitations thereto.

[0306] Exemplarily, the above fourth input may be the user's click input on the shooting preview interface.

[0307] In some embodiments of the present application, after the electronic device starts the fisheye effect shooting mode, initially, the distortion center point may be default set to the center point of the preview image collected by the camera.

[0308] In some embodiments of the present application, when the electronic device is in the shooting preview state, the electronic device receives a fourth input from the user to the shooting preview interface, and determines the coordinate point of the input position of the fourth input as the new distortion center point.

[0309] Exemplarily, in the case of taking a group photo of Person B, Person C, and Person D, initially, the electronic device determines the distortion center point as the center point of the captured preview image, and adds a fish-eye effect based on this center point. If the user subsequently wants to highlight Person C, the user can click around Person C in the preview image. The electronic device records the coordinates of this click position in the preview image, and then uses this coordinate point as the center point for subsequent distortion processing. When adding the fish-eye effect subsequently, the fish-eye distortion is added based on the position clicked by the user.

[0310] In some embodiments of the present application, after the electronic device determines the foreground object in the preview image, it will default to using the center of the foreground object frame for distortion. If the user has more specific requirements, the user can click on details in the main body frame again, such as the eyes of a person, the nose of a pet, the flowers on a tree, etc. The electronic device uses the position clicked by the user as the center for distortion.

[0311] Exemplarily, in combination with the above Figure 2 , when taking a photo of Person A, the preview image including Person A is in the shooting preview interface 20, and the initial distortion center point is the center point of Person A. If the user believes that setting the image center as the distortion center cannot highlight the facial expression of Person A, as Figure 7A shown, the user can click on a key position on the face of Person A, such as the eyes. Based on this click input, the electronic device updates the coordinate point of this click position to the distortion center point. After adding the fish-eye effect, the face of Person A will produce a fish-eye effect around the click position, thereby enhancing the expressiveness of the facial expression.

[0312] Exemplarily, in combination with the above Figure 3B , when taking a photo of a pet dog, the preview image including the pet dog is in the shooting preview interface 31, and the initial distortion center point is the center point of the pet dog. If the user believes that setting the image center as the distortion center cannot highlight the facial expression of the pet dog, as Figure 7B shown, the user can click on a key position on the face of the pet dog, such as the nose. Based on this click input, the electronic device updates the coordinate point of this click position to the distortion center point. After adding the fish-eye effect, the face of the pet dog will produce a fish-eye effect around the click position, thereby enhancing the expressiveness of the facial expression.

[0313] In the embodiments of the present application, the user can independently select the position of the distortion center point according to their own shooting needs, not limited to the initial center point of the preview image. This enables the user to, through a click operation, position the distortion center point at any position in the picture to highlight the elements they want to focus on, thereby meeting diverse shooting needs.

[0314] In some embodiments of the present application, the above step 204b can be implemented through the following step 204c1.

[0315] Step 204c1: The electronic device adds a fisheye effect to the preview image captured by the camera according to the distortion coefficient and the distortion center point.

[0316] In some embodiments of the present application, the distortion coefficient may be a preset distortion coefficient.

[0317] It should be noted that the distortion coefficient is a key parameter for controlling the distortion degree of the fisheye effect. Different distortion coefficients will result in different visual effects of the fisheye effect. The larger the distortion coefficient, the more obvious the distortion degree of the image, and the elements in the picture will show more exaggerated bending and deformation; the smaller the distortion coefficient, the relatively weaker the distortion degree, and the picture is closer to the normal visual effect, but still has a certain fisheye style. When adding the fisheye effect, the electronic device adjusts information such as the position and brightness of pixel points in the image according to the preset or user-set distortion coefficient.

[0318] In some embodiments of the present application, after the electronic device obtains the preview image captured by the camera, it can calculate and process each pixel point in the preview image according to the preset distortion coefficient and the determined distortion center point. Exemplarily, according to the distance between the pixel point and the distortion center point and the distortion coefficient, the position of the pixel point in the new image is re-determined to generate a fisheye image with the fisheye effect added, and it is presented in the shooting preview interface.

[0319] Exemplarily, if the preview image includes a foreground object, the electronic device adds a fisheye effect to each frame of the preview image according to the set distortion coefficient; if the preview image does not include a foreground object, a global fisheye effect is added with the center point of the preview image as the distortion center point.

[0320] Exemplarily, the electronic device can start the distortion processing with the foreground object as the center point, gradually increasing the distortion degree outward, and is described by the first few terms of the Taylor series expansion around the principal point. Since the fisheye distortion is large, the first three series terms are used for description. According to the distribution position of the points on the image in the radial direction, the adjustment formula is:

[0321] x0 = x(1 + k1r 2 + k2r 4 + k3r 6 )

[0322] y0 = y(1 + k1r 2 + k2r4 + k3r 6 )

[0323] Among them, (x, y) are the points on the original image, (x0, y0) are the new positions after fisheye distortion processing, r is the distance from the point on the original image to the central subject, and k1, k2, k3 are distortion coefficients. Users can adjust the coefficients by dragging the slider, thereby adjusting the degree of distortion.

[0324] According to the above formula, traverse the points on the image. Taking an image of 1440*1080 as an example, traverse row by row from point (0, 0) to point (1439, 1079), and calculate the fisheye output points (x0, y0) corresponding to the input points (x, y) in sequence. Then, assign the value of (x, y) to (x0, y0). If the calculated output point (x0, y0) is not an integer, calculate this point using bilinear interpolation. After completing all traversals, the output image with the fisheye effect is obtained.

[0325] In the embodiments of the present application, the electronic device can add a fisheye special effect to the preview image in real time according to the distortion coefficient and the distortion center point and present it, so that the user can intuitively see the effects under different parameter settings, and thus timely adjust the distortion coefficient and the distortion center point, thereby improving the flexibility of shooting.

[0326] In some embodiments of the present application, after step 204c1, the dynamic photo shooting method provided by the embodiments of the present application may further include the following steps 204c2 and 204c3:

[0327] Step 204c2: When the electronic device is in the shooting preview state, receive the parameter adjustment input for the distortion degree adjustment control in the shooting preview interface.

[0328] Step 204c3: The electronic device updates the above-mentioned distortion coefficient according to the input information of the above-mentioned parameter adjustment input.

[0329] In some embodiments of the present application, the above-mentioned distortion degree adjustment control may be a sliding control or a parameter option.

[0330] In some examples, when the distortion degree adjustment control is a sliding control, the user can flexibly adjust the distortion coefficient by dragging the movable identifier on the sliding control. For example, in combination with the above Figure 2 , as Figure 8 shown, the shooting preview interface 20 includes a horizontal slider 81. After the user drags the circular identifier of the horizontal slider to the left, the distortion coefficient decreases, and when dragging the circular identifier to the right, the distortion coefficient increases. In this way, by providing a slider for adjusting the distortion coefficient, the user can conveniently adjust the distortion coefficient by dragging the slider left and right, and the user can know the range of the adjusted distortion degree by observing the position of the slider on the slider, so as to be able to more accurately control the effect of the fisheye special effect.

[0331] In some examples, when the distortion degree adjustment control is a parameter option, the user can select from multiple preset distortion coefficient options to adjust the distortion coefficient to the value indicated by the selected distortion coefficient option. For example, the above parameter options may include options such as "slight distortion", "moderate distortion", "severe distortion", etc., and each identifier corresponds to a specific distortion coefficient value. The user can click on the corresponding parameter option according to their shooting needs to trigger the electronic device to adjust the distortion coefficient.

[0332] In the embodiments of the present application, in the shooting preview state, the user can independently adjust the distortion degree according to their shooting needs through the distortion degree adjustment control, and can also see the change degree of the fisheye effect in real time, so as to meet diverse shooting needs.

[0333] It should be noted that after the electronic device enters the fisheye effect shooting mode, it will continuously collect image frames, add the fisheye effect to the collected image frames, preview and display the image frames with the fisheye effect added, and cache them. The above process can be carried out continuously. That is to say, the process of adding the fisheye effect to each frame of preview image in the preview stage before triggering shooting is the same as the process of adding the fisheye effect to the collected image frames after triggering shooting. For the explanation of the process of adding the fisheye effect to the collected image frames after triggering shooting, reference can be made to the relevant description of the process of adding the fisheye effect to each frame of preview image above, and details will not be elaborated here.

[0334] It should be noted that the fisheye effect shooting mode is a mode for shooting dynamic photos with the fisheye effect.

[0335] In some embodiments of the present application, the above step 204 may include the following step 204d:

[0336] Step 204d: The electronic device adds the fisheye effect and the first sticker effect to each frame of preview image collected by the camera, displays each frame of preview image with the fisheye effect and the first sticker effect added in the shooting preview interface, and continuously caches each frame of preview image with the fisheye effect and the first sticker effect added.

[0337] In some embodiments of the present application, the above first sticker effect may include cartoon images, emoticons, decorative patterns, etc., and the embodiments of the present application do not limit this.

[0338] Exemplarily, in combination with the above Figure 2 , such as Figure 9AAs shown, when the user wants to take a dynamic photo of person A, after the user clicks on the fisheye effect control 26, the electronic device adds a fisheye effect, a sticker effect 91, and a sticker effect 92 to each frame of the preview image of person A continuously collected by the camera, and displays each frame of the preview image with the fisheye effect and the sticker effect added in the shooting preview interface 20, and stores each frame of the fisheye image with the fisheye effect added in the image data cache space to obtain the dynamic photo of person A subsequently.

[0339] Exemplarily, the electronic device can superimpose an expression effect on the top of person A's head and a pentagram effect around the body according to the position of person A in the preview image, with an obvious interaction with person A.

[0340] It should be noted that the dynamic photo shooting scenario provided in the embodiments of the present application can be applied to scenarios such as parent-child or human-pet group photo shooting, travel photography - creative big head check-in photos in amusement parks, group photos with cartoon characters, second-generation collection, travel photography, group photos - Z-generation ultra-wide-angle creative tension, personalized travel photography check-in photos, etc. For example, the electronic device can add a text sticker effect of "Hello, are you coming out to play?" to the preview image collected by the camera, and add a dual-view cat-eye effect to the collected preview image.

[0341] In the embodiments of the present application, by displaying the image with the fisheye effect and the first sticker effect added in real time on the shooting preview interface, the user can intuitively view the preview image presenting the fisheye effect and adding the sticker effect, so as to obtain a dynamic photo with the fisheye effect and the sticker effect, improving the richness and interest of the dynamic photo.

[0342] In some embodiments of the present application, the process of adding the first sticker effect to each frame of the preview image collected by the camera in step 204d above can be implemented through the following step 204d1.

[0343] Step 204d1: When the second condition is met, the electronic device adds the first sticker effect to the preview image collected by the camera.

[0344] Among them, the above-mentioned second condition includes:

[0345] The preview image collected by the camera does not include a foreground object;

[0346] Or, the preview image collected by the camera includes at least two foreground objects;

[0347] Or, no input of the distortion center point selection by the user on the shooting preview interface is received;

[0348] Or, the preview image collected by the camera includes at least two foreground objects, and no input of the foreground object selection by the user on the shooting preview interface is received.

[0349] In some embodiments of the present application, when there is no obvious foreground object in the preview image captured by the camera, a first sticker effect is added. For example, to add interesting and decorative elements to the preview image and enrich the picture content. For example, when shooting an empty scene such as the sky or the sea, where there is no prominent foreground object in the picture, a cartoon sticker is added to enhance the interest of the image.

[0350] In some embodiments of the present application, if there are two or more foreground objects in the preview image, the electronic device adds a first sticker effect to the preview image to enhance the interest of the image.

[0351] In some embodiments of the present application, if the user does not actively select the distortion center point, the first sticker effect is added to the preview image according to the default distortion effect and sticker addition method, making the image more beautiful.

[0352] In some embodiments of the present application, when the preview image captured by the camera includes at least two foreground objects and no foreground object selection input from the user on the shooting preview interface is received, indicating that the picture lacks a clear visual focus, a first sticker effect can be added to the preview image to improve the sense of hierarchy of the image.

[0353] In the embodiments of the present application, the electronic device can determine whether to add the first sticker effect according to the second condition, and can add appropriate stickers according to the actual situation to add interest or artistic style to the image, so as to meet the shooting needs of users in different scenarios.

[0354] In some embodiments of the present application, in the case where the preview image captured by the above camera includes a foreground object, the above step 204 can be implemented by the following step 204d2.

[0355] Step 204d2: The electronic device adds a fisheye effect and a first sticker effect to each frame of the preview image captured by the camera, adds a second sticker effect at the position corresponding to the feature points of the above foreground object, displays each frame of the preview image with the fisheye effect, the first sticker effect, and the second sticker effect added on the shooting preview interface, and continuously caches each frame of the preview image with the fisheye effect, the first sticker effect, and the second sticker effect added.

[0356] In some embodiments of the present application, the above second sticker effect can be a decorative sticker effect such as a line decoration sticker effect, a pattern decoration sticker effect, a light and shadow decoration sticker effect, and a style decoration sticker effect. Exemplarily, the above style decoration sticker effect can be a glasses frame sticker effect, a hat sticker effect, etc. Exemplarily, the line decoration sticker effect can be a closed or unclosed figure that outlines the contour of the foreground object.

[0357] It should be noted that a closed figure refers to a shape formed by connecting the head and tail of lines, such as the line decoration around the contour of a foreground object like a circle or a square; an unclosed figure is a figure where the lines are not completely closed, and multiple lines are used to decorate the foreground object.

[0358] In some embodiments of the present application, the electronic device can identify the feature points of the foreground object in the preview image, and then add a first sticker effect at the position where the feature points are located; alternatively, the electronic device can identify the feature points of the foreground object in the preview image, determine the contour of the foreground object according to the feature points, and then add a second sticker effect at the position corresponding to the contour of the foreground object.

[0359] Exemplarily, in combination with the above Figure 9A , such as Figure 9B shown, when the user wants to take a dynamic photo of person A, after the user clicks the fish-eye effect control 26, the electronic device adds a fish-eye effect, a sticker effect 91, and a sticker effect 92 to each frame of the preview image of person A continuously collected by the camera, and identifies the contour of person A, adds a line decoration sticker effect 94 around the contour of person A, and displays the preview image with the fish-eye effect and the sticker effect added in the shooting preview interface 20, and stores each frame of fish-eye image with the fish-eye effect and the sticker effect added in the image data cache space to obtain the dynamic photo of person A subsequently.

[0360] In the embodiments of the present application, the electronic device can automatically identify the feature points of the foreground object and add a second sticker effect. By superimposing the fish-eye effect, the first sticker effect, and the second sticker effect on the preview image, the visual hierarchy of the image is improved and the content of the image is enriched.

[0361] In some embodiments of the present application, when the preview image collected by the above camera includes a foreground object, the above step 204 may include the following step 204e:

[0362] Step 204e: The electronic device adds a fish-eye effect to each frame of the preview image collected by the camera, adds a second sticker effect at the position corresponding to the feature points of the above foreground object, displays each frame of the preview image with the fish-eye effect and the second sticker effect added in the shooting preview interface, and continuously caches each frame of the preview image with the fish-eye effect and the second sticker effect added.

[0363] In some embodiments of the present application, the electronic device can identify the feature points of the foreground object in the preview image through a feature point recognition algorithm. The above feature points can be points such as the edge points, corner points, and texture dense points of the foreground object. After identifying these feature points, the electronic device can add a second sticker effect at the position corresponding to the feature points or add a second sticker effect to the contour of the foreground object.

[0364] In some examples, in combination with the above Figure 2 , such as Figure 10A shown, when the user wants to take a dynamic photo of Person A, after the user clicks on the fish-eye effect control 26, the electronic device adds a fish-eye effect to each frame of the preview image of Person A continuously captured by the camera, and adds a line decoration sticker effect 96 around the recognized contour of Person A, and displays each frame of the preview image with the fish-eye effect and the line decoration sticker effect 96 in the shooting preview interface 20, and stores each frame of the fish-eye image with the fish-eye effect and the line decoration sticker effect in the image data cache space to obtain a dynamic photo of Person A subsequently.

[0365] In some examples, in combination with the above Figure 3A , such as Figure 10B shown, when the user wants to take a dynamic photo of Person A, after the user clicks on the fish-eye effect control 26, the electronic device adds a fish-eye effect to each frame of the preview image of Person A continuously captured by the camera, and adds a glasses frame sticker effect 98 at the position of the glasses of the recognized Person A, and displays each frame of the preview image with the fish-eye effect and the line decoration sticker effect 98 in the shooting preview interface 20, and stores each frame of the fish-eye image with the fish-eye effect and the line decoration sticker effect in the image data cache space to obtain a dynamic photo of Person A subsequently.

[0366] Exemplarily, taking an image of 1440×1880 as an example, each frame of the video stream of the dynamic photo superimposes the previous fish-eye and sticker effects, sends the video 1.5 seconds before and after the shooting moment to the encoder, and selects a cover frame to generate a dynamic photo. As Figure 11 shown, after the electronic device superimposes the fish-eye effect and the sticker effect on each frame of the image frame, it is sent to the application APP for caching. When the user clicks to take a photo, the cached video is sent to the encoder for encoding to generate a dynamic photo in Mp4 format.

[0367] It should be noted that the fish-eye effect is an effect of magnifying in the center and compressing around. For the generated fish-eye effect live photo, there is an effect on the cover frame, and there is also an effect in real time for each frame in the video.

[0368] It should be noted that after triggering the shooting, that is, after receiving the first input, the electronic device will perform the same processing on each frame of the captured image, that is, adding a fish-eye effect and a sticker effect.

[0369] In the embodiments of the present application, the electronic device can automatically identify the feature points of the foreground object and add a second sticker effect, without the user manually performing complex positioning and operations. By combining the fish-eye effect and the second sticker effect, the interest of the image is increased.

[0370] In some embodiments of the present application, the shooting preview interface includes at least one sticker special effect option; illustratively, the dynamic photo shooting method provided in the embodiment of the present application may further include the following steps 212 and 213:

[0371] Step 212: The electronic device receives a user's selection input for at least one of the sticker special effect options.

[0372] Step 213: The electronic device updates the first sticker special effect to a third sticker special effect in response to the selection input.

[0373] Among them, the above-mentioned third sticker special effect is the sticker special effect indicated by the sticker special effect option selected by the above-mentioned selection input.

[0374] In some embodiments of the present application, the above-mentioned selection input may include any of the following: user touch input, voice input, gesture input, folding or unfolding operation of the foldable screen, or other feasible input, which is not limited in the embodiments of the present application. Furthermore, the above-mentioned touch input may be: user click input, sliding input, pressing input, etc. Furthermore, the above-mentioned click operation may be any number of click operations. The above-mentioned sliding operation may be a sliding operation in any direction, such as sliding up, sliding down, sliding to the left, or sliding to the right, etc., which is not limited in the embodiments of the present application.

[0375] In some embodiments of the present application, the above-mentioned selection input is a user's click input on at least one sticker special effect option.

[0376] The third sticker effect is the sticker effect indicated by the sticker effect option selected by the user.

[0377] For example, in combination with the above Figure 2 ,like Figure 12 As shown, after the electronic device enters the fisheye special effects shooting mode, the shooting preview interface 20 includes sticker special effects option 12a, sticker special effects option 13a, sticker special effects option 14a and sticker special effects option 15a. Different sticker special effects options correspond to different sticker special effects. If the user wants to add a sticker special effect corresponding to sticker special effects option 12a to the preview image, the user can click on the sticker special effects option 12a. The electronic device updates the above-mentioned first sticker special effect to the sticker special effect indicated by sticker special effects option 12a according to the user's click operation.

[0378] It should be noted that the electronic device can superimpose various sticker effects according to the position of the foreground object in the preview image to highlight the foreground object in the picture. It can include, but is not limited to, methods such as image feature points and multi-point laser ranging data to identify the subject and the contour line of the subject. For example, when using image feature point detection, the Canny operator or Sobel operator can be used to traverse each pixel point of the image, so as to judge the points with large brightness differences or large color differences as the contour line.

[0379] In some embodiments of the present application, after the electronic device updates the sticker effect, it will add the updated sticker effect to each frame of preview image collected subsequently. Exemplarily, after the user selects the sticker effect option, the electronic device updates the sticker effect on the shooting preview interface, and the user can see the effect of the selected effect in the picture in real time.

[0380] In the embodiments of the present application, by providing sticker effect options, it is possible to select suitable sticker effects according to one's own preferences, so as to obtain dynamic photos that meet the user's needs.

[0381] The following is a schematic illustration of the process of the dynamic photo shooting method provided by the embodiments of the present application in conjunction with the accompanying drawings. Exemplarily, as Figure 13 shown, the above dynamic photo shooting method may include the following steps:

[0382] Step 2a: Receive a click operation on the live mode or fisheye effect control.

[0383] Step 2b: Determine whether the preview image includes a foreground object. If so, execute Step 2c; if not, execute Step 2d:

[0384] Step 2c: Add a fisheye effect around the foreground object.

[0385] Step 2d: Start the global fisheye effect mode.

[0386] Step 2e: Intelligently match and superimpose sticker effects.

[0387] Step 2f: Generate a dynamic photo presenting the fisheye effect and the sticker effect.

[0388] In the embodiments of the present application, through dynamic effect collaborative processing, the video and cover frame of the live photo are both superimposed with fisheye distortion parameters and AR sticker special effects. The two are synchronously adjusted based on the same object detection result (such as facial contour), eliminating the fragmentation feeling of independent calculation of fisheye and sticker effects in the traditional solution, and realizing a natural and exaggerated visual effect (such as the sticker stretching synchronously with the facial enlargement); through the large-angle deformation characteristics of wide-angle plus fisheye distortion, the amplitude of the action is amplified, making the dynamic moment more tense and energetic; the center of the Livephoto screen is prominent, making the objects and children in the center more attractive, and the background is deformed to set off the main body, making the focus on the main body more eye-catching.

[0389] The present application combines dynamic photos with fisheye special effects, providing users with a novel way to shoot pets, dolls, and children, further amplifying the cute features of pets or children, such as big eyes and round faces, making the image more cute and interesting. It reduces the user's creation threshold, and intelligent special effects can be generated with one key, and users can learn the interaction at zero cost. The dynamic expressiveness has leaped, and the large-angle and deformation characteristics make the video of the live photo more tense and energetic; this solution is rendered in real time, and users can directly see the final finished product effect through the preview, what you see is what you get; seamless sharing across platforms, the livephoto photos of this solution can be conveniently shared on various social media; deep development of wide-angle resources, secondary distortion mapping of wide-angle lenses, producing an effect that breaks through the physical field of view angle limit; adding filters and decorative effects according to the position of the main body in the fisheye view can better highlight the main body and increase the interest of the image.

[0390] Each of the above method embodiments, or various possible implementation manners in each method embodiment, can be executed alone, or, on the premise of no contradiction, can also be executed in combination with each other, which can be specifically determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0391] In the embodiments of the present application, the execution subject of the dynamic photo shooting method can be a dynamic photo shooting device. In the embodiments of the present application, taking the dynamic photo shooting device executing the dynamic photo shooting method as an example, the dynamic photo shooting device provided by the embodiments of the present application is described.

[0392] Figure 14 For the schematic diagram of the dynamic photo shooting device provided by the embodiments of the present application, as Figure 14 shown, the device 600 includes: a receiving module 601 and a processing module 602, wherein: the receiving module 601 is used to receive a first input to the shooting preview interface; the processing module 602 is used to respond to the first input received by the receiving module and shoot a dynamic photo, and the dynamic photo includes a cover image and a video; both the cover image and the video present fisheye special effects.

[0393] In some embodiments of the present application, the receiving module is further configured to, before receiving the first input to the shooting preview interface, receive a fifth input to the shooting preview interface, and in response to the fifth input, start the fisheye effect shooting mode, add a fisheye effect to the images captured by the camera, display each frame of the image with the fisheye effect added in the shooting preview interface, and continuously cache each frame of the image with the fisheye effect added, where the images include preview images or cached images.

[0394] In some embodiments of the present application, the receiving module is further configured to, before receiving the first input to the shooting preview interface, receive a second input to the shooting preview interface;

[0395] The processing module is further configured to, in response to the second input received by the receiving module, start the fisheye effect shooting mode, add a fisheye effect to each frame of the preview image captured by the camera, display each frame of the preview image with the fisheye effect added in the shooting preview interface, and continuously cache each frame of the preview image with the fisheye effect added.

[0396] In some embodiments of the present application, the processing module is specifically configured to:

[0397] Perform image processing on the preview images with the fisheye effect added cached at the reference moment to generate a cover image;

[0398] Perform video encoding on all the preview images with the fisheye effect added cached in the first time period and the second time period to generate a video;

[0399] Wherein, the first time period is the first duration before the reference moment, the second time period is the second duration after the reference moment, and the first duration is equal to the second duration.

[0400] In some embodiments of the present application, the processing module is further configured to, after performing video encoding on all the preview images with the fisheye effect added cached in the first time period and the second time period to generate a video, perform encapsulation processing on the video and the cover image to generate a live photo;

[0401] Alternatively, the processing module is further configured to, after performing video encoding on all the preview images with the fisheye effect added cached in the first time period and the second time period to generate a video, associate and store the video and the cover image, where the live photo includes the associated and stored video and cover image.

[0402] In some embodiments of the present application, the processing module is further configured to, after receiving the first input to the shooting preview interface, add a fisheye effect to each frame of the preview image captured by the camera, and display each frame of the preview image with the fisheye effect added in the shooting preview interface.

[0403] In some embodiments of the present application, the receiving module is further configured to receive a selection input for the live mode control in the shooting preview interface before receiving a second input for the shooting preview interface;

[0404] The device further includes: a display module;

[0405] The display module, in response to the selection input received by the receiving module, displays a fisheye effect control in the shooting preview interface;

[0406] The receiving module is specifically configured to receive a second input for the fisheye effect control.

[0407] In some embodiments of the present application, the processing module is specifically configured to:

[0408] Determine the distortion center point;

[0409] Based on the distortion center point, add a fisheye effect to the preview image collected by the camera;

[0410] Wherein, the distortion center point includes: the center point of the preview image collected by the camera, the center point of the foreground object in the preview image collected by the camera, or the coordinate point of the input position of the distortion center point selection input by the user on the shooting preview interface.

[0411] In some embodiments of the present application, the processing module is specifically configured to determine the center point of the preview image collected by the camera as the distortion center point when the first condition is met;

[0412] Wherein, the first condition includes:

[0413] The preview image collected by the camera does not include a foreground object;

[0414] Or, the preview image collected by the camera includes at least two foreground objects;

[0415] Or, no distortion center point selection input from the user is received on the shooting preview interface;

[0416] Or, the preview image collected by the camera includes at least two foreground objects and no foreground object selection input from the user is received on the shooting preview interface.

[0417] In some embodiments of the present application, the processing module is specifically configured to:

[0418] Identify the center point of the foreground object in the preview image collected by the camera;

[0419] Determine the center point of the foreground object as the distortion center point of the preview image collected by the camera.

[0420] In some embodiments of the present application, the processing module is further configured to perform foreground object recognition on the preview image captured by the camera to determine the foreground object in the preview image captured by the camera before identifying the center point of the foreground object in the preview image captured by the camera.

[0421] In some embodiments of the present application, the receiving module is further configured to receive a third input to the shooting preview interface before identifying the center point of the foreground object in the preview image.

[0422] The processing module is further configured to, in response to the third input received by the receiving module, determine the foreground object in the preview image according to the input information of the third input.

[0423] Wherein, the input information includes an input position or an input trajectory.

[0424] In some embodiments of the present application, the device further includes a display module;

[0425] The display module is configured to, after determining the foreground object in the preview image, display a foreground object frame on the foreground object, and the foreground object frame is used to mark the position of the foreground object and determine the distortion center point.

[0426] The processing module is specifically configured to determine the center point of the foreground object frame as the center point of the foreground object.

[0427] The processing module is specifically configured to determine the center point of the foreground object as the distortion center point of the preview image captured by the camera.

[0428] In some embodiments of the present application, the receiving module is further configured to, when the distortion center point is the center point of the preview image captured by the camera, receive a fourth input to the shooting preview interface in the shooting preview state.

[0429] The processing module is further configured to, in response to the fourth input received by the receiving module, update the distortion center point to the coordinate point of the input position of the fourth input.

[0430] In some embodiments of the present application, the processing module is specifically configured to add a fisheye effect to the preview image captured by the camera according to the distortion coefficient and the distortion center point.

[0431] In some embodiments of the present application, the receiving module is further configured to, after adding a fisheye effect to the preview image captured by the camera according to the distortion coefficient and the distortion center point, receive a parameter adjustment input to the distortion degree adjustment control in the shooting preview interface in the shooting preview state.

[0432] The processing module is further configured to update the distortion coefficient according to the input information of the parameter adjustment input.

[0433] In some embodiments of the present application, the processing module is specifically configured to add a fisheye effect and a first sticker effect to each frame of preview image captured by the camera, display each frame of preview image with the fisheye effect and the first sticker effect added on the shooting preview interface, and continuously cache each frame of preview image with the fisheye effect and the first sticker effect added.

[0434] In some embodiments of the present application, the processing module is specifically configured to add a first sticker effect to each frame of preview image captured by the camera when a second condition is met;

[0435] Wherein, the second condition includes:

[0436] The preview image captured by the camera does not include a foreground object;

[0437] Or, the preview image captured by the camera includes at least two foreground objects;

[0438] Or, no input for selecting the distortion center point on the shooting preview interface is received from the user;

[0439] Or, the preview image captured by the camera includes at least two foreground objects, and no input for selecting a foreground object on the shooting preview interface is received from the user.

[0440] In some embodiments of the present application, when the preview image captured by the camera includes a foreground object, the processing module is specifically configured to add a fisheye effect and a first sticker effect to each frame of preview image captured by the camera, add a second sticker effect at the position corresponding to the feature points of the foreground object, display each frame of preview image with the fisheye effect, the first sticker effect and the second sticker effect added on the shooting preview interface, and continuously cache each frame of preview image with the fisheye effect, the first sticker effect and the second sticker effect added.

[0441] In some embodiments of the present application, when the preview image captured by the camera includes a foreground object, the processing module is specifically configured to add a fisheye effect to each frame of preview image captured by the camera, add a second sticker effect at the position corresponding to the feature points of the foreground object, display each frame of preview image with the fisheye effect and the second sticker effect added on the shooting preview interface, and continuously cache each frame of preview image with the fisheye effect and the second sticker effect added.

[0442] In some embodiments of the present application, the shooting preview interface includes at least one sticker effect option;

[0443] The receiving module is further configured to receive a selection input from the user for at least one sticker effect option;

[0444] The processing module is further configured to update the first sticker effect to a third sticker effect in response to the selection input received by the receiving module;

[0445] Among them, the third sticker special effect is the sticker special effect indicated by the selected sticker special effect option in the input selection.

[0446] The dynamic photo shooting device provided in the embodiment of the present application receives a first input to the shooting preview interface. In response to the first input, a dynamic photo is shot, and the dynamic photo includes a cover image and a video, and both the cover image and the video present a fisheye special effect. In this solution, the dynamic photo shooting device superimposes a fisheye special effect on the cover image and the video of the dynamic photo, so that the cover image of the dynamic photo and the associated video present a rich visual effect. Without post-editing, the user can directly obtain a special effect dynamic photo with a fisheye special effect during the shooting stage, achieving a natural and exaggerated visual effect of the dynamic photo.

[0447] The dynamic photo shooting device in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, an in-vehicle electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. It can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiment of the present application does not make specific limitations.

[0448] The dynamic photo shooting device in the embodiment of the present application can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems. The embodiment of the present application does not make specific limitations.

[0449] The dynamic photo shooting device provided in the embodiment of the present application can implement each process implemented by the embodiment of the dynamic photo shooting method. To avoid repetition, it will not be elaborated here.

[0450] Optionally, as Figure 15As shown in the figure, an embodiment of the present application further provides an electronic device 700, including a processor 701 and a memory 702. A program or instruction that can run on the processor 701 is stored on the memory 702. When the program or instruction is executed by the processor 701, each step of the above-mentioned embodiment of the dynamic photo shooting method is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.

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

[0452] Figure 16 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.

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

[0454] Those skilled in the art can understand that the electronic device 100 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 110 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 16 The structure of the electronic device 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 some components, or have different component arrangements, which will not be elaborated here.

[0455] Among them, the user input unit 107 is used to receive a first input to the shooting preview interface; the processor 110 is used to respond to the first input received by the user input unit 107 to shoot a dynamic photo, and the dynamic photo includes a cover image and a video; both the cover image and the video present a fisheye effect.

[0456] In some embodiments of the present application, the user input unit 107 is further used to receive a fifth input to the shooting preview interface before receiving the first input to the shooting preview interface. The processor 110 is further used to respond to the fifth input to start the fisheye effect shooting mode, add a fisheye effect to the image captured by the camera, display each frame of the image with the fisheye effect added on the shooting preview interface, and continuously cache each frame of the image with the fisheye effect added. The image includes a preview image or a cached image.

[0457] In some embodiments of the present application, the user input unit 107 is further configured to receive a second input to the shooting preview interface before receiving a first input to the shooting preview interface; the processor 110 is further configured to, in response to the second input received by the user input unit 107, start the fisheye special effect shooting mode, add the fisheye special effect to each frame of preview image collected by the camera, display each frame of preview image with the fisheye special effect added in the shooting preview interface, and continuously cache each frame of preview image with the fisheye special effect added.

[0458] In some embodiments of the present application, the processor 110 is specifically configured to:

[0459] Perform image processing on the preview image with the fisheye special effect added cached at the reference moment to generate a cover image;

[0460] Video-encode all the preview images with the fisheye special effect added cached in the first time period and the second time period to generate a video;

[0461] Wherein, the first time period is a first duration before the reference moment, the second time period is a second duration after the reference moment, and the first duration is equal to the second duration.

[0462] In some embodiments of the present application, the processor 110 is further configured to, after video-encoding all the preview images with the fisheye special effect added cached in the first time period and the second time period to generate a video, perform encapsulation processing on the video and the cover image to generate a live photo;

[0463] Alternatively, the processor 110 is further configured to, after video-encoding all the preview images with the fisheye special effect added cached in the first time period and the second time period to generate a video, associate and store the video and the cover image, wherein the live photo includes the associated and stored video and cover image.

[0464] In some embodiments of the present application, the processor 110 is further configured to, after receiving a first input to the shooting preview interface, add the fisheye special effect to each frame of preview image collected by the camera, and display each frame of preview image with the fisheye special effect added in the shooting preview interface.

[0465] In some embodiments of the present application, the user input unit 107 is further configured to receive a selection input to the live mode control in the shooting preview interface before receiving a second input to the shooting preview interface;

[0466] The display unit 106, in response to the selection input received by the user input unit 107, displays a fisheye special effect control in the shooting preview interface;

[0467] The user input unit 107 is specifically configured to receive a second input to the fisheye special effect control.

[0468] In some embodiments of the present application, the processor 110 is specifically configured to:

[0469] Determine the distortion center point;

[0470] Based on the distortion center point, add a fish-eye effect to the preview image captured by the camera;

[0471] Wherein, the distortion center point includes: the center point of the preview image captured by the camera, the center point of the foreground object in the preview image captured by the camera, or the coordinate point of the input position selected by the user for the distortion center point on the shooting preview interface.

[0472] In some embodiments of the present application, the processor 110 is specifically configured to, when the first condition is met, determine the center point of the preview image captured by the camera as the distortion center point;

[0473] Wherein, the first condition includes:

[0474] The preview image captured by the camera does not include a foreground object;

[0475] Or, the preview image captured by the camera includes at least two foreground objects;

[0476] Or, no input for selecting the distortion center point by the user on the shooting preview interface is received;

[0477] Or, the preview image captured by the camera includes at least two foreground objects, and no input for selecting a foreground object by the user on the shooting preview interface is received.

[0478] In some embodiments of the present application, the processor 110 is specifically configured to:

[0479] Identify the center point of the foreground object in the preview image captured by the camera;

[0480] Determine the center point of the foreground object as the distortion center point of the preview image captured by the camera.

[0481] In some embodiments of the present application, the processor 110 is further configured to, before identifying the center point of the foreground object in the preview image captured by the camera, perform foreground object recognition on the preview image captured by the camera to determine the foreground object in the preview image captured by the camera.

[0482] In some embodiments of the present application, the user input unit 107 is further configured to receive a third input to the shooting preview interface before identifying the center point of the foreground object in the preview image;

[0483] The processor 110 is further configured to, in response to the third input received by the user input unit 107, determine the foreground object in the preview image according to the input information of the third input.

[0484] Among them, the input information includes the input position or input trajectory.

[0485] In some embodiments of the present application, the display unit 106 is configured to display a foreground object frame on the foreground object after determining the foreground object in the preview image, and the foreground object frame is used to mark the position of the foreground object and determine the distortion center point;

[0486] The processor 110 is specifically configured to determine the center point of the foreground object frame as the center point of the foreground object;

[0487] The processor 110 is specifically configured to determine the center point of the foreground object as the distortion center point of the preview image captured by the camera.

[0488] In some embodiments of the present application, the user input unit 107 is further configured to receive a fourth input to the shooting preview interface in the shooting preview state when the distortion center point is the center point of the preview image captured by the camera;

[0489] The processor 110 is further configured to update the distortion center point to the coordinate point of the input position of the fourth input in response to the fourth input received by the user input unit 107.

[0490] In some embodiments of the present application, the processor 110 is specifically configured to add a fish-eye effect to the preview image captured by the camera according to the distortion coefficient and the distortion center point.

[0491] In some embodiments of the present application, the user input unit 107 is further configured to receive a parameter adjustment input to the distortion degree adjustment control in the shooting preview interface in the shooting preview state after adding a fish-eye effect to the preview image captured by the camera according to the distortion coefficient and the distortion center point;

[0492] The processor 110 is further configured to update the distortion coefficient according to the input information of the parameter adjustment input.

[0493] In some embodiments of the present application, the processor 110 is specifically configured to add a fish-eye effect and a first sticker effect to each frame of the preview image captured by the camera, display each frame of the preview image with the added fish-eye effect and the first sticker effect in the shooting preview interface, and continuously cache each frame of the preview image with the added fish-eye effect and the first sticker effect.

[0494] In some embodiments of the present application, the processor 110 is specifically configured to add a first sticker effect to each frame of the preview image captured by the camera when a second condition is satisfied;

[0495] Among them, the second condition includes:

[0496] The preview image captured by the camera does not include a foreground object;

[0497] Or, the preview image captured by the camera includes at least two foreground objects;

[0498] Or, no input for selecting the distortion center point is received from the user on the shooting preview interface;

[0499] Or, the preview image captured by the camera includes at least two foreground objects, and no input for selecting a foreground object is received from the user on the shooting preview interface.

[0500] In some embodiments of the present application, when the preview image captured by the camera includes a foreground object, the processor 110 is specifically configured to add a fish-eye special effect and a first sticker special effect to each frame of the preview image captured by the camera, add a second sticker special effect at the position corresponding to the feature points of the foreground object, display each frame of the preview image with the fish-eye special effect, the first sticker special effect, and the second sticker special effect added on the shooting preview interface, and continuously cache each frame of the preview image with the fish-eye special effect, the first sticker special effect, and the second sticker special effect added.

[0501] In some embodiments of the present application, when the preview image captured by the camera includes a foreground object, the processor 110 is specifically configured to add a fish-eye special effect to each frame of the preview image captured by the camera, add a second sticker special effect at the position corresponding to the feature points of the foreground object, display each frame of the preview image with the fish-eye special effect and the second sticker special effect added on the shooting preview interface, and continuously cache each frame of the preview image with the fish-eye special effect and the second sticker special effect added.

[0502] In some embodiments of the present application, the shooting preview interface includes at least one sticker special effect option;

[0503] The user input unit 107 is further configured to receive a selection input from the user for at least one sticker special effect option;

[0504] The processor 110 is further configured to update the first sticker special effect to a third sticker special effect in response to the selection input received by the user input unit 107;

[0505] Wherein, the third sticker special effect is the sticker special effect indicated by the sticker special effect option selected by the selection input.

[0506] The electronic device provided by the embodiment of the present application receives a first input to a shooting preview interface. In response to the first input, a dynamic photo is taken. The dynamic photo includes a cover image and a video, and both the cover image and the video present a fisheye effect. In this solution, the electronic device superimposes a fisheye effect on the cover image and the video of the dynamic photo, so that the cover image of the dynamic photo and the associated video present a rich visual effect. Without post-editing, the user can directly obtain a special-effect dynamic photo with a fisheye effect during the shooting stage, achieving a natural and exaggerated visual effect of the dynamic photo.

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

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

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

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

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

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

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

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

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

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

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

Claims

1. A method for taking dynamic photos, characterized in that, The method includes: Receiving a first input to the shooting preview interface; In response to the first input, shooting a dynamic photo, the dynamic photo including a cover image and a video; both the cover image and the video present a fisheye effect.

2. The method according to claim 1, characterized in that, Before receiving the first input to the shooting preview interface, it further includes: Receiving a fifth input to the shooting preview interface; In response to the fifth input, starting a fisheye effect shooting mode, adding a fisheye effect to the images captured by the camera, displaying each frame of the image with the fisheye effect added on the shooting preview interface, and continuously caching each frame of the image with the fisheye effect added, the images including preview images or cached images.

3. The method according to claim 1, wherein Before receiving the first input to the shooting preview interface, it further includes: Receiving a second input to the shooting preview interface; In response to the second input, starting a fisheye effect shooting mode, adding a fisheye effect to each frame of the preview image captured by the camera, displaying each frame of the preview image with the fisheye effect added on the shooting preview interface, and continuously caching each frame of the preview image with the fisheye effect added.

4. The method according to claim 1, characterized in that, Shooting the dynamic photo includes: Performing image processing on the preview image with the fisheye effect added cached at the reference moment to generate a cover image; Video-encoding all the preview images with the fisheye effect added cached in the first time period and the second time period to generate a video; Wherein, the first time period is a first duration before the reference moment, and the second time period is a second duration after the reference moment.

5. The method according to claim 4, characterized in that After video-encoding all the preview images with the fisheye effect added cached in the first time period and the second time period to generate a video, it further includes: Performing encapsulation processing on the video and the cover image to generate a dynamic photo; Or, associatively storing the video and the cover image, wherein the dynamic photo includes the associatively stored video and cover image.

6. The method according to claim 1, wherein After receiving the first input to the shooting preview interface, it further includes: Adding a fisheye effect to each frame of the preview image captured by the camera, and displaying each frame of the preview image with the fisheye effect added on the shooting preview interface.

7. The method according to claim 3, wherein Before receiving the second input to the shooting preview interface, the method further includes: Receiving a selection input to the live mode control in the shooting preview interface; In response to the selection input, displaying a fisheye effect control in the shooting preview interface; Receiving the second input to the shooting preview interface includes: Receiving a second input to the fisheye effect control.

8. The method according to claim 3, characterized in that, Adding a fisheye effect to the preview image captured by the camera includes: Determining a distortion center point; Based on the distortion center point, adding a fisheye effect to the preview image captured by the camera; Wherein, the distortion center point includes: the center point of the preview image captured by the camera, the center point of the foreground object in the preview image captured by the camera, or the coordinate point of the input position of the user's distortion center point selection input on the shooting preview interface.

9. The method according to claim 8, wherein Determining the distortion center point includes: When the first condition is satisfied, determining the center point of the preview image captured by the camera as the distortion center point; Wherein, the first condition includes: The preview image captured by the camera does not include a foreground object; Alternatively, the preview image captured by the camera includes at least two foreground objects; Alternatively, no input for selecting the distortion center point is received from the user on the shooting preview interface; Alternatively, the preview image captured by the camera includes at least two foreground objects, and no input for selecting a foreground object is received from the user on the shooting preview interface.

10. The method according to claim 8, wherein the determining the distortion center point includes: Identifying the center point of the foreground object in the preview image captured by the camera; Determining the center point of the foreground object as the distortion center point of the preview image captured by the camera.

11. The method according to claim 10, wherein Before the identifying the center point of the foreground object in the preview image captured by the camera, the method further includes: Performing foreground object recognition on the preview image captured by the camera to determine the foreground object in the preview image captured by the camera.

12. The method according to claim 10, wherein Before the identifying the center point of the foreground object in the preview image, the method further includes: Receiving a third input to the shooting preview interface; In response to the third input, determining the foreground object in the preview image according to the input information of the third input; wherein the input information includes an input position or an input trajectory.

13. The method according to claim 11 or 12, characterized in that, After the determining the foreground object in the preview image, the method further includes: Displaying a foreground object frame on the foreground object, the foreground object frame being used to mark the position of the foreground object and determine the distortion center point; The determining the center point of the foreground object as the distortion center point of the preview image captured by the camera includes: Determining the center point of the foreground object frame as the center point of the foreground object; Determining the center point of the foreground object as the distortion center point of the preview image captured by the camera.

14. The method according to claim 8, wherein In the case where the distortion center point is the center point of the preview image captured by the camera, the method further includes: Receiving a fourth input to the shooting preview interface in the shooting preview state; In response to the fourth input, updating the distortion center point to the coordinate point of the input position of the fourth input.

15. The method according to claim 8, wherein The adding a fisheye effect to the preview image captured by the camera based on the distortion center point includes: Adding a fisheye effect to the preview image captured by the camera according to the distortion coefficient and the distortion center point.

16. The method according to claim 15, wherein After the adding a fisheye effect to the preview image captured by the camera according to the distortion coefficient and the distortion center point, the method further includes: Receiving a parameter adjustment input for the distortion degree adjustment control in the shooting preview interface in the shooting preview state; Updating the distortion coefficient according to the input information of the parameter adjustment input.

17. The method according to claim 3, wherein The adding a fisheye effect to each frame of the preview image captured by the camera, displaying each frame of the preview image with the fisheye effect added in the shooting preview interface, and continuously caching each frame of the preview image with the fisheye effect added includes: Adding a fisheye effect and a first sticker effect to each frame of the preview image captured by the camera, displaying each frame of the preview image with the fisheye effect and the first sticker effect added in the shooting preview interface, and continuously caching each frame of the preview image with the fisheye effect and the first sticker effect added.

18. The method according to claim 17, characterized in that The adding a first sticker effect to each frame of the preview image captured by the camera includes: When the second condition is satisfied, add a first sticker effect to each frame of preview image captured by the camera; Among them, the second condition includes: The preview image captured by the camera does not include foreground objects; Or, the preview image captured by the camera includes at least two foreground objects; Or, no input of the distortion center point selection by the user on the shooting preview interface is received; Or, the preview image captured by the camera includes at least two foreground objects, and no input of the foreground object selection by the user on the shooting preview interface is received.

19. The method according to claim 17, wherein When the preview image captured by the camera includes foreground objects, adding a fisheye effect and a first sticker effect to each frame of preview image captured by the camera, displaying each frame of preview image with the fisheye effect and the first sticker effect added on the shooting preview interface, and continuously caching each frame of preview image with the fisheye effect and the first sticker effect added, includes: Adding a fisheye effect and a first sticker effect to each frame of preview image captured by the camera, adding a second sticker effect at the position corresponding to the feature points of the foreground object, displaying each frame of preview image with the fisheye effect, the first sticker effect and the second sticker effect added on the shooting preview interface, and continuously caching each frame of preview image with the fisheye effect, the first sticker effect and the second sticker effect added.

20. The method according to claim 3, wherein When the preview image captured by the camera includes foreground objects, adding a fisheye effect to each frame of preview image captured by the camera, displaying each frame of preview image with the fisheye effect added on the shooting preview interface, and continuously caching each frame of preview image with the fisheye effect added, includes: Adding a fisheye effect to each frame of preview image captured by the camera, adding a second sticker effect at the position corresponding to the feature points of the foreground object, displaying each frame of preview image with the fisheye effect and the second sticker effect added on the shooting preview interface, and continuously caching each frame of preview image with the fisheye effect and the second sticker effect added.

21. The method according to claim 17 or 19, characterized in that, The shooting preview interface includes at least one sticker effect option; The method further includes: Receiving a selection input from the user for the at least one sticker effect option; In response to the selection input, updating the first sticker effect to a third sticker effect; Among them, the third sticker effect is the sticker effect indicated by the sticker effect option selected by the selection input.

22. A dynamic photo shooting device, characterized in that, The device includes: a receiving module and a processing module, where: The receiving module is used to receive a first input to the shooting preview interface; The processing module is used to take a dynamic photo in response to the first input received by the receiving module, and the dynamic photo includes a cover image and a video; both the cover image and the video present a fisheye effect.

23. An electronic device, characterized in that, It includes a processor and a memory, and the memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the dynamic photo shooting method according to any one of claims 1-21 are implemented.

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