Image display method, electronic equipment and readable storage medium

By listening to image switching events and using a selection algorithm, the system identifies and manages target carousel images, solving the problem of poor visual experience in diverse display methods and improving user interactivity and image quality.

CN121807416APending Publication Date: 2026-04-07HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing display technologies, while providing diverse display methods, are prone to causing poor visual experiences and lack effective image switching management and user interactivity.

Method used

By listening to image switching events, the target carousel image is determined, and the image is switched according to preset filter information and effect files, realizing the selection and management of carousel images. It supports users to select and set images independently, and improves display quality by combining depth-of-field effects.

Benefits of technology

It improves the operability and quality of image carousels, enhances the user experience, effectively manages carousel images, and avoids unpleasant visual experiences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121807416A_ABST
    Figure CN121807416A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and provides an image display method, electronic equipment and a readable storage medium. The image display method comprises the following steps: determining a target carousel image in a plurality of preset carousel images according to a monitored image switching event; the target image is used for replacing a current carousel image; the current carousel image is a carousel image displayed by the electronic equipment when the image switching event occurs; the plurality of carousel images comprise the current carousel image; obtaining an effect file of the target carousel image; the effect file is obtained by processing the target carousel image; and switching the current carousel image to the target carousel image, wherein the target carousel image presents an effect corresponding to the effect file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to an image display method, an electronic device, and a readable storage medium. Background Technology

[0002] With the continuous development of computer technology, display technologies and methods are also constantly being updated and enriched. When displaying images, how to provide richer display options while avoiding unpleasant visual experiences brought about by new display methods is a problem that needs to be considered when improving display technology. Summary of the Invention

[0003] This application provides an image display method, an electronic device, and a readable storage medium, which can avoid poor visual experience while providing diverse display methods. The technical solution is as follows:

[0004] In a first aspect, embodiments of this application provide an image display method, comprising: determining a target carousel image from a set of preset carousel images based on a monitored image switching event; the target image being used to replace the current carousel image; the current carousel image being the carousel image displayed by the electronic device when the image switching event occurs; the set of multiple carousel images including the current carousel image; obtaining an effect file of the target carousel image; the effect file being obtained by processing the target carousel image; and switching the current carousel image to the target carousel image, wherein the target carousel image presents the effect corresponding to the effect file.

[0005] Using the above method, the target carousel image can be determined based on the monitored image switching events, and the currently displayed carousel image can be switched, thereby achieving the switching of carousel images. When an electronic device displays a lock screen wallpaper interface, different lock screen wallpapers can be displayed to improve the display effect.

[0006] In one possible implementation of the first aspect, the image display method further includes: displaying a carousel image selection interface in response to user operation information; the carousel image selection interface includes multiple type options, each type option including at least one sub-option; determining the candidate image corresponding to the sub-option in response to a selection operation on at least one sub-option; filtering the candidate images according to preset filtering information to obtain the preset multiple carousel images.

[0007] Using the above method, users can independently select the images to be carouseled, improving the operability of image carousel.

[0008] In one possible implementation of the first aspect, filtering the candidate image according to preset filtering information includes at least one of the following: filtering the candidate image according to preset resolution information; the preset filtering information includes the preset resolution information; obtaining a label for the candidate image; filtering the candidate image according to preset label information and the label for the candidate image; the preset filtering information includes the preset label information; obtaining at least one rating for the candidate image; filtering the candidate image according to preset rating information and at least one rating for the candidate image; the preset filtering information includes the preset rating information; identifying object types in the candidate image; filtering the candidate image according to preset object type information and the object types in the candidate image; the preset filtering information includes the preset object type information.

[0009] The above method can be used to select the best images from multiple candidate carousel images, thereby improving the quality of the carousel images.

[0010] In one possible implementation of the first aspect, the image display method further includes: processing the pre-set multiple carousel images to obtain effect files for each carousel image; storing the effect files of the multiple carousel images at a preset address; the preset address is used to receive carousel images dequeued from the image carousel queue and provide the carousel address to the image carousel queue when the image carousel queue is updated; the carousel image queue includes the target carousel image and the current carousel image; setting the current carousel image in the image carousel queue and the image switching conditions.

[0011] The above methods can effectively manage carousel images and their effect files, thereby improving carousel efficiency.

[0012] In one possible implementation of the first aspect, determining a target carousel image from a set of pre-defined carousel images based on a monitored image switching event includes: updating an image carousel queue based on the image switching event; the image carousel queue includes the target carousel image and the current carousel image; and determining the target carousel image from the updated image carousel queue based on the index corresponding to the current carousel image.

[0013] In one possible implementation of the first aspect, the data for each carousel image in the carousel image queue includes the effects file for each carousel image.

[0014] In one possible implementation of the first aspect, the image display method further includes: in response to an instruction to add a carousel image, obtaining a new carousel image and an effect file of the new carousel image; determining the storage location of the new carousel image according to the instruction to add the new carousel image; and updating the image carousel queue when the storage location of the new carousel image is adjacent to the storage location of the current carousel image.

[0015] In one possible implementation of the first aspect, the effect file is used to generate a depth-of-field effect when the target carousel image is displayed; the effect file includes a bitmap of the original image of the target carousel image, data of the cutout layer of the target carousel image, and secondary composition data of the target carousel image, wherein the cutout layer of the target carousel image includes the main body of the target carousel image, and the cutout layer of the target carousel image is used to cover the clock layer of the lock screen interface when the target carousel image is displayed on the lock screen.

[0016] The above method enables the display of depth-of-field effects while simultaneously showing carousel images, thereby improving the display effect and user experience of the carousel images.

[0017] In one possible implementation of the first aspect, the image display method further includes: the carousel image being a lock screen wallpaper, and / or the carousel image being a desktop wallpaper.

[0018] Secondly, embodiments of this application provide an electronic device, which includes a processor and a memory;

[0019] The memory is used to store a program for an electronic device to perform the method provided in any embodiment of the present application, and to store data involved in implementing the method provided in any embodiment of the present application;

[0020] The processor is configured to execute programs stored in memory.

[0021] Optionally, there may be one or more processors and one or more memories.

[0022] Alternatively, the memory can be integrated with the processor, or the memory can be set up separately from the processor.

[0023] The processing device in the second aspect above can be a chip. The processor can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor that reads software code stored in memory. The memory can be integrated into the processor or located outside the processor and exist independently.

[0024] In the specific implementation process, the memory can be a non-transitory memory, such as read-only memory (ROM), which can be integrated with the processor on the same chip or set on different chips. This application does not limit the type of memory or the way the memory and processor are set.

[0025] Thirdly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on a computer, enable the computer to perform the method described in the first aspect.

[0026] Fourthly, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to perform any of the possible implementations of the first aspect.

[0027] Fifthly, embodiments of this application also provide a processor, including: an input circuit, an output circuit, and a processing circuit. The processing circuit is used to receive signals through the input circuit and transmit signals through the output circuit, causing the processor to execute the method in any of the embodiments of the first aspect described above.

[0028] In specific implementation, the processor can be a chip, the input circuit can be input pins, the output circuit can be output pins, and the processing circuit can be transistors, gate circuits, flip-flops, and various logic circuits. The input signal received by the input circuit can be received and input by, for example, but not limited to, a receiver, and the signal output by the output circuit can be, for example, but not limited to, output to and transmitted by a transmitter. Furthermore, the input circuit and the output circuit can be the same circuit, which is used as both the input circuit and the output circuit at different times. This application does not limit the specific implementation of the processor and various circuits.

[0029] The technical effects achieved by the second, third, fourth, and fifth aspects mentioned above are similar to those achieved by the corresponding technical means in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0030] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0031] Figure 2 The illustration shows a desktop wallpaper scenario that may be involved in the embodiments of this application;

[0032] Figure 3 The illustration shows a lock screen wallpaper scenario that may be involved in the embodiments of this application;

[0033] Figure 4 This demonstrates yet another application scenario of the method provided in the embodiments of this application;

[0034] Figure 5 A flowchart illustrating an image display method provided in an embodiment of this application is shown;

[0035] Figure 6 This is a technical architecture diagram related to an image display method provided in an embodiment of this application;

[0036] Figure 7 This is a schematic diagram illustrating the process by which the image display module, as provided in this embodiment, executes the image display algorithm.

[0037] Figure 8 This is a schematic diagram illustrating the process of a user interacting with the UI when selecting multiple carousel images, according to an embodiment of this application.

