Method for pushing photos and electronic equipment
By setting the first display area on the time page of the gallery application, actively recommending today's photo cards from previous years, and playing supporting texts and soundtracks, the difficulties users have in finding today's photos in previous years, and improving the user experience.
Patent Information
- Application Number
- CN202311083413.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-24
- Publication Date
- 2025-03-04
AI Technical Summary
Users have encountered difficulties in finding and recalling photos from previous years in the gallery application, resulting in poor user experience.
Provide a video processing method, by setting the first display area in the time page of the gallery application, actively recommending today's photo cards to users, and playing the supporting text and soundtracks when users view it, improving the user experience.
By automatically recommending photos from previous years today, it reduces the difficulty of users to search, improves users' memory experience in the gallery application, and enhances the atmosphere of the photos through text and soundtracks.
Smart Images

Figure CN119557468A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic devices, and more specifically, to a method for pushing photos and an electronic device. Background Art
[0002] With the continuous development of smart terminals, more and more users use the shooting function of smart terminals to record the beautiful moments of life. A large number of photos or videos taken by users will be stored in the gallery application. As time goes by, more and more photos will be stored in the gallery application. Most users have the desire to recall or view old photos. For gallery applications that store a large number of photos, it is troublesome for users to find the photos they recall, resulting in a poor user experience. Summary of the invention
[0003] In view of this, the present application provides a method for pushing photos, an electronic device, a computer-readable storage medium, and a computer program product, which can recommend photos taken on this day in previous years to users, greatly improving the user's experience of viewing photos.
[0004] In a first aspect, a video processing method is provided, comprising:
[0005] In response to a first operation of the user, displaying a first interface, wherein the first interface includes thumbnails of a plurality of photos and includes a first option;
[0006] In response to the user clicking the first option, a second interface is displayed, the second interface including a first display area and a second display area, the first display area including a first card, the first card is a card corresponding to a first photo, the first photo is a photo of this day in previous years, and the second display area includes a card for a first video;
[0007] In response to a user clicking on the first card, a third interface is displayed, wherein the third interface includes the first photo, text information of the first photo, and time information;
[0008] Based on the user's operation of deleting the first photo, displaying a fourth interface, wherein the fourth interface includes the second display area and does not include the first card;
[0009] In response to a user clicking on the card of the first video, the first video is played.
[0010] The above method can be executed by a terminal device or a chip in the terminal device. Based on the above technical solution, by setting a first display area in the moment page of the gallery application, cards of today's photos from previous years are actively recommended to users in the first display area, thereby avoiding users from manually searching for today's photos from previous years and improving the user experience. Furthermore, it is also possible to add intelligent text and music to today's photos from previous years; in response to the user's operation of viewing today's photos from previous years, the mobile phone plays today's photos from previous years with text and music added, and presents them to the user, so as to help the user use fragmented time to recall the old times.
[0011] In addition, if the first photo is deleted, the card displayed in the first display area will also be updated accordingly, that is, the first card will no longer be displayed in the first display area. In addition, by displaying the card of the wonderful moment video to the user in the second display area of the gallery application, it is convenient for the user to view the wonderful moment video, further improving the user's video browsing experience.
[0012] It is understandable that the user can edit a photo taken on this day in previous years and store the edited photo in different saving modes.
[0013] In some possible implementations, after deleting the first photo, the fourth interface includes a first display area, the first display area includes a second card, and the second card is a card corresponding to the second photo;
[0014] The method further comprises:
[0015] In response to the user's operation of saving the edited second photo, displaying a fifth interface, the fifth interface including a first window, the first window including a first save option;
[0016] Based on the operation of the user selecting the first saving option, saving the edited second photo in a manner of overwriting the original photo;
[0017] In response to the user clicking on the first option, a sixth interface is displayed, wherein the sixth interface does not include the second card and includes a card for the third photo.
[0018] That is to say, if the user edits a photo taken on this day in previous years and saves it by overwriting the original photo, it means that the original photo of this day in previous years has been deleted in the gallery application. In this case, the mobile phone will not display the card of the photo of this day in previous years in the first display area to ensure that the card displayed in the first display area is consistent with the information of the photo saved in the gallery application.
[0019] In some possible implementations, the first window further includes a second save option; and the method further includes:
[0020] Based on the operation of the user selecting the second saving option, saving the edited second photo in a save-as-picture manner;
[0021] In response to the user clicking the first option, a seventh interface is displayed, and the seventh interface includes the second card.
[0022] That is to say, if the user edits a photo taken today in previous years and saves it as Save As, it means that the original photo of this day in previous years still exists in the gallery application. In this case, the phone will still display the card of this photo of this day in the first display area to ensure that the card displayed in the first display area is consistent with the information of the photo saved in the gallery application.
[0023] In some possible implementations, after deleting the first photo, the fourth interface does not include the first display area. Therefore, if the photos of today in previous years are deleted, or there are no photos of today in previous years, the moment page of the gallery application does not display the first display area, but displays the second display area, that is, the moment page does not display the column.
[0024] In some possible implementations, after deleting the first photo, the fourth interface includes a first display area, the first display area includes a third card, and the third card is a card corresponding to the second video; the method also includes: in response to the user clicking the third card, playing the second video.
[0025] Therefore, in the first display area, not only cards of photos of today in previous years can be displayed, but also cards of newly generated moment videos can be recommended to users, so that users can view the newly generated moment videos, thereby enriching the user experience.
[0026] In some possible implementations, before deleting the first photo, the first display area also includes a partial area of the fourth card;
[0027] The method further comprises:
[0028] In response to a sliding operation of the user in the first display area, an eighth interface is displayed, wherein the eighth interface includes the fourth card, and the fourth card is a card corresponding to the third photo;
[0029] In response to the user clicking the fourth card, a ninth interface is displayed, wherein the ninth interface includes the third photo, the text information of the third photo, and the time information;
[0030] The shooting time of the first photo is earlier than the shooting time of the third photo.
[0031] Therefore, the mobile phone can switch cards in response to the user's sliding operation in the first display area, which is more convenient to operate and improves the user experience.
[0032] In some possible implementations, the method further includes:
[0033] In response to a user clicking on the ninth interface, a tenth interface is displayed, wherein the tenth interface includes a first sharing option and a second sharing option;
[0034] In response to a user clicking on the first sharing option, an eleventh interface is displayed, wherein the eleventh interface includes a first window, and the first window includes a thumbnail of the third photo and a plurality of sharing options;
[0035] In response to the user clicking on the second sharing option, the twelfth interface is displayed, and the twelfth interface includes a second window. The second window is used to display a thumbnail of a postcard sharing the first photo. The postcard of the third photo includes the third photo, the text information of the third photo, and the time information.
[0036] Therefore, when a user views a photo of a previous year on this day, the mobile phone can provide a sharing option to meet the user's need to share the photo of the previous year on this day. Further, the mobile phone can provide a way to share the original photo or share a postcard to enrich the user's experience of sharing photos.
[0037] In some possible implementations, the first display area is used to display K cards, where the K cards correspond to at least one photo of today in previous years and / or at least one moment video; the method further includes:
[0038] Based on the gallery data, at least one photo of today in previous years and / or at least one moment video corresponding to the K cards are determined.
[0039] That is to say, the mobile phone can analyze the gallery data and generate photos and / or moment videos of the same day in previous years, so as to recommend corresponding cards in the first display area, that is, prepare for recommending cards to users in the first display area.
[0040] In some possible implementations, the K cards correspond to K photos of today in previous years; and determining, based on the gallery data, at least one photo of today in previous years corresponding to the K cards includes:
[0041] Based on the library data, a plurality of photos of this day in previous years are obtained, and an aesthetic score of each photo of this day in previous years is determined;
[0042] Determining whether a first number is greater than or equal to a first number threshold, the first number being the number of today's photos from previous years having an aesthetic score greater than the score threshold;
[0043] When the first number is greater than the first number threshold, determining whether a second number is greater than a second number threshold, the second number being the number of years corresponding to the first number of photos of today in previous years;
[0044] When the second number is less than or equal to the second number threshold, determine K photos of today's day in previous years according to the shooting time or storage time of the photos of today's day in previous years, where the value of K is less than or equal to the first number threshold;
[0045] When the second number is greater than the first number threshold, a third number of photos is determined, where the third number is the number of years corresponding to the multiple photos of today in previous years, wherein the value of K is the third number.
[0046] Therefore, through the above method, photos of today in previous years with higher image quality and / or in different years can be determined, so as to recommend photos of today in previous years with more representative meaning or better recall effect to the user.
[0047] In some possible implementations, determining the aesthetic score of each photo taken on this day in previous years includes:
[0048] Based on the aesthetic evaluation criteria for photos and preset portrait data, the aesthetic score of each photo taken on this day in previous years is determined.
[0049] In some possible implementations, the K cards correspond to at least one photo of today in previous years and at least one moment video;
[0050] The step of determining, based on the gallery data, at least one photo of today in previous years and at least one video at a moment corresponding to the K cards includes:
[0051] Determine whether a fourth number is greater than a preset number, the fourth number being the sum of the number of the at least one photo of today in previous years and the at least one video at a moment;
[0052] When the fourth number is greater than a preset number, a preset number of cards is determined according to the at least one photo of today in previous years and the at least one moment video, wherein the value of K is the preset number;
[0053] When the fourth number is less than or equal to the preset number, the fourth number of cards is determined, wherein the value of K is the fourth number.
[0054] Therefore, through the above method, not only cards of photos of today in previous years can be recommended in the first display area, but also cards of generated moment videos can be recommended, which enriches the user experience.
[0055] Optionally, when the fourth number is greater than a preset number, determining a preset number of cards according to the at least one photo of today in previous years and the at least one moment video includes:
[0056] The preset number of cards is determined according to the principle of giving priority to selecting the at least one moment video.
[0057] In some possible implementations, the K cards correspond to at least one moment video; and the method further includes:
[0058] The at least one moment video is sorted according to the time information.
[0059] In some possible implementations, the method further includes:
[0060] After the moment video is generated on the day, determine whether the user has viewed the moment video on the day;
[0061] The duration of displaying the moment video of the day in the first display area is determined based on the judgment result, and the judgment result includes any of the following situations: the user has viewed the moment video of the day; the user has entered the moment page but has not viewed the moment video of the day; the user has not entered the moment page.
[0062] Therefore, the mobile phone can decide the length of time to display the moment video of the day in the first display area based on whether the user has viewed the moment video of the day, so as to prevent the user from missing the moment video generated on the day. At the same time, it also takes into account the function of recommending the cards of the newly generated moment video of the next day to the user, thereby maximizing the user experience.
[0063] In a second aspect, an electronic device is provided, comprising a unit for executing the method in any one of the implementations of the first aspect. The electronic device may be a terminal device or a chip in the terminal device. The electronic device comprises an input unit, a display unit, and a processing unit.
[0064] When the electronic device is a terminal device, the processing unit may be a processor, the input unit may be a communication interface, and the display unit may be a graphics processing module and a screen; the terminal device may also include a memory for storing computer program code, and when the processor executes the computer program code stored in the memory, the terminal device executes any one of the methods in the first aspect.
[0065] When the electronic device is a chip in a terminal device, the processing unit may be a logic processing unit inside the chip, the input unit may be an input interface, a pin or a circuit, etc., and the display unit may be a graphics processing unit inside the chip; the chip may also include a memory, which may be a memory inside the chip (for example, a register, a cache, etc.) or a memory located outside the chip (for example, a read-only memory, a random access memory, etc.); the memory is used to store computer program code, and when the processor executes the computer program code stored in the memory, the chip executes any one of the methods of the first aspect.
[0066] According to a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program code. When the computer program code is executed by an electronic device, the electronic device executes any one of the methods according to the first aspect.
[0067] According to a fourth aspect, a computer program product is provided, the computer program product comprising: a computer program code, when the computer program code is executed by an electronic device, the electronic device executes any one of the methods according to the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 is a schematic diagram of a hardware system of an electronic device applicable to the present application;
[0069] Figure 2A This is a schematic diagram of an example of a graphical user interface GUI for pushing photos provided by the present application;
[0070] Figure 2B is a schematic diagram of an example of a graphical user interface GUI for searching in a search bar provided by the present application;
[0071] Figure 2C This is a schematic diagram of a graphical user interface GUI for playing and pushing photos provided by the present application;
[0072] Figure 3 This is a schematic diagram of a graphical user interface GUI of a display area for pushing photos provided by the present application;
[0073] Figure 4 is a schematic diagram of another example of a graphical user interface GUI for pushing photos provided by the present application;
[0074] Figure 5 is a schematic diagram of another example of a graphical user interface GUI for pushing photos provided by the present application;
[0075] Fig. 6A is a schematic diagram of another example of a graphical user interface GUI for pushing photos provided by the present application;
[0076] Figure 6B is a schematic diagram of another example of a graphical user interface GUI for pushing photos provided by the present application;
[0077] Figure 7 is a schematic diagram of another example of a graphical user interface GUI for pushing photos provided by the present application;
[0078] Figure 8 This is a schematic diagram of a graphical user interface GUI for prompting a user to push photos provided by the present application;
[0079] Fig. 9 This is a logic example diagram of a method for pushing photos provided by this application;
[0080] Fig.10 This is another example of the logic of the method for pushing photos provided by this application;
[0081] Fig.11 This is a logic example diagram of a method for pushing a moment video provided by this application;
[0082] Fig.12 This is a logic example diagram of a method for pushing videos and photos at a certain moment provided by this application;
[0083] Fig.13 This is another example of the logic of the method for pushing photos provided by this application;
[0084] Fig.14 is a schematic diagram of a software system of an electronic device suitable for the present application. DETAILED DESCRIPTION
[0085] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0086] In the embodiments of the present application, unless otherwise specified, “plurality” may mean two or more than two.
[0087] The method for pushing photos in the embodiment of the present application can be applied to an electronic device. The electronic device has a gallery application installed therein.
[0088] In some embodiments of the present application, the electronic device may be a mobile phone, a smart screen, a tablet computer, a wearable electronic device, an in-vehicle electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a projector, and the like.
[0089] The following uses a mobile phone as an example. Figure 1 A schematic structural diagram of an electronic device 100 provided in an embodiment of the present application is shown. Figure 1 A hardware system of an electronic device suitable for the present application is shown.
[0090] The electronic device 100 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.
[0091] It should be noted that Figure 1 The structure shown does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include Figure 1 More or fewer components than those shown, or the electronic device 100 may include Figure 1 Combinations of some of the components shown, or the electronic device 100 may include Figure 1 Subassemblies of some of the components shown. Figure 1 The components shown may be implemented in hardware, software, or a combination of software and hardware.
[0092] The processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and a neural-network processing unit (NPU). Different processing units may be independent devices or integrated devices.
[0093] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0094] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0095] In some embodiments, the processor 110 may include one or more interfaces. For example, the processor 110 may include at least one of the following interfaces: 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 SIM interface, and a USB interface. Figure 1 The connection relationship between the modules shown is only a schematic illustration and does not constitute a limitation on the connection relationship between the modules of the electronic device 100. Optionally, the modules of the electronic device 100 may also adopt a combination of multiple connection modes in the above embodiments.
[0096] The electronic device 100 can realize the display function through the GPU, the display screen 194 and the application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0097] The display screen 194 can be used to display images or videos. The 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 mini light-emitting diode (Mini LED), a micro light-emitting diode (Micro LED), a micro OLED (Micro OLED) or a quantum dot light emitting diode (QLED). In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. As a possible implementation method, when a user views the discovery page of the gallery application, the display screen 194 can be used to display the first recommendation position, and display cards of photos of today in previous years or cards of moment videos in the first recommendation position.
[0098] The electronic device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
[0099] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can perform algorithm optimization on the noise, brightness and color of the image. The ISP can also optimize the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0100] 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 optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted 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 red green blue (RGB), YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0101] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals.
[0102] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0103] NPU is a processor that draws on the structure of biological neural networks, such as the transmission mode between neurons in the human brain to quickly process input information, and can also continuously self-learn. Through NPU, the electronic device 100 can realize intelligent cognition and other functions, such as image recognition, face recognition, voice recognition and text understanding.
[0104] The external memory interface 120 may be used to connect an external memory card, such as a secure digital (SD) card, to expand the storage capacity of the electronic device 100 .
[0105] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, and at least one application required for a function (for example, a sound playback function and an image playback function). The data storage area may store data created during the use of the electronic device 100 (for example, audio data and a phone book). 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, and a universal flash storage (UFS). The processor 110 executes various processing methods of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0106] The electronic device 100 can implement audio functions, such as music playing and recording, through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor.
[0107] The touch sensor 180K is also called a touch control device. The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a touch control screen. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor 180K can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100 and set at a different position from the display screen 194.
[0108] The key 190 includes a power key and a volume key. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive a key input signal and implement a function related to the key input signal.
[0109] The technical solutions involved in the following embodiments can all be implemented in the electronic device 100 having the above hardware architecture.
[0110] For ease of understanding, the following embodiments of the present application will be described in detail with Figure 1 Taking the electronic device with the structure shown as an example, the method for pushing photos provided in the embodiment of the present application is specifically explained in combination with the figure and application scenarios.
[0111] This application will take the electronic device as a mobile phone, in which a gallery application is installed as an example, and will introduce in detail the method for pushing photos provided by this application.
[0112] In order to show users photos taken on this day in previous years, this application sets a first recommendation position in the moment page of the gallery application, and displays cards of photos taken on this day in previous years in the first recommendation position. In addition, the photos taken on this day in previous years can also be intelligently matched with text and music; in response to the user's operation of viewing the photos taken on this day in previous years, the mobile phone plays the photos taken on this day in previous years with the added text and music, and presents them to the user, so as to help the user use fragmented time to recall the old times.
[0113] In some embodiments of the present application, the user can enter the moment page (or memory page) in the gallery application and view the pushed photos of the same day in previous years in the first recommended position (such as the first display area below) of the moment page. Figures 2A to 5 Describe the process of reviewing photos from previous years.
[0114] Figure 2A It is a schematic diagram of a graphical user interface (GUI) provided in an embodiment of the present application.
[0115] For example, the user can open the gallery application by touching a specific control on the mobile phone screen, pressing a specific physical key or key combination, inputting voice, air gesture, etc. The gallery application is also called an album, photo, etc.
[0116] Take the mobile phone as an example, Figure 2A As shown in (1), Figure 2A (1) shows the desktop of the mobile phone, and the mobile phone displays the current output interface content, and the interface displays multiple applications (applications, Apps). The interface includes an icon 401 of the gallery application, and icons of other applications. In response to the user clicking the icon 401 of the gallery application, the mobile phone displays the interface of the gallery application. For example, the interface of the gallery application may include a photo page of the gallery application, such as Figure 2A The interface 10 (also referred to as the first interface) shown in (2) is an example of a photo page. The interface 10 displays at least one photo thumbnail, and the at least one photo thumbnail is displayed in order from the latest to the oldest date. The bottom of the interface 10 includes a photo option 21, an album option 22, a moment option 402 (also referred to as the first option) and a creation option 23 (or a discovery option). Figure 2A The photo page is shown in (2). Since the interface 10 displays the photo page, the icon status of the photo option 21 is different from that of the other three options (the album option 22, the moment option 402, and the creation option 23). For example, the icon color of the photo option 21 may be darker than that of the other three options.
[0117] In addition, the page display effect of photo option 21 is different from the page display effects of the other three options.
[0118] In some embodiments, the mobile phone displays the following information in response to the user clicking the time option 402: Figure 2A The time page shown in (3) in the figure. Figure 2A The interface shown in (3) can be called the second interface. Figure 2A As shown in (3), the interface includes a first display area and a second display area.
[0119] In some embodiments, the mobile phone displays a Figure 2B Interface 13 shown in (1). Interface 13 is an example interface of an album page. Interface 13 includes a search bar, an album named Camera (containing 150 photos), an album named All Photos (containing 364 photos), an album named Video (containing 10 videos), and albums corresponding to other classified photos. Because the album page displayed in interface 13 has a different icon status from the other three options (Photo option 21, Moment option 402, and Creation option 23), for example, the icon color of the album option 22 can be darker than the icon colors of the other three options.
[0120] In some embodiments, the mobile phone displays a message in response to the user clicking the creation option 23. Figure 2B Interface 14 shown in (2). Interface 14 is an example interface of a creation page. The creation page can be used for users to select photos for free creation or puzzle. Interface 14 includes a search bar, a free creation option, a micro-film creation option, a puzzle option, a clipping option, multiple albums classified and saved according to different portraits, and multiple albums classified and saved according to the things contained in the photos (including but not limited to documents, food, scenery and sports). The free creation option is used to provide users with the function of freely editing videos and / or photos. Micro-film creation is used to provide users with the function of creating micro-film videos. The puzzle option is used to provide users with the function of creating puzzles of photos. The clipping option is used to provide users with the function of clipping videos. Due to the creation page displayed in interface 14, the icon status of the creation option 23 and the other three options (photo option 21, moment option 402 and album option 22) are different. For example, the icon color of the creation option 23 can be darker than the icon color of the other three options.
[0121] It can be seen that interface 10 (i.e., photo page), interface 11 (i.e., moment page), interface 13 (i.e., album page), and interface 14 (i.e., creation page) all include a search bar. The mobile phone displays search results in response to a user's search operation of entering keywords in the search bar of any of the four interfaces. It should be noted that for the same search keyword, no matter which of the four interfaces is searched in the search bar, the interface of the displayed search results is the same. Optionally, the search object can be all photos in the gallery application or photos in the camera album.
[0122] For example, in response to the user inputting the keyword "Xi'an" in the search bar of any of the interfaces 10, 11, 13, and 14, the mobile phone displays the following: Figure 2B Interface 15 shown in (3). The keyword "Xi'an" is displayed in the search bar in interface 15. Below the search bar in interface 15 is the number of photos corresponding to the location associated with the location "Xi'an", for example, the number of photos related to Xi'an is 256, the number of photos related to Xi'an xx Industrial Park is 4, the number of photos related to Xi'an xx Park is 10, the number of photos related to Xi'an xx University is 15, the number of photos containing the word "Xi'an" is 26, and so on. Display area 602 in interface 15 displays thumbnails of some of the 278 photos related to Xi'an.
[0123] It is understandable that the above description is based on the keyword "Xi'an" as an example, and the present application embodiment is not limited thereto. For example, in addition to location keywords, keywords can also be person keywords, time keywords, thing keywords, etc.
[0124] It can also be understood that interface 15 is described by taking the search results as photos as an example, and the embodiments of the present application are not limited to this. For example, the search results of keywords can also include videos. The types of videos include but are not limited to: videos shot by a camera, generated moment videos, recommended wonderful videos, videos saved in an album, etc.
[0125] It can also be understood that in addition to the way that the mobile phone enters the gallery application in response to the user clicking the gallery application icon 401, the gallery application can also be entered in other ways. For example, the mobile phone responds to the user input voice command to open the gallery application, and displays the following Figure 2A For another example, when the mobile phone is running other applications, the mobile phone responds to the user entering the gallery application through the multitasking interface and displays the following Figure 2A The interface shown in (2) in the present application embodiment does not specifically limit the method of entering the gallery application.
[0126] After the mobile phone generates recommended photos and / or recommended wonderful moment videos of this day in previous years, it can display the recommended photos and / or recommended wonderful moment videos of this day in previous years in the first recommended position (corresponding to the first display area) of the moment page. Figure 2A As shown in (3), the first display area of the recollection interface includes a first card 403 and a type name of the first card 403. The first card 403 is used to display recommended photos and / or recommended wonderful moment videos of the same day in previous years.
[0127] Here, for unified explanation, a wonderful moment video (also referred to as a moment video or a memory video) refers to a video generated based on photos of a period of time (for example, a year, a month, a day or a holiday) in the gallery. The generated video can have a story or commemorative significance. Wonderful moment videos include but are not limited to one or more of the following: moment videos of revisiting the same place on the same day in previous years, unviewed moment videos, newly generated moment videos, and historical moment videos (historical moment videos can also be called relatively old moment videos). For ease of description, the word moment video will be used instead of wonderful moment video in the following text.
[0128] Here, for unified explanation, photos of this day in previous years can be photos taken on a different day than the current photo, but with the same date (the date can be the photo's corresponding shooting date or saving date). For example, if today is March 6, 2023, photos of this day in previous years can be photos taken on March 6, 2022, March 6, 2021, March 6, 2020, and so on.
[0129] In some embodiments, the mobile phone only generates photos of the same day in previous years and does not generate the recommended moment video of the same day (or the historically generated moment video has not been viewed by the user within the preset time period, and the historically generated moment video no longer meets the display conditions in the first display area. The specific implementation method will be described later. Fig.11 When the method flow is described in detail, the card displayed in the first display area is the card corresponding to the photo of this day in previous years, and the name of the first display area can also be named "this day in previous years". Figure 2A As shown in (3), when the first card 403 in the first display area is used to display the recommended photo cards of this day in previous years, the type of the first card 403 is named "this day in previous years". It should be understood that Figure 2A (3) shows an example of the first card 403 being used to display photos of today in previous years.
[0130] Optionally, in some embodiments, when the type of the first card 403 is today in previous years, the first card 403 includes time information and text information. The time information is used to represent the shooting time of the photo. The text information is text intelligently generated based on the content of the photo, which can enhance the atmosphere of the photo. In addition, the display form of the first card 403 is: a thumbnail corresponding to the first photo (a photo of today in previous years), or in other words, the size of the first card is smaller than the original size of the first photo.
[0131] For example, assuming that today is March 6, 2023, the photo thumbnail displayed in the first card 403 is a photo thumbnail taken on March 6, 2020. The photo content is a person, and the text displayed is "Those Years of Youth".
[0132] The embodiment of the present application does not specifically limit the preset number of cards included in the first recommendation position, for example, it can be 8.
[0133] The above is an example of a mobile phone that only generates photos of the same day in previous years and does not generate a video of the moment.
[0134] In other embodiments, when the mobile phone generates photos of the same day in previous years and includes recommended moment videos, the interface displays the following: Figure 3 As shown. Figure 3 In the interface shown, the cards displayed in the first display area include cards corresponding to photos of the same day in previous years and cards corresponding to videos at the same time. The card type name of the first display area can be "Daily Selection". Figure 3 As shown, the first display area in the interface shows a portion of the third card 501 and the fourth card 502. The second display area in the interface is used to display historical moment videos, for example, the second display area displays the fifth card 503. The moment video corresponding to the fifth card 503 is a historically generated moment video (or the first video).
[0135] Exemplarily, the fifth card 503 is a card of the first video. The fifth card 503 displays a thumbnail of an image corresponding to the first video. The display content of the fifth card 503 may include: a thumbnail of the cover image frame of the first video, text information, and time information, etc. Optionally, the cover image frame of the first video may be the first frame of the first video or some other wonderful image frame, which is not specifically limited.
[0136] It should be noted that when the generated recommended moment video is not viewed within the preset time, the card of the unviewed recommended moment video will be moved to Figure 3 The second display area shown is not displayed in the first display area.
[0137] Optionally, the second display area is located below the first display area so as to preferentially display the content of the first display area to the user.
[0138] Optionally, in the first display area, the cards corresponding to the recommended moment videos are arranged before the cards of the same day in previous years. The user can switch cards by sliding left and right in the first display area. In other words, the first display area can not only display photos of the same day in previous years, but also moment videos, so that the user can view the moment videos in the first display area.
[0139] In some other embodiments, when the mobile phone does not generate photos of the same day in previous years but generates a video of the recommended moment, the interface display may also be as follows: Figure 3 At this time, the cards displayed in the first display area are all cards corresponding to the moment video, excluding cards of photos of the same day in previous years.
[0140] for Figure 2A In the first card 403 shown in (3), the mobile phone responds to the user clicking Figure 2A The operation of the first card 403 shown in (3) shows Figure 2A Interface 12 (or the third interface) shown in (4) in the figure. Interface 12 includes the photo corresponding to first card 403. The display area of the photo corresponding to first card 403 displayed in interface 12 is larger than the display area of first card 403 in interface 11. For example, if the current time is March 6, 2023, then in response to the user clicking on first card 403, the mobile phone displays an immersive card playback interface, showing Figure 2A The photo shown in (4) is a photo taken on March 6, 2020. Immersive card playback is a playback method in which the picture fills the entire screen. As you can see, Figure 2A In the interface shown in (4), the picture fills the entire screen, and the status bar (including but not limited to: time icon, data signal icon of the mobile operator corresponding to the SIM card, network signal status icon, battery icon, etc.) is not displayed, that is, when the immersive card playback interface is displayed, the status bar is not displayed.
[0141] Above Figure 2A The interface shown in (4) does not include a status bar. It is understood that the mobile phone responds to the user's Figure 2A Touching or clicking any position of the interface shown in (4) can display the interface including the status bar.
[0142] It should be understood that if Figure 2A The first card 403 in (3) is a card of a video at a certain moment. When the user clicks the first card 403, Figure 2A (4) shows the playback page of the corresponding video at that moment. Figure 2A Not shown.
[0143] It should be noted that due to screen limitations, a card can be displayed in the first recommendation position, for example, Figure 2A The first card 403 shown in (3) does not mean that only one card can be displayed in the first display area. For example, Figure 2A The first display area shown in (3) also includes a partial area of the second card 404. The first display area may include a preset number of cards, and the preset number of cards may be switched by sliding left or right. The preset number of cards may be arranged in the order of the timeline. In response to the user sliding left in the first display area, the mobile phone displays the cover of the second card 404. Figure 4 Describe in detail.
[0144] Understandably, Figure 2A The interface 11 shown in (3) may also include other controls or contents. For example, Figure 2A The interface 11 shown in (3) may also include a search bar, which is used for the user to input search content (including but not limited to photos, people, places, etc.) so as to find the desired photos or videos based on the search content. Figure 2A The interface 11 shown in (3) may also include a second display area, which is used to display the historically generated moments (or memory videos).
[0145] Optionally, in some embodiments, the moment video displayed in the first display area may be moved to the second display area for display after a period of time (eg, 24 hours, or 48 hours). The specific situation will be described in detail in the method flow below.
[0146] Optionally, in some embodiments, if the number of cards of the moment video is greater than the upper limit of the number of cards that can be displayed in the first display area, the excess cards of the moment video will be automatically moved to the second display area.
[0147] Optionally, when a user views a card of a photo of today in previous years, when the user clicks on the card to view the photo of today in previous years corresponding to the card, in response to the user's operation of the music button, the mobile phone plays the soundtrack corresponding to the photo of today in previous years.
[0148] In some embodiments, different photos of today in previous years have different labels (e.g., people, group photos, pets, food, etc.). For different labels, different types of music libraries can be matched to the photos. For example, the soundtracks include but are not limited to: soothing, romantic, warm, cozy, tranquil, etc.
[0149] for example, Figure 2C Another UI example diagram for viewing photos of today in previous years is shown in FIG. Figure 2AThe interface shown in (4) is similar to Figure 2C The interface shown in can be implemented in different ways, both of which can be the mobile phone responding to Figure 2A The interface shown in (3) is displayed after clicking the first card 403. The difference between the two is that: Figure 2C In the interface shown, a music button is provided. Figure 2C As shown in (1), the photos of today in previous years displayed in the interface include button 407. Button 407 is used to turn on or off the music function. Optionally, button 407 is turned off by default, for example Figure 2C In response to the user clicking button 407, the mobile phone turns on the music function, and the interface is displayed as follows: Figure 2C As shown in (2).
[0150] Alternatively, button 407 is enabled by default, for example, the interface displays: Figure 2C In response to the user clicking button 407, the mobile phone turns off the music function and the interface displays the following: Figure 2C As shown in (1).
[0151] It can be understood that the on or off state of the music function can be specifically represented by button 407. The user can switch the on or off state of the music function by operating button 407. For example, when the music function is not turned on, button 407 can display the following: Figure 2C When the music function is turned on, button 407 may display Figure 2C Of course, in practice, different colors can be used to distinguish whether the music function is turned on or off.
[0152] Optionally, Figure 2C The interface shown in (1) may also include a playback progress 405 and a return control 406. The playback progress 405 is used to display the location of the current photo of the day in the previous year among multiple cards (including cards corresponding to the current photo of the day in the previous year and / or the moment video), or to display which card among the multiple cards corresponds to the current photo of the day in the previous year, so that the user can know the playback progress. The return control 406 is used to return to the previous level interface. For example, in response to the user clicking the control 406, the mobile phone returns to the previous level interface. Figure 2A The interface shown in (3).
[0153] In some embodiments, when a user slides left or right on a card in the first recommendation position, he or she can view photos and / or videos of the same day in previous years on different timelines.
[0154] Figure 4 (1) shows another example interface diagram including the first card 403. It should be understood that Figure 4 The interface shown in (1) is similar to the interface in (3) of Figure 2. Figure 4 The interface is just for the sake of explaining how to slide the cards to view photos of today in previous years. Figure 4 As shown in (1), the first display area currently displays the first card 403. In response to the user sliding leftward in the first display area, the mobile phone displays the following interface: Figure 4 As shown in (2). Figure 4 In the interface 31 (or the eighth interface) shown in (2), the first display area displays the second card 404, which is the card corresponding to the photo on March 6, 2021. The photo corresponding to the second card 404 and the photo corresponding to the first card 403 are photos taken on the same day (both March 6) but in different years. Optionally, the photo corresponding to the first card 403 is taken earlier than the photo corresponding to the second card 404.
[0155] Understandably, Figure 4 In the interface 31 shown in (2), when the user slides to the right in the first display area, the mobile phone responds to the user's sliding operation to the right and the interface can return to the display interface of the first card 403, for example Figure 4 The interface shown in (1).
[0156] It can also be understood that, similarly, in response to the user clicking the second card 404, the mobile phone displays Figure 4 Interface 32 (or the ninth interface) shown in (3). Interface 32 includes the photo corresponding to the second card 404. The display area of the photo corresponding to the second card 404 displayed in interface 32 is larger than the display area of the second card 404 in interface 31. In other words, interface 32 can also be understood as a large picture browsing page of the second card 404 (the photo includes text information and time information). For example, the corresponding time in the photo content of the second card 404 is March 6, 2021, and the text displayed is "The beauty brought by time".
[0157] In some embodiments, when a user is viewing the photo content of a card in large picture mode, the user may also swipe left or right to view photos of the same day in previous years from different timelines.
[0158] For example, in Figure 4 In the interface 32 shown in (3), the mobile phone responds to the user sliding the screen to the left, and the interface displays a photo corresponding to another card, such as Figure 4 The interface 33 shown in (4) is shown in FIG. Figure 4 As shown in (4), the photo displayed in interface 33 is a photo taken on March 6, 2022, and the text displayed is "Dare to challenge yourself".
[0159] Understandably, Figure 4 The photo of the second card 404 shown in (3) can also be entered in a similar manner. Figure 2A In the interface 12 shown in (4), when the user slides the interface to the left, the mobile phone responds to the user's operation of sliding the screen to the left, and the interface displays the photo of the second card 404, that is, Figure 4 Interface 33 shown in (3).
[0160] In some embodiments, when a user views photos of the same day in previous years, he or she may also share the photos, including sharing the original photos or sharing postcards.
[0161] by Figure 5 Taking the photo shown in (1) as an example, when the user clicks the screen (it can be any position in the photo), the mobile phone responds to the user's operation of clicking the screen and displays the following Figure 5 The interface shown in (2) includes a sharing control 301, a return control 305 (used to return to a page, for example, to return to the card shown in the first display area, specifically the card corresponding to the current photo) and more options (used to view more information about the photo).
[0162] When the user clicks the sharing control 301, the mobile phone displays the following in response to the user clicking the sharing control 301: Figure 5 The interface shown in (3) (or referred to as the tenth interface). Figure 5 As shown in (3), a window 302 pops up, and the window 302 includes an option 303 for sharing the original image (or referred to as the first sharing option) and an option 304 for sharing the postcard (or referred to as the second sharing option).
[0163] When the user clicks the option 303 for sharing the original image, the mobile phone displays the following in response to the user clicking the option 303 for sharing the original image: Figure 5 The sharing interface (or the eleventh interface) shown in (4) is for sharing the original photo, which refers to the photo without time information and text information. Figure 5 In the interface shown in (4), the sharing window 306 includes the original image of the selected photo to be shared (i.e. Figure 5 The thumbnail of the photo shown in (1), a check mark, and multiple options for sharing methods. The check mark is used to indicate whether the photo to be shared is selected, for example, Figure 5 The checked option shown in (4) indicates that the photo to be shared has been selected. In response to the user clicking the option 303 to share the original photo, Figure 5 The checkbox shown in (4) is checked by default. Figure 5The interface shown in (4) shows multiple options for sharing methods, including Bluetooth sharing, Honor sharing, short message sharing, email sharing, memo sharing, etc. It can be understood that Figure 5 The interface shown in (4) only shows some sharing methods, and the embodiments of the present application are not limited to this.
[0164] When the user clicks the option 304 for sharing the postcard, the mobile phone responds to the user clicking the option 304 for sharing the postcard and displays the following interface: Figure 5 The sharing interface shown in (5) (or the twelfth interface) is for sharing photo postcards, where a photo postcard refers to a picture containing time information and text information. Figure 5 The interface shown in (4) is similar to Figure 5 The difference between the interface shown in (5) is: Figure 5 The pictures to be shared in the sharing window 306 shown in (4) do not include the time information and the accompanying text information. Figure 5 In the interface shown in (5), the sharing window 307 includes the postcard of the selected photo to be shared (i.e. Figure 5 The mobile phone displays a thumbnail of the photo (shown in (1)), a check mark, and multiple options for sharing. The check mark is used to indicate whether the photo to be shared is selected. In response to the user clicking the option 304 for sharing the postcard, Figure 5 The checkbox shown in (5) is checked by default. Figure 5 The sharing method shown in (5) can be referred to Figure 5 The description of (4) will not be repeated here.
[0165] Understandably, whether Figure 5 The sharing interface shown in (4) is still Figure 5 The sharing interface shown in (5) includes sharing methods that are only examples.
[0166] It should be understood that users can also share photos through third-party applications (for example, sharing to a social application).
[0167] In some embodiments, in response to the user's operation of viewing the photo of today in previous years being played, the mobile phone displays the original photo of today in previous years being played. Fig. 6A The interface shown in (1) is a photo 60 of the same day in previous years being played, and the interface includes more options 603 (i.e., an icon consisting of three dots in the figure). In response to the user clicking on more options 603, the mobile phone displays the following Fig. 6A The interface shown in (2) is shown in the figure. Fig. 6AAs shown in (2), the interface includes a window 604, and the window 604 includes a view original image option 605 and a save postcard option 606. In response to the user clicking the view original image option 605, the mobile phone displays the following Fig. 6A The interface shown in (3) is shown in the figure. Fig. 6A As shown in (3), the interface includes the original image of photo 60. For example, the shooting time of photo 60 is 11:30 am on March 6, 2022. Fig. 6A The interface shown in (3) also includes a share control, a favorite control, an edit control, a delete control, and more controls. In response to the user clicking on the share control, the mobile phone can share the photo 60. In response to the user clicking on the favorite control, the mobile phone adds the photo 60 to the favorites. In response to the user clicking on the edit control, the mobile phone performs an edit operation on the photo 60. In response to the user clicking on the delete control, the mobile phone deletes the photo 60. In response to the user clicking on the more controls, the mobile phone displays other operations for the photo 60 (e.g., copy, move, rename, rotate, etc.).
[0168] In response to the user clicking the option 606 to save the postcard, the mobile phone displays the following Fig. 6A The interface shown in (4) is shown in the figure. Fig. 6A As shown in (4), a prompt window 607 will pop up in the interface, and the prompt window 607 is used to prompt the user that the postcard of photo 60 has been saved in the photo, and the time corresponding to the postcard of photo 60 is the latest time of saving the postcard.
[0169] Optionally, when viewing the original image of a photo taken today in previous years (e.g., the first photo), the user can edit and save the original image of the first photo. For example, in response to the user clicking the edit control, the mobile phone performs an editing operation on the first photo. When saving the original image of the first photo, the user can choose different saving methods to save it. The saving method can include a saving method that overwrites the original image and a saving method that does not overwrite the original image (i.e., a "save as" saving method).
[0170] The saving method of overwriting the original image refers to: deleting the original image of the photo of the same day in previous years, and re-saving a photo at the time when the user edited the first photo, that is, the time corresponding to the re-saved photo is the time when the user last saved the edited first photo, rather than the shooting time or saving time of the original image of the first photo. For example, the shooting time of the first photo is March 6, 2020, and the user edited the first photo on January 1, 2023, and saved it in a way of overwriting the original image. Then, what is saved in the gallery application is the first photo with a time of January 1, 2023 (that is, the time of the first photo is changed to the latest saving time), and the first photo taken on March 6, 2020 (that is, the original image of the first photo) is deleted. It can be understood that the description here is based on the saving time as the date, and the embodiments of the present application are not limited to this. In fact, the saving time can also be accurate to time units such as hours, minutes, and seconds, which is not limited to this.
[0171] The saving method without overwriting the original photo means: the original photo of the first photo is still retained, and a new photo is saved with the time when the user edited the first photo. For example, the first photo was taken on March 6, 2020. The user edited the first photo on January 1, 2023 and saved it in Save As mode. Then the Gallery application not only saves the first photo with the time of January 1, 2023 (that is, the time of the first photo is changed to the latest saving time), but also retains the first photo taken on March 6, 2020 (that is, the original photo of the first photo).
[0172] It should be understood that the first photo is used as an example here to describe different saving methods, and other photos of the same day in previous years are also applicable to the above description, and the embodiments of the present application are not limited to this.
[0173] After editing the first photo, if the edited first photo is saved in a way that overwrites the original image, the card of the first photo will disappear in the first display area, that is, since the original image of the first photo has been deleted, the card of the first photo will not be displayed in the first display area; if the edited first photo is saved in a way that does not overwrite the original image, the card of the first photo will not disappear in the first display area, that is, the first display area will still display the card of the first photo.
[0174] For example, in response to the user's operation of saving the edited photo 70 (corresponding to the first photo), the mobile phone displays Figure 6B The interface shown in (1) in FIG. 70 can be the card of the previous text. Figure 2A The first card 403 shown in (3) is shown in FIG. Figure 6BAs shown in (1), in response to the user clicking the save control 201, the mobile phone displays a window 202 in the interface, and the window 202 is used to provide the user with a way to choose to save the photo. The window 202 includes a "save as" option (also referred to as the second save option) and an "overwrite original image" option (also referred to as the first save option). In response to the user clicking the "save as" option in the window 202, the mobile phone saves the edited photo 70 in the "save as" mode. In response to the user clicking the "overwrite original image" option in the window 202, the mobile phone saves the edited photo 70 in the "overwrite original image" mode.
[0175] In addition, in order to highlight the window 202, the mobile phone may display other contents in the interface except the window 202 in a manner of blurring the background or darkening the background. For example, the mobile phone displays the grayed-out photo 70 in the interface.
[0176] In some embodiments, after the user chooses to save the edited photo 70 by overwriting the original photo, the mobile phone displays the time option 402 in response to the user clicking the time option 402, or in response to the user returning to the time page. Figure 6B The interface shown in (2) is shown in FIG. Figure 6B As shown in (2), the first display area does not display the first card 403, for example, the second card 404 is displayed. The related description of the first card 403 and the second card 404 can be referred to in the previous text. Figure 2A For the sake of brevity, the description of the first card 403 is omitted here. Moreover, since the original photo 70 has been deleted, even if the user performs a sliding operation (e.g., sliding to the left) in the first display area to switch cards, the mobile phone will not display the first card 403. In other words, not displaying the first card 403 can be understood as deleting the first card from the card set corresponding to the first display area.
[0177] It should be understood that if the edited photo 70 is saved in the "Save As" mode, the mobile phone displays the time option 402 in response to the user clicking the time option 402. Figure 2A The interface shown in (3) means that the mobile phone still displays the first card 403 in the first display area.
[0178] It is understandable that the above Figure 6B The interface in the description is based on photo 70 as an example, and the present application embodiment is not limited to this. In fact, it is also applicable to other photos of the same day in previous years. Figure 6B The interface shown in .
[0179] Optionally, the window 202 also includes a “cancel” option. In response to the user clicking the cancel option, the mobile phone cancels saving the edited photo 70 , for example, the mobile phone does not display the window 202 and returns to the photo 70 editing interface.
[0180] Optionally, window 202 also includes text content, which is used to prompt the user: after selecting the "overwrite original" option, the search path of the deleted original photo. For example, the text content is: After selecting "overwrite original", you can find the corresponding original in "recently deleted". Optionally, the "recently deleted" album can be located on the photo page of the gallery application, for example, Figure 2B Interface 13 shown in (1).
[0181] Optionally, in some embodiments, for photos of this day in previous years, in addition to the accompanying text information and time information, a suitable soundtrack can be generated for it to achieve the purpose of rendering the atmosphere. When the user browses the photos of this day in previous years in large images, the soundtrack can be played at the same time.
[0182] Optionally, in some embodiments, for photos or videos of this day in previous years, filters can be added to the photos or videos, that is, the photos or videos are toned by applying filters to further enhance the atmosphere. When users browse photos of this day in previous years, they can view photos with corresponding filters. It can be understood that filters are a type of video special effects, which are used to achieve various special effects in videos.
[0183] It should be noted that the above Figures 2A to 5 The interfaces shown are all described by taking the generation of photos of previous years and / or recommended moment videos as an example, and the embodiments of the present application are not limited thereto. For example, when no photos of previous years and recommended moment videos are generated, the corresponding columns may not be displayed. For example, in response to the user clicking Figure 2A After selecting the time option 402 shown in (2), the mobile phone can display Figure 7 The interface shown in . Figure 7 In the interface shown in , the interface does not include the columns of the first display area, or does not divide the display area, that is, the cards of the videos at each moment are directly displayed below the search bar, such as the fourth card 504 and the fifth card 505. Optionally, Figure 7 The search bar shown in FIG. 1 can also be used to search for videos at a certain moment so that users can find them. Figure 7 The interface shown in may also include other controls or contents, such as a search bar. For an explanation of the search bar, please refer to the previous description. For the sake of brevity, it will not be repeated here.
[0184] When the moment video displayed in the first recommendation position is updated, for example, a new recommended moment video is generated based on the photo (also called a newly generated moment video, i.e., a moment video newly generated on the day, which has not yet been displayed to the user), the user can be reminded to pay attention to or view the newly generated moment video. The embodiment of the present application does not specifically limit the reminder method.
[0185] In some embodiments, a prompt icon can be added to the moment option in the gallery application to remind the user that there is a newly generated moment video. The user can click the moment option to enter the view. For example, the phone responds to the user clicking Figure 2A The operation of the icon 401 of the gallery application shown in (1) is as follows: Figure 8 As shown. Figure 8 The interface shown in FIG. 1 is a photo page of a gallery application. When a newly generated moment video is available, the icon of the moment option of the photo page includes a dot 601. The dot 601 is used to remind the user that a newly generated moment video is available. For example, the dot 601 may be red in a specific implementation to remind the user to pay attention to or view the newly generated moment video in a more eye-catching manner.
[0186] In some embodiments, the mobile phone may also remind the user by pushing a notification message, for example, in a notification bar.
[0187] In some embodiments, the mobile phone may also remind the user through a pop-up window. For example, after unlocking the mobile phone, the user sees a reminder pop-up window "A new moment has been generated for you" on the interface.
[0188] The above is only a partial UI interface to show the method of pushing photos or videos in the embodiment of the present application. To facilitate understanding of the logic of the method of pushing photos or videos in the embodiment of the present application, the following will be combined with Figures 9 to 13 The method flow shown in is described in detail.
[0189] In some embodiments, by analyzing the photos in the gallery, photos of today in previous years are filtered based on time information and displayed in the first recommendation position.
[0190] Fig. 9 and Fig.10 Shown is a flow chart of a method in which the first recommendation position is only used to display cards with photos of today in previous years.
[0191] refer to Fig. 9 , Fig. 9 The method logic for displaying cards with photos of today in previous years in the first recommendation position is shown.
[0192] Step 701, determine whether there are photos of this day in previous years (or old photos of this day in previous years).
[0193] In some embodiments, the gallery application may analyze whether there are photos of the same day in previous years with the current date based on the photo data in the gallery (eg, the date the photo was taken) in combination with the current date.
[0194] For example, if today is March 6, 2023, you can check in the gallery whether there are photos taken on March 6 N years ago, where N is an integer greater than or equal to 1.
[0195] If there are photos of this day in previous years, step 702 is executed; if there are no photos of this day in previous years, the column of the first recommendation position (i.e., the card display area that does not include photos of this day in previous years) is not displayed, for example, Figure 7 The interface shown in shows the second recommendation position, and does not display the first recommendation position.
[0196] Step 702, determine K photos of today in previous years.
[0197] The value of K can be a preset number or other number, and there is no specific limitation on this.
[0198] In some embodiments, by analyzing the photos of today's day in previous years contained in the gallery, a preset number of photos of today's day in previous years are screened out, and the preset number of photos of today's day in previous years are displayed in the first recommendation position in the form of cards.
[0199] The preset number can be set based on actual needs, and the present application embodiment does not specifically limit this. For example, the preset number can be 8, that is, 8 photos of this day in previous years can be generated for display.
[0200] How to generate K photos of today in previous years will be combined with Fig.10 The method logic in is described in detail.
[0201] Step 703: Display K cards of photos of today in previous years in the first recommendation position.
[0202] The K cards of today's photos in previous years can be sorted in chronological order in the first recommendation position. Optionally, one card of today's photos in previous years corresponds to one photo of today in previous years. For example, K photos of today in previous years correspond to K cards of today's photos in previous years.
[0203] In some embodiments, the cards of the K photos of today in previous years may be sorted in the order of shooting time (or saving time), with the older the photo, the earlier it is.
[0204] It should be noted that, for the cards of the K photos of today in previous years displayed in the first recommendation position, the user can view or switch them by swiping left or right.
[0205] Fig.10 An example diagram showing the logic of the method for determining K photos of today in previous years in an embodiment of the present application is shown. It should be understood that Fig. 9 The K photos of today in previous years in step 702 can be obtained by Fig.10 The method shown is obtained. Fig.10 As shown, including:
[0206] Step 801, determine the aesthetic score of each photo of this day in previous years.
[0207] In some embodiments, based on the gallery data, a large number of photos of today in previous years can be obtained. In order to obtain a preset number of photos of today in previous years, it is first necessary to perform a preliminary screening of the plurality of photos of today in previous years. For example, the basis for the preliminary screening of the photos can be the aesthetic rating of the photos.
[0208] The embodiment of the present application does not specifically limit the scoring criteria for the aesthetic score of the photo. The aesthetic score of the photo can be obtained based on the initial aesthetic score combined with the weight value. The embodiment of the present application does not specifically limit how the initial aesthetic score of the photo is obtained. For example, the aesthetic score of the photo can be determined in combination with one or more of the following factors: image composition, image clarity, image quality, and other image evaluation criteria. It can be understood that the above only shows some factors of the aesthetic score, and the embodiment of the present application is not limited to this.
[0209] After obtaining the initial aesthetic score, the weight of the score can be adjusted in combination with some factors, and the final aesthetic score is calculated based on the weight on the basis of the initial aesthetic score. In some embodiments, the weight of the photo score is adjusted according to the following ranking factors: portrait, cute pet, food, scenery; the importance or weight of these factors decreases in turn.
[0210] For example, photo A contains a portrait, and photo B contains food. Assume that the initial aesthetic score of photo A is 80 points, and the initial aesthetic score of photo B is 85 points. Since photo A contains a portrait, its weight is higher than that of photo B. Therefore, the weight of photo A is increased by 10%, and the final aesthetic score of photo A is (80+80*10%), that is, 88 points.
[0211] Optionally, when the portrait is used as a scoring factor, the top portraits in the electronic device may be further considered as an evaluation factor. The number of the top portraits may be predefined, for example, the top 5 portraits.
[0212] For example, assuming that photo C includes portrait 1, photo D includes portrait 2, and portrait 2 is the portrait in the TOP portraits in the mobile phone, then when calculating the aesthetic score of photo D, the score of photo D can be increased by 10%, that is, the score of photo D is: initial aesthetic score*(1+10%).
[0213] The TOP portraits may be obtained by clustering analysis based on the photo data in the gallery. The present application embodiment does not specifically limit the clustering algorithm. Exemplarily, the TOP portraits may be the TOP portraits that the owner of the electronic device is interested in. The present application embodiment does not specifically limit the method for determining the TOP portraits that the owner of the electronic device is interested in.
[0214] Exemplarily, it can be determined based on the frequency of the portrait appearing in the gallery and / or the close relationship (or familiarity) between the portrait and the owner. The close relationship between the portrait and the owner can be determined by referring to the time or place when the portrait is taken with the owner. For example, people who often take photos with the owner on holidays may have a closer relationship. For another example, people who take photos together at the owner's permanent residence or home may have a closer relationship.
[0215] After determining the aesthetic score of each photo of this day in previous years, the photos having the aesthetic score greater than the score threshold can be filtered out.
[0216] The embodiment of the present application does not specifically limit the value of the scoring threshold. For example, assuming that the scoring threshold is 85 points, then the photos with aesthetic scores greater than 85 points can be screened out to obtain a certain number of photos of the day in previous years with scores greater than 85 points. Assuming that the number of photos of the day in previous years with scores greater than 85 points is the first number, then step 802 needs to be used to determine whether the first number meets the condition.
[0217] After obtaining the aesthetic score of each photo of the same day in previous years, the number of photos with aesthetic scores greater than the score threshold may be counted. For example, the number of photos with aesthetic scores greater than the score threshold is the first number.
[0218] The present application embodiment does not specifically limit the scoring threshold. The scoring threshold can be a reasonable value selected based on actual needs. For example, the scoring threshold is 80 points.
[0219] Step 802: Determine whether a first number is greater than or equal to a first number threshold, where the first number is the number of photos whose aesthetic scores are greater than the score threshold.
[0220] If the first number is greater than the first number threshold, step 803 is executed; if the first number is less than or equal to the first number threshold, step 807 is executed.
[0221] As mentioned above, the first number specifically refers to the number of photos taken today in previous years that meet the scoring threshold, that is, the number of photos whose statistical aesthetic scores are greater than the scoring threshold.
[0222] The embodiment of the present application does not limit the specific value of the first quantity threshold. The first quantity threshold can be a preset number. For example, the first quantity threshold is 8.
[0223] The purpose of step 802 is to determine whether the number of photos that meet the scoring threshold is greater than or equal to the first quantity threshold. If it reaches the first quantity threshold, it is necessary to continue to filter the photos based on the year of the photos to avoid too many photos. If it is less than the first quantity threshold, it can be pushed based on the existing photos that meet the scoring threshold.
[0224] Step 803, determining whether a second number is greater than a second number threshold, where the second number is the number of years corresponding to the first number of photos.
[0225] The purpose of introducing step 803 is that when the number of photos of today in previous years that meet the scoring threshold is large (or when the first number is greater than the first number threshold), the photos can be further screened in combination with the number of years of the photos of today in previous years.
[0226] The second number specifically refers to the number of years corresponding to the photos of today in previous years that meet the scoring threshold. For example, among the photos of today in previous years from 2014 to 2022, there are 2 photos that meet the scoring threshold each year, and the corresponding number of years is 9.
[0227] If the second number is less than or equal to the second number threshold, step 804 is executed; if the second number is greater than the second number threshold, step 806 is executed.
[0228] The second quantity threshold refers to the year threshold. The purpose of setting the year threshold is to select photos that are evenly distributed in different years. Taking the year threshold of 8 as an example, if the number of years corresponding to the photos of this day in previous years that meet the scoring threshold is less than or equal to 8, then up to 8 photos of this day in previous years can be filtered according to the timeline distribution.
[0229] Step 804, filter the photos according to the shooting time (or the storage time of the photos), and obtain at most a first quantity threshold (or a preset quantity) of photos of today in previous years.
[0230] It can be understood that obtaining a maximum of a first threshold number of photos of today in previous years includes two situations: (1) obtaining photos of today in previous years less than the first threshold number; (2) obtaining photos of today in previous years equal to the first threshold number.
[0231] For example, assuming that the aesthetic scores of 10 photos all meet the aesthetic score threshold, the year threshold is 8, and the number of years corresponding to these 10 photos is 8, then one photo can be selected from these 10 photos for each year, and finally 8 photos of the same day in previous years are obtained.
[0232] For example, suppose there are 10 photos whose aesthetic scores all meet the aesthetic score threshold, the year threshold is 8, and the number of years corresponding to these 10 photos is 6. Then, among these 10 photos, you can first conduct a round of photo selection according to the timeline from old to new, and get 6 photos after selecting one photo each year; then conduct a second round of photo selection according to the timeline from old to new, and only 2 photos are needed for the second round of photo selection. After two rounds of selection, you will finally get 8 photos of today in previous years.
[0233] After obtaining a first number threshold of photos of today in previous years, the weight of the photo display ratio may also be adjusted based on the time information of the photos, for example, step 805 .
[0234] Step 805, determining the display ratio based on the time information of the photo (shooting time or saving time).
[0235] Specifically, for photos of today in previous years with a long timeline, the weight of the display ratio can be determined (which can be understood as: for photos of today in previous years with a long time, the number of selected photos can be more than the number of photos more recently) to increase the number of photos of today in previous years with a long shooting time or storage time.
[0236] For example, if the year corresponding to the photos of today in previous years that meet the scoring threshold is 7 years, then the photos can be selected according to the timeline distribution. In addition, for photos with an older timeline, more photos can be selected.
[0237] For example, assuming that the number of years corresponding to the photos of today in previous years that meet the scoring threshold is 7 years, for the photos taken on the same day (March 6) from 2016 to 2022, 2 photos taken on March 6 are selected in 2016, and one photo taken on March 6 is selected each year from 2017 to 2022, resulting in 8 photos of today in previous years.
[0238] Step 806: Select a photo from the photos of today in previous years each year to obtain a third number of photos. The third number is the number of years corresponding to the photos of today in previous years.
[0239] The third number is greater than the second number and depends on the number of years corresponding to the first number of photos.
[0240] For example, assuming that the aesthetic scores of 10 photos all meet the aesthetic score threshold, the year threshold is 8, and the number of years corresponding to these 10 photos is 9, then one photo can be selected from these 10 photos for each year, and 9 photos of the same day in previous years can be obtained.
[0241] Step 807, sort the photos of today in previous years according to the shooting time (or the saving time of the photos). The older the timeline, the higher the corresponding photos are sorted.
[0242] Regardless of the method used to obtain the photos of today in previous years, after obtaining K photos of today in previous years, they can be sorted according to the shooting time or the storage time of the photos. The older the photos of today in previous years, the higher the corresponding card will be when it is displayed in the first recommendation position.
[0243] For example, in response to the user sliding left in the first display area, the mobile phone displays the cards with the highest ranking first. Figure 4The interface shown in the figure is described as an example. The card of photo 1 is displayed in the middle of the first display area. For example Figure 4 In response to the user sliding leftward in the first display area, the mobile phone displays a card of photo 2 in the first display area, such as Figure 4 The card 404 shown in (2) is shown in FIG. Figure 4 In the interface shown in (2), the mobile phone responds to the user sliding left in the first display area again, and displays the card of photo 3 in the first display area ( Figure 4 (not shown in the figure). If there are other cards after the card of photo 3, the order of display after sliding is similar. The order of the card of photo 1, the card of photo 2, the card of photo 3, and so on, is the order of the cards of the photos of the same day in previous years. In addition, the cards of the photos of the same day in previous years with a longer time will be displayed first. The time of photo 1 is long.
[0244] It is understood that the above description is based on the example of a user sliding once to switch a card, and the embodiment of the present application is not limited thereto. The card displayed in the first display area may also be related to factors such as the speed at which the user performs the sliding operation, the sliding distance, and the screen sensitivity.
[0245] For example, in response to a user's quick sliding operation, the mobile phone automatically switches multiple cards and then displays a certain card (or stays on a certain card). Further, in the process of automatically switching multiple cards, the mobile phone can display a certain card in response to the user's clicking operation on the screen.
[0246] For another example, in response to a user sliding a first distance, the mobile phone automatically switches multiple cards until the last card is displayed, wherein the first distance is greater than a preset distance threshold.
[0247] The above K photos of today's day in previous years may be the third number of photos obtained in step 806, or may be the first number threshold of photos of today's day in previous years obtained through steps 804 to 805, or may be the branch where the judgment result of step 802 is "no", and the number of photos of today's day in previous years that is less than the first number threshold is obtained.
[0248] Step 808, adding text to each photo of this day in previous years.
[0249] In some embodiments, different texts are matched based on the content and / or scenes contained in the photo, that is, texts are intelligently generated based on the picture information in the photo. For example, when the photo contains food, the text displayed is "Only food cannot be let down." For another example, when the photo contains a person who is exercising, the text can be "Life lies in exercise." For another example, when the photo contains a person who is reading a book, the text can be "Time alone with a book."
[0250] The embodiment of the present application does not specifically limit the method or rule for adding text to photos. For example, the method or rule for adding text to photos may specifically depend on the text matching algorithm stored in the mobile phone.
[0251] Of course, each photo of this day in previous years may also include corresponding time information, that is, the shooting time of the photo or the storage time of the photo.
[0252] After adding text to the photos taken on this day in previous years, you can obtain cards corresponding to K photos of this day in previous years that are displayed in the first recommendation position.
[0253] It should be noted that the K photos of today's day in previous years have different quantity values in different situations. As mentioned above, the K photos of today's day in previous years may be the third quantity of photos obtained in step 806, or the first quantity threshold of photos of today's day in previous years obtained through steps 804 to 805, or the number of photos of today's day in previous years less than the first quantity threshold (i.e., the photos obtained when the judgment result of step 802 is "No").
[0254] Combination of the above Fig. 9 and Fig.10 This article describes the logic of displaying photos of the day in previous years in the first recommendation position. Figures 11 to 13 Another method logic for displaying photos and moment videos in the first recommendation position provided by an embodiment of the present application is introduced.
[0255] In some embodiments, based on the gallery data, it is determined whether there are photos of today in previous years and newly generated moment videos. As mentioned above, the newly generated moment video refers to the moment video generated on the same day. The newly generated moment video has not been shown to the user. For example, if the user uses a mobile phone to view photos on March 6, 2023, the newly generated moment video can be understood as the moment video generated on March 6, 2023.
[0256] Optionally, the newly generated moment video is generated by the gallery application based on photos of a period of time before the current day. For example, the gallery application analyzes photos of a recent period of time (e.g., three days, five days, a week, etc.) on the current date to generate a new moment video.
[0257] The above judgment results of whether there are photos of the same day in previous years and newly generated moment videos include four situations, namely:
[0258] Case 1: There are photos of the same day in previous years, but no newly generated moment videos;
[0259] Case 2: There is a newly generated moment video, but no previous day photos;
[0260] Case 3: There are both photos of the same day in previous years and newly generated moment videos;
[0261] Case 4: There is neither a newly generated moment video nor a photo of the same day in previous years.
[0262] For the above situation 1, please refer to the previous article Fig.10 A preset number of photos taken today in previous years are determined in the manner described in , and then the cards of photos taken today in previous years are displayed in the first recommendation position.
[0263] For the above situation 2, the following combination Fig.11 The method flow shown in the figure describes a display logic of the first recommendation position in this case. Fig.11 As shown, including:
[0264] Step 901, when there is at least one newly generated moment video (specifically at least one newly generated moment video on the current day) and there are no photos of the current day in previous years, sort the at least one moment video.
[0265] That is to say, in the case where there are only newly generated moment videos, when they are displayed in the first recommendation position, if there are multiple newly generated moment videos, the multiple newly generated moment videos can be sorted according to preset rules.
[0266] In some embodiments, newly generated moment videos are sorted according to preset rules, including: sorting the moment videos in the following order: annual moment video, portrait summary moment video, portrait selection moment video, theme moment video.
[0267] In some embodiments, the order is determined according to the time span corresponding to the moment video. For example, the moment video with a larger time span is in front, and the moment video with a smaller time span is in the back. The card of the moment video of the annual summary is ranked higher in the first recommendation position, and the card of the moment video of only one event (such as National Day, wedding) is ranked lower in the first recommendation position.
[0268] Exemplarily, the theme moment videos may be seven major theme moment videos, namely: birthday, party, graduation, night scene, sports, travel, wedding and other commemorative festivals and the like.
[0269] After sorting at least one newly generated moment video, it is also necessary to determine whether the user has viewed the moment video in order to decide whether to continue to display it in the first recommendation position.
[0270] Step 902, determining whether the user has viewed the newly generated moment video.
[0271] If the user views the newly generated moment video on the same day, step 909 is executed, that is, the card of the viewed moment video disappears from the first recommendation position after 0:00 on the next day; if the user does not view the newly generated moment video on the same day, step 903 or step 908 is executed. The next day refers to the day after the first day (the first day here can refer to the current day), for example, if the current day is March 6, the next day is March 7.
[0272] Step 903: The user does not enter the time page.
[0273] That is, there are two situations when the user does not view the newly generated moment video. Step 903 is one situation when the user does not view the newly generated moment video, that is, the user does not enter the moment page. The other situation is that the user enters the moment page but does not view the newly generated moment video, that is, step 908.
[0274] Step 904: the newly generated moment video that has not been viewed will remain for one day (i.e., it will continue to be displayed in the first recommendation position).
[0275] The one-day stay of the newly generated moment video that has not been viewed can be understood as: the card corresponding to the newly generated moment video that has not been viewed will still be displayed in the first recommendation position on the second day, that is, in addition to being displayed in the first recommendation position on the day the moment video is generated, it will be displayed in the first recommendation position for another day on the second day of that day. In other words, if the user does not enter the moment page to view the moment video, the newly generated moment video that has not been viewed (that is, at least one newly generated moment video mentioned in step 901) needs to stay in the first recommendation position for one day, that is, at 0:00 on the second day, the card of the moment video that has not been viewed will still be displayed in the first recommendation position.
[0276] Step 905, determine whether a new moment video is generated on the next day.
[0277] It is understandable that the gallery application may generate new moment videos every day. Regardless of whether the at least one newly generated moment video mentioned in step 901 is viewed by the user, new moment videos may be generated every day thereafter.
[0278] For example, if the user does not enter the moment page to view the moment video, a new moment video for the next day may also be generated the next day. If a new moment video for the next day is generated the next day, then step 906 is executed; if a new moment video for the next day is not generated the next day, then step 907 is executed.
[0279] Step 906 , arranging the new moment video generated on the second day before the at least one newly generated moment video mentioned in step 901 .
[0280] Arranging the new moment video generated on the second day before the at least one newly generated moment video mentioned in step 901 can be understood as: when sorting the cards of multiple moment videos, the card corresponding to the new moment video generated on the second day is sorted earlier in the first display area than the card corresponding to the at least one newly generated moment video mentioned in step 901, that is, the card corresponding to the latest generated moment video is preferentially displayed to the user, or in other words, in response to the user sliding left in the first display area, the mobile phone first displays the cards with a higher sorting (for example, the card corresponding to the new moment video generated on the second day), and then displays the cards with a lower sorting (for example, the card corresponding to the at least one newly generated moment video mentioned in step 901).
[0281] Combined here Figure 4 Taking the first card 403 and the second card 404 shown in (1) as an example, the first card 403 is arranged before the second card 404 in the first display area. Figure 4 In the interface shown in (1), the first display area displays the first card 403. In response to the user sliding the first display area to the left, the mobile phone displays the second card 404 in the first display area, such as Figure 4 Further, in Figure 4 In the interface shown in (2), the mobile phone can continue to respond to the user's swiping operation to the left in the first display area, and display the cards after the second card 404 in the first display area, and the subsequent cards are displayed in the same manner. That is, when the user swipes to the left, the mobile phone will first display the cards with the highest order based on the order of the cards.
[0282] For example, for step 906, assuming that the card corresponding to the new moment video generated on the second day is the first card 403, and the card corresponding to the new moment video generated at step 901 is the second card 404, the order of the first card 403 and the second card 404 and the display order can be referred to the above description and will not be repeated here.
[0283] That is to say, when the card of the moment video is displayed in the first recommendation position, the new moment video generated on the next day is arranged before at least one moment video generated on the current day, that is, the first recommendation position gives priority to displaying the latest generated moment video.
[0284] Step 907: At 0:00 on the third day, the card of the at least one newly generated moment video mentioned in step 901 disappears in the first recommendation position.
[0285] The card corresponding to the at least one newly generated moment video mentioned in step 901 disappears from the first recommendation position, which can be understood as: the card corresponding to the at least one newly generated moment video mentioned in step 901 is deleted from the daily selected card collection. When the user clicks the first display area to view the card, when the first display area is swiped left or right, the mobile phone will no longer display the card corresponding to the at least one newly generated moment video mentioned in step 901.
[0286] That is to say, for the moment videos that the user did not enter the moment page to view (i.e., the at least one newly generated moment video mentioned in step 901), regardless of whether there is a new moment video generated on the second day, at 0:00 on the third day, the card corresponding to the at least one newly generated moment video mentioned in the aforementioned step 901 will disappear in the first recommendation position, or will not be displayed.
[0287] Step 908 , the user enters the moment page, but does not view at least one newly generated moment video mentioned in step 901 .
[0288] That is to say, although the user has entered the moment page, the user has not viewed the moment video. At this time, there is no need to delay the display time of the unviewed moment video. That is, at 0:00 the next day, the card of the unviewed moment video (that is, the at least one newly generated moment video mentioned in step 901) disappears in the first recommendation position, and step 909 is executed.
[0289] Step 909: At 0:00 the next day, the card corresponding to the at least one newly generated moment video mentioned in step 901 disappears from the first recommendation position.
[0290] The card corresponding to the at least one newly generated moment video mentioned in step 901 disappears from the first recommendation position, which can be understood as: the card corresponding to the at least one newly generated moment video mentioned in step 901 is deleted from the daily selected card collection. After 0:00 the next day, if the user clicks on the first display area to view the card and performs a left or right sliding operation in the first display area, the mobile phone will no longer display the card corresponding to the at least one newly generated moment video mentioned in step 901.
[0291] In some embodiments, if the user views a moment video on the same day, the card of the viewed moment video will disappear from the first recommendation position at 0:00 the next day.
[0292] Step 910: Display the new content in the first recommendation position. The first recommendation position corresponds to the first display area of the previous text.
[0293] As mentioned above Figure 4In the interface example shown in FIG. 1 , the user can slide left or right in the first display area to switch to the cards corresponding to the videos at different times for viewing.
[0294] The content displayed in the first recommendation position is different in different situations. For example, for step 909, step 910 includes: displaying the newly generated moment video card of the second day and / or the card of the photo of the day in previous years corresponding to the second day in the first recommendation position. For step 907, step 910 includes: displaying the newly generated moment video card of the third day and / or the card of the photo of the day in previous years corresponding to the third day in the first recommendation position.
[0295] For case 3, the following combination Fig.12 The method flow shown in the figure describes a display logic of the first recommendation position in this case. Fig.12 As shown, including:
[0296] Step 1001, when there are both photos of today in previous years and newly generated moment videos, they are sorted in the following order: the newly generated moment videos are in front and the photos of today in previous years are in the back.
[0297] The above-mentioned sorting refers to the sorting of cards displayed in the first recommendation position. For example, when 2 moment videos and 6 photos of today in previous years are newly generated, when displayed in the first recommendation position, the cards corresponding to the 2 moment videos are before the cards of the 6 photos of today in previous years. Optionally, for the sorting between the 2 newly generated moment videos, they can be sorted according to the time of generation, for example, the most recently generated moment video is in front, and the second most recently generated moment video is in the back. Optionally, for the sorting between the 6 photos of today in previous years, they can be sorted in order from far to near according to the shooting time (or the storage time of the photos).
[0298] Step 1002, determine whether the total number of newly generated moment videos and photos of this day in previous years is greater than a preset number.
[0299] For example, assuming that the preset number is 8, determine whether the sum of the number of newly generated moment videos and the number of today's photos in previous years is greater than 8.
[0300] If the total number of newly generated moment videos and photos of this day in previous years is greater than the preset number, execute step 1003; if the total number of newly generated moment videos and photos of this day in previous years is less than or equal to the preset number, execute step 1004.
[0301] Step 1003, when the total number of newly generated moment videos and photos of the same day in previous years is greater than a preset number, a maximum of a preset number of cards are displayed.
[0302] That is to say, when the sum of the number of newly generated moment videos and the number of photos of the same day in previous years is greater than the preset number, the number of cards displayed in the first recommendation position can only be the preset number at most.
[0303] For example, assuming the preset number is 8, and assuming there are 3 newly generated moment videos and 6 photos of today in previous years, when displaying in the first recommendation position, a maximum of 8 cards can be displayed.
[0304] The embodiment of the present application does not limit the specific method of selecting 8 cards. For example, the 8 cards correspond to: 2 newly generated moment videos, and 6 photos of this day in previous years.
[0305] Alternatively, the embodiment of the present application gives priority to displaying newly generated moment videos, and after the newly generated moment videos are displayed, consider displaying photos of this day in previous years. For example, 8 cards correspond to: 3 newly generated moment videos, 5 photos of this day in previous years.
[0306] Step 1004, when the total number of newly generated moment videos and photos of today in previous years is not greater than the preset number, the cards corresponding to the newly generated moment videos are sorted in order of the cards corresponding to the photos of today in previous years, and the cards corresponding to the photos of today in previous years are sorted in the order of the cards corresponding to the newly generated moment videos in front and the cards corresponding to the photos of today in previous years. If there are multiple photos of today in previous years, then the multiple photos of today in previous years are sorted according to the shooting time or storage time of the photos.
[0307] That is to say, when the sum of the number of moment videos and the number of today's photos in previous years is less than or equal to the preset number, the newly generated moment videos are sorted first and today's photos in previous years are sorted later in the first recommendation position.
[0308] For situation 4, when neither the newly generated moment video nor the photos of the day in previous years exist, the content should be displayed in the first recommendation position as much as possible. At this time, other factors can be combined to determine the content to be displayed in the first recommendation position. For example, if the user forgets to view the historically generated "Hello, 2023" moment video, it can be displayed in the first recommendation position. Fig.13 The method flow shown in the figure describes a display logic of the first recommendation position in this case. Fig.13 As shown, including:
[0309] Step 1101, determine that there is neither a newly generated moment video nor a photo of the same day in previous years.
[0310] That is to say, after analyzing the gallery data, it is determined that there is neither a newly generated moment video nor a photo of the day in previous years. At this time, it can be further determined whether there is an unviewed moment video in the gallery.
[0311] Step 1102, determine whether there is any unchecked moment video.
[0312] Unchecked moment videos refer to: moment videos that have been generated but not checked by the user. Moment videos that have been generated but not checked by the user include but are not limited to: moment videos that the user has entered the moment page but has not clicked to check; or moment videos that the user has not entered the moment page to check.
[0313] If there is no unviewed moment video, execute step 1003, that is, further determine whether there is a moment video before the first preset duration; if there is an unviewed moment video, execute step 1107.
[0314] Step 1103, determine whether there is a video before the first preset time length.
[0315] The embodiment of the present application does not limit the specific duration of the first preset duration. The first preset duration can be a reasonable duration set based on actual needs.
[0316] Taking the first preset duration of half a year as an example, if step 1102 determines that there is no unviewed moment video, then it can continue to determine whether there is a moment video from half a year ago; if there is no moment video from half a year ago, it means that there is no moment video to be displayed at this time. Combined with the result of step 1101 that "no" photos of today in previous years are judged, the first recommendation position will no longer be displayed on the moment page.
[0317] If there is a video at a moment before the first preset duration, execute step 1104; if there is no video at a moment before the first preset duration, execute step 1106.
[0318] Step 1104: determine whether the moment video before the first preset duration has been displayed within a second preset duration. The second preset duration is shorter than the first preset duration.
[0319] That is, if the judgment result in step 1103 is: there is a moment video before the first preset duration, it can be further judged whether it has been displayed within a period of time (i.e., displayed in the first recommendation position). If the moment video before the first preset duration has not been displayed within the second preset duration, then step 1105 is executed; if the moment video before the first preset duration has been displayed within the second preset duration, then step 1106 is executed.
[0320] The embodiment of the present application does not limit the specific duration of the second preset duration. The second preset duration can be a reasonable duration set based on actual needs.
[0321] Taking the second preset duration of two weeks as an example, if it is determined in step 1103 that there is a moment video before the first preset duration, then it can be determined whether the moment video before the first preset duration has been displayed within two weeks; if the moment video before the first preset duration has been displayed within two weeks, it means that there is no moment video to be displayed at this time. Combined with the result of "there are no photos of today in previous years" determined in step 1101, the first recommendation position will no longer be displayed on the moment page; if the moment video before the first preset duration has not been displayed within two weeks, then these moment videos are displayed according to certain rules, for example, based on the display method of step 1105.
[0322] Step 1105: If the moment videos before the first preset duration have not been displayed within the second preset duration, a preset number of moment videos are displayed in the first recommendation position based on the time information. The preset number of moment videos are relatively old moment videos, for example, moment videos generated half a year ago.
[0323] For example, if there are N moment videos from half a year ago that have not been shown within two weeks, then they will be shown according to the time when they were generated. Assuming the preset number is 8, if N is greater than or equal to 8, then according to the timeline, the cards of the moment videos with a long time will be displayed first, and a total of 8 moment video cards (i.e., moment videos from half a year ago that have not been shown within two weeks) will be displayed in the first recommendation position; if N is less than 8, then the cards of the N moment videos will be displayed in the first recommendation position in the order of the time when the moment videos were generated.
[0324] Step 1106: If the video before the first preset duration has been displayed within the second preset duration, the first recommendation position will not be displayed.
[0325] Do not display the first recommended position, that is, there is no column for the first recommended position on the time page, for example, Figure 7 The interface shown in the figure has been described in the previous article and will not be repeated here.
[0326] Step 1107: If there are unchecked moment videos, it is further determined whether the number of unchecked moment videos is greater than a preset number.
[0327] For step 1102, if the result of the determination is that there are unviewed moment videos, then step 1107 may be executed to determine whether the number of unviewed moment videos is greater than a preset number.
[0328] If the number of unviewed moment videos is greater than a preset number, step 1108 is executed; if the number of unviewed moment videos is less than or equal to the preset number, step 1109 is executed.
[0329] Step 1108: Based on the time information, display a preset number of moment videos in the first recommendation position.
[0330] That is, if the number of unviewed moment videos exceeds a preset number, the number of moment videos displayed in the first recommendation position can only be the preset number at most. In addition, the preset number of moment videos can be screened out according to the generation time of the moment videos.
[0331] Exemplarily, if the number of unviewed moment videos is greater than 8, then according to the generation time of the moment videos, the cards of moment videos with a long time are displayed preferentially, and a total of 8 cards of unviewed moment videos are displayed in the first recommendation position.
[0332] Step 1109, all unviewed moment videos are displayed in the first recommendation position.
[0333] That is, if the number of unviewed moment videos is less than or equal to the preset number, then the cards corresponding to all the unviewed moment videos are displayed in the first recommendation position. Furthermore, when the cards corresponding to all the unviewed moment videos are displayed in the first recommendation position, they can be sorted in the order of the generation time of the moment videos.
[0334] Exemplarily, if the number of unviewed moment videos is less than or equal to 8, then the cards of the unviewed moment videos are displayed in the first recommendation position in the order of the generation time of the moment videos from far to near.
[0335] Combination of the above Figures 9 to 13 The method logic of pushing photos or videos is described. Based on the above method logic, in different situations, the card corresponding to the photo of the day in previous years and / or the card corresponding to the newly generated moment video can be displayed in the first recommendation position to help users recall the old times in fragmented time.
[0336] Fig.14 Schematic diagram of the software structure of the electronic device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided from top to bottom into: application (application, APP) layer, application framework layer (abbreviated as FWK), system library and driver layer. The application layer, application framework layer, system library and driver layer can be located on the application processor (Application processor, AP) side of the electronic device. The AP side can be connected to a charging chip to realize charging of the electronic device.
[0337] The application layer can include a series of application packages. For example, Fig.14 As shown, the application layer includes camera application, gallery application, and algorithm application.
[0338] It is understood that the application layer may also include other applications ( Fig.14 ), such as calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, browser, WeChat, Alipay, Taobao and other applications.
[0339] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer may include some predefined functions.
[0340] The application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager, etc.
[0341] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, and capture the screen.
[0342] Content providers are used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, and phone books.
[0343] The view system includes visual controls, such as controls for displaying text and controls for displaying pictures. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying pictures. The application layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0344] The system library may also include multiple functional modules, such as: a surface manager, a media library, a 3D graphics processing library (such as: an open graphics library for embedded systems (OpenGL ES)) and a 2D graphics engine (such as: the skia graphics library (SGL)).
[0345] The surface manager is used to manage the display subsystem and provide the fusion of 2D layers and 3D layers for multiple applications.
[0346] The media library supports playback and recording of multiple audio formats, playback and recording of multiple video formats, and still image files. The media library can support multiple audio and video coding formats, such as: MPEG4, H.264, moving picture experts group audio layer III (MP3), advanced audio coding (AAC), adaptive multi-rate (AMR), joint photographic experts group (JPG) and portable network graphics (PNG).
[0347] The 3D graphics processing library can be used to implement 3D graphics drawing, image rendering, compositing and layer processing.
[0348] A 2D graphics engine is a drawing engine for 2D drawings.
[0349] The kernel driver layer is the layer between hardware and software. Fig.14 As shown, the driver layer may include a charging management module, a display driver, and a camera driver. It is understood that the driver layer may also include other driver modules, such as an audio driver, a sensor driver, and the like.
[0350] Taking the gallery application as an example, the gallery application in the application layer can be displayed on the screen of the electronic device in the form of an icon. When the icon of the gallery application is triggered, the electronic device runs the camera application. The gallery application runs on the electronic device, and the electronic device can send corresponding touch events to the driver layer according to the user's operation. When the touch screen receives the touch event, the gallery application is started, and the gallery page is displayed on the screen by calling the display startup of the driver layer.
[0351] For example, the gallery application in the application layer receives a viewing operation triggered by a user, and the viewing operation is used to view the pushed photos or videos. The gallery application displays the pushed photos or videos on the display screen by calling the display driver. Figure 2A In the interface shown in (3), the user clicks on the first card 403 to enter Figure 2A In the interface (4), Figure 2A The interface (3) shows photos of the same day in previous years. Figure 4In the interface shown in (1), the mobile phone responds to the user sliding left in the first display area, and the interface displays as follows Figure 4 In the interface (2), the second card 404 is displayed in the first display area.
[0352] Since the power consumption required by the gallery application to generate photos and / or moment videos of previous years is relatively high, this process can be performed while the electronic device is charging to reduce the impact on the user. In some embodiments, the timing of triggering the gallery application to generate photos and / or moment videos of previous years can be a charging event reported by the bottom layer. In other words, the stage of preparing photos and / or moment videos of previous years can occur when the electronic device is charging.
[0353] Exemplarily, when an electronic device is charged through a charging chip (or an electronic device is connected to a charger for charging), the underlying module of the electronic device (such as a charging management module) detects a charging event and reports the charging event to the upper layer. The charging event is passed layer by layer or communicated across layers through the software architecture layer and finally reaches the application layer. In other words, when the electronic device starts charging, a notification message is sent to the application layer, and the notification message is used to notify the electronic device that it is currently in a charging state. After obtaining a charging event, the gallery application of the application layer can start analyzing the gallery data to generate photos and / or moment videos of today in previous years.
[0354] For example, when the electronic device detects that it is charging, it sends a command to the gallery application, starts the background process of the gallery application to analyze the gallery data, and pushes photos and / or videos of the same day in previous years after the analysis is completed. The push rules or logic can be referred to in the previous article. Figures 9 to 13 The method flow shown will not be repeated here.
[0355] As can be seen from the above, the method for pushing photos provided in the embodiment of the present application adds a first recommendation position to the moment page of the gallery application, and pushes photos of this day in previous years to the user in the first recommendation position, so that the user can use fragmented time to appreciate where time has gone; and by adding text to the photos of this day in previous years, the photos are more atmospheric, which greatly improves the user experience. Furthermore, the moment video can also be displayed in the recommendation position to facilitate user search and improve the user experience.
[0356] The present application also provides a computer program product, which, when executed by a processor, implements the method described in any method embodiment of the present application.
[0357] The computer program product can be stored in a memory, and is finally converted into an executable target file that can be executed by a processor after preprocessing, compiling, assembling and linking.
[0358] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the method described in any method embodiment of the present application is implemented. The computer program can be a high-level language program or an executable target program.
[0359] The computer-readable storage medium may be a volatile memory or a nonvolatile memory, or may include both a volatile memory and a nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM).
[0360] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described devices and equipment and the technical effects produced can refer to the corresponding processes and technical effects in the aforementioned method embodiments, and will not be repeated here.
[0361] In several embodiments provided in the present application, the disclosed systems, devices and methods can be implemented in other ways. For example, some features of the method embodiments described above can be ignored or not performed. The device embodiments described above are merely schematic, and the division of units is only a logical function division. There may be other division methods in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the units or the coupling between the components may be direct coupling or indirect coupling, and the above coupling includes electrical, mechanical or other forms of connection.
[0362] It should be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0363] In addition, the terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0364] In short, the above is only a preferred embodiment of the technical solution of this application, and is not intended to limit the protection scope of this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application should be included in the protection scope of this application.
Claims
1. A method for pushing photos, characterized in that: include: In response to a first operation of the user, displaying a first interface, wherein the first interface includes thumbnails of a plurality of photos and includes a first option; In response to the user clicking the first option, a second interface is displayed, the second interface including a first display area and a second display area, the first display area including a first card, the first card is a card corresponding to a first photo, the first photo is a photo of this day in previous years, and the second display area includes a card for a first video; In response to a user clicking on the first card, a third interface is displayed, wherein the third interface includes the first photo, text information of the first photo, and time information; Based on the user's operation of deleting the first photo, displaying a fourth interface, wherein the fourth interface includes the second display area and does not include the first card; In response to a user clicking on the card of the first video, the first video is played.
2. The method according to claim 1, characterized in that After deleting the first photo, the fourth interface includes a first display area, the first display area includes a second card, and the second card is a card corresponding to the second photo; The method further comprises: In response to the user's operation of saving the edited second photo, displaying a fifth interface, the fifth interface including a first window, the first window including a first save option; Based on the operation of the user selecting the first saving option, saving the edited second photo in a manner of overwriting the original photo; In response to the user clicking on the first option, a sixth interface is displayed, wherein the sixth interface does not include the second card and includes a card for the third photo.
3. The method according to claim 2, characterized in that The first window further includes a second save option; the method further includes: Based on the operation of the user selecting the second saving option, saving the edited second photo in a save-as-picture manner; In response to the user clicking the first option, a seventh interface is displayed, and the seventh interface includes the second card.
4. The method according to claim 1, characterized in that: After deleting the first photo, the fourth interface does not include the first display area.
5. The method according to claim 1, characterized in that After deleting the first photo, the fourth interface includes a first display area, the first display area includes a third card, and the third card is a card corresponding to the second video; the method also includes: in response to the user clicking the third card, playing the second video.
6. The method according to claim 1, characterized in that Before deleting the first photo, the first display area also includes a partial area of the fourth card; The method further comprises: In response to a sliding operation of the user in the first display area, an eighth interface is displayed, wherein the eighth interface includes the fourth card, and the fourth card is a card corresponding to the third photo; In response to the user clicking the fourth card, a ninth interface is displayed, wherein the ninth interface includes the third photo, the text information of the third photo, and the time information; The shooting time of the first photo is earlier than the shooting time of the third photo.
7. The method according to claim 6, characterized in that The method further comprises: In response to a user clicking on the ninth interface, a tenth interface is displayed, wherein the tenth interface includes a first sharing option and a second sharing option; In response to a user clicking on the first sharing option, an eleventh interface is displayed, wherein the eleventh interface includes a first window, and the first window includes a thumbnail of the third photo and a plurality of sharing options; In response to the user clicking on the second sharing option, the twelfth interface is displayed, and the twelfth interface includes a second window. The second window is used to display a thumbnail of a postcard sharing the first photo. The postcard of the third photo includes the third photo, the text information of the third photo, and the time information.
8. The method according to any one of claims 1 to 7, characterized in that The first display area is used to display K cards, and the K cards correspond to at least one photo of today in previous years and / or at least one moment video; the method further includes: Based on the gallery data, at least one photo of today in previous years and / or at least one moment video corresponding to the K cards are determined.
9. The method according to claim 8, characterized in that The K cards correspond to K photos of today in previous years; and determining, based on the gallery data, at least one photo of today in previous years corresponding to the K cards includes: Based on the library data, a plurality of photos of this day in previous years are obtained, and an aesthetic score of each photo of this day in previous years is determined; Determining whether a first number is greater than or equal to a first number threshold, the first number being the number of today's photos from previous years having an aesthetic score greater than the score threshold; When the first number is greater than the first number threshold, determining whether a second number is greater than a second number threshold, the second number being the number of years corresponding to the first number of photos of today in previous years; When the second number is less than or equal to the second number threshold, determine K photos of today's day in previous years according to the shooting time or storage time of the photos of today's day in previous years, where the value of K is less than or equal to the first number threshold; When the second number is greater than the first number threshold, a third number of photos is determined, where the third number is the number of years corresponding to the at least one photo of today in previous years, wherein the value of K is the third number.
10. The method according to claim 9, characterized in that Determining the aesthetic score of each photo taken today in previous years includes: Based on the aesthetic evaluation criteria for photos and preset portrait data, the aesthetic score of each photo taken on this day in previous years is determined.
11. The method according to claim 8, characterized in that The K cards correspond to at least one photo of today in previous years and at least one video at a moment; The step of determining, based on the gallery data, at least one photo of today in previous years and at least one video at a moment corresponding to the K cards includes: Determine whether a fourth number is greater than a preset number, where the fourth number is the sum of the number of the at least one photo of today in previous years and the at least one moment video; When the fourth number is greater than a preset number, a preset number of cards is determined according to the at least one photo of today in previous years and the at least one moment video, wherein the value of K is the preset number; When the fourth number is less than or equal to the preset number, the fourth number of cards is determined, wherein the value of K is the fourth number.
12. The method according to claim 11, characterized in that When the fourth number is greater than the preset number, determining the preset number of cards according to the at least one photo of today in previous years and the at least one moment video includes: The preset number of cards is determined according to the principle of giving priority to selecting the at least one moment video.
13. The method according to claim 8, characterized in that The K cards correspond to at least one moment video; the method further comprises: The at least one moment video is sorted according to the time information.
14. The method according to claim 13, characterized in that The method further comprises: After the moment video is generated on the day, determine whether the user has viewed the moment video on the day; The duration of displaying the moment video of the day in the first display area is determined based on the judgment result, and the judgment result includes any of the following situations: the user has viewed the moment video of the day; the user has entered the moment page but has not viewed the moment video of the day; the user has not entered the moment page.
15. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the processor and the memory are coupled, and the memory is used to store a computer program. When the computer program is executed by the processor, the electronic device executes the method according to any one of claims 1 to 14.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor calls instructions to enable the electronic device to execute the method according to any one of claims 1 to 14.