Cover display method and terminal equipment
By dynamically changing the display method of cover card images on the terminal device, the problem of single album cover display in the prior art is solved, and the user experience and content expression effect are improved.
Patent Information
- Application Number
- CN202310696554.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-12
- Publication Date
- 2024-12-13
AI Technical Summary
In the prior art, the album cover display effect generated by the terminal device is single, making it difficult to highlight the content expected by the user, and the user experience is not high.
By displaying the first cover card image and label information at the first moment, the portrait in the first cover card image does not obstruct the label information; the second cover card image is displayed at the second moment, and the second cover card image is for the first cover card The portrait in the second cover card image is enlarged in proportion to crop the preset area of the label information, and dynamically changes to highlight the portrait display effect.
It increases the hierarchy of cover display, improves the user experience, and highlights the content expected by users through dynamically changing cover display methods.
Smart Images

Figure CN119127356A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a cover display method and a terminal device. Background Art
[0002] With the development of electronic technology and terminal products, the usage rate of multimedia files such as pictures and videos in users' daily lives is increasing. Generally, a large number of multimedia files such as pictures and videos may be stored in terminal devices such as mobile phones, tablets, and personal computers (PCs).
[0003] The terminal device can divide a large number of pictures stored in the gallery into one or more albums according to the geographical location information and shooting time information of the photos. In the prior art, the terminal device usually uses a clearer picture in the album, or the first picture or the last picture in the album as the album cover. Among them, for one of the albums, the first picture of the album can be understood as the picture in the album whose shooting time (or the time saved to the local gallery) is farthest from the current time, and the last picture can be understood as the picture whose shooting time is closest to the current time.
[0004] However, the cover display effect generated by the above method is single, which may be difficult to highlight the content that the user expects to express through the cover, and the user experience is not high. Summary of the invention
[0005] The present application provides a cover display method and terminal device, which are conducive to increasing the hierarchy of the cover display, highlighting the content that the user hopes to express through the cover, and thus improving the user experience.
[0006] In a first aspect, a cover display method is provided, which is applied to a terminal device, and the method includes: at a first moment, displaying a first interface, the first interface including a first cover card image of a first album and label information of the first album, the first cover card image is determined based on the first cover image of the first album, the first cover card image includes a portrait in the first cover image, in the first interface, the portrait is located below the label information of the first album and does not block the label information of the first album, and the first cover image satisfies preset conditions, the preset conditions include: the number of portraits in the image is single, the face of the portrait in the image is located in a preset area of the image, and the area ratio in the image is within a preset range; at a second moment, displaying a second interface, the second interface including a second cover card image of the first album and label information of the first album, the size of the first cover card image is the same as the size of the second cover card image, the second cover card image is obtained by cropping the first cover card image after enlarging it by a preset multiple, in the second interface, the portrait is located below the label information and blocks a preset part of the label information, and the second moment is later than the first moment.
[0007] The cover display method provided by the present application is applied to a terminal device. The terminal device displays the first cover card image and the label information of the first album at the first moment, and the portrait in the first cover card image does not block the label information of the first album; and displays the second cover card image and the label information of the first album at the second moment. The second cover card image is obtained by scaling up the first cover card image by a preset multiple and then cropping it. The portrait in the second pair of cover card images blocks the preset area of the label information of the first album. In this way, the terminal device can dynamically display the cover of the first album, and after the dynamic change, the portrait in the second cover card image blocks the preset area of the label information of the first album, visually highlighting the portrait display effect of the second cover card image, which is conducive to increasing the hierarchy of the cover display, facilitating highlighting the content that the user expects to express through the cover, and thus improving the user experience.
[0008] It should be understood that the first album includes multiple images, and the first album may be a photo collection including multiple photos, or may be a video (also referred to as a video album) generated by a terminal device based on multiple photos taken by a user. The first album may also be a video taken locally by a user or downloaded from a web page by a user, and the multiple images in the first album are multiple frames of images of the video. This application does not limit this.
[0009] It is also understood that the above-mentioned preset part can be set by the R&D personnel. Optionally, the preset part can be 1 / 2 of the height of the label information box. For example, the preset part of the label information of the first album can be the lower half of the label information of the first album, that is, the portrait blocks the lower half of the label information of the first album. Optionally, the preset part can be 1 / 2 of the height of the title box in the label information, for example, the portrait blocks the lower half of the title box.
[0010] Optionally, the preset range may be greater than or equal to the first preset threshold and less than or equal to the second preset threshold. For example, the preset range may be a closed interval [2%, 4%], that is, the face area accounts for greater than or equal to 2% and less than or equal to 4%.
[0011] Optionally, the face of the portrait in the image is located in the preset area of the image can be: the ratio of the overlapping area of the face frame and the preset area to the area of the face frame is greater than or equal to a preset threshold. The preset threshold can be set by the R&D personnel. For example, the preset threshold can be 80%.
[0012] It should also be understood that the above-mentioned preset area can be set in a variety of ways.
[0013] In a possible implementation manner, the preset area may be an area of a central grid after the image is divided into nine grids.
[0014] It should be understood that the nine-grid division means that the image is divided into nine equal parts by arranging two horizontal grid lines and two vertical grid lines in a "well" shape. The center grid of the nine-grid is a rectangular area formed by the four intersections of the two horizontal grid lines and the two vertical grid lines.
[0015] In another possible implementation, the preset area may be a fixed area of the image. Optionally, the preset area may be: a horizontal grid line is drawn at 1 / 6 and 2 / 3 from top to bottom of the image in the vertical direction, a vertical grid line is drawn at 1 / 6 and 5 / 6 from left to right of the image in the horizontal direction, and a rectangular area is formed by four intersection points where two horizontal grid lines and two vertical grid lines intersect.
[0016] In combination with the first aspect, in certain implementations of the first aspect, the above method also includes: at a third moment, displaying a third interface, the third interface including a third cover card image of the second album and label information of the second album, the third cover card image is determined based on the second cover image of the second album, and the second cover image does not meet the preset conditions.
[0017] It should be understood that the second album is similar to the first album, and will not be described in detail herein. The second cover image may be, for example, a landscape image, a multi-person image, or a person's back image.
[0018] By judging by preset conditions, the photo albums in the terminal device can be divided into two types: photo albums that meet the preset conditions and photo albums that do not meet the preset conditions. Different types of photo albums can be displayed in different cover styles, which is conducive to improving the diversity of album cover display.
[0019] In combination with the first aspect, in certain implementations of the first aspect, displaying the third interface includes: displaying the third interface in response to a user's sliding operation or a click operation on an album navigation icon, where the album navigation icon is used for the user to open an album list.
[0020] It should be understood that the album list includes at least one album. The album list includes the second album.
[0021] The following discusses the process of the terminal device displaying the third interface based on the user's operation in different situations.
[0022] Case 1: the terminal device currently displays an interface including an album navigation icon. After the user clicks the album navigation icon, the terminal device opens the album list and displays the cover of the second album (ie, the third interface).
[0023] Furthermore, the album list also includes the first album. The user slides the album from the second album to the first album by sliding in the album list, and the terminal device displays the cover of the first album. The cover display of the first album is dynamic, and the dynamic display process is: first display the first cover card image, then change from the first cover card image to the second cover card image, and finally display the second cover card image all the time.
[0024] Case 2: The user slides from other albums to the second album. The other album may be the first album, or an album other than the first album and the second album. In response to the user's sliding operation, the terminal device displays the cover of the second album (i.e., the third interface). The cover display of the second album is static.
[0025] In combination with the first aspect, in certain implementations of the first aspect, the above method also includes: based on the aesthetic scores of multiple second images in the second album and preset conditions, determining whether there is at least one second target image in the second album, and at least one second target image meets the preset conditions; if there is no at least one second target image in the second album, determining the second cover image from the multiple second images.
[0026] It should be understood that the terminal device can score the multiple second images based on the aesthetic scoring rules to obtain the aesthetic scores of the multiple second images. This application does not limit the scoring rules for the aesthetic scoring.
[0027] By screening the covers through aesthetic scoring, some blurry or poorly composed images can be filtered out, which is helpful to improve the quality of the screened cover images.
[0028] In combination with the first aspect, in certain implementations of the first aspect, determining whether there is at least one second target image in the second album includes: selecting an image with the highest aesthetic score among multiple second images as at least one second candidate image; determining whether there is at least one second target image that meets preset conditions among the at least one second candidate image; if there is no at least one second target image in the at least one second candidate image, determining that there is no at least one second target image in the second album; determining a second cover image from the multiple second images includes: determining the second cover image from the at least one second candidate image.
[0029] In combination with the first aspect, in certain implementations of the first aspect, the number of at least one candidate image is multiple; determining the second cover image from at least one second candidate image includes: determining the image with the earliest time information in at least one second candidate image as the second cover image.
[0030] In combination with the first aspect, in certain implementations of the first aspect, displaying the first interface includes: displaying the first interface in response to a user's sliding operation or a click operation on an album navigation icon, where the album navigation icon is used for the user to open an album list.
[0031] It should be understood that the album list includes at least one album. The album list includes the first album.
[0032] Specifically, when the terminal device currently displays an interface including an album navigation icon and the album list only includes the first album, after the user clicks the album navigation icon, the terminal device opens the album list and displays the cover of the first album. When the album list includes at least two albums and the terminal device currently displays the covers of other albums, based on the user's sliding operation, the terminal device displays the cover of the first album. The cover display of the first album is dynamically displayed, and the dynamic display process is: first display the first cover card image, then change from the first cover card image to the second cover card image, and finally display the second cover card image all the time.
[0033] In combination with the first aspect, in certain implementations of the first aspect, the above method also includes: based on the aesthetic scores of multiple first images in the first album and preset conditions, judging whether there is at least one first target image in the first album, and at least one first target image meets the preset conditions; when there is at least one first target image in the first album, determining the first cover image from the at least one first target image.
[0034] By screening the covers through aesthetic scoring, some blurry or poorly composed images can be filtered out, which is helpful to improve the quality of the screened cover images. Screening the covers through preset conditions is helpful to avoid the situation where the cover card images obtained by subsequent cropping based on the cover images do not meet the requirements.
[0035] In combination with the first aspect, in certain implementations of the first aspect, determining whether there is at least one first target image in the first album includes: selecting an image with the highest aesthetic score among multiple first images as at least one first candidate image; determining whether there is at least one first target image that meets preset conditions in at least one first candidate image; if there is at least one first target image in at least one first candidate image, determining that there is at least one first target image in the first album.
[0036] In combination with the first aspect, in certain implementations of the first aspect, there are multiple first target images; determining the first cover image from the at least one first target image includes: determining the image with the earliest time information in the at least one first target image as the first cover image.
[0037] In combination with the first aspect, in certain implementations of the first aspect, the above method also includes: cropping the first cover image based on the position of the portrait in the first cover image in the first cover card image and the size of the first cover card image to obtain the first cover card image.
[0038] Optionally, the first cover card image may be rectangular, and the size of the first cover card image may include a horizontal length and a vertical height of the first cover card.
[0039] In combination with the first aspect, in certain implementations of the first aspect, the eyes of the portrait in the first cover image are located at a preset position in the horizontal direction of the first cover card image, and the face frame of the portrait in the first cover image is located at a preset position in the vertical direction of the first cover card image.
[0040] It should be understood that the preset position of the first cover card image in the horizontal direction and the preset position of the first cover card image in the vertical direction can be preset by the R&D personnel. For example, the preset position of the first cover card image in the horizontal direction can be on the center line of the first cover card image in the horizontal direction. The preset position of the first cover card image in the vertical direction can be at 1 / 4 of the height from top to bottom of the first cover card image in the vertical direction.
[0041] By positioning the eyes of the portrait at preset positions in the horizontal direction and the vertical direction of the first cover card image, the portrait display area in the first cover card is determined, which helps to improve the aesthetics of the cover card image.
[0042] In combination with the first aspect, in certain implementations of the first aspect, the above method also includes: proportionally enlarging the first cover card image by a preset multiple with the face in the first cover card image as the center; taking the center of the first cover card image as the center of the second cover card image, and cropping the enlarged first cover card image to the same size as the first cover card image to obtain the second cover card image.
[0043] It should be understood that equal-proportional magnification refers to magnifying the first cover image as a whole at the same ratio, rather than magnifying a partial image in the first cover image. Optionally, the preset magnification may be 1.2 times.
[0044] Specifically, there are many implementation methods for proportionally enlarging the first cover card image by a preset multiple with the face in the first cover card image as the center, and this application does not limit this.
[0045] In a possible implementation, the first cover card image is proportionally enlarged by a preset multiple with the key point of the nose of the face in the first cover card image as the center, and the area that exceeds the size of the first cover card image after enlargement is cropped to obtain the second cover card image. The key point of the nose of the face in the first cover card image, the key point of the nose of the face in the enlarged first cover card image, and the key point of the nose of the face in the second cover card image overlap.
[0046] In another possible implementation, the first cover card image is proportionally enlarged by a preset multiple with the midpoint of the face frame (the circumscribed frame of the face outline) in the first cover card image as the center, and the area that exceeds the size of the first cover card image after enlargement is cropped to obtain the second cover card image. The midpoint of the face frame (the circumscribed frame of the face outline) in the first cover card image, the midpoint of the face frame (the circumscribed frame of the face outline) in the enlarged first cover card image, and the midpoint of the face frame (the circumscribed frame of the face outline) in the second cover card image coincide with each other.
[0047] In combination with the first aspect, in some implementations of the first aspect, the tag information includes title information and time information.
[0048] It should be understood that the title information of the first album (which can also be understood as the album name of the first album) can be automatically generated by the terminal device based on the video content, or can be created by the user, and this application does not limit this. The time information of the first album is the creation time or the last modification time of the first album.
[0049] In combination with the first aspect, in certain implementations of the first aspect, the label information is displayed in the center in the first interface or the second interface.
[0050] In combination with the first aspect, in certain implementations of the first aspect, in the first interface or the second interface, the time information is located above the title information.
[0051] In a second aspect, a terminal device is provided, which is used to execute the method in any possible implementation of the first aspect. Specifically, the terminal device includes a module for executing the method in any possible implementation of the first aspect.
[0052] In one design, the terminal device may include a module that executes the methods / operations / steps / actions described in the first aspect above, and the module may be a hardware circuit, software, or a combination of hardware circuit and software.
[0053] In a third aspect, a terminal device is provided, comprising: a processor and a memory, wherein the processor is used to read instructions stored in the memory to execute the method in any possible implementation of the first aspect.
[0054] Optionally, there are one or more processors and one or more memories.
[0055] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0056] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips respectively. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.
[0057] The terminal device in the third aspect mentioned above can be a chip, and the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.
[0058] In a fourth aspect, a computer program product is provided, the computer program product comprising: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute a method in any possible implementation of the first aspect.
[0059] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instructions) which, when executed on a computer, enables the computer to execute a method in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 is a schematic diagram of the structure of a terminal device according to an embodiment of the present application;
[0061] Figure 2 is a software structure block diagram of a terminal device in an embodiment of the present application;
[0062] Figure 3 is a schematic flow chart of a cover display method provided in an embodiment of the present application;
[0063] Figure 4is a schematic diagram of enlarging and cropping the first cover card image provided by an embodiment of the present application;
[0064] Figure 5 It is a diagram of the interface changes displayed on the album cover of a terminal device;
[0065] Figure 6 is a schematic flow chart of another cover display method provided in an embodiment of the present application;
[0066] Figure 7 This is a schematic diagram of the positional relationship between a face and a preset area provided in an embodiment of the present application;
[0067] Figure 8 is a schematic diagram of the positional relationship between another face and a preset area provided in an embodiment of the present application;
[0068] Fig. 9 is a schematic diagram of determining a cover card provided in an embodiment of the present application;
[0069] Fig.10 is a schematic block diagram of a terminal device provided in an embodiment of the present application;
[0070] Fig.11 It is a schematic block diagram of another terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0071] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0072] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
[0073] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0074] In addition, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.
[0075] In the embodiments of the present application, descriptions such as "when...", "in the case of...", "if" and "if" all mean that the device will make corresponding processing under certain objective circumstances. It does not limit the time, nor does it require the device to have a judgment action when implementing it, nor does it mean that there are other limitations.
[0076] In order to better understand the terminal device in the embodiment of the present application, Figure 1 The hardware structure of the terminal device in the embodiment of the present application is described in detail.
[0077] Figure 1 This is a schematic diagram of the structure of the terminal device 100 provided in the embodiment of the present application. Figure 1 As shown, the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0078] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0079] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0080] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0081] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0082] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0083] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the terminal device 100.
[0084] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0085] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0086] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0087] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the terminal device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the terminal device 100.
[0088] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0089] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transmit data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other terminal devices, such as AR devices, etc.
[0090] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0091] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the terminal device 100. While the charging management module 140 is charging the battery 142, it may also power the terminal device through the power management module 141.
[0092] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0093] The wireless communication function of the terminal device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0094] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0095] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0096] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0097] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the terminal device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0098] In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0099] The terminal device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0100] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0101] The terminal device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0102] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0103] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the terminal device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0104] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the terminal device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0105] Video codecs are used to compress or decompress digital videos. The terminal device 100 may support one or more video codecs. Thus, the terminal device 100 may play or record videos in various coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0106] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the terminal device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0107] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0108] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the terminal device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the terminal device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.
[0109] The terminal device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0110] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0111] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The terminal device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0112] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the terminal device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the ear.
[0113] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The terminal device 100 can be provided with at least one microphone 170C. In other embodiments, the terminal device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the terminal device 100 can also be provided with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, identification of sound sources, realization of directional recording function, etc.
[0114] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0115] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The terminal device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the terminal device 100 detects the touch operation intensity according to the pressure sensor 180A. The terminal device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0116] The gyroscope sensor 180B can be used to determine the motion posture of the terminal device 100. In some embodiments, the angular velocity of the terminal device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the terminal device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the terminal device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0117] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the terminal device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0118] The magnetic sensor 180D includes a Hall sensor. The terminal device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the terminal device 100 is a flip phone, the terminal device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover automatic unlocking and other features are set.
[0119] The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). When the terminal device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the terminal device and applied to applications such as horizontal and vertical screen switching and pedometers.
[0120] The distance sensor 180F is used to measure the distance. The terminal device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the terminal device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0121] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The terminal device 100 emits infrared light outward through the light emitting diode. The terminal device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal device 100. When insufficient reflected light is detected, the terminal device 100 can determine that there is no object near the terminal device 100. The terminal device 100 can use the proximity light sensor 180G to detect that the user holds the terminal device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, and pocket mode automatically unlocks and locks the screen.
[0122] The ambient light sensor 180L is used to sense the ambient light brightness. The terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the terminal device 100 is in a pocket to prevent accidental touch.
[0123] The fingerprint sensor 180H is used to collect fingerprints. The terminal device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.
[0124] The temperature sensor 180J is used to detect temperature. In some embodiments, the terminal device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the terminal device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the terminal device 100 heats the battery 142 to avoid abnormal shutdown of the terminal device 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the terminal device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0125] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the terminal device 100, which is different from the position of the display screen 194.
[0126] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0127] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The terminal device 100 may receive key input and generate key signal input related to user settings and function control of the terminal device 100.
[0128] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0129] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0130] The SIM card interface 195 is used to connect the SIM card. The SIM card can be connected to and separated from the terminal device 100 by inserting the SIM card interface 195 or pulling it out from the SIM card interface 195. The terminal device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to realize functions such as calls and data communications. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100. The software system of the terminal device 100 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the terminal device 100.
[0131] Figure 2 This is a software structure block diagram of the terminal device 100 according to an embodiment of the present application.
[0132] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0133] The application layer can include a series of application packages. Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, music, system settings, short message, etc.
[0134] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 2 As shown, the application framework layer may include a window identifier, a content provider, a view system, a phone manager, a resource manager, a notification manager, an input manager, a package manager, and the like.
[0135] The window identifier is used to store the flag status, create snapshots, and identify the user's gesture operation. The snapshot can be used to store information, such as the name of the installation package. The user's gesture operation can be identified, specifically, to determine whether the user's gesture operation is the same as the preset gesture operation.
[0136] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0137] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0138] The phone manager is used to provide communication functions of the terminal device 100, such as management of call status (including connection, disconnection, etc.).
[0139] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0140] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.
[0141] The package manager is used to manage the installation packages of various applications installed in the terminal device, such as installation packages of music, video, navigation and other applications.
[0142] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0143] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0144] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0145] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0146] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0147] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0148] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing.
[0149] A 2D graphics engine is a drawing engine for 2D drawings.
[0150] The kernel layer is a layer between hardware and software. The kernel layer is used to drive the hardware to make the hardware work. The kernel layer at least includes display driver, screen driver, graphics processing unit (GPU) driver, camera, and sensor driver, etc., which are not limited in the embodiments of the present application. For example, the screen driver can drive the screen to turn on or off.
[0151] With the development of electronic technology and terminal products, the usage rate of multimedia files such as pictures and videos in users' daily lives is increasing. Generally, a large number of multimedia files such as pictures and videos may be stored in terminal devices such as mobile phones, tablets, and personal computers (PCs).
[0152] The terminal device can divide a large number of pictures stored in the gallery into one or more albums according to the geographical location information and shooting time information of the photos. In the prior art, the terminal device usually uses a clearer picture in the album, or the first picture or the last picture in the album as the album cover. Among them, for one of the albums, the first picture of the album can be understood as the picture in the album whose shooting time (or the time saved to the local gallery) is farthest from the current time, and the last picture can be understood as the picture whose shooting time is closest to the current time.
[0153] However, the cover display effect generated by the above method is single, which may be difficult to highlight the content that the user expects to express through the cover, and the user experience is not high.
[0154] In order to solve the above problems, the present application provides a cover display method and terminal device, which displays a first cover card image and the label information of the first album at the first moment, and the portrait in the first cover card image does not block the label information of the first album; and displays a second cover card image and the label information of the first album at the second moment, and the second cover card image is obtained by cropping the first cover card image after proportionally enlarging it by a preset multiple, and the portrait in the second pair of cover card images blocks the preset area of the label information of the first album. In this way, the terminal device can dynamically display the cover of the first album, and after the dynamic change, the portrait in the second cover card image blocks the preset area of the label information of the first album, visually highlighting the portrait display effect of the second cover card, which is conducive to increasing the hierarchy of the cover display, facilitating the highlighting of the content that the user expects to express through the cover, and thus improving the user experience.
[0155] The following specific embodiments are used to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0156] Figure 3 3 is a schematic flow chart of a cover display method 300 provided in an embodiment of the present application. The hardware structure of the terminal device involved in the method 300 can be as follows: Figure 1 As shown, the software structure can be as follows Figure 2 shown.
[0157] S301, at a first moment, a terminal device displays a first interface, where the first interface includes a first cover card image of a first album and label information of the first album.
[0158] It should be understood that the first album includes multiple images, and the first album may be a photo collection including multiple photos, or may be a video (also referred to as a video album) generated by a terminal device based on multiple photos taken by a user. The first album may also be a video taken locally by a user or downloaded from a web page by a user, and the multiple images in the first album are multiple frames of images of the video. This application does not limit this.
[0159] In a possible implementation, the user can obtain the first photo album by shooting with a camera on the terminal device. The camera can be as follows: Figure 1 The first photo album may be a photo album in an application on the terminal device, and the application may be Figure 2 The terminal device displays the first interface by performing layer fusion of the portrait layer, background layer, and label information layer related to the first cover card image through the surface manager of the terminal device, and then sending the layer to the gallery application of the terminal device through the view system of the terminal device, and then displaying the layer on the terminal device through the gallery application. The surface manager and view system of the terminal device can be as follows: Figure 2 shown.
[0160] Specifically, the first cover card image is determined based on the first cover image of the first album, and the first cover card image includes a portrait in the first cover image. In the first interface, the portrait is located below the label information of the first album and does not block the label information of the first album. The first cover image satisfies a preset condition, and the preset condition includes: the number of portraits in the image is single, the face of the portrait in the image is located in a preset area of the image, and the area ratio in the image is within a preset range.
[0161] Optionally, the terminal device may obtain the first cover card image by the following method: based on the position of the portrait in the first cover image in the first cover card image and the size of the first cover card image, the first cover image is cropped to obtain the first cover card image.
[0162] Optionally, the tag information of the first album may include title information and time information of the first album.
[0163] Optionally, in the first interface, the time information is above the title information.
[0164] It should be understood that the title information of the first album (which can also be understood as the album name of the first album) can be automatically generated by the terminal device based on the album content, or can be created by the user, and this application does not limit this. The time information of the first album is the creation time or the last modification time of the first album.
[0165] Optionally, the display color of the label information of the first album can be intelligently selected according to the background color of the first cover card image. For example, the display color of the label information can be selected to be consistent with the background color tone of the image. The height value of the bottom of the label information box from the top of the first cover card image can be between 40 and 60db. The font of the label information is the system font.
[0166] S302, at a second moment, the terminal device displays a second interface, which includes a second cover card image of the first album and label information of the first album, and the second cover card image is obtained by cropping the first cover card image after enlarging it by a preset multiple.
[0167] Specifically, in the second interface, the portrait is located below the tag information of the first album and covers a preset portion of the tag information of the first album.
[0168] It should be understood that the preset portion can be set by the R&D personnel. Optionally, the preset portion can be 1 / 2 of the height of the label information box. For example, the preset portion of the label information of the first album can be the lower half of the label information of the first album, that is, the portrait blocks the lower half of the label information of the first album. Optionally, the preset portion can be 1 / 2 of the height of the title box in the label information, for example, the portrait blocks the lower half of the title box.
[0169] The cover display method provided by the present application is that the terminal device displays the first cover card image and the label information of the first album at the first moment, and the portrait in the first cover card image does not block the label information of the first album; and displays the second cover card image and the label information of the first album at the second moment, and the second cover card image is obtained by cropping the first cover card image after proportionally enlarging it by a preset multiple, and the portrait in the second pair of cover card images blocks the preset area of the label information of the first album. In this way, the terminal device can dynamically display the cover of the first album, and after the dynamic change, the portrait in the second cover card image blocks the preset area of the label information of the first album, visually highlighting the portrait display effect of the second cover card, which is conducive to increasing the hierarchy of the cover display, facilitating the highlighting of the content that the user expects to express through the cover, and thus improving the user experience.
[0170] Optionally, the terminal device can obtain the second cover card image through the following method: proportionally enlarging the first cover card image by a preset multiple with the face in the first cover card image as the center; taking the center of the first cover card image as the center of the second cover card, and cropping the enlarged first cover card image to the same size as the first cover card image to obtain the second cover card image.
[0171] It should be understood that equal-proportional magnification refers to magnifying the first cover image as a whole at the same ratio, rather than magnifying a partial image in the first cover image. Optionally, the preset magnification may be 1.2 times.
[0172] Specifically, there are many ways to implement proportionally enlarging the first cover card image by a preset multiple with the face in the first cover card image as the center, and this application does not limit this.
[0173] In a possible implementation, the terminal device may obtain the second cover card image by the following method: taking the nose key point of the face in the first cover card image as the center, proportionally enlarging the first cover card image by a preset multiple, and then cropping the area beyond the first cover card image after enlargement to obtain the second cover card image. The nose key point of the face in the first cover card image, the nose key point of the face in the enlarged first cover card image, and the nose key point of the face in the second cover card image overlap.
[0174] In another possible implementation, the terminal device may obtain the second cover card image by the following method: taking the midpoint of the face frame (the circumscribed frame of the face outline) in the first cover card image as the center, proportionally enlarging the first cover card image by a preset multiple, and then cropping the area that exceeds the first cover card image after enlargement to obtain the second cover card image. The midpoint of the face frame (the circumscribed frame of the face outline) in the first cover card image, the midpoint of the face frame (the circumscribed frame of the face outline) in the enlarged first cover card image, and the midpoint of the face frame (the circumscribed frame of the face outline) in the second cover card image coincide with each other.
[0175] For example, Figure 4 A schematic diagram of a method for obtaining a second cover card image based on a first cover card image is shown. Figure 4 a is the first cover card image, the large rectangle can be the frame of the first cover card image, the small rectangle can be the face frame in the first cover card image, and the solid circle is the center of the face frame. The first cover card image is enlarged with the solid circle as the center to obtain the enlarged first cover card image. The enlarged first cover card image is as shown in Figure 4 As shown in b, the dotted rectangle is the frame of the enlarged first cover card image, the dotted rectangle is the face frame of the enlarged face of the first cover card image, the solid circle is the center of the face frame, and the solid rectangle is the frame of the first cover card image. The solid circle in the first cover card image (i.e., the center of the face frame) is overlapped with the solid circle in the enlarged first cover card image (i.e., the center of the face frame). The enlarged first cover card image is cropped based on the frame of the first cover card image, and the cropped area is as shown in the shaded area to obtain Figure 4 The c shown is the second cover card image.
[0176] Optionally, in the first interface or the second interface, the label information is displayed in the center.
[0177] As an optional embodiment, displaying the first interface includes: displaying the first interface in response to a sliding operation of the user or a click operation of an album navigation icon, where the album navigation icon is used for the user to open an album list.
[0178] It should be understood that the album list includes at least one album. The album list includes the first album.
[0179] Specifically, when the terminal device currently displays an interface including an album navigation icon and the album list only includes the first album, after the user clicks the album navigation icon, the terminal device opens the album list and displays the cover of the first album. When the album list includes at least two albums and the terminal device currently displays the covers of other albums, based on the user's sliding operation, the terminal device displays the cover of the first album. The cover display of the first album is dynamically displayed, and the dynamic display process is: first display the first cover card image, then change from the first cover card image to the second cover card image, and finally display the second cover card image all the time.
[0180] As an optional embodiment, the above method also includes: at a third moment, displaying a third interface, the third interface including a third cover card image of the second album and label information of the second album, the third cover card image is determined based on the second cover image of the second album, and the second cover image does not meet the preset conditions.
[0181] It should be understood that the second album is similar to the first album, and will not be described in detail herein. The second cover image may be, for example, a landscape image, a multi-person image, or a person's back image.
[0182] By judging by preset conditions, the photo albums in the terminal device can be divided into two types: photo albums that meet the preset conditions and photo albums that do not meet the preset conditions. Different types of photo albums can be displayed in different cover styles, which is conducive to improving the diversity of album cover display.
[0183] Optionally, the label information of the second album includes title information and time information of the second album. The time information and title information can be distributed up and down, or left and right, and this application does not limit this. The label information of the second album can be located in a non-face area on the third cover card image, or the label information of the second album can be located in an area with a preset number of color types in the third cover card image. The display color of the label information of the second album can be intelligently selected according to the background of the image. For example, the display color of the label information can be selected in a color that is consistent with the background color tone of the image. The text of the label information of the second album can be an artistic font.
[0184] Optionally, the preset number can be set by the R&D personnel. For example, when the preset number is set to 1, the terminal device can display the label information of the second album in the solid color area of the third cover card image.
[0185] Optionally, the terminal device may crop (also referred to as recomposition) the second cover image based on major elements in the second cover image by one or more of the symmetry rule, diagonal rule, center rule, and rule of thirds to obtain a third cover card image.
[0186] Exemplarily, when the main element in the cover image is a portrait, the terminal device can, based on the rule of thirds, crop the second cover image by displaying the person in the second cover image in the lower 2 / 3 area of the third cover card image to obtain the third cover card image. When the main element in the third cover image is a bilaterally symmetrical building, the terminal device can, based on the rule of symmetry, crop the third cover image by displaying the building in the center of the third cover card image to obtain the third cover card image. When the main element in the second cover image is a stream, the terminal device can, based on the rule of diagonals, crop the second cover image by displaying the stream in the third cover image on the diagonal of the third cover card image to obtain the third cover card image.
[0187] Optionally, the terminal device displays a third interface in response to a user's sliding operation or a click operation on an album navigation icon, where the album navigation icon is used for the user to open an album list.
[0188] It should be understood that the album list includes at least one album. The album list includes the second album.
[0189] The following discusses the process of the terminal device displaying the third interface based on the user's operation in different situations.
[0190] Case 1: the terminal device currently displays an interface including an album navigation icon. After the user clicks the album navigation icon, the terminal device opens the album list and displays the cover of the second album (ie, the third interface).
[0191] Furthermore, the album list also includes the first album. The user slides the album from the second album to the first album by sliding in the album list, and the terminal device displays the cover of the first album. The cover display of the first album is dynamic, and the dynamic display process is: first display the first cover card image, then change from the first cover card image to the second cover card image, and finally display the second cover card image all the time.
[0192] Case 2: The user slides from other albums to the second album. The other album may be the first album, or an album other than the first album and the second album. In response to the user's sliding operation, the terminal device displays the cover of the second album (i.e., the third interface). The cover display of the second album is static.
[0193] Taking a mobile phone as an example, the following describes in detail the interface display change process in the cover display method provided in this application.
[0194] Figure 5 The following is a diagram showing the interface changes of a mobile phone's album cover display. Figure 5 In the interface a shown in the figure, the "Camera", "Contacts", "Phone", and "Message" application icons are displayed at the bottom of the interface, and the "Clock", "Calendar", "Gallery", and "Memo" application icons are displayed in the middle of the interface. After the user clicks the "Gallery" application icon, the mobile phone responds to the user's click operation, opens the gallery, and displays Figure 5 Interface b shown. Figure 5 In the interface b shown, the images in the gallery are displayed in chronological order. The interface includes all images saved "today" and some images saved "yesterday". The size of each image is the same, and three images are displayed in a row. The navigation icons of "Photos", "Albums", "Memories", and "Creations" and the corresponding navigation names are displayed at the bottom of the interface. Among them, the gallery content corresponding to the "Memories" navigation item is the album generated by the mobile phone after classifying the photos in the gallery. After the user clicks the icon of the "Memories" navigation item, the mobile phone responds to the user's click operation and the interface first displays Figure 5 The interface c shown in the figure then smoothly transitions from interface c to Figure 5 In the interface d shown, the smooth transition is a dynamic change process, and the dynamic effect is: the portrait and background in interface c gradually become larger, and after freezing, they appear as the portrait and background in interface d. Figure 5 In the interface c shown, the title "Memories" is displayed at the top of the interface, and a search box is displayed below the title. A rounded rectangular cover card (which can also be understood as the above-mentioned cover card image) is displayed below the search box. A front-facing portrait is displayed in the center of the cover card, and the title information "Time is like a dream" is displayed in the center above the portrait. The time information "July 12, 2022" is displayed above the title information, and the portrait does not block the title information. Figure 5 In the interface d shown, the "Memories" interface title bar is displayed at the top of the interface, and a search box is displayed below the interface title bar. A rounded rectangular cover card is displayed below the search box, with a portrait in the center of the cover card, and the title information "Time is like a dream" is displayed in the center above the portrait. The time information "July 12, 2022" is displayed above the title information, and the portrait covers 1 / 2 of the title information.
[0195] Optionally, in Figure 5 In the interface d shown, after the user swipes up on the cover card, the mobile phone responds to the user's swipe up operation and displays Figure 5 The interface shown is e. Figure 5 In the interface e shown, the "Memories" interface title bar is displayed at the top of the interface, and a search box is displayed below the interface title bar. A rounded rectangular cover card is displayed below the search box, and a side-sitting portrait of a person looking at a mobile phone is displayed in the center of the cover card. The title information "Fleeting Years" is displayed at the bottom of the portrait, and the time information "July 12, 2022" is displayed above the title information. The title information and time information are displayed in the upper layer at the bottom of the portrait.
[0196] Optionally, the user Figure 5 After clicking the icon of the "Memories" navigation item in the interface b shown, the mobile phone responds to the user's click operation and displays Figure 5 The interface shown is e.
[0197] Optionally, Figure 5 The original image of the album cover in the interface e shown does not meet the preset conditions. Figure 5 In the interface b shown, the user clicks the "Discover" icon (i.e., the album navigation icon), and the phone displays Figure 5 The interface e shown (that is, the third interface mentioned above) is shown. Figure 5 In the interface d shown, the user swipes up and the phone displays Figure 5 The interface shown is e.
[0198] Optionally, Figure 5 The original image of the album cover in the interface c shown meets the preset conditions. Figure 5 In the interface b shown, the user clicks the "Discover" icon (i.e., the album navigation icon), and the phone displays Figure 5 The interface c (i.e. the first interface) shown in the figure is then smoothly transitioned from the interface c to the display Figure 5 The interface d (i.e., the second interface) is shown. Figure 5 In the interface e shown, the user swipes up and the phone displays Figure 5 The interface c (i.e. the first interface) shown in the figure is then smoothly transitioned from the interface c to the display Figure 5 The interface d (ie the second interface) is shown.
[0199] As an optional embodiment, the above method also includes: based on the aesthetic scores of multiple second images in the second album and preset conditions, judging whether there is at least one second target image in the second album, and the at least one second target image satisfies the preset conditions; if the at least one second target image does not exist in the second album, determining the second cover image from the multiple second images.
[0200] It should be understood that the terminal device can score the multiple second images based on the aesthetic scoring rules to obtain the aesthetic scores of the multiple second images. This application does not limit the scoring rules for the aesthetic scoring.
[0201] Optionally, the terminal device selects the image with the highest aesthetic score among multiple second images as at least one second candidate image; determines whether there is at least one second target image that meets the above-mentioned preset conditions among the at least one second candidate image; if the at least one second target image does not exist among the at least one second candidate image, determines that the at least one second target image does not exist in the second album; and the terminal device determines a second cover image from the at least one second candidate image.
[0202] By screening the covers through aesthetic scoring, some blurry or poorly composed images can be filtered out, which is helpful to improve the quality of the screened cover images. Screening the covers through preset conditions is helpful to avoid the situation where the cover card images obtained by subsequent cropping based on the cover images do not meet the requirements.
[0203] Optionally, there are multiple at least one candidate image, and the image with the earliest time information among the at least one second candidate image is determined as the second cover image.
[0204] As an optional embodiment, the above method also includes: based on the aesthetic scores of multiple first images in the first album and preset conditions, judging whether there is at least one first target image in the first album, and the at least one first target image satisfies the above preset conditions; if the at least one first target image exists in the first album, determining the first cover image from the at least one first target image.
[0205] Optionally, an image with the highest aesthetic score among multiple first images is selected as at least one first candidate image; it is determined whether there is at least one first target image that meets the above-mentioned preset conditions in the at least one first candidate image; if there is at least one first target image in the at least one first candidate image, it is determined that the at least one first target image exists in the first album.
[0206] Optionally, there are multiple at least one first target image, and the image with the earliest time information among the at least one first target image is determined as the first cover image.
[0207] As an optional embodiment, the method further includes: cropping the first cover image based on the position of the portrait in the first cover image in the first cover card image and the size of the first cover card image to obtain the first cover card image.
[0208] Optionally, the eyes of the portrait in the first cover image are located at a preset position in the horizontal direction of the first cover card image, and the face frame of the portrait in the first cover image is located at a preset position in the vertical direction of the first cover card image.
[0209] It should be understood that the preset position of the first cover card image in the horizontal direction and the preset position of the first cover card image in the vertical direction can be preset by the R&D personnel. For example, the preset position of the first cover card image in the horizontal direction can be on the center line of the first cover card image in the horizontal direction. The preset position of the first cover card image in the vertical direction can be at 1 / 4 of the height from top to bottom of the first cover card image in the vertical direction.
[0210] By positioning the eyes of the portrait at preset positions in the horizontal direction and the vertical direction of the first cover card image, the portrait display area in the first cover card is determined, which helps to improve the aesthetics of the cover card image.
[0211] Next, from the perspective of internal judgment, combined with Figure 6 The cover display method of an embodiment of the present application is introduced in detail.
[0212] Figure 6 600 is a schematic flow chart of a cover display method 600 provided in an embodiment of the present application. The hardware structure of the terminal device involved in the method 600 can be as follows: Figure 1 As shown, the software structure can be as follows Figure 2 shown.
[0213] S601: The terminal device obtains multiple original images.
[0214] Specifically, the multiple original images may be multiple frames of images in a video stored on the terminal device. The video may be generated by the terminal device based on multiple photos taken by the user. It may also be a video taken locally by the user or downloaded from a web page by the user. The multiple original images may also be multiple images in an album on the terminal device.
[0215] S602: The terminal device performs aesthetic scoring on the multiple original images according to a preset aesthetic scoring rule.
[0216] S603: The terminal device selects an original image with the highest aesthetic score from multiple original images as a candidate image.
[0217] It should be understood that determining candidate images according to aesthetic scores may include a variety of situations.
[0218] Case 1: The number of images with the highest score is one, so the number of candidate images is one.
[0219] Case 2: There are multiple images with the highest scores, so there are multiple candidate images.
[0220] For example, there are 20 original images in the video, and the terminal device performs aesthetic scoring on the 20 original images. The aesthetic scores of landscape image A, single person image B, single person image C, and single person image D are all the highest score of 90 points, so the terminal device determines that landscape image A, single person image B, single person image C, and single person image D are all candidate images, and the number of candidate images is 4. When the aesthetic score of landscape image A is the highest score of 90 points, and the aesthetic scores of single person image B, single person image C, and single person image D are 89 points, the terminal device determines that landscape image A is a candidate image, and the number of candidate images is 1.
[0221] S604: The terminal device determines whether the number of candidate images is one.
[0222] When the number of candidate images is one, after S604 , the terminal device executes S605 ; when the number of candidate images is multiple, after S604 , the terminal device executes S613 .
[0223] S605: The terminal device uses the candidate image as the cover image.
[0224] S606: The terminal device determines whether the cover image is an image of a single person.
[0225] Specifically, the terminal device detects the number of portraits in the cover image, and if the number of portraits is one, it is determined that the cover image is a single-person image.
[0226] When the cover image is a single-person image, after S606 , the terminal device executes S607 ; when the cover image is not a single-person image, after S606 , the terminal device executes S611 .
[0227] S607, the terminal device performs face detection on the cover image, obtains the face position, and calculates the face area ratio of the cover image.
[0228] Specifically, the terminal device performs face detection on the cover image to obtain a face frame, which is an external frame of the face outline. The face position can be represented by the coordinates of a point at a preset position on the face frame, and the face area can be the area of the face frame. The face area ratio is the area ratio of the face in the cover image in the cover image.
[0229] Optionally, the face frame may be a circle, the face position may be represented by a circle point and coordinates of four points evenly distributed on the circumference, and the face area may be the area of the circle.
[0230] Optionally, the face frame may be a rectangle, the face position may be represented by the coordinates of four vertices of the rectangle, and the face area may be the area of the rectangle.
[0231] S608, the terminal device determines whether the cover image meets a preset condition, which is that the face position is within a preset area and the face area ratio is within a preset range.
[0232] Optionally, the face position in the preset area may be: the ratio of the overlapping area of the face frame and the preset area to the area of the face frame is greater than or equal to a preset threshold, for example, the preset threshold may be 80%.
[0233] Optionally, the preset range can be greater than or equal to the first preset threshold and less than or equal to the second preset threshold. For example, the preset range can be a closed interval [2%, 4%], that is, the face area accounts for greater than or equal to 2% and less than or equal to 4%.
[0234] It should be understood that the above-mentioned preset area can be set in a variety of ways.
[0235] In a possible implementation, the preset area may be the area of the center grid after the image is divided into a nine-grid grid. It should be understood that the nine-grid grid division means: the image is divided into nine equal parts by arranging two horizontal grid lines and two vertical grid lines in a "well" shape. The center grid of the nine-grid grid is a rectangular area formed by the four intersections of the two horizontal grid lines and the two vertical grid lines.
[0236] Figure 7 It is a schematic diagram of the positional relationship between a face and a preset area. Figure 7 As shown, the image is divided into nine-square grids, the shadow area is the preset area, and the overlapping area between the face frame and the preset area (ie, the shadow area) is greater than 80%, and it is determined that the face position is in the preset area.
[0237] In another possible implementation, the preset area may be a fixed area of the image. Optionally, the preset area may be: a horizontal grid line is drawn at 1 / 6 and 2 / 3 from top to bottom of the image in the vertical direction, a vertical grid line is drawn at 1 / 6 and 5 / 6 from left to right of the image in the horizontal direction, and a rectangular area is formed by four intersection points where two horizontal grid lines and two vertical grid lines intersect.
[0238] Figure 8 is a schematic diagram of the positional relationship between another face and the preset area. Figure 8 As shown in FIG. 1 , after the cover image is divided based on two horizontal grid lines (horizontal dotted lines) and two vertical grid lines (vertical dotted lines), the shaded area is the preset area. Figure 8As shown, the overlapping area between the face frame and the preset area (ie, the shadow area) is 100%, which is greater than the preset threshold of 80%, and it is determined that the face position is in the preset area.
[0239] When the cover image meets the preset condition, after S608, the terminal device executes S609; when the cover image does not meet the preset condition, after S608, the terminal device executes S611.
[0240] S609: The terminal device determines the cover card based on the size of the cover card and the display position of the person in the cover image in the cover card.
[0241] It should be understood that the cover card is an image of the entire or partial area of the cover image.
[0242] Optionally, the terminal device obtains the size of the cover card, detects the character in the cover image, crops the cover image based on the display position of the character in the cover card and the size of the cover card, and determines the cover card.
[0243] Optionally, the cover card may be rectangular, and the size of the cover card includes the horizontal length and vertical height of the cover card.
[0244] S610: The terminal device displays the cover card in a first preset style.
[0245] Specifically, the terminal device displays the cover card in the first preset style, which can be a dynamic display effect of smoothly transitioning from the first interface to the second interface in the above method 400. Exemplarily, the display style of the first preset style can be: Figure 5 The interface c shown transitions smoothly to Figure 5 The interface d shown in the figure is finally frozen. Figure 5 The dynamically changing style of interface d is shown.
[0246] S611: The terminal device determines the cover card based on the size of the cover card and the display positions of the main elements in the cover image in the cover card.
[0247] Optionally, the terminal device may determine the cover card by cropping the cover image based on the display position of the main elements in the cover card and the size of the cover card using one or more of the symmetry rule, the diagonal rule, the center rule, and the rule of thirds.
[0248] It should be understood that in this step, the main element in the cover image may be a single person, multiple people, or scenery in the image that does not meet the preset conditions.
[0249] Exemplarily, when the main element in the cover image is a single person portrait, the terminal device can crop the cover image based on the rule of thirds by displaying the person in the cover image in the lower 2 / 3 area of the cover card to obtain a cover card. When the main element in the cover image is a bilaterally symmetrical building, the terminal device can crop the cover image based on the rule of symmetry by displaying the building in the center of the cover card to obtain a cover card. When the main element in the cover image is a stream, the terminal device can crop the cover image based on the rule of diagonals by displaying the stream in the cover image on the diagonal line of the cover card to obtain a cover card.
[0250] S612: The terminal device displays the cover card in a second preset style.
[0251] Specifically, the second preset style is a static style. The cover card is displayed on the terminal device. The non-face area of the cover card displays label information. The label information includes time information and title information. The title information is above the time information.
[0252] Optionally, the font of the label information is an artistic font, and the color of the label information can be automatically selected according to the background color of the image.
[0253] Optionally, the label information is displayed in a location of the cover card where the image has less color. For example, the label information is displayed in a solid color area of the cover card.
[0254] It should be understood that the terminal device may display the cover card in the second preset style as the display effect of the third interface described above. Figure 5 The interface shown is e.
[0255] S613: The terminal device traverses and detects whether the multiple candidate images include a single person image.
[0256] When there is a single person image among the multiple candidate images, S614 is executed after S613 ; when there is no single person image among the multiple candidate images, S616 is executed after S613 .
[0257] S614, the terminal device performs face detection on each single person image, obtains the face position, and calculates the face area ratio of each single person image.
[0258] S615, the terminal device detects whether each single person image meets the above preset conditions, and determines whether the number of images meeting the preset conditions is 0, 1, or more.
[0259] When the number of images satisfying the preset condition is 0, after S615, the terminal device executes S616; when the number of images satisfying the preset condition is 1, after S615, the terminal device executes S609; when the number of images satisfying the preset condition is multiple, after S615, the terminal device executes S617.
[0260] S616: The terminal device obtains time information of the multiple candidate images, and selects the candidate image with the earliest time as the cover image.
[0261] It should be understood that each image includes time information. When the image is a local image, the time information of the image may be the moment when the terminal device takes the image; when the image is an image downloaded by the terminal device from a web page, the time of the image may be the moment when the terminal device downloads the image. This application does not impose any restrictions on this.
[0262] S617, the terminal device obtains time information of the multiple single-person images, and selects the single-person image with the earliest time as the cover image.
[0263] It should be understood that the order of execution of each process in the above method 600 does not mean the order of execution. The execution order of each process should be determined by its function and internal logic.
[0264] In the above S609, the terminal device crops the cover image and determines the cover card through the following multiple implementation methods. Fig. 9 It is a schematic diagram of determining a cover card provided in an embodiment of the present application.
[0265] In a first possible implementation, the terminal device identifies a face frame in the cover image, obtains the position of the face frame and the size of the cover card, and crops the cover image based on the size of the cover card in a manner such that the face frame is displayed at a preset height in the vertical direction of the cover card and is centered in the horizontal direction of the cover card to obtain a cover card.
[0266] For example, Fig. 9 As shown in a, the largest dotted rectangle is the cover image, the larger solid rectangle is the cover card, the smallest solid rectangle is the face frame, and the horizontal dotted line on the cover card is a horizontal auxiliary line of a preset height, which is 1 / 4 of the height of the cover card from top to bottom in the vertical direction. The vertical dotted line on the cover card is the centerline auxiliary line of the cover card in the horizontal direction. The terminal device crops the cover image based on the size of the cover card in such a way that the upper edge of the face frame is close to the horizontal auxiliary line of the preset height, and the centerline of the face frame in the horizontal direction coincides with the horizontal centerline auxiliary line of the cover card to obtain a cover card.
[0267] In a second possible implementation, the terminal device identifies the face frame and eyes in the cover image, obtains the position of the face frame and the size of the cover card, and crops the cover image based on the size of the cover card in a manner such that the face frame is displayed at a preset height in the vertical direction of the cover card and the eyes are located on the midline in the horizontal direction of the cover card to obtain a cover card.
[0268] Optionally, when the human eyes in the cover image include two eyes, the human eye position may be the midpoint of the line connecting the two eyes of the person; when the human eyes in the cover image include one eye, the human eye position may be the position of the one eye of the person.
[0269] For example, Fig. 9 As shown in b, the largest dotted rectangle is the cover image, the larger solid rectangle is the cover card, the smallest solid rectangle is the face frame, the two hollow circles in the face frame are the two eyes of the face, and the solid circle is the midpoint of the line connecting the two eyes, that is, the position of the eyes. The horizontal dotted line on the cover card is a horizontal auxiliary line of a preset height, and the preset height is 1 / 4 of the height of the cover card from top to bottom. The vertical dotted line on the cover card is the centerline auxiliary line of the cover card in the horizontal direction. The terminal device crops the cover image based on the size of the cover card in a manner such that the upper edge of the face frame is close to the horizontal auxiliary line of the preset height, and the eyes are located on the horizontal centerline auxiliary line of the cover card to obtain a cover card.
[0270] In a third possible implementation, the terminal device identifies the portrait frame in the cover image, obtains the position of the portrait frame and the size of the cover card, and crops the cover image based on the size of the cover card in a manner such that the portrait frame is at a preset height in the vertical direction of the cover card and the portrait frame is centered in the horizontal direction of the cover card to obtain a cover card.
[0271] For example, Fig. 9 As shown in c. The largest dotted rectangle is the cover image, the larger solid rectangle is the cover card, and the smallest solid rectangle is the portrait frame. The horizontal dotted line on the cover card is a horizontal auxiliary line of a preset height, and the preset height is 1 / 4 of the height of the cover card from top to bottom. The vertical dotted line on the cover card is the horizontal centerline auxiliary line of the cover card. The terminal device crops the cover image based on the size of the cover card to obtain a cover card in a manner such that the upper edge of the portrait frame is close to the horizontal auxiliary line of the preset height, and the horizontal centerline of the portrait frame coincides with the horizontal centerline auxiliary line of the cover card.
[0272] In a fourth possible implementation, the terminal device may first detect the posture of the portrait in the cover image. When the posture of the portrait is not correct, the terminal device identifies the face frame and eyes in the cover image, obtains the position of the face frame and the size of the cover card, and crops the cover image based on the size of the cover card in such a way that the portrait frame is located at a preset height in the vertical direction of the cover card and the position of the eyes is displayed at a preset position on the cover card to obtain the cover card. The preset position may be: the position on the two vertical grid lines after the cover card is divided into three equal parts based on the two vertical grid lines.
[0273] It should be understood that the incorrect posture of the portrait may be that the horizontal center line of the body frame of the portrait does not coincide with the horizontal center line of the face frame of the portrait.
[0274] For example, Fig. 9 As shown in d in . The largest dotted rectangle is the cover image, the larger solid rectangle is the cover card, the smallest solid rectangle is the face frame, the two hollow circles in the face frame are the two eyes of the face, and the solid circle is the midpoint of the line connecting the two eyes, that is, the eye position. The horizontal dotted line on the cover card is a horizontal auxiliary line of a preset height, and the preset height is 1 / 4 of the height of the cover card from top to bottom. The cover card includes two left and right vertical grid lines. The terminal device crops the cover image based on the size of the cover card in such a manner that the upper edge of the face frame is close to the horizontal auxiliary line of the preset height of the cover card, and the eye position is displayed on the right vertical grid line, or the upper edge of the face frame is close to the horizontal auxiliary line of the preset height, and the eye position is displayed on the left vertical grid line to obtain a cover card.
[0275] It should be understood that when the portrait's posture is such that the horizontal midline of the portrait's body frame is on the left of the horizontal midline of the portrait's face frame, the above-mentioned eye position is displayed on the right vertical grid line; when the portrait's posture is such that the horizontal midline of the portrait's body frame is on the right of the horizontal midline of the portrait's face frame, the above-mentioned eye position is displayed on the left vertical grid line.
[0276] It should be understood that the preset height of the cover card in the vertical direction may be set by R&D personnel.
[0277] Combination of the above Figures 3 to 9 , describes in detail the interface display method of the reading application in the embodiment of the present application, and will be combined with Fig.10 and Fig.11 , describe in detail the terminal device of an embodiment of the present application.
[0278] Fig.10 The terminal device 1000 provided in the embodiment of the present application includes: a display module 1001. The terminal device 1000 is used to implement the steps corresponding to the terminal device in the above method.
[0279] The display module 1001 is used to: at a first moment, display a first interface, the first interface includes a first cover card image of the first album and label information of the first album, the first cover card image is determined based on the first cover image of the first album, the first cover card image includes a portrait in the first cover image, in the first interface, the portrait is located below the label information of the first album and does not block the label information of the first album, the first cover image satisfies preset conditions, the preset conditions include: the number of portraits in the image is single, the face of the portrait in the image is located in a preset area of the image, and the area ratio in the image is within a preset range; at a second moment, display a second interface, the second interface includes a second cover card image of the first album and label information of the first album, the size of the first cover card image is the same as the size of the second cover card image, the second cover card image is obtained by cropping the first cover card image after enlarging it by a preset multiple, in the second interface, the portrait is located below the label information and blocks a preset part of the label information, and the second moment is later than the first moment.
[0280] Optionally, the display module 1001 is also used to: display a third interface at a third moment, the third interface including a third cover card image of the second album and label information of the second album, the third cover card image is determined based on the second cover image of the second album, and the second cover image does not meet the preset conditions.
[0281] Optionally, the terminal device further includes a processing module 1002, which is used to: based on the aesthetic scores of the plurality of second images in the second album and preset conditions, determine whether there is at least one second target image in the second album, and the at least one second target image satisfies the preset conditions; if there is no at least one second target image in the second album, determine the second cover image from the plurality of second images.
[0282] Optionally, the processing module 1002 is also used to: select the image with the highest aesthetic score among multiple second images as at least one second candidate image; determine whether there is at least one second target image that meets preset conditions in at least one second candidate image; if there is no at least one second target image in at least one second candidate image, determine that there is no at least one second target image in the second album; and determine a second cover image from at least one second candidate image.
[0283] Optionally, the number of at least one candidate image is multiple; the processing module 1002 is further used to: determine the image with the earliest time information among the at least one second candidate image as the second cover image.
[0284] Optionally, the display module 1001 is further used to: display the first interface in response to a user's sliding operation or a click operation on an album navigation icon, where the album navigation icon is used for the user to open an album list.
[0285] Optionally, the processing module 1002 is also used to: based on the aesthetic scores of multiple first images in the first album and preset conditions, determine whether there is at least one first target image in the first album, and at least one first target image meets the preset conditions; when there is at least one first target image in the first album, determine the first cover image from the at least one first target image.
[0286] Optionally, the processing module 1002 is also used to: select the image with the highest aesthetic score among multiple first images as at least one first candidate image; determine whether there is at least one first target image that meets preset conditions in at least one first candidate image; if there is at least one first target image in at least one first candidate image, determine that there is at least one first target image in the first album.
[0287] Optionally, there are multiple at least one first target image; the processing module 1002 is further used to: determine the image with the earliest time information among the at least one first target image as the first cover image.
[0288] Optionally, the processing module 1002 is further used to: crop the first cover image based on the position of the portrait in the first cover image in the first cover card image and the size of the first cover card image to obtain the first cover card image.
[0289] Optionally, the eyes of the portrait in the first cover image are located at a preset position in the horizontal direction of the first cover card image, and the face frame of the portrait in the first cover image is located at a preset position in the vertical direction of the first cover card image.
[0290] Optionally, the processing module 1002 is also used to: proportionally enlarge the first cover card image by a preset multiple with the face in the first cover card image as the center; take the center of the first cover card image as the center of the second cover card image, and crop the enlarged first cover card image to the same size as the first cover card image to obtain the second cover card image.
[0291] Optionally, the tag information includes title information and time information.
[0292] Optionally, in the first interface or the second interface, the label information is displayed in the center.
[0293] Optionally, in the first interface or the second interface, the time information is located above the title information.
[0294] It should be understood that the terminal device 1000 here is embodied in the form of a functional module. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit and / or other suitable components that support the described functions. In an optional example, those skilled in the art can understand that the terminal device 1000 can be specifically the terminal device in the above-mentioned embodiment, and the terminal device 1000 can be used to execute the various processes and / or steps corresponding to the terminal device in the above-mentioned method embodiment, and to avoid repetition, it will not be repeated here.
[0295] The terminal device 1000 has the function of implementing the corresponding steps executed by the terminal device in the above method; the above functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. For example, the display module 1001 can be used to implement the various steps and / or processes for executing the sending action corresponding to the display module. The processing module 1002 can be used to implement the various steps and / or processes for executing the sending action corresponding to the processing module.
[0296] In the embodiments of the present application, Fig.10 The terminal device 1000 in the embodiment may also be a chip or a chip system, such as a system on chip (SOC). Correspondingly, the display module 1001 may be a display circuit of the chip, which is not limited here.
[0297] Fig.11 Another terminal device 1100 provided in an embodiment of the present application is shown. The terminal device 1100 includes a processor 1101, a transceiver 1102, and a memory 1103. The processor 1101, the transceiver 1102, and the memory 1103 communicate with each other through an internal connection path, the memory 1103 is used to store instructions, and the processor 1101 is used to execute the instructions stored in the memory 1103 to control the transceiver 1102 to send signals and / or receive signals.
[0298] It should be understood that the terminal device 1100 can be specifically the terminal device in the above embodiment, and can be used to execute the various steps and / or processes corresponding to the terminal device in the above method embodiment. Optionally, the memory 1103 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A part of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type. The processor 1101 may be used to execute instructions stored in the memory, and when the processor 1101 executes the instructions stored in the memory, the processor 1101 is used to execute the various steps and / or processes of the above method embodiment corresponding to the terminal device. The transceiver 1102 may include a transmitter and a receiver, the transmitter may be used to implement the various steps and / or processes corresponding to the above transceiver for performing the sending action, and the receiver may be used to implement the various steps and / or processes corresponding to the above transceiver for performing the receiving action.
[0299] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0300] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0301] The present application also provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to implement the method corresponding to the terminal device in the above embodiment.
[0302] The present application also provides a computer program product, which includes a computer program (also referred to as code or instruction). When the computer program runs on a computer, the computer can execute the method corresponding to the terminal device shown in the above embodiment.
[0303] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0304] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0305] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0306] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0307] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0308] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0309] The above is only a specific implementation of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the embodiments of the present application, which should be included in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be based on the protection scope of the claims.
Claims
1. A cover display method, It is characterized in that Applied to a terminal device, the method comprises: At a first moment, a first interface is displayed, the first interface including a first cover card image of a first album and label information of the first album, the first cover card image is determined based on the first cover image of the first album, the first cover card image includes a portrait in the first cover image, in the first interface, the portrait is located below the label information of the first album and does not block the label information of the first album, the first cover image satisfies a preset condition, the preset condition including: the number of portraits in the image is single, the face of the portrait in the image is located in a preset area of the image, and the area ratio in the image is within a preset range; At the second moment, a second interface is displayed, the second interface including the second cover card image of the first album and the label information of the first album, the size of the first cover card image is the same as the size of the second cover card image, the second cover card image is obtained by magnifying the first cover card image by a preset multiple and cropping it, in the second interface, the portrait is located below the label information and covers a preset part of the label information, and the second moment is later than the first moment.
2. The method according to claim 1, It is characterized in that The method comprises: At a third moment, a third interface is displayed, wherein the third interface includes a third cover card image of the second album and label information of the second album, wherein the third cover card image is determined based on the second cover image of the second album, and the second cover image does not meet the preset condition.
3. The method according to claim 2, It is characterized in that The displaying of the third interface includes: In response to a user's sliding operation or a click operation on an album navigation icon, the third interface is displayed, and the album navigation icon is used for the user to open an album list.
4. The method according to claim 2 or 3, It is characterized in that The method further comprises: Based on the aesthetic scores of the plurality of second images in the second album and the preset condition, determining whether there is at least one second target image in the second album, the at least one second target image satisfying the preset condition; In a case where the at least one second target image does not exist in the second album, the second cover image is determined from the plurality of second images.
5. The method according to claim 4, It is characterized in that The determining whether there is at least one second target image in the second photo album includes: selecting an image having a highest aesthetic score among the plurality of second images as at least one second candidate image; Determining whether there is at least one second target image that meets the preset condition in the at least one second candidate image; If the at least one second target image does not exist in the at least one second candidate image, determining that the at least one second target image does not exist in the second album; The determining the second cover image from the plurality of second images comprises: The second cover image is determined from the at least one second candidate image.
6. The method according to claim 5, It is characterized in that The number of the at least one candidate image is multiple; The determining the second cover image from the at least one second candidate image comprises: The image with the earliest time information among the at least one second candidate image is determined as the second cover image.
7. The method according to any one of claims 1 to 6, It is characterized in that The displaying of the first interface includes: In response to a user's sliding operation or a click operation on an album navigation icon, the first interface is displayed, and the album navigation icon is used for the user to open an album list.
8. The method according to any one of claims 1 to 7, It is characterized in that The method further comprises: Based on the aesthetic scores of the plurality of first images in the first album and the preset condition, determining whether there is at least one first target image in the first album, the at least one first target image satisfying the preset condition; In a case where the at least one first target image exists in the first album, the first cover image is determined from the at least one first target image.
9. The method according to claim 8, It is characterized in that The determining whether there is at least one first target image in the first album includes: selecting an image having a highest aesthetic score among the plurality of first images as at least one first candidate image; Determining whether there is at least one first target image that meets the preset condition in the at least one first candidate image; If the at least one first target image exists in the at least one first candidate image, it is determined that the at least one first target image exists in the first album.
10. The method according to claim 9, It is characterized in that The number of the at least one first target image is multiple; The determining the first cover image from the at least one first target image comprises: An image with the earliest time information among the at least one first target image is determined as a first cover image.
11. The method according to any one of claims 1 to 10, It is characterized in that The method further comprises: Based on the position of the portrait in the first cover image in the first cover card image and the size of the first cover card image, the first cover image is cropped to obtain the first cover card image.
12. The method according to claim 11, It is characterized in that The eyes of the portrait in the first cover image are located at a preset position in the horizontal direction of the first cover card image, and the face frame of the portrait in the first cover image is located at a preset position in the vertical direction of the first cover card image.
13. The method according to any one of claims 1 to 12, It is characterized in that The method further comprises: Enlarging the first cover card image by the preset multiple in equal proportion with the face of the person in the first cover card image as the center; The center of the first cover card image is taken as the center of the second cover card image, and the enlarged first cover card image is cropped to the same size as the first cover card image to obtain the second cover card image.
14. The method according to any one of claims 1 to 13, It is characterized in that The tag information includes title information and time information.
15. The method according to claim 14, It is characterized in that In the first interface or the second interface, the label information is displayed in the center.
16. The method according to claim 14 or 15, It is characterized in that In the first interface or the second interface, the time information is located above the title information.
17. A terminal device, It is characterized in that include: A processor, wherein the processor is coupled to a memory, wherein the memory is used to store a computer program, and when the processor calls the computer program, the terminal device executes the method according to any one of claims 1 to 16.
18. A computer-readable storage medium, It is characterized in that Used to store a computer program, the computer program comprising instructions for implementing the method according to any one of claims 1 to 16.
19. A computer program product, It is characterized in that The computer program product includes a computer program code, and when the computer program code is executed on a computer, the computer is enabled to implement the method according to any one of claims 1 to 16.