[0038] Figure 9 This is a schematic diagram illustrating the process of a user interacting with the UI when selecting multiple carousel images, provided in another embodiment of this application.

[0039] Figure 10 This is a schematic diagram illustrating the process of a user interacting with the UI when selecting multiple carousel images, according to another embodiment of this application.

[0040] Figure 11 This is a schematic diagram illustrating the process of a user interacting with the UI when selecting multiple carousel images, provided in another embodiment of this application.

[0041] Figure 12 This is a schematic diagram illustrating the process of a user interacting with the UI when selecting multiple carousel images, provided in another embodiment of this application.

[0042] Figure 13 This is a schematic diagram illustrating the process of generating a preview queue according to an embodiment of this application;

[0043] Figure 14 This is a schematic diagram of the data structure in the carousel image management module provided in an embodiment of this application;

[0044] Figure 15 This is a schematic diagram of the process for determining the selection of images according to an embodiment of this application;

[0045] Figure 16 This is a schematic diagram illustrating the interaction between a wallpaper editing application, a lock screen frame, and a lock screen application, according to an embodiment of this application.

[0046] Figure 17 This is a schematic diagram illustrating the process of a carousel wallpaper application according to a user's instructions switching carousel images, as provided in an embodiment of this application.

[0047] Figure 18 This diagram illustrates the workflow of a carousel wallpaper application responding to a command to add a new carousel wallpaper when the application is displaying a new carousel wallpaper.

[0048] Figure 19 This diagram illustrates the process of a carousel wallpaper application responding to a command to delete a carousel wallpaper when the application is displaying the carousel wallpaper. Detailed Implementation

[0049] In the following description, specific details such as particular system architectures and technologies are set forth for illustrative purposes and not for limiting purposes, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details.

[0050] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or collections thereof. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0051] It should be understood that "one or more" as mentioned in this application refers to one, two, or more, and "multiple" as mentioned in this application refers to two or more. In the description of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. The "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.

[0052] Furthermore, to facilitate a clear description of the technical solutions of this application, the terms "first" and "second" are used to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that the terms "first" and "second" do not necessarily imply that they are different.

[0053] The terms "one embodiment" or "some embodiments" used in this application mean that one or more embodiments of this application include the specific features, structures, or characteristics described in that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this application do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.

[0054] The wallpaper editing method provided in this application can be applied to electronic devices. These electronic devices can be mobile phones, tablets, wearable devices, digital cameras, in-vehicle devices, augmented reality (AR) devices, virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), laptops, etc., and this application does not limit the specific type of device.

[0055] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. See also... Figure 1 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, a headphone jack 170D, a sensor module 180, buttons 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, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity 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.

[0056] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0057] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0058] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0059] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from this memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0060] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions, such as saving music, video, and other files on the external memory card.

[0061] Internal memory 121 can be used to store computer-executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created by electronic device 100 during use (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0062] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0063] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D and application processor.

[0064] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0065] Electronic device 100 implements display functions through GPU, display screen 194, and application processor.

[0066] The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU performs mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information. The display screen 194 is used to display images, videos, etc.

[0067] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch display." Touch sensor 180K detects touch operations applied to or near it. Touch sensor 180K can transmit 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 display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.

[0068] This application does not specifically limit the structure of the execution subject of the image display method. As long as the code containing the image display method provided in this application is executed, processing can be performed according to the image display method provided in this application. For example, the execution subject of the image display method provided in this application can be a functional module in an electronic device capable of calling and executing an application, or it can be a processing device applied in an electronic device, such as a chip. In this application, the image display method is used to display desktop wallpaper or lock screen wallpaper, and can also be used to display other types of images, such as images displayed in always-on display (AOD) or standby mode.

[0069] Next, the scenarios that the image display method of this application embodiment may involve will be described. When a user uses an electronic device, in order to enhance the fun and personalization of the user experience, the user can set an image background or an image foreground for the interface displayed on the electronic device. An image background is used to be displayed at the bottom layer of the interface when the user uses the electronic device, highlighting text, controls, input boxes, status bars, or other content in the interface. An image foreground is used to be displayed on a non-bottom layer of the interface when the user uses the electronic device, obscuring at least part of icons, text, or notifications in the interface. A common example of an image background is a desktop wallpaper background, and a common example of an image foreground is a lock screen wallpaper.

[0070] Figure 2 This illustration shows a desktop wallpaper scenario that may be involved in the embodiments of this application. Figure 2 In the scenario shown, the electronic device displays a desktop 21, which includes multiple application icons 22. Each application icon 22 is used to launch a corresponding application. Above the desktop 21, there are also signal icons 23, time icons 24, and other related notification icons. The desktop wallpaper 25 is located below the multiple desktop icons 22, signal icons 23, time icons 24, and other related notification icons, serving as the background of the electronic device's desktop 21.

[0071] Users can set different desktop backgrounds when using electronic devices. For example, users can choose different images as desktop backgrounds, and can also set the style, template, or display method of the desktop background.

[0072] Figure 3 This illustration shows a schematic diagram of a lock screen wallpaper scenario that may be involved in an embodiment of this application. Figure 3In the scenario shown, the electronic device displays a lock screen interface 31, which includes a lock screen notification 32, at least one quick launch icon 33, and a clock layer 34. Each quick launch icon 33 is used to quickly launch the corresponding application. In addition, the lock screen interface 31 also includes a signal icon 35 and other related notification icons. Before locking the screen, the electronic device may display a desktop or application interface. The lock screen wallpaper 36 covers the desktop or application interface and is located below the lock screen notification 32, quick launch icon 33, clock layer 34, signal icon 35, and other related notification icons.

[0073] Users can set different lock screen wallpapers when using electronic devices. For example, users can choose different images as lock screen wallpapers, and can also set the style, template, or display method of the lock screen wallpaper.

[0074] Figure 4 This demonstrates yet another application scenario of the method provided in the embodiments of this application. Figure 4 In the scenario shown, the electronic device displays the application's running interface 41. Figure 4 The application running in the scenario shown is a chat application, and the running interface 41 includes a chat window 42. A chat background 43 is set at the bottom layer of the chat window 42. When the user closes the running interface 41, the chat background 43 also disappears. Simultaneously, when the user switches chat windows, different chat backgrounds can be displayed; the current chat background 43 may not be displayed, or, according to the user's settings, the current chat background 43 can be displayed in any chat window as a unified chat background.

[0075] The user-set or default background can also be displayed in the interface of other applications. These other applications include, but are not limited to: document editing applications, audio playback applications, video playback applications, photo playback applications, shopping applications, and email applications.

[0076] Furthermore, the image display method provided in this application embodiment can be used in any scenario that requires displaying images, such as avatar images, icon images, or file thumbnails.

[0077] In embodiments of this application, an image may include a photograph. A photograph may be an image obtained through a camera of an electronic device. In addition to photographs, an image may also include images obtained through means other than a camera of an electronic device.

[0078] Next, based on the above scenario, the method provided in the embodiments of this application will be described. Figure 5This is a flowchart illustrating an application information processing method according to an exemplary embodiment. The method can be implemented by the electronic device involved in this application embodiment through the interaction of multiple modules. The method may include at least some or all of the following steps S51-S54.

[0079] Figure 5 A flowchart illustrating an image display method provided by an embodiment of this application is shown, including the following steps S41 to S43.

[0080] Step S51: Generate an image switching notification based on the monitored image switching event.

[0081] In the embodiments of this application, Figure 4 The method shown can be executed through a wallpaper carousel application. An image switching event can refer to the wallpaper carousel application receiving a command and determining that it has detected an image switching event. Alternatively, an image switching event can refer to an event perceived by the wallpaper carousel application, such as reaching a preset time.

[0082] Among the possible implementations, the way a wallpaper carousel application listens for image switching events can include at least one of the following methods.

[0083] In Method 1, the user interacts with the screen of the electronic device, and in response to the user's instructions on the screen, the wallpaper carousel application determines that it has detected an image switching event.

[0084] Users can operate the screen of electronic devices in ways that include single-finger taps, two-finger taps, multi-finger swipes, single-finger swipes, mouse clicks, or by using external devices such as keyboards or styluses.

[0085] Method 2: Pre-set the switching cycle in the wallpaper carousel application; when the switching cycle is reached,

[0086] Step S52: Based on the image switching notification, determine the target carousel image from the pre-set multiple carousel images; the target image is used to replace the current carousel image; the current carousel image is the carousel image displayed by the electronic device when the image switching event occurs; the multiple carousel images include the current carousel image.

