Method for editing dynamic photograph, and related apparatus

By allowing users to reset the interface after editing one image frame and select another image frame for editing, the problem of poor user experience in the existing technology is solved, and the efficiency of dynamic photo editing is achieved. Convenient.

WO2024239749A1PCT designated stage expired Publication Date: 2024-11-28HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/079176
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-24
Filing Date
2024-02-29
Publication Date
2024-11-28

AI Technical Summary

Technical Problem

In the prior art, electronic devices cannot quickly return to the editing interface of the dynamic photos after editing the image frame of the dynamic photos, resulting in poor user experience and cumbersome operation.

Method used

Provide a method for editing dynamic photos. After editing one image frame, the user can reset the editing interface to the editing interface of dynamic photos, and select another image frame in the interface for continuous editing. The electronic device detects the user. Operations to refresh the display interface, including thumbnails and large images for displaying dynamic photos, providing controls to set image frames as cover images or save as static photos.

Benefits of technology

It improves the interactive efficiency of image frame editing in dynamic photos, simplifies the editing process, improves the user experience, and allows users to quickly switch and save edited image frames between dynamic photo editing interfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024079176_28112024_PF_FP_ABST
    Figure CN2024079176_28112024_PF_FP_ABST
Patent Text Reader

Abstract

A method for editing a dynamic photograph, and a related apparatus. The method comprises: first, an electronic device displaying a first user interface, wherein thumbnails of N image frames of a dynamic photograph and a large image of a first image frame are displayed in the first user interface, and the first image frame is one of the N image frames; then, the electronic device detecting an operation of selecting a thumbnail of a second image frame from among the thumbnails of the N image frames by a user, and the electronic device refreshing the large image of the first image frame into a large image of the second image frame and displaying same; next, the electronic device detecting an operation of editing the second image frame by the user, and the electronic device displaying a second user interface, wherein a large image of the edited second image frame and a first control are displayed in the second user interface; and finally, the electronic device detecting an operation of clicking the first control by the user, and the electronic device displaying the first user interface again. By implementing the technical solution provided in the present application, the user can consecutively edit image frames in the dynamic photograph in the electronic device in an efficient and quick manner.
Need to check novelty before this filing date? Find Prior Art

Description

Dynamic photo editing method and related device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on May 24, 2023, with application number 202310598069.8 and application name “Method and related device for editing dynamic photos”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present invention relates to the fields of electronic technology and image processing, and in particular to a method for editing dynamic photos and related devices. Background Art

[0003] Currently, an increasing number of electronic devices can capture and store dynamic photos. Dynamic photos contain multiple image frames. Electronic devices can also display dynamic photos and the multiple image frames contained in the dynamic photos.

[0004] However, in the prior art, after editing any image frame in a dynamic photo, the electronic device will display the static photo editing interface. When the user wants to continue editing the dynamic photo frame, the user needs to operate in the static photo editing interface, causing the electronic device to return to the thumbnail display interface of the gallery application. The user then operates in the thumbnail display interface again, causing the electronic device to display the large image display interface. Finally, the user needs to operate in the large image display interface again before the electronic device returns to the dynamic photo image frame editing interface. This makes the operation cumbersome and the user experience poor.

[0005] Summary of the Invention

[0006] The present application provides a method and related apparatus for editing dynamic photos. By implementing the method, a user can not only edit the image frames of a dynamic photo, but also, after editing a frame, reset the editing interface for that frame to the editing interface for a dynamic photo. The user can then select another frame in the dynamic photo editing interface for continuous editing. After the user completes editing a frame, the electronic device can also store the edited frame as a static photo in a gallery.

[0007] In a first aspect, the present application provides a method for editing dynamic photos, which may include: an electronic device displays a first user interface, the first user interface displays thumbnails of N image frames contained in the dynamic photo and a large image of the first image frame, the first image frame is one image frame of the N image frames, and the thumbnails of the N image frames are in an optional state; the electronic device detects the user's operation of selecting the thumbnail of the second image frame from the thumbnails of the N image frames, and the electronic device refreshes the large image of the first image frame and displays it as the large image of the second image frame; the electronic device detects the user's operation of editing the second image frame, and the electronic device displays a second user interface, the second user interface displays the large image of the edited second image frame and a first control, the second user interface includes thumbnails of N image frames, but the thumbnails of the N image frames are in an unselectable state; the electronic device detects the user's operation of clicking the first control, and the electronic device displays the first user interface again.

[0008] In this way, users can not only edit the image frames of dynamic photos, but also reset the editing interface for the image frame to the editing interface of dynamic photos after editing a frame. That is, by setting the first control in the second user interface, the user can quickly return to the first user interface through the first control, that is, quickly return to the editing interface of dynamic photos. Because the editing interface of dynamic photos includes thumbnails of N image frames contained in the dynamic photos, users can quickly select other image frames in the dynamic photos for editing again, thereby improving the interaction efficiency in the scenario of editing image frames in dynamic photos.

[0009] In combination with the first aspect, in a possible implementation, before the electronic device displays the first user interface, the method may also include: the electronic device displays a thumbnail display interface of the gallery application, the thumbnail display interface is used to display thumbnails of multiple photos saved in the gallery application, the multiple photo thumbnails include thumbnails of dynamic photos; the electronic device detects the user clicking on the thumbnail of the dynamic photo, and the electronic device displays a large image display interface, and the large image display interface displays a large image of the cover image of the dynamic photo.

[0010] The electronic device displays a first user interface, including: the electronic device detects an operation by a user for expanding a dynamic photo in a large picture display interface, and the electronic device displays the first user interface.

[0011] This way, users can open the Motion Photo from the Gallery app.

[0012] In conjunction with the first aspect, in one possible implementation, before the electronic device displays the first user interface, the method may further include: the electronic device storing at least one image frame buffered before the shutter operation moment and at least one image frame buffered at and after the shutter operation moment as a video; the electronic device storing the image frame captured at the shutter operation moment as a still photo; and the electronic device generating a dynamic photo based on the video and the still photo, wherein the still photo serves as the cover image of the dynamic photo. In this way, the user can take dynamic photos.

[0013] In combination with the first aspect, in a possible implementation, the first image frame is the image frame corresponding to the cover image of the dynamic photo, or the image frame selected for editing by the user last time.

[0014] In conjunction with the first aspect, in one possible implementation, the first user interface further displays a first function option, the first function option is in a first state, and the first state can be used to indicate that the photo displayed in the first user interface is a dynamic photo; the second user interface further displays the first function option, the first function option is in a second state, and the second state is used to indicate that the photo displayed in the second user interface is a static photo. In this way, the user can determine whether the photo in the user interface is a dynamic photo or a static photo based on the state of the first function option.

[0015] In combination with the first aspect, in a possible implementation, the electronic device detects the user's operation of editing the second image frame, and the electronic device displays the second user interface, which may include: the electronic device detects the user's operation of editing the second image frame, and the electronic device displays a third user interface, in which the first function option is displayed, and the first function option is in a second state, and the second state is used to indicate that the photo displayed in the third user interface is a static photo, and the third user interface does not include thumbnails of N frames of image frames; the electronic device detects the user's operation of clicking the first function option in the third user interface, and the electronic device displays the second user interface.

[0016] In conjunction with the first aspect, in one possible implementation, the second user interface further includes a second control. After the electronic device detects a user operation of editing the second image frame and displays the second user interface, the method may further include: the electronic device detects a user operation of clicking the second control, and the electronic device saves the edited second image frame as a first static photo in the gallery application. In this way, the electronic device can save the edited second image frame as the first static photo in the gallery application.

[0017] In conjunction with the first aspect, in one possible implementation, the third user interface further includes a third control, and the method may further include: the electronic device detecting a user clicking the third control, the electronic device saving the edited second image frame as a first static photo in a gallery application, and displaying a large image display interface of the gallery application, wherein the large image display interface displays a large image of the first static photo. In this way, the electronic device can directly return to the large image display interface of the gallery application, making it convenient for the user to view the edited second image frame in the large image display interface.

[0018] In conjunction with the first aspect, in one possible implementation, the electronic device detects the user clicking on the third control, the electronic device saves the edited second image frame as the first static photo in the gallery application, and displays the large image display interface of the gallery application. The method may also include: the electronic device detects the user clicking on the return control in the large image display interface, the electronic device displays the thumbnail display interface, and the thumbnail display interface includes a thumbnail of the newly generated first static photo. In this way, the electronic device can directly return to the thumbnail display interface of the gallery application, which can facilitate the user to view the thumbnail of the newly generated first static photo in the thumbnail display interface, and facilitate the user to perform subsequent operations in the thumbnail display interface of the gallery application.

