Method for editing dynamic photo and related apparatus
By providing dynamic photo editing methods on electronic devices, allowing users to edit any image frame and save it as static photos, the problem of low editing efficiency in the prior art is solved and the user experience is improved.
Patent Information
- Application Number
- PCT/CN2024/079063
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-24
- Filing Date
- 2024-02-28
- Publication Date
- 2025-02-06
AI Technical Summary
In the prior art, the electronic device has low interaction efficiency when editing image frames in dynamic photos, and cannot meet the user's need for editing image frames in dynamic photos.
Provides a dynamic photo editing method, allowing users to edit any image frame in a dynamic photo and save the edited image frame as a static photo in the gallery application, without setting the image frame as a cover image of the dynamic photo.
It improves the interactive efficiency of image frame editing in dynamic photos, meets users' editing needs for image frames in dynamic photos, and improves user experience.
Smart Images

Figure CN2024079063_06022025_PF_FP_ABST
Abstract
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 202310597498.3 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, the interaction efficiency of electronic devices when editing image frames in dynamic photos is low, and cannot meet the user's editing needs for image frames in dynamic photos.
[0005] Summary of the Invention
[0006] The present invention provides a method and related apparatus for editing dynamic photos. By implementing the method, any image frame in a dynamic photo can be edited directly, without having to set the image frame as the cover image for the dynamic photo. This improves the efficiency of interaction when editing image frames in a dynamic photo.
[0007] In a first aspect, the present application provides a method for editing dynamic photos, which include: a cover image and a video consisting of multiple image frames. The method may include: an electronic device displaying a thumbnail display interface of a gallery application, wherein a thumbnail of the dynamic photo is displayed in the thumbnail display interface, and the thumbnail is a thumbnail of the cover image; the electronic device detects a first operation of a user opening the dynamic photo in the thumbnail display interface, and the electronic device displays the cover image; the electronic device detects a second operation for displaying the dynamic photo, and the electronic device displays a dynamic photo editing interface, wherein the dynamic photo editing interface includes a first preview area and a first display area, the first preview area displays the cover image, and the first display area includes thumbnails of multiple image frames contained in the dynamic photo, and the multiple image frames include a first image frame corresponding to the cover image; the electronic device detects a third operation of the user selecting a second image frame for editing, and the electronic device saves the edited second image frame as a first static photo in the gallery application, and the second image frame is an image frame in the multiple image frames that does not correspond to the cover image.
[0008] A first indicator is displayed in the first display area, and the first indicator can be used to indicate that the first image frame is a cover picture of a dynamic photo.
[0009] The multiple image frames are arranged in the first display area according to a shooting time sequence of the multiple image frames.
[0010] This allows electronic devices to edit image frames within a dynamic photo and save them as static photos in the gallery app. Furthermore, electronic devices can directly edit image frames without having to set them as cover images for the dynamic photo. This allows users to select any image frame within a dynamic photo for editing, and the interaction is highly efficient, thus improving the user experience.
[0011] In combination with the first aspect, in a possible implementation, the third operation may include an operation of the user selecting a thumbnail of the second image frame from the thumbnails of multiple image frames and an operation of the user selecting an editing function option in the dynamic photo editing interface; the electronic device detects the third operation of the user selecting the second image frame for editing, and the electronic device saves the edited second image frame as the first static photo in the gallery application, which may include: the electronic device detects the operation of the user selecting the thumbnail of the second image frame from the thumbnails of multiple image frames, and the electronic device displays the second image frame in the first preview area; the electronic device detects the operation of the user selecting an editing function option in the dynamic photo editing interface, and the electronic device statically displays the photo editing interface, the static photo editing interface including a second preview area for displaying the second image frame and a parameter setting area corresponding to the editing function option; the electronic device edits the second image frame in response to the user operation in the parameter setting area and saves the edited second image frame as the first static photo in the gallery application.
[0012] In combination with the first aspect, in a possible implementation, the dynamic photo editing interface also includes a first control and a second control; the first control is used to set the image frame selected by the user from multiple image frames as the cover image of the dynamic photo; the second control is used to save the image frame selected by the user from multiple image frames as a static photo in the gallery application.
[0013] According to an embodiment of the present application, the electronic device detects that a user has selected a thumbnail of a second image frame from among thumbnails of multiple image frames. After the electronic device displays the second image frame in the first preview area, even if the user does not click the first control in the dynamic photo editing interface to set the second image frame as the cover image of the dynamic photo, the user directly selects the editing function option in the dynamic photo editing interface. The electronic device can directly edit the second image frame, and the interaction efficiency is high, thereby improving the user experience.
[0014] In combination with the first aspect, in a possible implementation, the electronic device detects an operation by which a user selects a thumbnail of a second image frame from thumbnails of multiple image frames, and after the electronic device displays the second image frame in the first preview area, the method may further include: the electronic device detects a fourth operation by the user acting on the first control, and the electronic device sets the second image frame as the cover image of the dynamic photo; the electronic device displays the thumbnail display interface of the gallery application again, and the thumbnail display interface displays the thumbnail of the dynamic photo after the cover image is updated.
[0015] This allows users to change the cover image of a dynamic photo. When a user changes the cover image of a dynamic photo, the thumbnail of the dynamic photo will also be refreshed in the gallery app. This way, users can see the updated cover image thumbnail in the thumbnail display interface of the gallery app.
[0016] In combination with the first aspect, in one possible implementation, the electronic device detects an operation in which a user selects a thumbnail of a second image frame from thumbnails of multiple image frames, and after the electronic device displays the second image frame in a first preview area, the method may further include: the electronic device detects a fifth operation performed by the user on a second control, and the electronic device saves the second image frame as a second static photo in a gallery application.
[0017] This allows users to save image frames from a Live Photo as still photos in their gallery.
[0018] In combination with the first aspect, in a possible implementation, after the electronic device detects a third operation in which the user selects the second image frame for editing, and the electronic device saves the edited second image frame as the first static photo in the gallery application, the method may further include: the electronic device displays the edited second image frame and the third control; the electronic device detects a sixth operation in which the user uses the third control, and the electronic device returns to the thumbnail display interface of the gallery application, where the thumbnail display interface displays a thumbnail of the first static photo.
[0019] In this way, the electronic device can save the user-edited image frame as a static photo in the gallery. Furthermore, the electronic device can directly return to the thumbnail display interface of the gallery from the edited image frame interface. This makes it convenient for the user to view the edited image frame in the gallery.
[0020] In conjunction with the first aspect, 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 first control to a disabled state. In this way, the user can be prevented from setting the image frame that was originally the cover image as the cover again.
[0021] In conjunction with the first aspect, in one possible implementation, after the electronic device detects the fourth user operation on the first 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. In this way, the user knows through the second indicator that the second image frame has been updated to the cover image of the dynamic photo.
[0022] In conjunction with the first aspect, 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 being used to indicate that the first image frame is the cover image automatically selected by the electronic device for the dynamic photo, but the first image frame is not currently the cover image for the dynamic photo. In this way, the user can know through the third indicator that the first image frame is the default cover image of the electronic device.
[0023] In conjunction with the first aspect, in one possible implementation, the time information of the first still photo stored by the electronic device is consistent with the shooting time of the dynamic photo. In this way, the user can know that the still photo is associated with the dynamic photo and that the still photo is obtained by editing and saving a certain image frame in the dynamic photo.
[0024] 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.
[0025] 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.
[0026] 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.
[0027] 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
[0028] FIG1A-FIG1D are schematic diagrams of a user interface for taking dynamic photos of an electronic device provided in an embodiment of the present application;
[0029] FIG2 is a schematic diagram showing the principle of generating a dynamic photo by an electronic device provided in an embodiment of the present application;
[0030] FIG3 is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0031] 4A-4C are schematic diagrams of a set of user interfaces of an electronic device provided in an embodiment of the present application;
[0032] FIG5A is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0033] FIG5B is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0034] FIG6 is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0035] FIG7 is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0036] FIG8A is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0037] FIG8B is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0038] FIG9 is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0039] FIG10 is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0040] FIG11 is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0041] FIG12 is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0042] FIG13 is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0043] FIG14 is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0044] FIG15 is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0045] FIG16 is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0046] FIG17 is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0047] FIG18 is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0048] FIG19 is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0049] FIG20A is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0050] FIG20B is a schematic diagram of a user interface of an electronic device provided in an embodiment of the present application;
[0051] FIG21 is a flow chart of a method for editing a dynamic photo provided in an embodiment of the present application;
[0052] FIG22 is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] 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.
[0054] 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.
[0055] The electronic device can store the image frames captured within a preset time (for example, 1.5s) before the user presses the shutter button and the image frames captured within a preset time 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 image of the dynamic photo. That is, the dynamic photo stored by the electronic device includes two parts, one part is the cover image, and the other 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 image 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. Among them, the video of the dynamic photo can contain the image frame corresponding to the cover image. The cover image can be the same as its corresponding image frame, or it can be obtained by processing the corresponding image frame.
[0056] 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).
[0057] 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. Formats for static photos include, but are not limited to, Joint Photographic Experts Group (JPEG or JPG) and Portable Network Graphics (PNG).
[0058] Among them, the formats of video files include but are not limited to: avi format, wmv format, mpeg format, mp4 format, m4v format, mov format, asf format, flv format, f4v format, rmvb format, rm format, 3gp format, vo format, RMVB format, MOV format, etc.
[0059] The formats of image files include but are not limited to: jpg, png, gif, psd, tif, bmp, etc.
[0060] Next, it will be described how the electronic device 10 takes dynamic photos.
[0061] Turn on the dynamic photo shooting function
[0062] Before taking a dynamic photo, the electronic device 10 needs to enable a dynamic photo taking function.
[0063] The dynamic photo shooting function may mean that after the dynamic photo shooting function is enabled and a user clicks the shutter button, the electronic device 10 may automatically capture at least one image frame within a first time period before the user clicks the shutter button, multiple image frames within a second time period after the user clicks the shutter button, and then obtain a cover image. The electronic device 10 may generate a dynamic photo based on the multiple image frames and the cover image, and store the dynamic photo in a gallery application (also referred to as a gallery).
[0064] In the embodiment of the present application, click may include: touch (down) and lift (up), that is, the user's finger or stylus touches the screen for a preset time and then lifts it up.
[0065] First, it is introduced how the electronic device 10 enables the dynamic photo shooting function.
[0066] 1A to 1D exemplarily illustrate UI diagrams of the electronic device 10 when the dynamic photo shooting function is enabled.
[0067] As shown in Figure 1A, the electronic device 10 can display a desktop 111, in which a page with application icons is displayed. The page includes multiple application icons (for example, a settings application icon, an application market application icon, a gallery application icon, a browser application icon, etc.). A page indicator is also displayed below the multiple application icons to indicate the total number of desktops, the position of the negative one screen, the position of the currently displayed desktop, and the positional relationship between the currently displayed desktop and other desktops. A tray area or dock bar (Dock bar) is displayed below the page indicator. The tray area includes multiple tray icons, for example, a camera application icon, an address book application icon, a phone application icon, and a message application icon. The tray area remains displayed when the page is switched. In some embodiments, the above-mentioned page may also include multiple application icons and a page indicator. The page indicator may not be part of the page and may exist independently. The above-mentioned tray icon is also optional, and the embodiments of the present application are not limited to this.
[0068] The electronic device 10 may receive user input (e.g., a single click) on the camera application icon. In response to the input operation, the electronic device 10 may display a user interface as shown in FIG1B . FIG1B is a user interface for a capture and display service provided by the electronic device 10 according to an embodiment of the present application, which may also be referred to as a camera preview interface.
[0069] As shown in FIG. 1B , the preview interface may include a mode bar 127 , a capture control 122 , a preview window 123 , and a review control 124 .
[0070] The mode bar 127 may include multiple shooting mode options, such as "night scene", "portrait", "photo", "video recording", etc. Different shooting modes can provide users with shooting services with different effects. Users can select any shooting mode from multiple shooting modes to shoot according to different needs. For example, "photo recording" may be the default shooting mode for taking photos. "Video recording" is used to record videos. The "night scene" mode is suitable for shooting scenes with dim light, such as at night. The "portrait" mode is suitable for shooting scenes where the subject is a person. The electronic device 10 can also provide more shooting modes, such as "large aperture", "movie", "professional", etc., which are not listed here one by one.
[0071] The electronic device 10 can detect user operations on the shooting mode options in the mode bar 127 and change the currently used shooting mode based on the user operations. Such user operations include left / right swipe operations. For example, when the mode bar 127 is dragged and swiped to the left (left swipe operation) and the float stops at the "Portrait" option, the electronic device 10 can switch to the "Portrait" mode. By default, the electronic device 10 first uses the "Photograph" mode.
[0072] The capture control 122 is used to trigger a photo. The electronic device 10 can detect whether a user operation, such as a click, is applied to the capture control 122. Upon detecting a user operation on the capture control 122, the electronic device 10 can generate a capture instruction. Based on the capture instruction, the electronic device 10 can retrieve the image reported by the camera at the corresponding timestamp and save it as a photo.
[0073] The preview window 123 can be used to display the image reported by the camera in real time. In different shooting modes, the electronic device 10 can process the image reported by the camera to improve the image display effect. For example, in "Portrait" mode, the electronic device 10 can blur the background in the image reported by the camera to highlight the portrait. Here, the preview window 123 can display the image processed by the image processing algorithm corresponding to each shooting mode in real time, allowing the user to perceive the shooting effect corresponding to each shooting mode in real time.
[0074] The review control 124 can be used to browse thumbnails of photos / videos that have been taken. When a user operation acting on the review control 124 is detected, the electronic device 10 can also display the photo or dynamic photo corresponding to the thumbnail.
[0075] The preview interface also includes a quick function area 126. As shown in FIG1B , the quick function area 126 may include a smart code scanning control 126A, a dynamic photo shooting mode control 126B, an AI scene recognition control 126C, a flash control 126D, a filter mode control 126E, and a settings control 126F. When enabled, the smart code scanning control 126A can be used to trigger the electronic device 10 to recognize a QR code, barcode, or multi-function code. When enabled, the dynamic photo shooting mode control 126B can be used to generate a dynamic photo when the user presses the shutter button. When the dynamic photo shooting mode control 126B is disabled, the dynamic photo shooting function is not enabled on the electronic device 10. When enabled, the AI scene recognition control 126C can be used to trigger the electronic device 10 to recognize the shooting scene in the preview screen and recommend a shooting mode based on the shooting scene. The AI scene recognition control 126C is currently disabled. The flash control 126D can be used to trigger the electronic device 10 to turn the flash on or off. The filter mode control 126E can be used to trigger the electronic device 10 to process the image captured by the camera using a color filter. The setting control 126F may be used to set shooting parameters of the electronic device 10 (eg, image size, image storage format, etc.).
[0076] FIG1B shows the camera interface in normal photo mode. In normal photo mode, the preview stream supports a zoom range of 0.5x to 10x. The current zoom value is 1x.
[0077] For example, as shown in FIG1B , after the electronic device 10 enters the camera application for the first time, if the dynamic photo shooting mode control 126B is in the off state, the electronic device 10 may display the prompt message “Click to turn on dynamic photo” shown in FIG1B to prompt the user to turn on the dynamic photo shooting function.
[0078] For example, as shown in FIG1C , the electronic device 10 may receive a user input operation (e.g., a single click, a tap) on the dynamic photo shooting mode control 126B in the preview interface. In response to the user input operation, the electronic device 10 may display the preview interface shown in FIG1D . In the preview interface shown in FIG1D , the dynamic photo shooting mode control 126B has switched its display mode, such as being displayed in a darker color or without the slash, to indicate that the dynamic photo shooting function of the electronic device 10 has been enabled.
[0079] Optionally, after the electronic device 10 turns on the dynamic photo shooting function, the electronic device 10 can display the prompt information shown in Figure 1D "After the dynamic photo is turned on, long press the taken photo to show the dynamic effect", to prompt the user that they can view multiple image frames in the dynamic photo by long pressing.
[0080] FIG. 2 is a schematic diagram showing the principle of the electronic device 10 generating a dynamic photo.
[0081] After the electronic device 10 turns on the dynamic photo shooting function, the electronic device 10 can start caching multiple image frames acquired within the first time length (1.5 seconds) before the current time. As the preview time increases, the electronic device 10 can refresh at least one image frame of the first time length stored and clear the previously stored image frames. Optionally, each image frame carries a timestamp, which can be generated by the camera. In this article, the first time length is not limited to 1.5 seconds and can be set as needed in actual applications.
[0082] After detecting that the user presses the shutter button, the electronic device 10 can continue to cache at least one image frame acquired within the second time period (1.5 seconds) after the user presses the shutter button. The second time period is not limited to 1.5 seconds and can be set according to needs in actual applications.
[0083] In one possible implementation, the electronic device 10 may use a single image frame captured at the moment the user presses the shutter button as the cover image for the dynamic photo. In other possible implementations, the cover image may also be at least one image frame before the user presses the shutter button, or at least one image frame between the user pressing the shutter button and the frame with the best image evaluation among at least one image frame before the user presses the shutter button and at least one image frame between the user pressing the shutter button and the frame with the best image evaluation. In other possible implementations, the cover image may also be the image frame displayed by the electronic device 10 at the moment the user presses the shutter button. In other possible implementations, the cover image may also be several image frames before the user presses the shutter button, or several image frames between the user pressing the shutter button and the frame of image obtained by fusing several image frames before the user presses the shutter button and several image frames between the user pressing the shutter button and the frame of image obtained by fusing several image frames before the user presses the shutter button and the frame of image obtained by fusing several image frames before the user presses the shutter button and the frame of image obtained by fusing several image frames after the user presses the shutter button. The cover image may also be determined based on other methods. This application uses the example of the cover image being a single image frame captured by the electronic device 10 at the moment the user presses the shutter button as an example.
[0084] After acquiring at least one image frame before the user presses the shutter button and at least one image frame after the user presses the shutter button, as well as the cover image, the electronic device 10 may generate a dynamic photo and save the dynamic photo in the gallery.
[0085] In some application scenarios, users may wish to capture and edit a specific frame in a dynamic photo due to personalized needs. For example, when taking a dynamic photo of a close-up of a person, the user may be dissatisfied with a specific frame and wish to edit and save the frame. Another example is when capturing a dynamic photo of an object in motion, the user may wish to crop or doodle on a specific frame.
[0086] Currently, users cannot select multiple frames of images contained in a dynamic photo for editing in an electronic device, which results in a poor user experience.
[0087] 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 the gallery or 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.
[0088] 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.
[0089] 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.
[0090] The following will describe in detail how users can edit image frames included in dynamic photos with reference to the accompanying drawings.
[0091] Figures 3 to 11 show the process of an electronic device setting the image frame selected by the user in a dynamic photo as the cover and then editing it based on the user's operation.
[0092] First, the user can open the interface for editing the image frame of the dynamic photo. There are many ways for the user to start editing the dynamic photo on the electronic device. For example, in a feasible example, the user can click on the thumbnail of the dynamic photo in the application interface of the gallery. 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. In response to this operation, the electronic device can enter the interface for editing the dynamic photo. Specifically, please refer to the description in Figures 3-5A and 5B.
[0093] 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 enter the interface for editing the dynamic photo.
[0094] It is understandable that different electronic device manufacturers may set different methods for enabling dynamic photo editing. The embodiments of this application do not limit the way in which users display dynamic photos on electronic devices. The following uses the method of enabling dynamic photo editing shown in Figures 3-5A and 5B as an example to illustrate.
[0095] 3-5A and 5B illustrate the process of a user entering an interface for editing dynamic photos from a gallery of an electronic device.
[0096] FIG3 exemplarily illustrates a user interface 100 of a gallery application of an electronic device. As shown in FIG3 , the user interface 100 may include thumbnails of multiple photos. Specifically, the user interface 100 may include a thumbnail 101 of a cover image of a dynamic photo. The thumbnail 101 of the cover image may include an icon 102. The icon 102 may be used to indicate that the photo corresponding to the thumbnail 101 of the cover image is a dynamic photo. The user may click on the thumbnail 101 of the cover image, and in response to the user operation, the electronic device may display the user interface 200.
[0097] Figure 4A exemplarily illustrates a user interface 200 of an electronic device. As shown in Figure 4A , the user interface 200 may be a preview interface for a dynamic photo corresponding to a cover image thumbnail 101. The user interface 200 may include a preview area 204, which may be used to display a cover image 205. The user interface 200 may also include an icon 201, which may be used to indicate that the user interface 200 is a preview interface for a dynamic photo and that the photo displayed in the user interface 200 is a dynamic photo.
[0098] The cover image 205 is the cover photo corresponding to the thumbnail 101 shown in FIG. 3 .
[0099] 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.
[0100] As shown in FIG4A , 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.
[0101] Figure 4B exemplarily illustrates a user interface 300 of an electronic device. As shown in Figure 4B , 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, 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. The user can use function option 302 to save a dynamic photo as a GIF, and function option 303 to save a dynamic photo as a video, etc.
[0102] As shown in FIG. 4C , the user may click on the function option 203 in the user interface 200 . In response to the user operation, the electronic device may display the user interface 400 .
[0103] 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 the dynamic photo corresponding to the cover image 205. As shown in Figure 5A, 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 cover image of the dynamic photo. For example, 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 (e.g., preview image 407) in preview area 204, such as function option 406 for trimming the preview image in preview area 204, filter function option, automatic optimization function option, and adjustment function option, etc.
[0104] 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.
[0105] 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.
[0106] 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.
[0107] 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.
[0108] 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.
[0109] 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.
[0110] 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.
[0111] The following description will be made by taking the user interface 400 shown in FIG5A as an example.
[0112] 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.
[0113] 6-8B exemplarily illustrate the process of a user changing the cover image of a dynamic photo.
[0114] 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.
[0115] 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.
[0116] 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 .
[0117] 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.
[0118] 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.
[0119] When the user changes the cover photo of the dynamic photo, he can click control 401 to save it. In this way, the dynamic photo saved in the gallery will update the cover photo accordingly. That is, the dynamic photo that the user sees in the gallery is the updated cover photo.
[0120] The following description will be made using the user interface 600 shown in FIG8A as an example.
[0121] 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.
[0122] 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.
[0123] 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.
[0124] 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 .
[0125] Figure 11 exemplarily shows a user interface 800 of an electronic device. As shown in Figure 11, the user interface 800 may include a preview area 204, a preview image 801, and multiple function options for editing the preview image 801. The multiple function options for editing the preview image 801 may include a function option 802 for trimming the preview image 801, a function option for intelligently optimizing the preview image, and a function option for adding filters to the preview image 801, etc. Taking the user selecting function option 802 and then selecting function option 803 as an example, the preview image 801 is obtained after the preview image 501 (i.e., the image frame 403e) is trimmed (also known as cropping) in a free ratio. The user can click on the control 401 to save the edited preview image 801 in the electronic device, for example, in the gallery of the electronic device. Reference can be made to the description of Figures 16-20A and 20B below, which will not be repeated here.
[0126] Figures 3 to 11 are schematic diagrams of a process for editing image frames in dynamic photos provided in an embodiment of the present application. The user can edit any image frame in the dynamic photo selected by the user according to the process shown in Figures 3 to 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. If the user does not set the selected image frame 403e as the cover image, and clicks function option 406 in the interface shown in Figure 6, the photo in the preview area of the electronic device will automatically refresh and display the original cover image, that is, image frame 403b, and start editing the cover image. In this way, the process of editing image frames in dynamic photos by the electronic device is somewhat cumbersome.
[0127] To simplify the process of editing image frames in a user-selected dynamic photo by an electronic device, the following schematic diagrams of another process for editing a dynamic photo provided by an embodiment of the present application are described based on Figures 12-18. The electronic device does not need to set other image frames in the dynamic photo as cover images; it can directly edit any image frame in the dynamic photo. This simplifies the process of editing image frames in a dynamic photo by the electronic device, saves power consumption of the electronic device, and improves the user experience.
[0128] 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 900 .
[0129] FIG12 exemplarily illustrates a user interface 900 of an electronic device. As shown in FIG12 , the user interface 900 may include a preview area 204, a display area 403, a control 901, a control 902, a control 402, and an editing function area 904. The preview area 204 may display a preview image 407 corresponding to an image frame 403b. The display area 403 may display multiple image frames (e.g., image frames 403a, 403b, 403c, 403d, and 403e) included in a dynamic photo. The control 901 may be used to create an emoticon package from the image frames in the display area 403. Control 902 can be used to set image frames in display area 403 other than image frame 403b corresponding to preview image 407 of the current cover image (e.g., image frame 403a, image frame 403c, image frame 403d, image frame 403e) as the cover image of the dynamic photo. Alternatively, after setting image frames other than image frame 403b corresponding to preview image 407 of the current cover image as the cover, image frame 403b can be set as the cover again. Control 903 can be used to save any image frame contained in the dynamic photo as a picture (also called a static photo). Control 402 can be used to return to the previous interface. The editing function area 904 may include multiple function options for editing the preview image in the preview area 204, for example, a function option 905 for resetting the editing interface of the preview image to the editing interface of the dynamic photo, a function option 906 for cropping the preview image, and a function option for adding filters to the preview image, as well as a function option for adjusting the brightness, contrast and saturation of the preview image, a function option for graffiti on the preview image, a function option for beautifying the preview image, and the like.
[0130] As shown in Figure 12, the function option 905 is in state 1. When the function option 905 is in state 1, it can also be used to indicate that the photo displayed in the interface is a dynamic photo.
[0131] Optionally, if the current cover image is image frame 403b, and the user has selected an image frame that is the cover image, i.e., if the user has selected image frame 403b, the electronic device may disable control 902. This means that the user cannot set an image frame that is already the cover image of a dynamic photo as the cover image of a dynamic photo again. As shown in FIG12 , the user has currently selected image frame 403b, and image frame 403b is the cover image of a dynamic photo. In this case, the electronic device may disable control 902.
[0132] It is understood that when the image frame selected by the user is not the cover image of the dynamic photo, control 902 is enabled. For example, as shown in FIG13 , when the user currently selects image frame 403e, control 902 is enabled. That is, the user can click control 902 to set image frame 403e as the cover image of the dynamic photo.
[0133] The user can save any image frame of the dynamic photo as a picture by clicking on the control 903. For example, as shown in Figure 13, the user currently selects the image frame 403e, and then the user can click on the control 903. 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 1001 can be displayed. The prompt box 1001 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 1001 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 1001.
[0134] In the dynamic photo expansion interface shown in Figures 12 and 13 above, the control 902 for setting the image frame of the dynamic photo as the cover image and the control 903 for saving the image frame of the dynamic photo as a picture are always displayed on the interface. Controls 902 and 903 do not require the user to select a specific image frame of the dynamic photo in order to be displayed. The dynamic photo display interface provided by the embodiment of the present application can more intuitively and clearly prompt the user to change the cover photo of the dynamic photo, and can also directly save the image frame of the dynamic photo that the user likes as a picture. In this way, the user experience is improved.
[0135] 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 14, 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 906 in the editing function area 904. In response to this user operation, the electronic device can display user interface 1200.
[0136] Figure 15 illustrates an exemplary user interface 1200 of an electronic device. As shown in Figure 15 , user interface 1200 may include a prompt box 1201. This prompt box 1201 may be used to inform the user that the editing effect applies only to still photos. Prompt box 1201 may include prompt text 1205, a control 1202, a control 1203, and a control 1204. The details of prompt box 1201 can be found in the description of prompt box 701 above and will not be repeated here.
[0137] The following description will be made by taking the example of the user clicking on the control 1204 to confirm the continuation of editing. As shown in FIG15 , the user may click on the control 1204 , and in response to the user operation, the electronic device may display a user interface 1300 .
[0138] FIG16 exemplarily shows a user interface 1300 of an electronic device. As shown in FIG16 , the user interface 1300 may include a preview area 204, a preview image 801, and multiple functional options and controls 1301 for editing the preview image 801. The multiple functional options for editing the preview image 801 may include a functional option 906 for trimming the preview image 801, a functional option for intelligently optimizing the preview image, and a functional option for adding a filter to the preview image 801, etc. Taking the example of a user selecting functional option 906 and then selecting functional option 907, the preview image 801 is obtained by freely cropping the preview image 501 (i.e., the image frame 403e). The control 1301 can be used to save the edited preview image in the user interface 1300.
[0139] The user does not need to set the image frame 403e as the cover image, and can also edit the image frame 403e to obtain the edited image frame, such as the preview image 801 shown in FIG16 .
[0140] As shown in Figure 16, the user interface 1300 further includes a function option 905, and the function option 905 is currently in state 2. When the function option 905 is in state 2, it can be used to indicate that the photo displayed in the user interface 1300 is a static photo.
[0141] For example, the user may click on the control 1301 , and in response to the user operation, the electronic device may display the user interface 1400 .
[0142] FIG17 exemplarily illustrates a user interface 1400 of an electronic device. User interface 1400 may also be referred to as a preview interface for a still photo. As shown in FIG17 , user interface 1400 may include a preview area 204, controls 1402, and a plurality of functional options for manipulating the preview image in the preview area (e.g., sharing, saving, editing, deleting, etc.). Preview area 204 displays a preview image 1401, which is a preview image of the preview image in user interface 1300 saved as a still photo.
[0143] Optionally, the saving information of the static photo corresponding to the preview image 1401 in the user interface, for example, the location information of the photo "Nanshan District, Shenzhen City" and the time information "May 1, 2023 14:28".
[0144] In some feasible examples, the storage information of the static photo is consistent with the location information and time information of the dynamic photo taken by the electronic device.
[0145] Alternatively, in other feasible examples, the location information and time information of the static photo may be the location information and time information obtained by the electronic device at the moment the user saves the static photo. For example, a user edits an image frame of a dynamic photo taken at 14:28 on May 1, 2023, in Futian District, Shenzhen, at 8:08 a.m. on May 2, 2023, and saves the edited image frame. The location information of the saved static photo is "Futian District, Shenzhen," and the time information is "8:08, May 2, 2023."
[0146] Control 1402 can be used to return to the previous interface. For example, as shown in FIG18 , the user clicks on control 1402 , and in response to the user operation, the electronic device can display user interface 1500 .
[0147] FIG19 exemplarily illustrates a user interface 1500 of an electronic device. This user interface 1500 is the upper level interface of the user interface 1400. As shown in FIG19 , the user interface 1500 can be used to display multiple photos stored in the electronic device categorized by time and location. For example, a thumbnail 1501 of a photo saved on May 1, 2023, is a thumbnail of the static photo corresponding to the preview image 801 saved by the user in the user interface 1300.
[0148] The thumbnail 1501 of the static photo and the thumbnail 101 of the cover photo of the dynamic photo can be in the same category column (classified by shooting date) of the gallery.
[0149] Further, as shown in Figure 19, in the photo classification display interface of the gallery, the thumbnail 1501 of the static photo can be displayed adjacent to the thumbnail 101 of the cover photo of the dynamic photo, that is, the thumbnail 1501 of the static photo can be located on the left side of the thumbnail 101 of the cover photo of the dynamic photo.
[0150] Optionally, the thumbnail 1501 of the static photo may be located to the right of the thumbnail 101 of the cover picture of the dynamic photo.
[0151] Optionally, in a possible implementation, the electronic device may arrange the thumbnail 1501 of the static photo 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 1501 of the static photo 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 1501 of the static photo is before the acquisition time of the image frame corresponding to the cover photo of the dynamic photo, then the electronic device will display the thumbnail 1501 of the static photo in the gallery in the next row (that is, under the same category column of the gallery, the thumbnail 101 is located on the far right and the thumbnail 1501 of the static photo is located on 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 the thumbnail 1501 of the static photo is after the acquisition time of the image frame corresponding to the cover picture of the dynamic photo, then the electronic device will display the thumbnail 1501 of the static photo in the gallery in the upper row (that is, under the same category column of the gallery, the thumbnail 1501 of the static photo is at the far right, and the thumbnail 101 is at the far left of the next row) or on the left side.
[0152] Optionally, when the user sets image frame 403e as the cover image in the user interface 1100 shown in Figure 14, that is, 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 after the cover image is changed in the gallery of the electronic device. Exemplarily, as shown in Figure 20A, the user interface 1600 shown in Figure 20A can be the main interface of the gallery of the electronic device. The user interface 1600 can include a thumbnail 1601 of the cover image of the dynamic photo. This thumbnail 1601 is different from the thumbnail 101 of the cover image of the dynamic photo before the cover image is changed. The user interface 1600 can also include a thumbnail 1501 of a static photo, which is a static photo saved to the "Camera" album of the electronic device after the image frame 403e is edited. In this way, the user can view in the gallery that the cover image of the dynamic photo has been changed.
[0153] Optionally, the electronic device can save the dynamic photo with the changed cover image as another dynamic photo. For example, as shown in Figure 20B, the user interface 1700 can display a thumbnail 101 of the dynamic photo's cover image and a thumbnail 1701 of the dynamic photo's cover image. The dynamic photo corresponding to thumbnail 1701 is obtained by the user changing the cover image of the dynamic photo corresponding to thumbnail 101 and saving it.
[0154] 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.
[0155] 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.
[0156] It can be understood that when the image frame that the user needs to edit is currently the cover picture of a dynamic photo, the electronic device can edit the image frame according to the editing process shown in Figures 12-19 above, and save the edited image frame in the form of a static photo in the gallery.
[0157] Optionally, when the image frame that the user needs to edit is currently the cover picture of a dynamic photo, the electronic device can edit the image frame according to the editing process shown in Figures 12-19 above, and update the cover picture of the dynamic photo in the gallery to the edited image frame.
[0158] 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 21, a method for editing a dynamic photo provided by an embodiment of the present application may include the following steps:
[0159] S2101. The electronic device displays a thumbnail display interface of the gallery application, where thumbnails of dynamic photos are displayed in the thumbnail display interface, and the thumbnails are thumbnails of cover images of the dynamic photos.
[0160] For example, the thumbnail display interface can refer to the user interface 100 shown in Figure 3. The thumbnail 101 in the user interface 100 is a thumbnail of a dynamic photo. Specifically, the thumbnail 101 is a thumbnail of a cover image of the dynamic photo.
[0161] In one possible implementation, a thumbnail of a dynamic photo displayed in the thumbnail display interface of a gallery application includes a first icon. The first icon can be used to indicate that the photo corresponding to the thumbnail is a dynamic photo. The first icon can be seen as icon 102 shown in Figure 3. This embodiment of the application does not limit the position of the first icon in the thumbnail, nor does it limit the shape or size of the first icon.
[0162] S2102. The electronic device detects the user's first operation of opening a dynamic photo in the thumbnail display interface, and the electronic device displays the cover image.
[0163] The first operation may be a user clicking on the thumbnail of the dynamic photo. When the electronic device detects that the user has clicked on a thumbnail in the thumbnail display interface, the electronic device may display the cover image. For example, as shown in FIG3 , the user clicks on thumbnail 101. In response to the user operation, the electronic device displays user interface 200 shown in FIG4A , in which cover image 205 is displayed.
[0164] In one possible implementation, the electronic device detects the first operation of the user to open a dynamic photo in the gallery, and before the electronic device displays the cover image of the dynamic photo, it also includes: the electronic device stores the cover image as a picture file in a picture format and stores multiple image frames as a video file in a video format.
[0165] S2103. The electronic device detects a second operation for displaying a dynamic photo, and displays a dynamic photo editing interface. The dynamic photo editing interface includes a first preview area and a first display area. The first preview area displays a cover image. The first display area includes thumbnails of multiple image frames contained in the dynamic photo. The multiple image frames include a first image frame corresponding to the cover image.
[0166] 4C , the second operation may be an operation in which the user clicks on the function option 203. When the electronic device detects that the user clicks on the function option 203, the electronic device may display a user interface 900 as shown in FIG12.
[0167] 12 , the dynamic photo editing interface may be user interface 900 shown in FIG12 , the first preview area may be preview area 204, and the first preview area may be display area 403. The thumbnails of the multiple image frames may be thumbnails of image frame 403a, image frame 403b, image frame 403c, image frame 403d, and image frame 403e shown in FIG12 . The first image frame may be image frame 403b.
[0168] The multiple image frames are arranged in the first display area in the order in which they were captured. As shown in FIG12 , image frames 403a, 403b, 403c, 403d, and 403e may be arranged from left to right in the order in which they were captured. In other words, image frame 403a, which was captured first, is arranged at the far left of display area 403, and the remaining image frames are arranged from left to right in the order in which they were captured.
[0169] The dynamic photo editing interface may further include multiple function options for editing the image frame, for example, multiple function options for editing in the editing function area 904 shown in FIG. 12 .
[0170] Optionally, in some feasible examples, the dynamic photo editing interface can be the user interface 400 shown in Figure 5B. The first display area can also include controls 409 and 408 as shown in Figure 5B. For controls 409 and 408, please refer to the description above and will not be repeated here.
[0171] In one possible implementation, the dynamic photo editing interface further includes a first control and a second control; the first control is used to set a user-selected image frame from multiple image frames as the cover image of the dynamic photo; the second control is used to save the user-selected image frame from the multiple image frames as a static photo in the gallery. Referring to FIG. 12 , the first control may be control 902 shown in FIG. 12 , and the second control may be control 903 shown in FIG. 12 .
[0172] S2104. The electronic device detects a third operation in which the user selects the second image frame for editing. The electronic device saves the edited second image frame as the first static photo of the gallery application. The second image frame is an image frame corresponding to the non-cover image in the multiple image frames.
[0173] The second image frame may be the image frame 403e shown in Figure 14, and the edited second image frame may be the preview image 801 shown in Figure 16. That is, the electronic device may save the preview image 801 as a static photo in the gallery application.
[0174] The third operation may include the user selecting the thumbnail of the second image frame from the thumbnails of the multiple image frames and the user selecting an editing function option in the dynamic photo editing interface. Referring to Figure 14, the third operation may be the user selecting image frame 403e in the user interface 1100 and then clicking function option 906.
[0175] 15 , the third operation may further include the user clicking on a control 1204 .
[0176] 16 , the third operation may further include the user selecting a function option for setting parameters corresponding to the cropping function in the user interface 1300 , for example, function option 907 .
[0177] 14 to 16 , the third operation may be that the user may select the image frame 403 e , then click the function option 906 , then click the control 1204 , and finally click the function option 907 .
[0178] The electronic device detects a third operation in which a user selects a second image frame for editing, and the electronic device saves the edited second image frame as a first static photo in a gallery application, including: the electronic device detects an operation in which the user selects a thumbnail of the second image frame from thumbnails of multiple image frames, and the electronic device displays the second image frame in a first preview area; the electronic device detects an operation in which the user selects an editing function option in a dynamic photo editing interface, and the electronic device displays a static photo editing interface, the static photo editing interface including a second preview area for displaying the second image frame and a parameter setting area corresponding to the editing function option; the electronic device edits the second image frame in response to the user operation in the parameter setting area and saves the edited second image frame as the first static photo in the gallery application.
[0179] A first indicator is displayed in the first display area, and the first indicator can be used to indicate that the first image frame is the cover image of the dynamic photo. Referring to Figure 12, the first indicator can be indicator 404 in Figure 12. Indicator 404 can be used to indicate that image frame 403b is the cover image of the dynamic photo.
[0180] In one possible implementation, the electronic device detects an operation by a user of selecting a thumbnail of a second image frame from thumbnails of multiple image frames, and after the electronic device displays the second image frame in the first preview area, the method further includes: the electronic device detects a fourth operation by the user on the first control, and the electronic device sets the second image frame as the cover image of the dynamic photo; the electronic device displays the thumbnail display interface of the gallery application again, and the thumbnail display interface displays the thumbnail of the dynamic photo after the cover photo is updated.
[0181] Referring to FIG14 , after selecting image frame 403e, the user can click control 902 to set image frame 403e as the cover. That is, the fourth operation can be the user clicking control 902. After the user updates the cover photo of a dynamic photo, the electronic device can display a thumbnail of the dynamic photo after the cover photo is updated in the thumbnail display interface. For example, as shown in FIG20A , thumbnail 1601 shown in FIG20A is a thumbnail of the dynamic photo after the cover photo is updated.
[0182] In one possible implementation, after the electronic device detects that a user has selected a thumbnail of a second image frame from thumbnails of multiple image frames, and the electronic device displays the second image frame in a first preview area, the method further includes: the electronic device detects that the user has performed a fifth operation on a second control, and the electronic device saves the second image frame as a second static photo in the gallery.
[0183] 13 , the fifth operation may be the user clicking on the control 903 in the user interface 1000. When the electronic device detects that the user clicks on the control 903, the electronic device may save the image frame 403e as a static photo in the gallery.
[0184] In one possible implementation, after the electronic device detects a third operation in which the user selects the second image frame for editing, and the electronic device saves the edited second image frame as the first static photo in the gallery application, the method may further include: the electronic device displays the edited second image frame and the third control; the electronic device detects a sixth operation in which the user uses the third control, and the electronic device returns to the thumbnail display interface of the gallery application, where the thumbnail display interface displays a thumbnail of the first static photo.
[0185] Referring to Figure 16, the edited second image frame displayed by the electronic device may be the preview image 801 in Figure 16, and the third control may be the control 1301 shown in Figure 16. The sixth operation may be that the user clicks on the control 1301. When the electronic device detects that the user clicks on the control 1301, it may display a user interface 1400 as shown in Figure 17. Then, as shown in Figure 18, the user clicks on the control 1402 again, and the electronic device may return to the thumbnail display interface of the gallery application. The thumbnail display interface may be the user interface 1500 shown in Figure 19. The thumbnail of the first static photo may be the thumbnail 1501 shown in Figure 19.
[0186] In one possible implementation, the method may further include: 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 first control to a disabled state. Referring to FIG. 12 , in FIG. 12 , the currently selected image frame 403 b is the cover image of the dynamic photo, and the control 902 is disabled.
[0187] In one possible implementation, after the electronic device detects the fourth user operation on the first 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.
[0188] 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 the 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 Figure 8B, the third indicator may be indicator 602 shown in Figure 8B. Indicator 602 may be used to indicate that image frame 403b is the cover image automatically selected by the electronic device for the dynamic photo, but image frame 403b is not currently the cover image of the dynamic photo.
[0189] 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.
[0190] Through the method for editing dynamic photos provided by the embodiment of the present application, users can select any image frame in the dynamic photo for editing. In this way, the user's editing needs for dynamic photos can be met, and the user experience is improved.
[0191] The following first introduces an exemplary electronic device 10 provided in an embodiment of the present application.
[0192] FIG22 is a schematic structural diagram of an electronic device 10 provided in an embodiment of the present application.
[0193] 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.
[0194] 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.
[0195] 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.
[0196] 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.
[0197] 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.
[0198] 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.
[0199] 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.
[0200] 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.
[0201] 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.
[0202] 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.
[0203] 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.
[0204] 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.
[0205] 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.
[0206] 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.
[0207] 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.
[0208] 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.
[0209] The charging management module 140 is configured to receive charging input from a charger, which may be a wireless charger or a wired charger.
[0210] 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.
[0211] 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.
[0212] 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.
[0213] 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.
[0214] 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.
[0215] 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.
[0216] 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).
[0217] 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.
[0218] 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.
[0219] 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.
[0220] 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.
[0221] 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.
[0222] 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.
[0223] 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.
[0224] 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.
[0225] 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.
[0226] 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.
[0227] 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.
[0228] 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.
[0229] 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.
[0230] 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.
[0231] 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.
[0232] 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.
[0233] 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.
[0234] 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.
[0235] 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.
[0236] 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.
[0237] 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.
[0238] 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.
[0239] 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.
[0240] 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.
[0241] 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.
[0242] 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.
[0243] 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.
[0244] 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.
[0245] 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.
[0246] 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.
[0247] 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.
[0248] 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.
[0249] 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.
[0250] 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).
[0251] 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: The dynamic photo includes: a cover picture and a video composed of multiple image frames, and the method includes: The electronic device displays a thumbnail display interface of the gallery application, wherein the thumbnail display interface displays thumbnails of dynamic photos, and the thumbnails are thumbnails of the cover pictures; The electronic device detects a first operation of a user opening a dynamic photo in the thumbnail display interface, and the electronic device displays the cover image; The electronic device detects a second operation for displaying the dynamic photo, and displays a dynamic photo editing interface, wherein the dynamic photo editing interface includes a first preview area and a first display area, wherein the first preview area displays the cover image, and the first display area includes thumbnails of multiple image frames included in the dynamic photo, wherein the multiple image frames include a first image frame corresponding to the cover image; The electronic device detects a third operation in which the user selects a second image frame for editing, and the electronic device saves the edited second image frame as a first static photo in the gallery application, where the second image frame is an image frame corresponding to a non-cover image in the multiple image frames.
2. The method according to claim 1, characterized in that The third operation includes an operation of the user selecting the thumbnail of the second image frame from the thumbnails of the multiple image frames and an operation of the user selecting an editing function option in the dynamic photo editing interface; The electronic device detects a third operation of a user selecting a second image frame for editing, and the electronic device saves the edited second image frame as a first static photo in the gallery application, including: The electronic device detects that a user selects a thumbnail of the second image frame from the thumbnails of the multiple image frames, and displays the second image frame in the first preview area; The electronic device detects an operation of a user selecting an editing function option in the dynamic photo editing interface, and the electronic device statically displays the photo editing interface, wherein the static photo editing interface includes a second preview area for displaying the second image frame and a parameter setting area corresponding to the editing function option; In response to the user's operation in the parameter setting area, the electronic device edits the second image frame and saves the edited second image frame as the first static photo in the gallery application.
3. The method according to claim 1 or 2, characterized in that: The dynamic photo editing interface also includes a first control and a second control; the first control is used to set the image frame selected by the user from the multiple image frames as the cover image of the dynamic photo; the second control is used to save the image frame selected by the user from the multiple image frames as a static photo in the gallery application.
4. The method according to claim 3, characterized in that After the electronic device detects that a user selects a thumbnail of the second image frame from the thumbnails of the multiple image frames, and the electronic device displays the second image frame in the first preview area, the method further includes: The electronic device detects a fourth operation performed by the user on the first control, and the electronic device 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, and the thumbnail display interface displays the thumbnail of the dynamic photo after the cover image is updated.
5. The method according to claim 3, characterized in that: After the electronic device detects that a user selects a thumbnail of the second image frame from the thumbnails of the multiple image frames, and the electronic device displays the second image frame in the first preview area, the method further includes: The electronic device detects a fifth operation performed by the user on the second control, and the electronic device saves the second image frame as a second static photo in the gallery application.
6. The method according to any one of claims 1 to 5, characterized in that: After the electronic device detects a third operation of the user selecting the second image frame for editing, and the electronic device saves the edited second image frame as the first static photo in the gallery application, the method further includes: The electronic device displays the edited second image frame and the third control; The electronic device detects a sixth operation performed by the user on the third control, and the electronic device returns to the thumbnail display interface of the gallery application, where the thumbnail display interface displays a thumbnail of the first static photo.
7. The method according to any one of claims 1 to 6, characterized in that: A first indicator is displayed in the first display area, and the first indicator is used to indicate that the first image frame is a cover picture of the dynamic photo.
8. The method according to claim 3, 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 first control to an unavailable state.
9. The method according to claim 4, characterized in that After the electronic device detects a fourth operation performed by the user on the first control and the electronic device sets the second image frame as a 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.
10. The method according to claim 9, 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.
11. The method according to any one of claims 1 to 10, characterized in that: The time information of the first static photo stored in the electronic device is consistent with the shooting time of the dynamic photo.
12. The method according to any one of claims 1 to 11, 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.
13. The method according to any one of claims 1 to 12, characterized in that: The electronic device detects a first operation of a user opening a dynamic photo in a gallery application, and before the electronic device displays a cover image of the dynamic photo, the method further includes: The electronic device stores the cover image as a picture file in a picture format and stores the multiple image frames as a video file in a video format.
14. The method according to any one of claims 1 to 13, characterized in that The multiple image frames are arranged in the first display area according to a shooting time sequence of the multiple image frames.
15. 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 to 14 is executed.
16. 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 14.
17. 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 14 is executed.