[0087] Step S53: Obtain the effect file of the target carousel image; the effect file is obtained by processing the target carousel image.

[0088] Step S54: Switch the current carousel image to the target carousel image, and the target carousel image will display the effect corresponding to the effect file.

[0089] Next, examples of the image display method according to embodiments of this application will be described. In a specific example of this application, the image display method is used to display at least one of the lock screen wallpaper and desktop wallpaper of an electronic device. Users can set the desktop wallpaper to be synchronized with the lock screen wallpaper, so that when the lock screen wallpaper displayed on the electronic device changes, the desktop wallpaper changes synchronously. Through the display method provided by embodiments of this application, the displayed images can be switched. Users can pre-set multiple carousel images for switching, then process the pre-set multiple carousel images to obtain an effect file, and then construct a carousel queue based on the multiple carousel images and the corresponding effect file to realize the image switching display.

[0090] In other possible implementations, multiple carousel images can also be images set by the default settings of the electronic device.

[0091] The image display method in this application example will be described next.

[0092] In the example of this application, the electronic device may be configured with, for example, Figure 6 The system architecture is shown. See also... Figure 6 The system architecture may include an application layer, which may include a lock screen application, a desktop application, a gallery application, and the pipeline processing module provided in this embodiment. Furthermore, the software system can interact with the file system in the system layer. In addition, the system layer includes an algorithm database configured by the electronic device's system. For example, if the electronic device's software system is Android, the system layer is the Android system layer, and the database in the system layer may include a 3D graphics processing library, a 2D graphics engine, etc. In this embodiment, the algorithm database is configured with selected algorithms for pre-setting multiple carousel images. The lock screen application, desktop application, and gallery application in the application layer can call the algorithms in the algorithm database of the system layer to process the images.

[0093] Both lock screen and desktop applications can instruct the gallery application to display the image editing interface.

[0094] When the gallery application receives an instruction from the lock screen application or the desktop application, it can load the wallpaper editing interface, which includes loading the function controls, the lock screen wallpaper page, and the desktop wallpaper page.

[0095] The gallery application can retrieve lock screen wallpaper files and desktop wallpaper files from the file system, displaying the lock screen wallpaper on the lock screen wallpaper page based on the lock screen wallpaper file, and displaying the desktop wallpaper on the desktop wallpaper page based on the desktop wallpaper file. The pipeline processing module can retrieve algorithms from the algorithm database.

[0096] The file system can store a first file and a second file for the lock screen wallpaper. The first file is used when editing the lock screen wallpaper in the wallpaper editing interface; that is, the gallery application can display the lock screen wallpaper on the lock screen wallpaper page based on the first file. The second file is used when displaying the lock screen wallpaper on the lock screen interface; that is, the lock screen application can display the lock screen wallpaper on the lock screen interface based on the second file.

[0097] Similarly, the file system can store a first file and a second file for the desktop wallpaper. The first file is used when editing the desktop wallpaper in the wallpaper editing interface; that is, the gallery application can display the desktop wallpaper on the desktop wallpaper page based on the first file. The second file is used when displaying the desktop wallpaper on the desktop; that is, the desktop application can display the desktop wallpaper based on the second file.

[0098] Figure 6 This is a technical architecture diagram related to an image display method provided in an embodiment of this application. This technical architecture diagram only shows modules relevant to the embodiments of this application. These modules can be set within a gallery application or function as other applications independent of the gallery application, such as a standalone wallpaper editing application. In practical applications, this technical architecture diagram may also include other modules, which are not shown individually.

[0099] For example, such as Figure 6 As shown, a carousel wallpaper application can be used to control the rotation of desktop or lock screen wallpapers on electronic devices.

[0100] exist Figure 6 Based on the system architecture shown, an image display module (also known as a carousel wallpaper application) can be set up at the application layer to implement the image display method in this embodiment. The image display module may further include sub-modules such as carousel wallpaper selection, carousel management, and carousel preview.

[0101] exist Figure 6 Based on the system architecture shown, the process of the image display module executing the image display algorithm is as follows: Figure 7 As shown. First, regarding Figure 6The carousel image selection process 61 shown is described below. The process calls the system-level media library and photopicker to participate in the pre-selection of multiple carousel images. Both the media library and photopicker provide corresponding user interfaces (UIs). Users can use the UI to send selection commands for at least one carousel image, selecting at least one image corresponding to a type option or a sub-option of a type option as the pre-selected carousel image.

[0102] As an example, the process of a user interacting with the UI when selecting multiple carousel images is as follows: Figures 8 to 12 As shown.

[0103] When an electronic device is locked, it may display something like this: Figure 3 The lock screen interface shown. Users can perform a two-finger pinch gesture on the lock screen to launch the wallpaper carousel application and display the following: Figure 8 The wallpaper editing interface 510 is shown in (a) above. The wallpaper editing interface 510 displays a lock screen wallpaper page 504 and related functional controls for editing the lock screen wallpaper. In this case, the user can... Figure 8 The wallpaper editing interface 510 shown in Figure (b) is used to edit the lock screen wallpaper. The carousel wallpaper application responds to the user's operation of the wallpaper editing interface 510 and modifies the lock screen wallpaper.

[0104] Figure 8 In the wallpaper editing interface shown in (b), the relevant functional controls may include a return control 501, an application control 502, a clock frame 503, a picture change control 505, a lock screen style control 506, an AI style control 507, an effect control 508, and an AI image expansion control 509. The return control 501 allows users to return from the wallpaper editing interface 510 to the lock screen interface 500. The application control 502 can be used to apply the editing operation currently being performed in the wallpaper editing interface 510. The clock frame 503 is used to set the clock position. The picture change control 505 is used to change the current wallpaper to another image. The lock screen style control 506 is used to set the lock screen style. The AI ​​style control 507 is used to perform AIGC style painting based on the original image. The effect control 508 is used to change the lock screen effect. The AI ​​image expansion control 509 is used to perform AI image expansion operation on the original image.

[0105] When the user clicks the lock screen style button 506, the carousel wallpaper application can display as follows: Figure 9The lock screen style settings interface 71 is shown in (a) above. The lock screen style settings interface 71 includes a collapse control 72 and a wallpaper type control. The wallpaper type control further includes: a featured photo control 73, a random photo display control 74, a 3D wallpaper control 75, a light-tracking wallpaper control 76, and a natural light control 77. The wallpaper type control is used to perform corresponding settings operations on the displayed wallpaper. The featured photo control 73 is used to display photos selected using a selection algorithm. The random photo display control 74 is used to set image display parameters; when the image display method provided in this embodiment is run, different images are displayed according to the set image display parameters. The 3D wallpaper control 75 is used to display 3D wallpapers, the light-tracking wallpaper control 76 is used to display light-tracking wallpapers, and the natural light control 77 is used to display wallpapers identified as belonging to the preset "natural light" type.

[0106] The lock screen style settings interface 71 includes several areas displaying brief preview information, namely... Figure 9 The image (a) shows the Magic Lock Screen area, the Gallery Selection area, and the Random Photo Display area. The Magic Lock Screen area displays the descriptive text "Choose your own template and personalize your lock screen," along with several themes. These themes include: Digital Avatar, Dual Illusion, Pet World, and Minimalist Magazine. The Gallery Selection area displays minimized previews of selected images. The Random Photo Display area shows various common image display options or sub-options, including: Featured Photos, Portraits, Memories, and Albums.

[0107] Users can click the random photo display control 74 in the lock screen style settings interface 71. The carousel wallpaper application responds to the user's click, displaying the image's parameter settings interface. The parameter settings interface displays a type option display bar 79 and sub-options corresponding to the currently selected type option. For example, in... Figure 9 In the parameter settings interface 78 of the Featured Photo type option shown in (b), when the user selects the Featured Photo type option, the carousel wallpaper application responds to the user's selection by displaying the sub-options included in the Featured Photo type option below the type option display bar 79. The user can also click... Figure 9 The photo carousel app, as shown in (a), displays a selection of photos from a random photo display area. The carousel app responds to the user's selection of a photo's type option by displaying... Figure 9 The parameter settings interface 78 for the Selected Photo Types option shown in (b) is shown in the image.