[0019] In conjunction with the first aspect, in one possible implementation, the first user interface further includes a fourth control and a fifth control. The fourth control is used to set a user-selected image frame from the N image frames as the cover image of the dynamic photo; and the fifth control is used to save the user-selected image frame from the N image frames as a static photo in the gallery application. In this way, the user can change the cover image of the dynamic photo according to their preference and save their favorite image frame as a static photo.

[0020] In conjunction with the first aspect, in one possible implementation, after the electronic device detects a user's operation of selecting a thumbnail of a second image frame from the thumbnails of N image frames, and the electronic device refreshes and displays the large image of the first image frame as the large image of the second image frame, the method may further include: the electronic device detects a user's operation on a fourth control, and the electronic device sets the second image frame as the cover image of the dynamic photo; the electronic device again displays the thumbnail display interface of the gallery application, and the thumbnail display interface shows the thumbnail of the dynamic photo after the cover photo is updated. In this way, after the user changes the cover image of the dynamic photo, the user can also view the thumbnail of the dynamic photo after the cover photo is updated in the gallery.

[0021] In conjunction with the first aspect, in one possible implementation, after the electronic device detects a user's operation of selecting a thumbnail of a second image frame from among N thumbnails of image frames, and the electronic device refreshes and displays the large image of the first image frame as the large image of the second image frame, the method may further include: the electronic device detecting a user operation on a fifth control, and the electronic device saving the second image frame as a second static photo in the gallery application. In this way, users can save their favorite image frames as static photos.

[0022] In combination with the first aspect, in a possible implementation, when the electronic device detects that the image frame selected by the user is a cover image of a dynamic photo, the electronic device sets the fourth control to an unavailable state.

[0023] In combination with the first aspect, in a possible implementation, a first indicator is displayed in the first user interface, and the first indicator is used to indicate that the first image frame is a cover picture of the dynamic photo.

[0024] In combination with the first aspect, in one possible implementation, after the electronic device detects the user's operation on the fourth control and the electronic device sets the second image frame as the cover picture of the dynamic photo, the method may also include: the electronic device displays a second indicator, and the second indicator is used to indicate that the second image frame is the cover picture of the dynamic photo.

[0025] In combination with the first aspect, in a possible implementation, the method may also include: the electronic device stops displaying the first indicator or displays a third indicator; the third indicator is used to indicate that the first image frame is the cover picture automatically selected by the electronic device for the dynamic photo, but the first image frame is not currently the cover picture of the dynamic photo.

[0026] In combination with the first aspect, in a possible implementation, the time information of the first static photo stored by the electronic device is consistent with the shooting time of the dynamic photo; the time information of the second static photo stored by the electronic device is consistent with the shooting time of the dynamic photo.

[0027] In combination with the first aspect, in a possible implementation, the thumbnail of the dynamic photo displayed in the thumbnail display interface of the gallery application includes a first icon, and the first icon is used to indicate that the photo corresponding to the thumbnail is a dynamic photo.

[0028] In combination with the first aspect, in a possible implementation manner, thumbnails of the N image frames are arranged in the first user interface according to the shooting time sequence of the N image frames.

[0029] In a second aspect, an electronic device is provided, which may include one or more cameras, one or more processors and one or more memories; wherein the one or more cameras, one or more memories are coupled to one or more processors, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the method involved in any possible implementation method of the first aspect.

[0030] In a third aspect, a chip system is provided, which is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute the method involved in any possible implementation of the first aspect.

[0031] In a fourth aspect, a computer-readable storage medium is provided, comprising instructions, which, when executed on an electronic device, enable the electronic device to execute the method involved in any possible implementation of the first aspect.

[0032] In a fifth aspect, a computer program product is provided. When the program product is run on an electronic device, the electronic device executes the method involved in any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] FIG1 is a schematic diagram of a thumbnail display interface of a gallery application of an electronic device provided in an embodiment of the present application;

[0034] Figures 2-4 are schematic diagrams of large image display interfaces of a gallery application of an electronic device provided in an embodiment of the present application;

[0035] 5A-9 are schematic diagrams of a set of dynamic photo editing interfaces of an electronic device provided in an embodiment of the present application;

[0036] 10-12 are schematic diagrams of a set of static photo editing interfaces of an electronic device provided in an embodiment of the present application;

[0037] FIG13 is a schematic diagram of a large picture display interface of a picture gallery application of an electronic device provided in an embodiment of the present application;

[0038] 14A-16 are schematic diagrams of a set of dynamic photo editing interfaces of an electronic device provided in an embodiment of the present application;

[0039] Figures 17 to 24 are schematic diagrams of a group of static photo editing interfaces of an electronic device provided in an embodiment of the present application;

[0040] FIG25 is a schematic diagram of a dynamic photo editing interface of an electronic device provided in an embodiment of the present application;

[0041] FIG26 is a schematic diagram of a static photo editing interface of an electronic device provided in an embodiment of the present application;

[0042] FIG27 is a schematic diagram of a large picture display interface of a picture gallery application of an electronic device provided in an embodiment of the present application;

[0043] FIG28 is a schematic diagram of a thumbnail display interface of a gallery application of an electronic device provided in an embodiment of the present application;

[0044] FIG29 is a flow chart of a method for editing a dynamic photo according to an embodiment of the present application;

[0045] Figure 30 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The terms used in the following examples of the present application are for the purpose of describing specific embodiments only and are not intended to limit the present application. As used in the specification and appended claims of the present application, the singular expressions "a," "an," "said," "above," "the," and "this" are intended to include plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in the present application refers to and encompasses any or all possible combinations of one or more of the listed items.

[0047] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0048] The electronic device can store the image frames captured within a preset time length (for example, 1.5s) before the user presses the shutter button and the image frames captured within a preset time length after the user presses the shutter button as a video, store the image frames captured when the user presses the shutter button as a static photo, and then generate a dynamic photo from the video and the static photo. Among them, the static photo can be used as the cover picture of the dynamic photo. That is, the dynamic photo stored by the electronic device includes two parts, one part is the cover picture, and the other part is a video containing multiple image frames. The dynamic photo stored by the electronic device includes two files, namely a picture file storing the cover picture and a video file storing the video. The picture file and the video file can be associated, for example, the file name is the same but the file suffix is ​​different. The video containing multiple image frames of the dynamic photo can contain the image frame corresponding to the cover picture. The cover picture can be the same as its corresponding image frame, or it can be obtained by processing the corresponding image frame.

[0049] In an embodiment of the present application, it is not limited to storing videos of dynamic photos based on image frames captured within a period of time before and after the user presses the shutter, but it is also possible to store videos of dynamic photos based only on image frames captured within a period of time before the user presses the shutter (which may include the moment when the user presses the shutter) or only on image frames captured within a period of time after the user presses the shutter (which may include the moment when the user presses the shutter).

[0050] A static photo is a photo that appears to be static, as opposed to a dynamic photo. Static photos typically present a static image to the user, rather than a dynamic image like a dynamic photo. Static photo formats include, but are not limited to, Joint Photographic Experts Group (JPEG or JPG) and Portable Network Graphics (PNG).

[0051] The formats of the video files include but are not limited to: avi, wmv, mpeg, mp4, m4v, mov, asf, flv, f4v, rmvb, rm, 3gp, vo, etc.

[0052] The formats of image files include but are not limited to: jpg, png, gif, psd, tif, bmp, etc.

[0053] Currently, after an electronic device edits a frame of a dynamic photo selected by the user, it displays the editing interface for a still photo. If the user wishes to select another frame of the dynamic photo to continue editing, the electronic device cannot directly return to the dynamic photo editing interface from the still photo convenient interface. Users cannot select multiple frames of a dynamic photo for continuous editing within the electronic device. This results in a poor user experience.

[0054] In the embodiments of the present application, the cover image may also be referred to as a cover image or simply as a cover. The electronic device may display a thumbnail of the cover image in a gallery application (hereinafter referred to as a gallery) or an album of the electronic device. The user may click on the thumbnail of the cover image in the gallery or album of the electronic device to view the dynamic photo corresponding to the cover image.

[0055] In the embodiment of the present application, a dynamic photo may also be referred to as a dynamic picture, and an image frame may also be referred to as a video frame.

[0056] The following will introduce how a user edits image frames of a dynamic photo in an electronic device with reference to the accompanying drawings.