[0108] exist Figure 9 The type options display bar 79 shown in (b) includes type options such as Featured Photos, Memories, Specified Album, and Specified Picture. The Featured Photos type options are displayed in... Figure 9The sub-option list 710 shown in (b) includes sub-options such as portraits, landscapes, animals, plants, food, and art. After the user clicks on a specific sub-option, the carousel wallpaper application responds to the user's click operation by setting the corresponding selected icon 711 of the sub-option to the selected state.

[0109] exist Figure 9 The parameter settings interface 78 for the featured photo type option shown in (b) also includes a display frequency selection bar 712 for setting image switching events. The display frequency selection bar 712 can configure the switching cycle (also called the display period). If the user selects a specific switching cycle, the image switching event includes reaching the switching cycle. The display frequency selection bar 712 can also be configured for a touch-to-switch or screen-off-to-switch event. If the user selects a touch-to-switch, then in the screen-on state, when the user touches the desktop or lock screen, the carousel wallpaper application responds to the user's touch of the desktop or lock screen, switching the desktop wallpaper or lock screen wallpaper. If the user selects a screen-off-to-switch, then the carousel wallpaper application responds to the user's screen-off-to-switch command, switching the lock screen wallpaper and / or desktop wallpaper when the screen is turned on again after being off.

[0110] In a possible implementation, the user can set at least one image switching event through the display frequency selection bar 712. For example, the user can choose a specific switching cycle, or a tap-to-switch and / or screen-off-to-switch. Alternatively, the user can select multiple switching cycles. Thus, at least one image switching event may exist.

[0111] In the parameter settings interface 78 of the selected photo type options, an image preview area 713 is also configured. In the image preview area 713, through... Figure 7 The preview module shown displays a set number of preview images, and these images belong to the "Featured Photos" category. Figure 9 In the example shown, the quantity is set to 5. In other possible implementations, other quantities of preview images can also be displayed, and this application embodiment is not limited to any particular quantity. The preview images displayed in the image preview area 713 are the images selected from the photos and ordered in the first set number.

[0112] In addition, a confirmation button 714 is provided in the parameter settings interface 78 of the selected photo type option. In response to the user clicking the confirmation button 714, when the carousel wallpaper application displays images, it listens for image switching events according to the display frequency selection bar 712 and carousels the images in the selected photo option type.

[0113] In one possible implementation, the images in the featured photo category are selected from all images in the gallery according to a pre-defined image selection algorithm. The triggering method for the image selection algorithm can include at least one of the following:

[0114] Triggering method 1: When a new image is added to the gallery of an electronic device, the carousel wallpaper application can be triggered to run an image selection algorithm on the newly added image.

[0115] Trigger Method Two: In response to a user's selection of a type option in the featured photos display bar 79, the carousel wallpaper application can highlight the type option of the featured photos in the display bar 79. In this case, the image selection algorithm can also be triggered.

[0116] Trigger Method 3: In response to the user's selection of a random photo display area in the lock screen style settings interface 71, the carousel wallpaper application enters the corresponding parameter settings interface. When the user's selection of a random photo display area in the lock screen style settings interface 71 is a selection of a featured photo type option, the following will be displayed: Figure 9 The parameter setting interface 78 shown in (b) triggers the image selection algorithm to run.

[0117] Triggering Method 4: In response to the user's selection of various type options and their corresponding sub-options in the type option display bar 79, the carousel wallpaper application determines the multiple carousel images specified by the user. If the number of multiple carousel images exceeds the preset limit for the number of carousel images, the carousel wallpaper application triggers an image selection algorithm to filter out multiple carousel images that do not exceed the limit for the number of images.

[0118] Figure 9 (b) shows the parameter settings interface 78 under the Featured Photo type option, and one of the core aspects of setting the Featured Photo type option is the image selection algorithm. The image selection algorithm will be introduced next.

[0119] Image filtering algorithms can filter images based on at least one attribute of each image in a gallery, and pre-defined filtering information corresponding to each attribute. Therefore, before executing the image filtering algorithm, at least one attribute of each image in the gallery must first be determined. Filtering images based on the pre-defined filtering information can include any of the following implementation methods.

[0120] Implementation Method 1: The filtering information is the score threshold corresponding to a single attribute; for each image, determine the score corresponding to each attribute, and then use the score threshold corresponding to each attribute for filtering.

[0121] Method 2: The filtering information is the total score threshold corresponding to multiple attributes; for each image, determine the score corresponding to each attribute, then calculate the total score, and filter according to the total score threshold.

[0122] Implementation Method 3: The filtering information is the total score threshold corresponding to multiple attributes; for each image, the total score corresponding to multiple attributes is determined, and then filtering is performed based on the total score threshold.

[0123] When filtering images based on scores, you can first sort the images according to their scores, and then filter the images that are ranked first to achieve image selection (or filtering).

[0124] As an example, preset filtering information may include preset resolution information, preset tag information, preset rating information, preset object type information, etc.

[0125] If the preset filtering information includes preset resolution information, images with lower resolutions can be filtered out based on their resolution. For example, the preset resolution information can be used to indicate that images with a resolution less than 800×600 should be filtered out.

[0126] When the preset filtering information includes preset tag information, the preset tag information can be used to indicate that images with at least one of a plurality of preset first tags should be retained. For example, the plurality of preset first tags may include: portrait, landscape, animal, plant, and art.

[0127] When the preset filtering information includes preset scoring information, the scoring can include at least one of: aesthetic scoring, wallpaper scoring, and object scoring. Aesthetic scoring can be a rating of the overall aesthetic appeal of an image. An aesthetic score for each image can be obtained by applying a pre-set aesthetic algorithm to each image. Wallpaper scoring can be used to indicate how suitable an image is as wallpaper, and can be scored based on factors such as target recognition content, background recognition results, and image structure. Object scoring can further include portrait scoring, animal scoring, and still life scoring. Portrait scoring is used to evaluate the position of a person in the image, their proportion in the image, and scores related to factors such as lighting. Animal scoring and still life scoring are used to evaluate animals and still life objects in the image, respectively.

[0128] When obtaining label and / or rating information, confidence scores can be used to filter out labels and / or ratings. Confidence scores can be used to assess the accuracy of image labeling, aesthetic rating, or object rating. When obtaining label, aesthetic, or object ratings, confidence scores can be used to filter out labels, aesthetic, or object ratings with low confidence, and then images can be filtered out based on the label, aesthetic, or object rating.

[0129] When the preset filtering information includes preset tag information, the preset tag information can also be used to indicate: remove images that have at least one of a plurality of preset second tags. For example, the plurality of preset second tags may include: images that violate legal regulations, images involving personal information and documents, etc.

[0130] When the preset filtering information includes preset object type information, the preset object type information can be used to indicate which images whose object type identification results belong to the preset object type will be filtered out. The preset object type can include: multi-person portrait type. A multi-person portrait type refers to an image containing more than one person; the carousel wallpaper application can identify and determine the portrait type using computer vision (CV) algorithms in its algorithm library. In addition, image tags can also be determined through clustering using CV algorithms in electronic devices. Computer vision refers to the technical field of using computers to acquire images or videos using devices such as cameras and image sensors, and then processing and analyzing them to understand and recognize objects, scenes, and their attributes in the images or videos. CV algorithms combine technologies from multiple fields such as image processing, pattern recognition, machine learning, and deep learning to achieve complex visual tasks.

[0131] In addition to the selection of photo types, Figure 9 (a) also shows a sub-option for portraits. In addition to clicking on featured photos, users can also click on... Figure 9 The sub-option of the portrait shown in (a) is displayed in the carousel wallpaper application in response to the user clicking on the sub-option. Figure 10 The parameter settings interface 81 under the portrait type option shown in (b) is shown in the image.

[0132] In the parameter settings interface 81 under the portrait type option, an image preview area 82 is configured. In the image preview area 82, through... Figure 7 The preview module shown displays a set number of preview images, which belong to the Portrait sub-option of the Featured Photo type options. For example, when displaying the set number of preview images in preview area 82, the corresponding effect file is also displayed simultaneously.

[0133] Figure 10The parameter setting interface 81 under the portrait type option shown in (b) is... Figure 10 In the parameter setting interface 78 under the selected photo type option shown in (a), the settings interface is only displayed when the portrait sub-option is checked in the sub-option list 710 and the OK control 713 is clicked. It should be understood that in this embodiment, sub-options and type options are relative. If type option A includes type option B, and type option B includes type option C, then B and C are sub-options relative to type option A, type option C is a sub-option relative to B, and both B and A are type options relative to C.