[0057] In a feasible implementation, the user can set an image frame in the dynamic photo as the cover image, and then edit the image frame set as the cover image. In this way, the user can edit the image frames included in the dynamic photo.

[0058] Figures 1 to 13 show the process of an electronic device setting the image frame selected by the user in a dynamic photo as the cover based on the user's operation and then editing it.

[0059] First, the user needs to expand the dynamic photo whose image frame needs to be edited. There are many ways for users to expand dynamic photos on electronic devices. For example, in a feasible example, the user can click on the thumbnail of the dynamic photo in the application interface of the gallery, and in response to this operation, the electronic device can display the cover image of the dynamic photo. The user then clicks on the "Edit" control, and in response to this operation, the electronic device can expand the dynamic photo. Specifically, please refer to the description in Figures 1-5A and 5B.

[0060] Alternatively, in another feasible example, a user can click on a thumbnail of a dynamic photo in the gallery application interface. In response to this operation, the electronic device can display the cover image of the dynamic photo. The user then clicks on the "Edit" control and the control for indicating that the current interface is a dynamic photo. In response to this operation, the electronic device can expand the dynamic photo.

[0061] It is understandable that different electronic device manufacturers may set different dynamic photo expansion methods. The embodiments of this application do not limit the way users display dynamic photos on electronic devices. The following uses the dynamic photo display method shown in Figures 1-5A and 5B as an example to illustrate.

[0062] 1-5A and 5B illustrate the process of a user expanding dynamic photos in a gallery of an electronic device.

[0063] Figure 1 exemplarily illustrates a user interface 100 of an electronic device. As shown in Figure 1 , the user interface 100 may include thumbnails of multiple photos. Specifically, the user interface 100 may include a thumbnail 101 of a cover image for a dynamic photo. The thumbnail 101 may include an icon 102. The icon 102 may be used to indicate that the photo corresponding to the cover image thumbnail 101 is a dynamic photo. The user may click on the thumbnail 101, and in response to the user operation, the electronic device may display the user interface 200.

[0064] Figure 2 exemplarily illustrates a user interface 200 of an electronic device. As shown in Figure 2 , user interface 200 may be a preview interface for a dynamic photo corresponding to a cover image thumbnail 101. User interface 200 may include a preview area 204, which may be used to display a cover image 205. User interface 200 may also include an icon 201, which may be used to indicate that user interface 200 is a preview interface for a dynamic photo and that the photo displayed in user interface 200 is a dynamic photo.

[0065] The cover image 205 is the cover photo corresponding to the thumbnail 101 shown in FIG. 1 .

[0066] In some feasible examples, when the user clicks the icon 201 or long presses the preview area 204, the electronic device can play the complete dynamic photo, that is, the electronic device can play all image frames contained in the dynamic photo.

[0067] As shown in FIG2 , the user interface 200 may further include multiple function options, such as a function option 202 for viewing more function options, a function option for sharing, a function option 203 for editing, a function option for adding to favorites, a function option for deleting, etc. The user may click on the function option 202, and in response to the user operation, the electronic device may display the user interface 300.

[0068] Figure 3 exemplarily illustrates a user interface 300 of an electronic device. As shown in Figure 3 , the user interface 300 may include a menu bar 301. The menu bar 301 may be used to display multiple functional options, such as a function option 302 for saving the photo displayed in the preview area 204 as a GIF format, a function option 303 for saving the photo displayed in the preview area 204 as a video, and a function option for moving the photo displayed in the preview area 204.

[0069] As shown in FIG. 4 , the user may click on a function option 203 in the user interface 200 . In response to the user operation, the electronic device may display a user interface 400 .

[0070] Figure 5A exemplarily shows a user interface 400 of an electronic device. The user interface 400 can be referred to as an editing interface for a dynamic photo corresponding to the thumbnail 101 of the cover image. As shown in Figure 4, the user interface 400 may include a preview area 204, a control 401, a control 402, a display area 403, an indicator 404, and an editing function area 405. The preview area 204 can display a preview image 407 (also referred to as a preview image) of an image frame 403b. When the user changes the cover image of the dynamic photo, the user can click the control 401 to save the dynamic photo after changing the cover image. The control 402 can be used to return to the previous interface. The display area 403 can be used to display multiple image frames contained in the dynamic photo corresponding to the cover image 205, such as image frame 403a, image frame 403b, image frame 403c, image frame 403d, and image frame 403e. Indicator 404 can be used to indicate that a certain image frame of the dynamic photo is the image frame corresponding to the cover image of the dynamic photo. For example, indicator 404 indicates that image frame 403b is the image frame corresponding to the cover image of the dynamic photo. A preview image 407 of image frame 403b is currently displayed in preview area 204. Editing function area 405 may include multiple function options for editing the preview image in preview area 204 (e.g., thumbnail 101 of the cover image), such as function option 406 for cropping the preview image in preview area 204, filter function option, automatic optimization function option, and adjustment function option.

[0071] It is understood that the preview image 407 of image frame 403b may be the same as or different from the cover image 205. Since the dynamic photos stored by the electronic device include video files and image files, after detecting the user's operation on the shutter key, the electronic device 10 may capture an image frame based on the moment of the user's shutter key operation, store the image frame captured at the moment of the user's shutter key operation as a picture file in picture format, and refresh the thumbnail of the most recent photo in the camera's preview interface to the image file. When generating a dynamic photo, the electronic device may default to the picture file as the cover image of the dynamic photo and determine the image frame in the video file closest to the moment of the cover image capture as the image frame corresponding to the cover image. Since the cover image and the image frame in the video file closest to the moment of the cover image capture may not be the same image frame, the electronic device may use different processing algorithms for image frames in the picture file and the image frames in the video file. Therefore, the cover image defaulted by the electronic device and the preview image of the corresponding video frame may be the same or different.

[0072] It can be understood that the dynamic photo shown in Figure 5A contains 5 image frames (i.e., image frame 403a, image frame 403b, image frame 403c, image frame 403d, and image frame 403e) which is only an example. The dynamic photo can have more or fewer image frames, and the embodiments of the present application are not limited to this.

[0073] It should be noted that the multiple image frames of the dynamic photo displayed in the display area 403 can be arranged in the order in which the multiple image frames are acquired when the electronic device shoots the dynamic photo.

[0074] It is understandable that the editing function area 405 shown in Figure 5A may include more or fewer function options for editing. The embodiment of the present application does not limit the number, shape, and name of the function options for editing contained in the editing function area in the electronic device.

[0075] Optionally, when a dynamic photo contains a large number of image frames, the display area 403 for displaying the image frames of the dynamic photo may also include controls for scrolling forward and backward. For example, as shown in FIG5B , user interface 400 may further include preview area 204, controls 401, controls 402, display area 403, indicator 404, and editing function area 405. Display area 403 may also include controls 409 and 408. The user can click control 409 to view the image frames before image frame 403a. The user can click control 408 to view the image frames after image frame 403e.

[0076] Optionally, when the dynamic photo contains a large number of image frames, the user can slide rightward in the display area 403 to view the image frames before the image frame 403a. The user can also slide leftward in the display area to view the image frames after the image frame 403e.

[0077] Optionally, when a dynamic photo contains a large number of image frames, the user can also use voice commands to view the image frames before image frame 403a and the image frames after image frame 403e. For example, the user can issue a voice command to the electronic device such as "swipe forward" or "swipe left", and after the electronic device receives the voice command, it can display thumbnails of the image frames before image frame 403a. The user can issue a voice command to the electronic device such as "swipe back" or "swipe right", and after the electronic device receives the voice command, it can display thumbnails of the image frames after image frame 403e.

[0078] The following description will be made by taking the user interface 400 shown in FIG5A as an example.

[0079] Users can change the cover image of a dynamic photo. That is, users can set an image frame other than the current cover image in the dynamic photo as the cover image of the dynamic photo.

[0080] 6-8B exemplarily illustrate the process of a user changing the cover image of a dynamic photo.

[0081] Figure 6 exemplarily illustrates a user interface 500 of an electronic device. As shown in Figure 6 , a user can select an image frame 403e in the user interface 500. In response to this user operation, the user interface 500 can display a preview image 501 corresponding to the image frame 403e in the preview area 204 and a control 502. The control 502 can be used to set the image frame corresponding to the thumbnail selected by the user as the cover image of the dynamic photo.

[0082] Optionally, in some feasible examples, when the user selects image frame 403e in user interface 500, the electronic device may highlight image frame 403e. For example, the electronic device may bold and blacken the border color of image frame 403e. Alternatively, the electronic device may display a selection box on image frame 403e. The selection box may be rectangular or have other shapes. The embodiment of the present application does not limit the shape and color of the selection box. Alternatively, the electronic device may enlarge the image frame 403e (larger than other thumbnails), etc. It is understandable that the embodiment of the present application does not limit how the electronic device highlights the thumbnail selected by the user.

[0083] As shown in FIG. 7 , the user may click on a control 502 in the user interface 500 . In response to the user operation, the electronic device may display a user interface 600 .

[0084] Figure 8A illustrates an exemplary user interface 600 of an electronic device. As shown in Figure 8A , user interface 600 may include an indicator 601. This indicator 601 may be located above image frame 403e, indicating that image frame 403e is the cover image for the corresponding dynamic photo. The icon indicating that image frame 403b is the cover image for its corresponding dynamic photo is no longer displayed above image frame 403b. This means that the cover image for the dynamic photo has been changed from image frame 403b to image frame 403e.

[0085] Optionally, in some feasible examples, when the cover image of a dynamic photo changes from image frame 403b to image frame 403e, an icon indicating that image frame 403b was once the cover image of the dynamic photo may be displayed above image frame 403b. As shown in FIG8B , user interface 600 may further include indicator 602. Indicator 602 may be located above image frame 403b to indicate that image frame 403b was once the cover image of the dynamic photo, but that image frame 403b is not currently the cover image of the dynamic photo.

[0086] The following description will be made using the user interface 600 shown in FIG8A as an example.

[0087] After the image frame 403e is set as the cover picture of the dynamic photo, the user can edit the image frame 403e. For example, as shown in Figure 9, the user can click on the function option 406. In response to the user operation, the electronic device can display the user interface 700.

[0088] FIG10 exemplarily illustrates a user interface 700 of an electronic device. As shown in FIG10 , the user interface 700 may include a prompt box 701. The prompt box 701 may be used to prompt the user that the editing effect is only applied to the static photo. The prompt box 701 may include prompt text 705, a control 702, a control 703, and a control 704.

[0089] For example, prompt text 705 may contain the following content: "Apply to still photos. The following editing effects will only apply to still photos. Are you sure you want to edit?" It is understood that the specific content of prompt text 705 is not limited in this embodiment of the present application. The user can click control 702, and the electronic device will respond to the user's operation by no longer popping up prompt box 701. The user can click control 703 to cancel the editing process. The user can also click control 704 to confirm the continued editing process.

[0090] The following description will be made by taking the example of the user clicking on the control 704 to confirm the continuation of editing. As shown in FIG10 , the user can click on the control 704 , and in response to the user operation, the electronic device can display a user interface 800 .

[0091] FIG11 exemplarily shows a user interface 800 of an electronic device. As shown in FIG11 , the user interface 800 may include a preview area 204, a preview image 801, and multiple functional options for editing the preview image 801. The multiple functional options for editing the preview image 801 may include a functional option 803 for cropping the preview image 801, a functional option for intelligently optimizing the preview image, a functional option for adding filters to the preview image 801, and a control 804 for adding graffiti to the preview image 801, etc. Taking the example of a user selecting functional option 803 and then selecting functional option 802, the preview image 801 is the preview image 501 (i.e., the preview image of the image frame 403e) obtained by freely cropping the preview image 501 (i.e., the preview image of the image frame 403e). The user can also doodle in the cropped preview image 801, as shown in FIG11 , or the user can click control 804. In response to this user operation, the electronic device can display the user interface 900.

[0092] In some examples, cropping may also be referred to as pruning.

[0093] Figure 12 exemplarily illustrates a user interface 900 of an electronic device. As shown in Figure 12 , the user interface 900 may include a preview image 901 after graffiti editing, as well as graffiti editing options 902 and 903. Preview image 901 may be obtained by a user selecting graffiti editing options 902 and 903 and then editing graffiti in preview image 801.

[0094] It is understood that the embodiments of this application do not limit the specific editing operations on image frames. The editing operations of cropping and then graffiti on the user-selected image frame shown in Figures 11 and 12 are only examples. The user can perform any editing operations on the image frame, such as beautifying, adding filters, adjusting brightness, etc.

[0095] After the user edits the selected image frame, the edited image frame can be saved. As shown in FIG12 , the user can click on the control 401 , and in response to the user operation, the electronic device can display the user interface 1000 .

[0096] Fig. 13 exemplarily shows a user interface 1000 of an electronic device. As shown in Fig. 13 , the user interface 1000 displays a still photo 1001 stored by the electronic device.

[0097] Figures 1-13 are schematic diagrams of a process for editing image frames in a dynamic photo provided by an embodiment of the present application. A user can edit any image frame in a dynamic photo selected by the user according to the process shown in Figures 1-11 above. However, according to the above process, before the electronic device edits any image frame in the dynamic photo, it must set the image frame to be edited as the cover image of the dynamic photo based on the user's operation, and then edit the image frame that has been set as the cover image based on the user's operation. In this way, the process of editing image frames in a dynamic photo by the electronic device is somewhat cumbersome.

[0098] In the schematic diagrams of the process of editing image frames in a dynamic photo shown in Figures 1-13, after the user selects an image frame of the dynamic photo for editing, the electronic device displays the static photo editing interface, such as user interface 800 and user interface 900 shown in Figures 11 and 12. User interfaces 800 and 900 do not provide a control for returning from the static photo editing interface to the dynamic photo editing interface (such as user interface 400 shown in Figure 5A). As a result, during or after editing a frame, the user cannot quickly return to the dynamic photo editing interface to continue editing another frame.

[0099] In order to enable users to continuously edit image frames in dynamic photos, an embodiment of the present application provides a method for processing dynamic images. Users can not only continuously edit image frames in dynamic photos. When editing image frames in a dynamic photo, the electronic device does not need to set other image frames in the dynamic photo as cover images, but can directly edit any image frame in the dynamic photo. In this way, continuous editing of image frames in dynamic photos can be achieved, and the process of electronic devices editing image frames in dynamic photos can be simplified, saving power consumption of electronic devices and improving user experience.

[0100] 14A to 25 are schematic diagrams showing a process in which an electronic device edits an image frame in a dynamic photo to obtain a static photo and then returns to the dynamic photo editing interface.

[0101] The user may click on the function option 203 in the user interface 200 of the electronic device. In response to the user operation, the electronic device may display the user interface 1100 .

[0102] Figure 14A exemplarily illustrates a user interface 1100 of an electronic device. As shown in Figure 14A, user interface 1100 may include a preview area 204, a display area 403, a control 1101, a control 1102, a control 1103, a control 402, and an editing function area 1104. Preview area 204 may display the image frame currently selected by the user, i.e., a preview image 407 corresponding to image frame 403b. Display area 403 may display multiple image frames (e.g., image frames 403a, 403b, 403c, 403d, and 403e) included in a dynamic photo. Control 1101 may be used to create an emoticon package from the image frames in the display area. Control 1102 can be used to set image frames (e.g., image frames 403a, 403c, 403d, and 403e) in display area 403 other than image frame 403b currently serving as the cover image of a dynamic photo as the cover image of the dynamic photo. Alternatively, after setting image frames other than image frame 403b corresponding to the preview image 407 of the current cover image as the cover image, image frame 403b can be set back as the cover image. Control 1103 can be used to save any image frame contained in a dynamic photo as a picture (also referred to as a static photo). Control 402 can be used to return to the previous interface. Editing function area 1104 can include multiple function options for editing the preview image in preview area 204, such as function option 1105 for resetting the preview image editing interface to the dynamic photo editing interface, function option 1106 for cropping the preview image, function options for adding filters to the preview image, function options for adjusting the brightness, contrast, and saturation of the preview image, function options for beautifying the preview image, and the like.

[0103] Alternatively, when the image frame selected by the user is a cover image, that is, when the user selects image frame 403b, the electronic device may disable control 1102. This means that the user cannot set an image frame that is already a cover image for a dynamic photo as a cover image for the dynamic photo again. For example, control 1102 shown in FIG. 14A is disabled.

[0104] It is understood that when the image frame selected by the user is not the cover image of the dynamic photo, control 1102 is enabled. For example, as shown in FIG14B , when the user currently selects image frame 403e, control 1102 is enabled. That is, the user can click control 1102 to set image frame 403e as the cover image of the dynamic photo.

[0105] 14A and 14B , the function option in the user interface 1100 is in state 1. When the function option 1105 is in state 1, it can also be used to indicate that the photo displayed in the interface is a dynamic photo.