[0134] Figure 10 In the parameter setting interface 81 shown in (b), the user can select the "Memory" sub-option under the "Portrait Type" option. The images in the "Memory" sub-option are obtained by the electronic device through a memory filtering algorithm. Images can be filtered for memory based on factors such as the time of acquisition, image content, or image shooting location. For example, images taken in different years, the same month, or on the same date can be considered as a group of memories. Similarly, images taken at the same location can be considered as a group of memories. Alternatively, images containing human figures can be grouped into a group of memories by recognizing their content. Or, a group of images taken within a specific time period can be grouped into a group of memories. The images are analyzed using the CV algorithm in the system-level algorithm library to obtain at least one group of memories. Each group of memories can include a set number of images, for example, each group of memories can include at least two images.

[0135] Users can expand the memory selection list 84 in the parameter settings interface 81 and select a specific memory. In response to the user's instruction to select a memory, the number of selected memories is displayed in the memory selection list 84, for example, by displaying the number of selected memories with the text "One Item Selected". Simultaneously, the type option display bar 85 in the parameter settings interface 81 is the type option display bar under the portrait type option, where the type option icon corresponding to the portrait is highlighted.

[0136] exist Figure 9 , Figure 10 On this basis, users can also Figure 9 The type options display bar shown is 79 or Figure 10 In the type option display bar 85 shown, selecting the type option for a specific album will trigger the carousel wallpaper application to respond to the operation command of selecting the type option for the specified album and display... Figure 11 The parameter setting interface 91 corresponding to the specified album type option shown in (a) is shown in the image.

[0137] In the parameter settings interface 91 corresponding to the specified album type option, an image preview area 92 is configured. The image preview area 92 displays a set number of preview images, and these images belong to the images included in the specified album type option. The type option icon corresponding to the specified album is highlighted in the type option display bar 93 in the parameter settings interface 91. Users can select at least one album from the album selection list 94 in the parameter settings interface 91, for example... Figure 11 As shown in (a), the carousel wallpaper application can select the album corresponding to the camera in response to a user's instruction to select at least one album. For example, when a set number of preview images are displayed in the preview area 92, the corresponding effect files are also displayed. In response to a user's instruction to select an album in the parameter settings interface 91, the image selector of the carousel wallpaper application selects an album.

[0138] In addition, Figure 11 In the type option display bar 93 shown in (a), the user can also select a specific image type option. The carousel wallpaper application responds to the user's command to select a specific image type option by displaying, as shown in (a). Figure 11 The parameter setting interface 95 is shown in (b) below, under the option to specify the image type. The parameter setting interface 95 includes an image preview area 96, in which... Figure 7 The preview module shown displays a set number of preview images, and these images belong to the specified image type options. In the parameter settings interface 95 under the specified image type options, the user can also select images from all albums by selecting the image toolbar 97. The carousel wallpaper application responds to the user's operation command of selecting the image toolbar 97 and confirms the selected image in the album. Simultaneously, in the parameter settings interface 95 under the specified image type options, the specified image type options in the type option display bar 98 are highlighted.

[0139] exist Figure 8 Based on the interface shown in (b), if the user clicks the lock screen style control 506 and no image is stored in the electronic device, the carousel wallpaper application can display, based on the command generated by the user clicking the lock screen style control 506, the following: Figure 12 The prompt interface 101 is shown. In this prompt interface, the carousel wallpaper application can display the image in the preview area 102 according to the default content, meaning it can use the image carried by the electronic device itself as the content in the preview area 102. Simultaneously, the carousel wallpaper application can also... Figure 12The prompt interface 101 displays text-based prompts. For example, the prompt could be: "Please take a photo to experience this feature." Additionally, the confirmation control 103 in prompt interface 101 can display the text "OK," and clicking the confirmation control 103 sends a message to the carousel wallpaper application indicating the user's acknowledgment of the prompt. For instance, when a set number of preview images are displayed in the preview area 102, the corresponding effect files are also displayed simultaneously.

[0140] In addition to determining multiple carousel images specified by the user based on the user's selected instructions, the system can also remove duplicate images from the electronic device's image library according to a pre-configured algorithm, and then filter the remaining images using the pre-configured algorithm to obtain multiple carousel images switched by the image display method.

[0141] For example, the pre-configured algorithms include an image selection algorithm and an image deduplication algorithm. After determining the multiple carousel images specified by the user based on the user's selected instructions, the carousel wallpaper application can also run the image deduplication algorithm to remove duplicate images and obtain the remaining images as the pre-set multiple carousel images. Alternatively, the image deduplication algorithm can be omitted, retaining duplicate images if they exist.

[0142] For example, after determining the multiple carousel images specified by the user based on the user's selected instructions, if the number of carousel images specified by the user exceeds the limit value for the number of carousel images, the carousel wallpaper application runs an image selection algorithm on the multiple carousel images specified by the user, sorts the images, and selects the images that are ranked first according to the limit value as the pre-set multiple carousel images.

[0143] For example, after the electronic device determines multiple carousel images specified by the user based on the user's selected instructions, if the number of carousel images specified by the user is less than the limit value for the number of carousel images, then the multiple carousel images specified by the user are the preset multiple carousel images.

[0144] For example, when a user specifies multiple carousel images, it can be done through... Figure 7 The carousel management shown allows browsing images corresponding to type options or sub-options. The type option or sub-object serves as a secondary selection entry point for images. Based on the user's operation command on this secondary selection entry point, the carousel wallpaper application determines the type option or sub-option, identifies the image's source, and then navigates to different albums within the gallery. For example, Figure 10 The selection recall list 84 shown in (b) is as follows. Figure 11 The album selection list 94 shown in (a) is as follows: Figure 11When the selection toolbar 97 shown in (b) is expanded, Figure 7 The gallery navigation module shown can jump to a specific album in the gallery and display the corresponding images in the album.

[0145] After pre-setting multiple carousel images, refer to Figure 7 As shown, multiple pre-set carousel images can be sent to the carousel image management module in the carousel preview to prepare for the carousel. The carousel image management module can further manage the pre-set carousel images based on user-defined settings for specific images. For example, if a user sets a specific image to not display a label by selecting an "image not to appear" module in the carousel management, the carousel image management module can filter out carousel images with the missing label.

[0146] The carousel images, after being processed by the image management module, undergo depth-of-field processing via the depth-of-field processing module in the preview management. During this process, the depth-of-field processing module generates the main image layer and secondary composition data. When displaying the depth-of-field effect, the carousel wallpaper application can display the original and main image layers based on the secondary composition data, and then show the depth-of-field effect according to the relative position of the main image and the clock. If a depth-of-field effect is required in the lock screen wallpaper, the main image layer is used to cover the clock layer in the lock screen interface; otherwise, the main image layer can be placed below the clock layer without displaying a depth-of-field effect.

[0147] For example, the depth-of-field processing module can perform depth-of-field processing on all carousel images processed by the carousel image management module. Alternatively, the depth-of-field processing module can analyze the carousel images processed by the image management module and, if it determines that a subject exists and the subject's position in the image may overlap with the clock layer of the lock screen interface, perform depth-of-field processing on the carousel images. Alternatively, after the image management module processes the carousel images, other modules can be used to judge the carousel images and, if it determines that a subject exists and the subject's position in the image may overlap with the clock layer of the lock screen interface, perform depth-of-field processing on the carousel images.

[0148] For example, the depth-of-field processing module, in conjunction with the carousel image management module and the preview queue management module, performs depth-of-field processing operations, and then generates a preview queue based on the effect file obtained from the depth-of-field processing, as follows: Figure 13As shown. After processing multiple carousel images, the carousel image management module creates a list of multiple carousel images and simultaneously creates an index corresponding to each carousel image in the list. The index corresponding to each carousel image includes the index of the current carousel image (mCurrentIndex). The depth-of-field processing module performs depth-of-field processing on each image in the list of multiple carousel images. For example, the process of depth-of-field processing module performing depth-of-field processing on the images in the list of multiple carousel images and storing the processed data includes the following steps 131 to 133.

[0149] Step 131: Based on the index of the current carousel image, add the images to be carouseled to the processing queue of the depth-of-field processing module in sequence, so that the depth-of-field processing module performs depth-of-field processing on the carousel images in the queue serially.