[0106] The user can save any image frame of the dynamic photo as a picture by clicking on the control 1103. For example, as shown in the user interface 1200 of Figure 15, the user currently selects the image frame 403e, and then the user can click on the control 1103. In response to the user operation, the electronic device can save the image frame 403e as a picture. Optionally, after the electronic device saves the image frame 403e as a picture, a prompt box 1201 can be displayed. The prompt box 1201 can be used to prompt the user that the electronic device has saved the image frame 403e to the "Camera" album of the electronic device. The prompt content of the prompt box 1201 can be "Saved to the "Camera" album". It can be understood that the embodiment of the present application does not limit the specific prompt content of the prompt box 1201.

[0107] The user can select any image frame of the dynamic photo and then select a function option to edit the preview image of the image frame. For example, as shown in the user interface 1100 of the electronic device shown in Figure 16, the user can select image frame 403e in the display area 403 of the user interface 1100. In response to this user operation, the electronic device can display the preview image 501 of the image frame 403e in the preview area 204. After the user selects image frame 403e, the user can click function option 1106 in the editing function area 1104. In response to this user operation, the electronic device can display user interface 1300.

[0108] Figure 17 illustrates an exemplary user interface 1300 of an electronic device. As shown in Figure 17 , user interface 1300 may include a prompt box 1301. This prompt box 1301 may be used to inform the user that the editing effect applies only to still photos. Prompt box 1301 may include prompt text 1305, a control 1302, a control 1303, and a control 1304. For details about prompt box 1301, please refer to the description of prompt box 701 above and will not be repeated here.

[0109] The following description will be made by taking the example of the user clicking on the control 1304 to confirm the continuation of editing. As shown in FIG17 , the user may click on the control 1304 , and in response to the user operation, the electronic device may display a user interface 1400 .

[0110] FIG18 exemplarily shows a user interface 1400 of an electronic device. As shown in FIG18 , the user interface 1400 may include a preview area 204, a preview image 801, and multiple functional options and controls 1401 for editing the preview image 801. The multiple functional options for editing the preview image 801 may include a functional option 1106 for cropping the preview image 801, a functional option for intelligently optimizing the preview image, a functional option 1107 for adding graffiti to the preview image 801, and a functional option for adding filters to the preview image 801, etc. Taking the example of a user selecting functional option 1106 and then selecting functional option 802, the preview image 801 is obtained by freely cropping the preview image 501 (i.e., the preview image of the image frame 403e). The control 1401 can be used to save the edited preview image in the user interface 1300.

[0111] The user interface shown in Figure 18 is an editing interface for static photos. As shown in Figure 18, the function option 1105 is currently in state 2. When the function option 1105 is in state 2, it can be used to indicate that the photo displayed in the user interface 1400 is a static photo.

[0112] The user may click on the function option 1107 again, and in response to the user operation, the electronic device may display the user interface 1500 .

[0113] Figure 19 exemplarily illustrates a user interface 1500 of an electronic device. As shown in Figure 19 , user interface 1500 may include a preview image 1501 after graffiti editing, as well as graffiti editing options 902 and 903. Preview image 1501 may be obtained by a user selecting graffiti editing options 902 and 903 and then editing graffiti in preview image 801.

[0114] It is understood that the embodiments of this application do not limit the specific editing operations on image frames. The editing operations of cropping and then graffiti on the user-selected image frame shown in Figures 18 and 19 are only examples. The user can perform any editing operations on the image frame, such as beautifying, adding filters, adjusting brightness, etc.

[0115] When the user electronic device returns from the current static photo editing interface to the dynamic photo editing interface to continue editing the image frames of the dynamic photo, the user can click function option 1105. As shown in Figure 20, the user can click function option 1105 in user interface 1500, and in response to the user operation, the electronic device can display user interface 1600.

[0116] Figure 21 exemplarily shows a user interface 1600 of an electronic device. As shown in Figure 21 , the user interface 1600 may include a preview area 204, a control 1101, a control 402, a display area 403, an edit function option 1104, and a control 1602. A preview image 1601 is displayed in the preview area 204.

[0117] Among them, preview picture 1601 and preview picture 1501 correspond to the same static photo. Preview picture 1501 is the preview picture of the static photo in edit mode. Preview picture 1601 is the preview picture of the static photo in photo display or photo preview mode.

[0118] Optionally, the multiple image frames in the display area 403 can be set to a non-selectable preview state. That is, the user cannot select any image frame and then view the preview image corresponding to the image frame in the preview area 204. The preview area 204 no longer displays the preview image of the image frame selected by the user.

[0119] The user can also click control 1103 in the user interface to save the edited image frame displayed in the preview area 204, i.e., preview image 1601, to the electronic device. As shown in Figure 22, the user can click control 1103, and in response to the user operation, the electronic device can display a prompt box 1603. This prompt box 1603 can be used to prompt the user that the electronic device has saved the preview image to the "Camera" album in the gallery application. At this time, the electronic device does not jump to the interface of the preview photo saved to the gallery, but continues to remain in the interface shown in Figure 22.

[0120] The user can click control 1602 in user interface 1600 to reset the electronic device's static photo interface to a dynamic photo editing interface. As shown in FIG23 , the user can click control 1602, and in response to the user operation, the electronic device can display a prompt box 1604. As shown in FIG24 , a prompt box 1604 can be displayed in user interface 1600 of the electronic device. Prompt box 1604 can be used to reset the user's electronic device to display a dynamic photo and delete the edited effects. Prompt box 1604 can include prompt text 1608 and controls 1605, 1606, and 1607.

[0121] Among them, prompt text 1608 can be used to prompt the user whether to reset. The prompt text 1608 can be "Reset to dynamic photo. Resetting to dynamic photo will delete the edited effects. Are you sure you want to reset?" It is understandable that the embodiment of the present application does not limit the prompt text 1608.

[0122] The user can click control 1605, and in response to the user operation, the electronic device no longer displays prompt box 1604. The user can click control 1606 to cancel the reset to dynamic photo. The user can also click control 1607 to confirm the reset to dynamic photo.

[0123] The following uses the example of a user clicking control 1607 to reset to a dynamic photo as an example. As shown in FIG24 , the user can click control 1607 in user interface 1600. In response to this user action, the electronic device can display a dynamic photo editing interface, namely, user interface 1100 shown in FIG25 . In this user interface 1100, function option 1105 is in state 1.

[0124] The user can select another image frame of the dynamic photo in the user interface 1100 to edit. The editing process of the other image frame can refer to the editing process of the image frame 403e shown in Figures 14A to 19 above.

[0125] When the user wants to continue editing the dynamic photo, he can click on the function option 1105. In response to the user operation, the electronic device can return from the static photo editing interface to the dynamic photo editing interface. In this way, the user can continuously edit another image frame in the dynamic photo editing interface.

[0126] Optionally, when the user does not want to continue editing the dynamic photo, they can also save a static photo of the currently edited image frame. In addition, the edited static photo will be displayed in the electronic device's gallery accordingly. For example, as shown in Figure 26, the user can click control 1401 in user interface 1500. In response to the user operation, the electronic device can display user interface 1000.

[0127] As shown in FIG27 , user interface 1000 can be a large-image display interface for a still photo 1001. User interface 1000 can also be referred to as a preview interface for still photo 1001. Still photo 1001 is the edited image frame 403e stored by the electronic device. For details regarding user interface 1000, please refer to the description of FIG13 above and will not be repeated here.

[0128] The user may also click on the control 1002 in the user interface 1000 , and in response to the user operation, the electronic device may display the user interface 1700 .

[0129] FIG28 exemplarily illustrates a user interface 1700 of an electronic device. User interface 1700 is the upper level interface of user interface 1000. As shown in FIG28 , user interface 1700 can be used to display thumbnails of multiple photos stored in the electronic device categorized by time and location. For example, thumbnail 1701 of a still photo saved on May 1, 2023, corresponds to the preview image 1501 saved by the user in user interface 1500.

[0130] The thumbnail 1701 and the thumbnail 101 of the cover photo of the dynamic photo can be in the same category column (classified by shooting date) in the gallery.

[0131] Further, as shown in FIG28 , in the photo classification display interface of the gallery, the thumbnail 1701 can be displayed adjacent to the thumbnail 101 of the cover photo of the dynamic photo, that is, the thumbnail 1701 can be located on the left side of the thumbnail 101 of the cover photo of the dynamic photo.

[0132] Optionally, the thumbnail 1701 may be located to the right of the thumbnail 101 of the cover image of the dynamic photo.

[0133] Optionally, in a possible implementation, the electronic device may arrange the thumbnail 1701 and the thumbnail 101 of the cover photo of the dynamic photo in the gallery in chronological order of acquisition time, according to the acquisition time of the image frame of the dynamic photo corresponding to the thumbnail 1701 and the acquisition time of the image frame corresponding to the cover photo of the dynamic photo. For example, if the acquisition time of the image frame of the dynamic photo corresponding to the thumbnail 1701 is before the acquisition time of the image frame corresponding to the cover photo of the dynamic photo, the electronic device will display the thumbnail 1701 in the gallery in the next row (that is, under the same category column in the gallery, the thumbnail 101 is located at the far right and the thumbnail 1701 is located at the far left of the next row) or to the right of the thumbnail 101 of the cover photo. If the acquisition time of the image frame of the dynamic photo corresponding to thumbnail 1701 is after the acquisition time of the image frame corresponding to the cover picture of the dynamic photo, then the electronic device will display thumbnail 1701 in the upper row of thumbnail 101 of the cover photo in the gallery (that is, under the same category column of the gallery, thumbnail 1701 is at the far right, and thumbnail 101 is at the far left of the next row) or on the left.

[0134] Alternatively, the user can set image frame 403e as the cover image in the user interface 1100 shown in FIG14B . When the cover image of the dynamic photo is changed from image frame 403b to image frame 403e, the electronic device can save the dynamic photo with the changed cover image in the electronic device's gallery. The user can view the dynamic photo's cover image in the gallery.

[0135] Optionally, the electronic device can save the dynamic photo with the cover image replaced as another dynamic photo.

[0136] It is understood that the cropping of the image frames of the dynamic photos shown in the above figures is only an example, and the user can also perform other editing operations on the image frames of the dynamic photos according to the process shown in the above figures, such as adding filters, beautifying, graffiti, adding text, or adding stickers, etc. The embodiments of the present application do not limit the specific editing operations of the image frames of the dynamic photos.

[0137] Through the dynamic photo editing method shown in Figures 14A-28 above, users can not only edit the image frames of the dynamic photo, but also reset the editing interface for that image frame to the dynamic photo editing interface after editing a frame. The user can then select another frame in the dynamic photo editing interface to continuously edit. After the user completes editing a frame, the electronic device can also store the edited frame as a still photo in the gallery.

[0138] Based on the above description of the process of an electronic device editing image frames in a dynamic photo, an embodiment of the present application provides a method for editing a dynamic photo, which can edit any image frame saved in the dynamic photo, and the electronic device can also save the edited image frame as a static photo.

[0139] The following describes a method for editing a dynamic photo provided by an embodiment of the present application in conjunction with the accompanying drawings. As shown in Figure 29, a method for editing a dynamic photo provided by an embodiment of the present application may include the following steps:

[0140] S2901. The electronic device displays a first user interface, which displays thumbnails of N image frames contained in the dynamic photo and a large image of the first image frame. The first image frame is one of the N image frames, and the thumbnails of the N image frames are in an optional state.

[0141] The thumbnails of the N image frames are arranged in the first user interface according to the shooting time sequence of the N image frames.

[0142] The first user interface may be user interface 1100 shown in FIG14A . The N image frames may be image frames 403a, 403b, 403c, 403d, and 403e shown in FIG14A . The first image frame may be image frame 403b. The large image of the first image frame may be preview image 407. Thumbnails of image frames 403a, 403b, 403c, 403d, and 403e are selectable. That is, the user can select a thumbnail of any image frame from among image frames 403a, 403b, 403c, 403d, and 403e in user interface 1100.

[0143] The first image frame may be the image frame corresponding to the cover image of the dynamic photo, or may be the image frame selected by the user last time.

[0144] In one possible implementation, when the first image frame is the image frame corresponding to the cover image of a dynamic photo, a first indicator may be displayed in the first user interface. The first indicator may be used to indicate that the first image frame is the cover image of the dynamic photo. Referring to Figure 14A, the first indicator may be indicator 404. Indicator 404 may be used to indicate that image frame 403b is the cover image of the dynamic photo (or the image frame corresponding to the cover image).

[0145] In one possible implementation, the first user interface may further include a fourth control and a fifth control. The fourth control is used to set the image frame selected by the user from the N image frames as the cover image of the dynamic photo; the fifth control is used to save the image frame selected by the user from the N image frames as a static photo in the gallery. Referring to Figure 14A, the fourth control may be control 1102 in Figure 14A, and the fifth control may be control 1103 in Figure 14A.

[0146] In one possible implementation, when the electronic device detects that the image frame selected by the user is the cover image of a dynamic photo, the electronic device sets the fourth control to a disabled state. Referring to FIG14A , the image frame selected by the user is image frame 403b, which corresponds to the current cover image. At this time, the control 1102 is disabled.

[0147] In one possible implementation, before the electronic device displays the first user interface, the method may further include: the electronic device displays a thumbnail display interface of a gallery application, the thumbnail display interface being used to display thumbnails of multiple photos saved in the gallery application, the multiple photo thumbnails including thumbnails of dynamic photos; the electronic device detects an operation of a user clicking on a thumbnail of a dynamic photo, and the electronic device displays a large image display interface, wherein the large image display interface displays a large image of the cover image of the dynamic photo.

[0148] The electronic device displays the first user interface, specifically including: the electronic device detects the user's operation for expanding the dynamic photo in the large picture display interface, and the electronic device displays the first user interface.

[0149] Before the electronic device displays the first user interface, the method may further include: the electronic device stores at least one image frame cached before the shutter operation moment and at least one image frame cached at and after the shutter operation moment as a video; the electronic device stores the image frames captured at the shutter operation moment as a static photo; the electronic device generates a dynamic photo based on the video and the static photo, wherein the static photo is the cover picture of the dynamic photo.

[0150] The first user interface also displays a first function option, which is in a first state. The first state can be used to indicate that the photo displayed in the first user interface is a dynamic photo. Referring to Figure 14A, the first function option can be function option 1105 in Figure 14A. Function option 1105 is in the first state in user interface 1100 shown in Figure 14A. The first state can be referred to as state 1 above.

[0151] S2902: The electronic device detects that a user selects a thumbnail of a second image frame from among thumbnails of N image frames, and the electronic device refreshes and displays the large image of the first image frame as the large image of the second image frame.

[0152] 14B , the second image frame may be image frame 403 e . When the user selects the thumbnail of image frame 403 e , the large image displayed in preview area 204 is refreshed to the large image of image frame 403 e , ie, preview image 501 .

[0153] In one possible implementation, the electronic device detects the user's operation of selecting the thumbnail of the second image frame from the thumbnails of N image frames, and after the electronic device refreshes the large image of the first image frame to display the large image of the second image frame, the method may also include: the electronic device detects the user's operation of acting on the fourth control, and the electronic device sets the second image frame as the cover image of the dynamic photo; the electronic device again displays the thumbnail display interface of the gallery application, and the thumbnail display interface shows the thumbnail of the dynamic photo after the cover photo is updated. Referring to Figures 14A and 14B, in Figure 14A, the image frame 403B selected by the user is the cover image of the dynamic photo. In Figure 14B, the user can click control 1102 after selecting image frame 403e, so that image frame 403e can be updated to the cover image of the dynamic photo. After the update, the thumbnail 101 of the dynamic photo in the user interface shown in Figure 1 will be updated to the thumbnail of image frame 403e.

[0154] In one possible implementation, the electronic device detects the user's operation of selecting the thumbnail of the second image frame from the thumbnails of N image frames, and after the electronic device refreshes and displays the large image of the first image frame as the large image of the second image frame, the method may also include: the electronic device detects the user's operation on the fifth control, and the electronic device saves the second image frame as a second static photo in the gallery. As shown in Figure 15, after selecting image frame 403e, the user can click control 1103. In response to the user operation, the electronic device can save image frame 403e as a static photo in the gallery application. The thumbnail of the static photo can also be displayed in the thumbnail display interface shown in Figure 1.

[0155] In one possible implementation, after the electronic device detects a user operation on the fourth control and sets the second image frame as the cover image of the dynamic photo, the method may further include: the electronic device displaying a second indicator, the second indicator being used to indicate that the second image frame is the cover image of the dynamic photo. Referring to Figure 8A, the second indicator may be indicator 601 in Figure 8A.