[0150] For example, starting with the carousel image corresponding to the current carousel image's index, the next carousel image can be processed sequentially in both directions before and after the index. The processing order is: the carousel image corresponding to mCurrentIndex, the carousel image corresponding to the index before mCurrentIndex, the carousel image corresponding to the index after mCurrentIndex, the carousel images corresponding to the two indexes before mCurrentIndex, the carousel images corresponding to the two indexes after mCurrentIndex, the carousel images corresponding to the three indexes before mCurrentIndex, and so on. If a boundary of multiple carousel images is encountered, the next carousel image in the queue is determined starting from the first or last index, until all carousel images have been added to the processing queue and processed.

[0151] Step 132: After the depth-of-field processing module performs carousel processing on the carousel images, it saves the effect files of the currently previewed image and the two images before and after this image to the preview queue management module. The processing results of the remaining images are saved locally through DiskLruCache. The saved data includes the bitmap of the cutout subject and the secondary composition data.

[0152] Secondary composition data may include, for example, the composition region (rect). Once the preview queue data is filled, the preview effect of the current image can be displayed.

[0153] Step 133: The carousel images are processed by the depth-of-field processing module to generate corresponding wallpaper records. The depth-of-field processing module stores the wallpaper records in the record address corresponding to the carousel image management module in the list of multiple carousel images.

[0154] Step 134: After depth-of-field processing, update the wallpaper history in response to the user's instruction to add template editing to the carousel images. The instruction to add template editing to the carousel images could be, for example, an instruction to edit the carousel images using a magic lock screen template.

[0155] Step 135: The preview queue management module stores the preview queue, which includes: the original layer, main layer, and secondary composition data of the carousel image corresponding to the index of the current carousel image; the original layer, main layer, and secondary composition data of the previous carousel image corresponding to the index of the current carousel image; and the original layer, main layer, and secondary composition data of the next carousel image corresponding to the index of the current carousel image.

[0156] Step 136: In response to the information about the position change of the carousel image corresponding to the index of the current carousel image in the list of multiple carousel images, the preview queue management module refreshes the preview queue, adds the new carousel image to the preview queue, and removes at least one original carousel image from the preview queue.

[0157] Preview queue management stores carousel images removed from the preview queue into the disk least recently used cache (DiskLruCache), and newly added carousel images are read from DiskLruCache.

[0158] For example, the data structure in the carousel image management module is as follows: Figure 14 As shown, the carousel image management module is a management class that maintains a carousel image list (mmultiwallpaperlist) and three multi-carousel wallpaper preview items (multiwallpaperpreviewItem). The carousel image list includes a list of carousel wallpaper item sets (list...). <multiwallpaperitem>), for providing a carousel wallpaper item. The carousel wallpaper item set includes a plurality of multiwallpaper items. In the carousel image management module, there are also a current carousel wallpaper item (mcurrentitem), a previous carousel wallpaper item (mpreviewitem) and a next carousel wallpaper item (mnextitem), which correspond to the current carousel wallpaper, the previous carousel wallpaper of the current carousel wallpaper and the next carousel wallpaper of the current carousel wallpaper in turn, respectively, and are used for providing preview data of the current carousel wallpaper, the previous carousel wallpaper of the current carousel wallpaper and the next carousel wallpaper of the current carousel wallpaper in turn, respectively.

[0159] In the image management module, there is also a current carousel image index (mcurrentindex). Exemplarily, the current carousel image index is an initial integer (int). The contents of the current carousel wallpaper item, the previous carousel wallpaper item and the next carousel wallpaper item are multiwallpaper preview items (multiwallpaperpreviewitem), respectively. In the carousel image management module, there are also an adding method, a deleting method, a depth processing method and a refreshing method, which can call the adding carousel image module (addwallpaper ()), the deleting carousel image module (deletewallpaper ()), the depth processing module (dealdepth ()) and the refreshing preview module (refreshpreviewitems ()), in turn, respectively.

[0160] Still referring to Figure 14 As shown, the carousel wallpaper item is a data class of a single item in the carousel wallpaper set, including a media item (mmediaitem), a wallpaper record (mwallpaperrecord) and a state (mstatus). The media item includes attribute information of the carousel image, which can also be referred to as basic information, such as color, texture, style, etc. The wallpaper record can include a wallpaper depth processing record (wallpaperrecord). The state can include whether it is processed or in processing, which can be an integer data. In the carousel wallpaper item, there are also a media item setting method (setmediaitem ()), a depth setting method (setwallpaperrecord ()), the media item method is used for receiving a user's instruction to set the media item, and according to the instruction to set the media item, the media items of the three wallpapers in the current preview are set. The depth setting method can be used to respond to a user's instruction to perform depth processing on the image.

[0161] Still referring to Figure 14 As shown, the multi-wallpaper preview item is of the preview picture data class, indicating the key information that the photo which can be rendered to the wallpaper preview interface has been loaded into the memory. The data includes a media item (mmediaitem), an original bitmap (moriginbitmap), a crop bitmap (mcropbitmap), and a secondary composition area (mrect), etc. The media item includes media item data, corresponding to the media item of the carousel image in a non-preview state. The original bitmap includes the bitmap of the original image of the carousel image. The crop bitmap includes the bitmap of the crop layer. The secondary composition area includes secondary composition data (rect).

[0162] After the wallpaper is edited in the wallpaper editing interface, the application control can be clicked. The electronic device responds to the operation of the user clicking the application control and applies the selected edited wallpaper to the lock screen or the desktop.

[0163] In the interface shown in (b) in Figure 9 If the user clicks the selected photo control, the memory control, or the specified album control, or at the time of or after storing the image in the gallery, the selected image can be selected through the process shown in Figure 15 In a possible implementation manner, before the carousel image selected by the user enters the carousel image management module, the carousel wallpaper application can perform the selection process as shown in Figure 15

[0164] Step S151: Obtain a candidate carousel image.

[0165] The candidate carousel image can be determined by the carousel wallpaper application based on a type option and / or a sub-option selected by the user. The type option or the sub-option corresponds to at least one image set.

[0166] Step S152: Determine whether the number of candidate carousel images exceeds a preset number threshold.

[0167] For example, the preset number threshold can be 1-100. Further, the preset number threshold can be 10-50. Further, the preset number threshold can be 15 or 30.

[0168] Step S153: In the case of not exceeding, add all candidate carousel images to the carousel image list.

[0169] Step S154: In the case of exceeding, determine a tag set of all tags of the candidate carousel image.

[0170] Step S155: Create a filter set.

[0171] ​Step S156: Determine whether the number of carousel images in the filter set has reached the preset threshold. If not, proceed to step S157; if yes, proceed to step S1510.

[0172] Step S157: If not, for the target label in the label set, determine whether the number of candidate carousel images corresponding to the target label has reached the filtering threshold. If yes, proceed to step S158; otherwise, proceed to step S159.

[0173] For example, the filtering threshold can be 1-20, further, the filtering threshold can be 1-10, and further, the filtering threshold can be 5.

[0174] Step S158: Take the next tag of the target tag as the target tag, and return to step S156.

[0175] Step S159: Filter out the candidate carousel images corresponding to the target labels according to the filtering threshold and add them to the filtering set.

[0176] Step S1510: Add the carousel images from the filtered set to the carousel management list.

[0177] After the carousel wallpaper app selects and edits the carousel images based on user instructions, the app can start the carousel, pause it, modify the images, and then resume it, all based on user instructions. The interaction between the wallpaper editing application and the lock screen frame and lock screen application when starting, modifying, and resuming the carousel can be found in [reference needed]. Figure 16 As shown, the wallpaper frame belongs to the wallpaper application. To enable and restore the carousel in the wallpaper editing application, perform the following steps.

[0178] Step S161: The carousel wallpaper application writes the carousel wallpaper resources to the preset directory.

[0179] The carousel wallpaper resources can include resources of carousel wallpapers that have been processed using methods such as depth-of-field processing. For example, the carousel wallpaper resources can be divided into at least one group using folders. For example, the preset directory can be in the form of / data / themes / 0 / wallpaper. For example, the carousel wallpaper resources can include resources obtained by the carousel image management module after processing the wallpapers.

[0180] Step S162: The carousel wallpaper application generates a carousel configuration file.

[0181] The carousel configuration file is used to provide visual information during wallpaper carousels.

[0182] Step S163: The carousel wallpaper application calls the wallpaper frame F interface to set the carousel wallpaper.

[0183] The wallpaper frame F interface refers to the interface of the wallpaper frame at the application frame layer. A wallpaper frame can be the wallpaper service framework included in a wallpaper application within an electronic device's system.

[0184] Step S164: The wallpaper frame saves the relevant data of the carousel wallpaper.