[0156] In one possible implementation, the method may further include: the electronic device stopping displaying the first indicator or displaying a third indicator; the third indicator is used to indicate that the first image frame is a cover image automatically selected by the electronic device for the dynamic photo, but the first image frame is not currently the cover image of the dynamic photo. Referring to FIG. 8B , the third indicator may be indicator 602 shown in FIG. 8B .

[0157] S2903. The electronic device detects the user's operation of editing the second image frame, and the electronic device displays a second user interface. The second user interface displays a large image of the edited second image frame and a first control. The second user interface includes thumbnails of N image frames, but the thumbnails of the N image frames are in an unselectable state.

[0158] The second user interface may be user interface 1600 shown in FIG. 21 . The large image of the edited second image frame may be preview image 1601. The first control may be control 1602. The thumbnails of image frames 403a, 403b, 403c, 403d, and 403e in user interface 1600 are in an unselectable state. That is, the user cannot select the thumbnail of any of image frames 403a, 403b, 403c, 403d, and 403e in user interface 1600.

[0159] In one possible implementation, the second user interface also displays a first function option, which is in a second state. The second state indicates that the photo displayed in the second user interface is a still photo. Referring to FIG. 21 , the first function option may be function option 1105 shown in FIG. 21 . In user interface 1600 shown in FIG. 21 , function option 1105 is in the second state. The second state may also be referred to as state 2 above.

[0160] In one possible implementation, the second user interface also includes a second control. After the electronic device detects a user's operation of editing the second image frame and displays the second user interface, the method may further include: the electronic device detects a user's operation of clicking the second control, and the electronic device saves the edited second image frame as the first static photo in the gallery application. Referring to Figure 22, the second control may be control 1103 shown in Figure 22. After the user clicks control 1103, the electronic device may save the edited image frame 403e, i.e., preview image 1601, as a static photo in the gallery application.

[0161] In one possible implementation, the electronic device detects the user's operation of editing the second image frame, and the electronic device displays the second user interface, including: the electronic device detects the user's operation of editing the second image frame, and the electronic device displays a third user interface, the third user interface displays a first function option, the first function option is in a second state, and the second state is used to indicate that the photo displayed in the third user interface is a static photo, and the third user interface does not include thumbnails of N image frames; the electronic device detects the user's operation of clicking the first function option in the third user interface, and the electronic device displays the second user interface.

[0162] 20 , the third user interface may be user interface 1500 shown in FIG 20 . That is, after the user selects the second image frame for editing in the first user interface, the third user interface is displayed first, and then after the user clicks the first function option in the third user interface, the electronic device displays the second user interface.

[0163] In one possible implementation, the third user interface also includes a third control, and the method may further include: the electronic device detects the user clicking the third control, the electronic device saves the edited second image frame as the first static photo in the gallery application, and displays the large image display interface of the gallery application, wherein the large image display interface displays a large image of the first static photo. Referring to Figure 20, the third control may be the control 1401 shown in Figure 20. When the user clicks the control 1401 in Figure 20, the electronic device may display the user interface 1000 shown in Figure 27, i.e., the large image display interface of the gallery application. The user interface 1000 displays a large image of the edited image frame 403e, i.e., the static photo 1001.

[0164] In one possible implementation, the electronic device detects the user clicking on the third control, the electronic device saves the edited second image frame as the first static photo in the gallery application, and displays the large image display interface of the gallery application. The method may also include: the electronic device detects the user clicking on the return control in the large image display interface, the electronic device displays the thumbnail display interface, and the thumbnail display interface includes the newly generated thumbnail of the first static photo. Referring to Figure 27, the user can click on the return control 1002 in the user interface 1000. In response to the user operation, the electronic device can display the thumbnail display interface of the gallery application as shown in Figure 28, that is, the user interface 1700 in Figure 28. The user interface 1700 displays a thumbnail 1701 of the newly generated static photo.

[0165] In a possible implementation, the time information of the first static photo stored by the electronic device is consistent with the shooting time of the dynamic photo; the time information of the second static photo stored by the electronic device is consistent with the shooting time of the dynamic photo.

[0166] In a possible implementation, the thumbnail of the dynamic photo displayed in the thumbnail display interface of the gallery application includes a first icon, and the first icon is used to indicate that the photo corresponding to the thumbnail is a dynamic photo.

[0167] S2904: The electronic device detects that the user clicks on the first control, and displays the first user interface again.

[0168] 23 , the user can click on the control 1602 shown in FIG 23 . In response to the user operation, the electronic device displays a prompt box 1604 as shown in FIG 24 . After the user clicks on the control 1607 in the prompt box 1604 , the electronic device displays the user interface 1100 again as shown in FIG 25 .

[0169] Through the dynamic photo editing method provided in the embodiments of the present application, users can not only edit the image frames of the dynamic photo, but also reset the editing interface for the image frame to the dynamic photo editing interface after editing the image frame. The user can then select another image frame in the dynamic photo editing interface to continuously edit. After the user finishes editing a frame, the electronic device can also store the edited image frame as a static photo in the gallery.

[0170] The following first introduces an exemplary electronic device 10 provided in an embodiment of the present application.

[0171] FIG30 is a schematic structural diagram of an electronic device 10 provided in an embodiment of the present application.

[0172] The following embodiments are described in detail using electronic device 10 as an example. It should be understood that electronic device 10 may have more or fewer components than shown in the figure, may combine two or more components, or may have a different component configuration. The various components shown in the figure may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.

[0173] The electronic device 10 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0174] It should be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 10. In other embodiments of the present application, the electronic device 10 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0175] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0176] The controller may be the nerve center and command center of the electronic device 10. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0177] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0178] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0179] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device 10.

[0180] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.

[0181] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0182] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.

[0183] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 10. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 10.

[0184] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0185] The SIM interface can be used to communicate with the SIM card interface 195 to implement the function of transmitting data to the SIM card or reading data in the SIM card.

[0186] USB interface 130 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. USB interface 130 can be used to connect a charger to charge electronic device 10, or to transfer data between electronic device 10 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as AR devices.

[0187] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 10. In other embodiments of the present application, the electronic device 10 may also adopt a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.

[0188] The charging management module 140 is configured to receive charging input from a charger, which may be a wireless charger or a wired charger.

[0189] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to provide power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.

[0190] The wireless communication function of the electronic device 10 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0191] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 10 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0192] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 10. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0193] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0194] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 10. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0195] In some embodiments, antenna 1 of electronic device 10 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 10 can communicate with a network and other devices via wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite-based augmentation system (SBAS).

[0196] Electronic device 10 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0197] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 10 may include one or N display screens 194, where N is a positive integer greater than one.

[0198] The electronic device 10 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0199] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and color. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.

[0200] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 10 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0201] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 10 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0202] Video codecs are used to compress or decompress digital video. Electronic device 10 may support one or more video codecs. This allows electronic device 10 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0203] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 10, such as image recognition, face recognition, speech recognition, and text comprehension.

[0204] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 10. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0205] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 10 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, applications required for at least one function (such as face recognition function, fingerprint recognition function, mobile payment function, etc.), etc. The data storage area can store data created during the use of the electronic device 10 (such as face information template data, fingerprint information template, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0206] The electronic device 10 can implement audio functions such as music playback and recording through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0207] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

[0208] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 10 can listen to music or listen to hands-free calls through the speaker 170A.

[0209] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 10 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.

[0210] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 10 can be provided with at least one microphone 170C. In other embodiments, the electronic device 10 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 10 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.

[0211] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0212] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 10 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 10 detects the touch intensity based on pressure sensor 180A. Electronic device 10 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, an instruction to create a new short message is executed.

[0213] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 10. In some embodiments, the angular velocity of the electronic device 10 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 10 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 10 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

[0214] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 10 calculates altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.

[0215] Magnetic sensor 180D includes a Hall effect sensor. Electronic device 10 can use magnetic sensor 180D to detect the opening and closing of a flip case. In some embodiments, when electronic device 10 is a flip phone, electronic device 10 can detect the opening and closing of the flip cover based on magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.

[0216] Accelerometer 180E can detect the magnitude of acceleration of electronic device 10 in all directions (generally three axes). When electronic device 10 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.

[0217] The distance sensor 180F is used to measure distance. The electronic device 10 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 10 can use the distance sensor 180F to measure distance to achieve fast focusing.

[0218] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 10 emits infrared light outward through the light emitting diode. The electronic device 10 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 10. When insufficient reflected light is detected, the electronic device 10 can determine that there is no object near the electronic device 10. The electronic device 10 can use the proximity light sensor 180G to detect that the user is holding the electronic device 10 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0219] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 10 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light brightness. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 10 is in a pocket to prevent accidental touches.

[0220] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 10 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0221] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 10 uses the temperature detected by the temperature sensor 180J to implement a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 10 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 10 heats the battery 142 to prevent the electronic device 10 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 10 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.

[0222] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 10, in a location different from that of the display screen 194.

[0223] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 10 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 10.

[0224] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0225] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0226] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and disconnected from the electronic device 10 by inserting it into or removing it from the SIM card interface 195. The electronic device 10 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 10 interacts with the network through the SIM card to implement functions such as calls and data communications.

[0227] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0228] As used in the above embodiments, the term “when…” may be interpreted to mean “if…” or “after…” or “in response to determining…” or “in response to detecting…”, depending on the context. Similarly, the phrases “upon determining…” or “if (stated condition or event) is detected” may be interpreted to mean “if determining…” or “in response to determining…” or “upon detecting (stated condition or event)” or “in response to detecting (stated condition or event)”, depending on the context.

[0229] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk).

[0230] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A method for editing a dynamic photo, characterized in that: include: The electronic device displays a first user interface, wherein the first user interface displays thumbnails of N image frames included in the dynamic photo and a large image of a first image frame, wherein the first image frame is one of the N image frames, and the thumbnails of the N image frames are in a selectable state; The electronic device detects an operation of a user selecting a thumbnail of a second image frame from the thumbnails of the N image frames, and the electronic device refreshes and displays the large image of the first image frame as the large image of the second image frame; The electronic device detects an operation of a user editing the second image frame, and displays a second user interface, wherein the second user interface displays a large image of the edited second image frame and a first control, and the second user interface includes thumbnails of the N image frames, but the thumbnails of the N image frames are in a non-selectable state; The electronic device detects that the user clicks on the first control, and the electronic device displays the first user interface again.

2. The method according to claim 1, characterized in that: Before the electronic device displays the first user interface, the method further includes: The electronic device displays a thumbnail display interface of a gallery application, wherein the thumbnail display interface is used to display thumbnails of a plurality of photos saved in the gallery application, wherein the thumbnails of the plurality of photos include thumbnails of the dynamic photos; The electronic device detects that a user clicks on a thumbnail of the dynamic photo, and the electronic device displays a large picture display interface, wherein the large picture display interface displays a large picture of the cover picture of the dynamic photo; The electronic device displays a first user interface, including: The electronic device detects an operation by a user in the large picture display interface to expand the dynamic photo, and displays the first user interface.

3. The method according to claim 2, characterized in that Before the electronic device displays the first user interface, the method further includes: The electronic device stores at least one image frame buffered before the shutter operation moment and at least one image frame buffered at and after the shutter operation moment as a video; The electronic device stores the image frames collected at the moment of shutter operation as static photos; The electronic device generates a dynamic photo based on the video and the static photo, wherein the static photo is a cover picture of the dynamic photo.

4. The method according to any one of claims 1 to 3, characterized in that: The first image frame is the image frame corresponding to the cover image of the dynamic photo, or is the image frame selected and edited by the user last time.

5. The method according to any one of claims 1 to 4, characterized in that: The first user interface also displays a first function option, the first function option is in a first state, and the first state can be used to indicate that the photo displayed in the first user interface is a dynamic photo; The second user interface also displays the first function option, and the first function option is in a second state. The second state is used to indicate that the photo displayed in the second user interface is a static photo.

6. The method according to claim 5, characterized in that The electronic device detects an operation of a user editing the second image frame, and displays a second user interface, including: The electronic device detects an operation of a user editing the second image frame, and displays a third user interface, wherein the first function option is displayed in the third user interface, and the first function option is in a second state, wherein the second state is used to indicate that the photo displayed in the third user interface is a static photo, and the third user interface does not include thumbnails of the N image frames; The electronic device detects that a user clicks on the first function option in the third user interface, and the electronic device displays the second user interface.

7. The method according to any one of claims 1 to 6, characterized in that: The second user interface further includes a second control, and after the electronic device detects a user's operation of editing the second image frame, and the electronic device displays the second user interface, the method further includes: The electronic device detects an operation of a user clicking on the second control, and the electronic device saves the edited second image frame as a first static photo in the gallery application.

8. The method according to claim 6, characterized in that The third user interface also includes a third control, and the method further includes: The electronic device detects an operation of a user clicking on the third control, saves the edited second image frame as a first static photo in the gallery application, and displays a large image display interface of the gallery application, wherein the large image display interface displays a large image of the first static photo.

9. The method according to claim 8, characterized in that After the electronic device detects a user clicking on the third control, the electronic device saves the edited second image frame as a first static photo in a gallery application, and displays a large image display interface of the gallery application, the method further includes: The electronic device detects that the user clicks on the return control in the large picture display interface, and the electronic device displays the thumbnail display interface, which includes the newly generated thumbnail of the first static photo.

10. The method according to any one of claims 1 to 9, characterized in that: The first user interface also includes a fourth control and a fifth control, the fourth control being used to set the image frame selected by the user from the N image frames as the cover image of the dynamic photo; the fifth control being used to save the image frame selected by the user from the N image frames as a static photo in the gallery application.

11. The method according to claim 10, characterized in that The electronic device detects an operation of a user selecting a thumbnail of a second image frame from the thumbnails of the N image frames, and after the electronic device refreshes and displays the large image of the first image frame as the large image of the second image frame, the method further includes: The electronic device detects an operation performed by a user on the fourth control, and sets the second image frame as a cover image of the dynamic photo; The electronic device displays the thumbnail display interface of the gallery application again, wherein the thumbnail display interface includes the thumbnail of the dynamic photo after the cover photo is updated.

12. The method according to claim 10, characterized in that The electronic device detects an operation of a user selecting a thumbnail of a second image frame from the thumbnails of the N image frames, and after the electronic device refreshes and displays the large image of the first image frame as the large image of the second image frame, the method further includes: The electronic device detects an operation performed by a user on the fifth control, and the electronic device saves the second image frame as a second static photo in the gallery application.

13. The method according to any one of claims 10 to 12, characterized in that: The method further comprises: When the electronic device detects that the image frame selected by the user is the cover image of the dynamic photo, the electronic device sets the fourth control to an unavailable state.

14. The method according to any one of claims 1 to 13, characterized in that: A first indicator is displayed in the first user interface, and the first indicator is used to indicate that the first image frame is a cover picture of the dynamic photo.

15. The method according to claim 4, characterized in that After the electronic device detects the user's operation on the fourth control, and the electronic device sets the second image frame as the cover image of the dynamic photo, the method further includes: The electronic device displays a second indicator, where the second indicator is used to indicate that the second image frame is a cover picture of the dynamic photo.

16. The method according to claim 15, characterized in that The method further comprises: The electronic device stops displaying the first indicator or displays a third indicator; the third indicator is used to indicate that the first image frame is the cover picture automatically selected by the electronic device for the dynamic photo, but the first image frame is not currently the cover picture of the dynamic photo.

17. The method according to any one of claims 1 to 16, characterized in that: The time information of the first static photo stored by the electronic device is consistent with the shooting time of the dynamic photo; The time information of the second static photo stored in the electronic device is consistent with the shooting time of the dynamic photo.

18. The method according to any one of claims 1 to 17, characterized in that: The thumbnail of the dynamic photo displayed in the thumbnail display interface of the gallery application includes a first icon, and the first icon is used to indicate that the photo corresponding to the thumbnail is a dynamic photo.

19. The method according to any one of claims 1 to 18, characterized in that The thumbnails of the N image frames are arranged in the first user interface according to the shooting time sequence of the N image frames.

20. An electronic device, characterized in that: It includes one or more cameras, one or more processors and one or more memories; wherein the one or more cameras, the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the method described in any one of claims 1-19 is executed.

21. A chip system, the chip system is applied to electronic equipment, the chip system comprises one or more processors, characterized in that: The processor is configured to call computer instructions so as to execute the method according to any one of claims 1 to 19.

22. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the method according to any one of claims 1 to 19 is executed.

Citation Information

Patent Citations

  • Dynamic photo editing method and related device

    CN119027541A

  • Dynamic picture processing method, device, storage medium and electronic equipment

    CN107610206A

  • Short video generation method and device and electronic equipment

    CN109922252A

  • Video production method, device and equipment and storage medium

    CN111935504A

  • Video frame loupe

    US20150346984A1