[0185] The relevant data includes the bitmap of the original layer, the bitmap of the cut-out layer, and the secondary composition data.

[0186] Step S165: The wallpaper frame notification lock screen application sets the current carousel wallpaper as the lock screen wallpaper.

[0187] Step S166: When the lock screen application listens for an image switching event, it notifies the wallpaper frame to switch the lock screen wallpaper.

[0188] Step S167: The lock screen application calls the settings interface provided by the wallpaper framework to set the next carousel wallpaper as the lock screen wallpaper.

[0189] During step S167, the wallpaper frame writes to the settings database and simultaneously notifies the lock screen to set the carousel wallpaper.

[0190] Step S168: If the desktop is set to follow the lock screen, the desktop application will synchronously set the next carousel wallpaper to the desktop wallpaper.

[0191] Through steps S167 and S168, the carousel wallpaper application can first successfully set the first image to be carouseled in the carousel wallpaper list using the existing logic, and then set the carousel wallpaper through the setting interface (setMultiWallpaperConfig) provided by the wallpaper framework.

[0192] When a carousel wallpaper application is displaying images, and the user pinches two fingers together on the lock screen, the application responds to this pinch gesture by displaying a wallpaper editing interface. It then needs to read the corresponding configuration files and resources to restore the wallpaper to the editing interface. The lock screen application needs to inform the carousel wallpaper application of the current carousel wallpaper position and restore the corresponding wallpaper to the preview screen. During this process, step S169 is executed: the lock screen application restores the carousel wallpaper to the wallpaper editing interface.

[0193] Users can manipulate carousel images through the carousel wallpaper app, which can add, switch, and delete carousel wallpapers according to user instructions.

[0194] For example, the process by which a carousel wallpaper application switches between carousel images according to user instructions includes, as follows: Figure 17 The process is shown.

[0195] Step S171: Receive switching command.

[0196] For example, the switching command can be a command generated by the user performing a certain gesture operation, which may include a click operation, a double click operation, a swipe operation along a set trajectory, etc.

[0197] Step S172: Determine whether the carousel image to be switched is empty. If not, proceed to step S173; if yes, proceed to step S179.

[0198] The carousel image that needs to be switched to may be the next carousel image after the current carousel image, or the previous carousel image.

[0199] Step S173: From the preview queue, update the record of the carousel image to be switched to the record of the index corresponding to the current carousel image, and at the same time update the original record of the index corresponding to the current carousel image to the record of the index corresponding to the carousel image to be switched.

[0200] Step S174: Dequeue one carousel image from the original preview queue and update the disk's least recently used cache.

[0201] In this embodiment, the disk least recently used cache can be a caching device in an electronic device, using the disk least recently used algorithm for storage. The core idea of ​​the disk least recently used (LRU) cache is to determine which data items are least recently used based on their access history. Whenever a data item is accessed, it is marked as recently used and moved to the head of the cache (or the latest position). When the cache is full and data items need to be evicted, the least recently used data items are removed to make room for new data items.

[0202] Step S175: Obtain the record of the carousel image to be switched in the disk's least recently used cache.

[0203] Step S176: Based on the obtained results, determine whether a record exists. If it exists, proceed to step S177; otherwise, proceed to step S178.

[0204] If the carousel image to be switched exists in the disk's least recently used cache, the carousel wallpaper application will succeed in fetching it; otherwise, it will fail.

[0205] Step S177: Update the record to the index corresponding to the carousel image that needs to be switched in the preview queue.

[0206] Step S178: Enter the loading state and wait for the record to be returned.

[0207] In the recorded state, the carousel wallpaper application processes the carousel images that need to be switched and generates a record.

[0208] Step S179: Enter the loading state and wait for the carousel image to be switched to.

[0209] In this embodiment of the application, when switching carousel images, the carousel images in the list of multiple carousel images are cyclically switched. In step S712 above, if the carousel image to be switched or the record of the carousel image to be switched has not yet been loaded, it may be because the carousel image to be switched has not yet generated a record. In this case, the loading state is entered, and the carousel image to be switched is returned after the record is generated.

[0210] Figure 18 This demonstrates the workflow of a carousel wallpaper application responding to a command to add a new carousel wallpaper when the application is displaying carousel wallpapers, including the following steps.

[0211] Step S181: In response to the instruction to add a new carousel wallpaper, add the new carousel wallpaper to the list of multiple carousel wallpapers.

[0212] Step S182: Determine whether depth-of-field processing is in progress. If yes, proceed to step S183; otherwise, proceed to step S184.

[0213] Step S183: Stop depth-of-field processing.

[0214] Step S184: Obtain the next carousel image that requires depth-of-field processing at the current moment.

[0215] If depth-of-field processing is in progress, after the depth-of-field processing stops, the next carousel image that requires depth-of-field processing will be the carousel wallpaper that was being processed before the depth-of-field processing stopped.

[0216] If in step S182, the carousel image for which depth-of-field processing is performed is the last carousel image in the list of multiple carousel images that has not undergone depth-of-field processing, or if in step S812, no depth-of-field processing is currently performed, then the next carousel image corresponding to the index of the current carousel image can be obtained as the next carousel image that needs depth-of-field processing at the current moment in step S184.

[0217] Alternatively, if in step S182 the carousel image undergoing depth processing is the last carousel image in the list of multiple carousel images that has not undergone depth processing, or if in step S812 no depth processing is currently performed, then an empty result can be obtained.

[0218] Step S185: Determine whether all the carousel images in the list of multiple carousel images have been processed by depth of field. If not, proceed to step S186; if yes, end.

[0219] Step S186: Determine whether there is a record of the next carousel image that needs depth processing in the disk's least recent cache. If not, proceed to step S187; if yes, proceed to step S.

[0220] Step S187: Perform depth-of-field processing on the next carousel image that requires depth-of-field processing.

[0221] Step S188: Write the depth-of-field processing records to the least recently cached disk.

[0222] Step S189: Determine if the image for depth processing belongs to the preview queue. If so, update the preview queue; otherwise, end the process.

[0223] Figure 19 This demonstrates how, when a carousel wallpaper application is displaying a carousel wallpaper, the application responds to a command to delete the carousel wallpaper by performing the following steps.

[0224] Step S191: Receive the instruction to delete the current carousel wallpaper.

[0225] Step S192: Determine whether there is only one carousel image left in the list of multiple carousel wallpapers. If yes, proceed to step S193; otherwise, proceed to step S194.

[0226] Step S193: Display a prompt message indicating that deletion is not allowed.

[0227] Step S194: Delete the current carousel image from the list of multiple carousel wallpapers.

[0228] Step S195: Set the index of the current carousel image in the preview queue to the next carousel image after the deleted carousel image.

[0229] Step S196: Determine the record in the disk's least recently cached folder corresponding to the updated current carousel image.

[0230] Step S197: Determine if there is a record corresponding to the updated current carousel image. If there is, proceed to step S198; otherwise, proceed to step S199.

[0231] Step S198: Update the record to the preview queue, corresponding to the next index of the current carousel image.

[0232] Step S199: Enter the loading state and wait for the record to return.

[0233] In this embodiment, three wallpaper switching logic F (framework layer) interfaces are provided to implement different switching methods. These methods may include: switching wallpaper when the screen is off, switching by tapping on the lock screen, and switching on a timer. The carousel wallpaper application provides an interface to the lock screen application to switch between lock screen and desktop wallpapers. The carousel wallpaper application can use a built-in timer to implement timed switching and manage other timed events, allowing it to switch carousel wallpapers without restarting the wallpaper service while displaying multiple images.

[0234] This application also provides an image display device, including:

[0235] A carousel image determination module is used to determine a target carousel image from a set of pre-defined carousel images based on a monitored image switching event; the target image is used to replace the current carousel image; the current carousel image is the carousel image displayed by the electronic device when the image switching event occurs; the set of multiple carousel images includes the current carousel image.

[0236] The effect file acquisition module is used to obtain the effect file of the target carousel image; the effect file is obtained by processing the target carousel image;

[0237] The carousel image switching module is used to switch the current carousel image to the target carousel image, and the target carousel image presents the effect corresponding to the effect file.

[0238] Another embodiment of the present invention discloses an image display device. Based on the above embodiments, this embodiment further includes:

[0239] The selection interface display module is used to display a carousel image selection interface in response to user operation information; the carousel image selection interface includes multiple type options, and each type option includes at least one sub-option.

[0240] The candidate image determination module is used to determine the candidate image corresponding to the sub-option in response to a selection operation of at least one sub-option;

[0241] The carousel image acquisition module is used to filter the candidate images according to preset filtering information to obtain the preset multiple carousel images.

[0242] Another embodiment of the present invention discloses an image display device. Based on the above embodiments, the carousel image acquisition module is used for at least one of the following:

[0243] The candidate images are filtered according to preset resolution information; the preset filtering information includes the preset resolution information.

[0244] Obtain the tags of the candidate images; filter the candidate images according to preset tag information and the tags of the candidate images; the preset filtering information includes the preset tag information;

[0245] Obtain at least one rating for the candidate images; filter the candidate images according to preset rating information and at least one rating for the candidate images; the preset filtering information includes the preset rating information;

[0246] Identify the object type in the candidate image; filter the candidate image according to preset object type information and the object type in the candidate image; the preset filtering information includes the preset object type information.

[0247] Another embodiment of the present invention discloses an image display device. Based on the above embodiments, this embodiment further includes:

[0248] The effect file acquisition module is used to process the pre-set multiple carousel images to obtain the effect files for each carousel image;

[0249] A preset address storage module is used to store the effect files of the multiple carousel images at a preset address; the preset address is used to receive carousel images dequeued from the image carousel queue when the image carousel queue is updated, and to provide the carousel address to be enqueued to the image carousel queue; the carousel image queue includes the target carousel image and the current carousel image;

[0250] The image settings module is used to set the current carousel image in the image carousel queue and the image switching conditions.

[0251] Another embodiment of the present invention discloses an image display device, including a carousel image determination module. Based on the above embodiments, the carousel image determination module is used for:

[0252] The image carousel queue is updated based on the image switching event; the image carousel queue includes the target carousel image and the current carousel image.

[0253] Based on the index corresponding to the current carousel image, the target carousel image is determined from the updated image carousel queue.

[0254] Another embodiment of the present invention discloses an image display device. Based on the above embodiments, this embodiment includes data for each carousel image in the carousel image queue, including an effect file for each carousel image.

[0255] Another embodiment of the present invention discloses an image display device. Based on the above embodiments, this embodiment further includes:

[0256] The effect file acquisition module is used to obtain the new carousel image and the effect file of the new carousel image in response to the instruction to add a new carousel image;

[0257] The storage location determination module is used to determine the storage location of the newly added carousel image according to the instruction for adding the carousel image;

[0258] The carousel queue update module is used to update the image carousel queue when the storage location of the newly added carousel image is adjacent to the storage location of the current carousel image.

[0259] Another embodiment of the present invention discloses an image display device. Based on the above embodiments, this embodiment uses an effect file to generate a depth-of-field effect when the target carousel image is displayed. The effect file includes a bitmap of the original image of the target carousel image, data of the cutout layer of the target carousel image, and secondary composition data of the target carousel image. The cutout layer of the target carousel image includes the main body of the target carousel image. The cutout layer of the target carousel image is used to cover the clock layer of the lock screen interface when the target carousel image is displayed on the lock screen.

[0260] Another embodiment of the present invention discloses an image display device. In this embodiment, based on the above embodiments, the carousel image is a lock screen wallpaper, and / or the carousel image is a desktop wallpaper.

[0261] It should be understood that the sequence number of each step in the above embodiments does not imply 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 this application.

[0262] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0263] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps in the above-described method embodiments.

[0264] This application also provides a computer program product that, when run on an electronic device, enables the electronic device to perform the steps described in the various method embodiments above.

[0265] This application also provides a chip system, which includes a processor coupled to a memory. The processor executes a computer program stored in the memory to implement the steps of any method embodiment of this application. The chip system can be a single chip or a chip module composed of multiple chips.

[0266] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer, or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), or semiconductor media (e.g., Solid State Disks (SSDs)).

[0267] The above-described embodiments are optional embodiments provided by this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the technical scope disclosed in this application should be included within the protection scope of this application.< / multiwallpaperitem>

Claims

1. An image display method, characterized in that, include: Based on the monitored image switching events, the target carousel image is determined from a set of pre-defined carousel images; The target image is used to replace the current carousel image; The current carousel image is the carousel image displayed by the electronic device when the image switching event occurs; the multiple carousel images include the current carousel image; Obtain the effect file of the target carousel image; The effect file is obtained by processing the target carousel image; The current carousel image is switched to the target carousel image, which displays the effect corresponding to the effect file.

2. The method according to claim 1, characterized in that, The method further includes: In response to user operation information, a carousel image selection interface is displayed; the carousel image selection interface includes multiple type options, and each type option includes at least one sub-option. In response to a selection operation on at least one sub-option, determine the candidate image corresponding to the sub-option; The candidate images are filtered according to preset filtering information to obtain the preset multiple carousel images.

3. The method according to claim 2, characterized in that, The filtering of the candidate images according to preset filtering information includes at least one of the following: The candidate images are filtered according to preset resolution information; the preset filtering information includes the preset resolution information. Obtain the tags of the candidate images; filter the candidate images according to preset tag information and the tags of the candidate images; the preset filtering information includes the preset tag information; Obtain at least one rating for the candidate images; filter the candidate images according to preset rating information and at least one rating for the candidate images; the preset filtering information includes the preset rating information; Identify the object types in the candidate images; The candidate images are filtered based on preset object type information and the object types in the candidate images; the preset filtering information includes the preset object type information.

4. The method according to claim 2, characterized in that, The method further includes: Process the pre-set multiple carousel images to obtain the effect files of each carousel image; The effect files of the multiple carousel images are stored at a preset address; the preset address is used to receive carousel images dequeued from the image carousel queue when the image carousel queue is updated, and to provide the carousel address for enqueuing to the image carousel queue; the carousel image queue includes the target carousel image and the current carousel image; Set the current carousel image in the image carousel queue, and the image switching conditions.

5. The method according to any one of claims 1-4, characterized in that, Based on the monitored image switching events, the target carousel image is determined from a set of pre-defined carousel images, including: The image carousel queue is updated based on the image switching event; the image carousel queue includes the target carousel image and the current carousel image. Based on the index corresponding to the current carousel image, the target carousel image is determined from the updated image carousel queue.

6. The method according to claim 5, characterized in that, The data for each carousel image in the carousel image queue includes the effect file for each carousel image.

7. The method according to claim 5 or 6, characterized in that, The method further includes: In response to the instruction to add a new carousel image, the newly added carousel image and the effect file of the newly added carousel image are obtained; Based on the instruction to add a new carousel image, determine the storage location of the new carousel image; When the storage location of the newly added carousel image is adjacent to the storage location of the current carousel image, the image carousel queue is updated.

8. The method according to claim 7, characterized in that, The method further includes: In response to a command to delete a carousel image, obtain the number of carousel images in the carousel list; If the number of carousels exceeds a preset threshold, delete the carousel image corresponding to the index of the current carousel image in the carousel list; The index of the current carousel image is set to the next carousel image after the deleted carousel image.

9. The method according to claim 7 or 8, characterized in that, The method further includes: In response to the instruction to switch carousel images, update the record of the carousel image to be switched from the preview queue to the record of the index corresponding to the current carousel image; Update the original record of the index corresponding to the current carousel image to the record of the index corresponding to the carousel image to be switched.

10. The method according to any one of claims 5-9, characterized in that, The method further includes: From the preview queue, update the record of the carousel image that needs to be switched to the record of the index corresponding to the current carousel image, and at the same time update the original record of the index corresponding to the current carousel image to the record of the index corresponding to the carousel image that needs to be switched.

11. The method according to any one of claims 1-10, characterized in that, The effect file is used to generate a depth-of-field effect when the target carousel image is displayed; the effect file includes a bitmap of the original image of the target carousel image, data of the cutout layer of the target carousel image, and secondary composition data of the target carousel image. The cutout layer of the target carousel image includes the main body of the target carousel image. The cutout layer of the target carousel image is used to cover the clock layer of the lock screen interface when the target carousel image is displayed on the lock screen.

12. The method according to any one of claims 1-11, characterized in that, The method further includes: The carousel images are lock screen wallpapers, and / or the carousel images are desktop wallpapers.

13. An electronic device, characterized in that, The electronic device includes: a processor and a memory; The memory is used to store a program for the electronic device to perform the method as described in any one of claims 1-12, and to store data related to implementing the method as described in any one of claims 1-12; The processor is configured to execute programs stored in the memory.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-12.