Data processing method and device, equipment, medium and product

By performing color recognition and classification on the cover images of candidate songs in user listening behavior data, personalized target pages are generated, solving the problem of low personalization of user behavior profiles and achieving improved visual effects and intuitive content display.

CN122019829APending Publication Date: 2026-05-12HANGZHOU NETEASE CLOUD MUSIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HANGZHOU NETEASE CLOUD MUSIC TECH CO LTD
Filing Date
2025-12-24
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

User behavior profiles are not highly personalized and have poor visual effects. The image elements in existing music listening reports are irrelevant to user behavior and cannot enhance visual memorability.

Method used

By performing color recognition and classification on the cover images of candidate songs in user listening behavior data, the target color category is determined, and a target page that conforms to the characteristics of the color category is generated. Combined with the cover image and text of the target song, a personalized target page is generated.

Benefits of technology

It improves the visual appeal of user listening behavior profiles, generates highly visually impactful personalized pages, and displays content more intuitively, reflecting user behavior characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122019829A_ABST
    Figure CN122019829A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and discloses a data processing method and device, equipment, a medium and a product, and the method comprises the steps: determining a plurality of candidate songs according to the song listening behavior data of a user within a preset time period; according to the cover image of each candidate song, determining a color category corresponding to each candidate song; selecting a target color category from the color categories corresponding to the candidate songs; determining a target song contained in the target color category; and generating a target page corresponding to the target color category according to the cover image of each target song. The song listening behavior preference of the user and the color of the cover image are aggregated, the user color portrait with strong visual impact can be generated, the visual effect is good, and the displayed content is more visual.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, specifically to data processing methods, apparatus, equipment, media, and products. Background Technology

[0002] With the continuous development of computer technology, users can play music on mobile devices, personal computers, and other terminal devices; for example, they can play music through music players (music applications) or browsers installed on these devices. Furthermore, music content service providers offer user behavior reporting functions, such as annual listening reports, which can transform abstract user listening behavior data into more concrete listening reports. This not only enriches personalized services for users but also allows users to share listening reports, facilitating content dissemination.

[0003] The music listening report mainly includes statistical results of user behavior data, presented in text form. Some music listening reports may also include visual image elements, but these image elements are fixed and unrelated to the user's actual behavior. This results in a low degree of personalization of the user behavior profile in the music listening report, poor visual effects, and an inability to strengthen visual memorability. Summary of the Invention

[0004] In view of this, this application provides a data processing method, apparatus, device, medium and product to solve the problems of low personalization and poor visual effect of user behavior profiles.

[0005] In a first aspect, this application provides a data processing method, the method comprising: Multiple candidate songs are determined based on the user's listening behavior data within a preset time period; Based on the cover image of each candidate song, determine the color category corresponding to each candidate song; Select the target color category from the color categories corresponding to each of the candidate songs; Identify the target songs contained within the target color category; Generate the target page corresponding to the target color category based on the cover image of each target song.

[0006] In some optional implementations, determining the target color category based on the number of candidate songs corresponding to each color category includes: Determine the maximum number of candidate songs; If the maximum number of candidate songs does not meet the preset quantity condition, all color categories corresponding to each candidate song will be used as the target color category.

[0007] In some optional implementations, generating the target page corresponding to the target color category based on the cover image of each target song includes: Determine the target text corresponding to the target color category; Based on the target text and the cover images of each target song, generate the target page corresponding to the target color category.

[0008] In some optional implementations, determining the target text corresponding to the target color category includes: Based on the correspondence between color categories and text, the target text corresponding to the target color category is determined; the text in the correspondence is text related to emotion and / or music style determined based on the corresponding color category.

[0009] In some optional implementations, generating the target page corresponding to the target color category based on the cover image of each target song includes: Match the target instrument based on the song information of each target song; Generate target text based on the song information and the target instrument; Based on the target text and the cover images of each target song, generate the target page corresponding to the target color category.

[0010] In some optional implementations, generating the target page corresponding to the target color category based on the cover image of each target song includes: Determine the target pattern corresponding to the target color category; Based on the target pattern and the cover images of each target song, a target page corresponding to the target color category is generated.

[0011] In some optional implementations, generating the target page corresponding to the target color category based on the cover image of each target song includes: Determine a second preset number of target cover images; the target cover images include the cover images corresponding to the target song; Arrange the second preset number of target cover images according to a preset arrangement to generate a target image containing the second preset number of target cover images; Generate a target page corresponding to the target color category based on the target image.

[0012] In some optional implementations, determining the second preset number of target cover images includes: If the number of target songs is greater than or equal to the second preset number, select the second preset number of target cover images from the cover images of each target song; If the number of target songs is greater than or equal to a first preset number and less than a second preset number, the cover images of the first number of target songs are copied to generate corresponding copied images; the first number of copied images and the cover images of each of the target songs are used as the target cover images of the second preset number; the first number is the difference between the second preset number and the number of target songs; If the number of target songs is less than the first preset number, a second number of candidate song cover images are determined from candidate songs corresponding to other color categories adjacent to the target color category; the cover images of the second number of candidate songs and the cover images of each of the target songs are used as the second preset number of target cover images; the second number is the difference between the second preset number and the number of target songs.

[0013] In some optional implementations, generating the target page corresponding to the target color category based on the cover image of each target song further includes: For any target cover image, determine the primary color corresponding to the target cover image; the primary color is the color in the target cover image that belongs to the color category corresponding to the target cover image and has the largest number of pixels; or, the primary color is the color corresponding to the color category of the target cover image. Fill the outer region corresponding to the target cover image with the main color of the target cover image to generate an extended image containing the target cover image and the corresponding outer region; The step of arranging the second preset number of target cover images according to a preset arrangement includes: arranging the extended images corresponding to the second preset number of target cover images according to a preset arrangement.

[0014] Secondly, this application provides a data processing apparatus, the apparatus comprising: The song selection module is used to determine multiple candidate songs based on the user's listening behavior data within a preset time period; The color classification module is used to determine the color category of each candidate song based on the cover image of each candidate song. The processing module is used to select a target color category from the color categories corresponding to each of the candidate songs; and to determine the target songs contained in the target color category. The generation module is used to generate a target page corresponding to the target color category based on the cover image of each target song.

[0015] Thirdly, this application provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the data processing method described in the first aspect or any corresponding embodiment.

[0016] Fourthly, this application provides a computer-readable storage medium storing computer instructions for causing a computer to perform the data processing method described in the first aspect or any corresponding embodiment.

[0017] Fifthly, this application provides a computer program product, including computer instructions for causing a computer to execute the data processing method described in the first aspect or any corresponding embodiment thereof.

[0018] The data processing method provided in this application embodiment identifies and classifies the color of the cover images of candidate songs related to user listening behavior, determines the color category corresponding to each candidate song, and identifies the target color category. Then, it can combine the cover images of songs corresponding to the target color category to generate a target page that conforms to the characteristics of that target color category. This embodiment aggregates user listening behavior preferences with the colors of cover images, generating a visually impactful user color profile with better visual effects and more intuitive content display. Furthermore, it can determine the corresponding target songs for different users, thereby generating target pages that match their behavioral characteristics for each user, achieving a color-driven personalized page. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0020] Figure 1 This is a schematic diagram illustrating an application scenario according to an embodiment of this application; Figure 2 This is a schematic flowchart of a first type of data processing method according to an embodiment of this application; Figure 3 This is a schematic diagram showing a page according to an embodiment of this application; Figure 4 This is another schematic diagram showing a page according to an embodiment of this application; Figure 5This is a schematic diagram of a second type of data processing method according to an embodiment of this application; Figure 6 This is a schematic diagram of a third data processing method according to an embodiment of this application; Figure 7 This is a schematic diagram of a monochrome target page according to an embodiment of this application; Figure 8 This is a schematic diagram of a color mode target page according to an embodiment of this application; Figure 9 This is a structural block diagram of a data processing apparatus according to an embodiment of this application; Figure 10 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0022] It is understood that before using the technical solutions disclosed in the various embodiments of this application, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this application in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0023] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0024] As one optional application scenario in the embodiments of this application, such as Figure 1 As shown, application 101 is installed in terminal device 110, and user 130 can interact with application 101 through terminal device 110 and / or access device of terminal device 110.

[0025] For example, application 101 can be any application, such as a music application or a browser that supports online music playback. Figure 1In the application scenario shown, if application 101 is active, the terminal device 110 can display the interface 102 of application 101. The interface 102 may include various pages that application 101 can provide, such as interactive pages, settings pages, query pages, etc.

[0026] In some embodiments, terminal device 110 is communicatively connected to server 120 to provide services to application 101. Terminal device 110 may be a mobile terminal, fixed terminal, or portable terminal, including but not limited to mobile phones, desktop computers, laptop computers, multimedia tablets, e-book devices, gaming devices, or any combination thereof, including accessories and peripherals of these devices or any combination thereof. In some embodiments, terminal device 110 may also support any type of interface, and server 120 may be various types of computing systems or servers capable of providing computing power, including but not limited to mainframes, edge computing nodes, and computing devices in cloud environments.

[0027] It should be noted that, Figure 1 This is merely an example of an application scenario and does not limit the scope of protection of this application. The embodiments of this application will be described below with reference to the accompanying drawings. It should be understood that the page shown in the drawings is merely an example, and various page designs are possible in practice. The various graphic elements on the page can have different arrangements and different visual representations, one or more elements can be omitted or replaced, and one or more other elements may also be present; no limitations are made in the embodiments of this application. Furthermore, the embodiments are mainly described below with reference to terminal device 110. It should be understood that the actions described relative to terminal device 110 can be performed by application 101 on terminal device 110, or can be performed by application 101 in conjunction with its server (e.g., server 120).

[0028] According to an embodiment of this application, a data processing method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0029] This embodiment provides a data processing method that can be used in the aforementioned terminal devices, such as mobile terminals, and can also be applied to servers. Figure 2 This is a flowchart of a data processing method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps.

[0030] Step S201: Determine multiple candidate songs based on the user's listening behavior data within a preset time period.

[0031] In this embodiment, when there is a need to display a page related to a user's music listening behavior, a corresponding page can be generated based on the user's music listening behavior data. This page can be pre-generated and displayed directly on the user's terminal device when the user requests it, or it can be generated and displayed on the user's terminal device when the user initiates the display action. For example, this page could be a section from the user's annual music listening report.

[0032] In this embodiment, a color-related page will be generated based on the user's music listening behavior data to improve the visual display effect. For ease of description, the page generated in this embodiment will be referred to as the target page, which can be used as a page in the music listening report.

[0033] Specifically, it can obtain user listening behavior data within a preset time period. For example, if an annual report needs to be generated for the user, the preset time period is the time period corresponding to the corresponding year; if a monthly report needs to be generated for the user, the preset time period is the time period corresponding to the corresponding month.

[0034] The music listening behavior data records information related to the user's music listening behavior, such as the name of the song the user listened to, the time, etc. In this embodiment, the music listening behavior data may also include the cover image of the song being listened to, for use in generating the target page later.

[0035] Since users may listen to a large number of songs within a preset time period, a portion of these songs can be selected as candidate songs to be processed, thus reducing the processing load. Of course, in cases where the number of songs listened to is small, all songs listened to by the user within the preset time period can be selected as candidate songs.

[0036] Step S202: Determine the color category corresponding to each candidate song based on the cover image of each candidate song.

[0037] In this embodiment, each music platform can provide cover images for each song. For each candidate song, a corresponding cover image can be determined. For example, the corresponding cover image can be obtained from listening behavior data, or the identifier (e.g., name, ID, etc.) of the candidate song can be obtained from the listening behavior data, and the corresponding cover image can be obtained from a preset cover image library based on the identifier of the candidate song. This cover image library records the cover images of each song.

[0038] For any candidate song, color recognition can be performed on the cover image of the candidate song to extract its color information, and the color category corresponding to the candidate song can be determined based on this.

[0039] Specifically, multiple color categories are pre-set, and each color category corresponds to a certain color range. This can determine which color range the cover image of a candidate song falls into, and the color category corresponding to that color range is the color category to which the candidate song belongs.

[0040] Step S203: Select the target color category from the color categories corresponding to each candidate song.

[0041] Since the cover images of user-selected songs vary widely and may fall into different color ranges, each candidate song may correspond to multiple color categories. The desired color category, or target color category, can be selected from these. For example, some color categories can be used as the target color categories for subsequent display.

[0042] The number of target color categories can be one or more, depending on the actual situation.

[0043] Step S204: Determine the target songs contained in the target color category.

[0044] For each identified target color category, there are corresponding candidate songs. Some or all of these candidate songs can be used to generate the page. For ease of distinction and description, the candidate songs corresponding to the target color category are referred to as the target songs. Once the target color category is determined, the corresponding target songs can be identified.

[0045] Step S205: Generate the target page corresponding to the target color category based on the cover image of each target song.

[0046] In this embodiment, for each target song in the target color category, its cover image corresponds to the target color category. For example, the main area of ​​the cover image of a target song matches the target color category. Therefore, the page generated based on the cover image of each target song corresponds to the target color category, and this page can be used as the desired target page. This target page can represent the user's listening behavior profile by displaying the cover image, resulting in a better visual effect.

[0047] For example, the target page contains cover images of each target song. Alternatively, the background color of the target page can be determined based on the target color category. This background color can be a simple color or a background image corresponding to the target color category. The desired target page is generated by combining this background image with the cover images of each target song.

[0048] The target page can be displayed to the user. For example, in response to a user-initiated page display action, the target page can be displayed in a graphical user interface. This page display action could be a user-initiated click to view an annual music listening report.

[0049] Figure 3 This is a schematic diagram of a page display. For example... Figure 3 As shown, this page can be the target page, which includes multiple cover images 301. It can be understood that cover image 301 is the cover image of the target song. Figure 3 In the process, the cover images of each target song can be arranged according to a preset template.

[0050] Figure 4 This shows another illustration of the page display. (For example...) Figure 4 As shown, this page can also be a target page, which includes multiple cover images 401. These cover images 401 can be displayed in a carousel format. Alternatively, Figure 4 The page shown could also be another page, such as a landing page preceding the target page, in which case... Figure 4 The cover image 401 on the page shown can be the cover of a candidate song.

[0051] The data processing method provided in this embodiment identifies and classifies the color of the cover images of candidate songs related to user listening behavior, determines the color category corresponding to each candidate song, and identifies the target color category. Then, by combining the cover images of songs corresponding to the target color category, a target page that conforms to the characteristics of that target color category can be generated. This embodiment aggregates user listening behavior preferences with the colors of cover images, generating a visually impactful user color profile with better visual effects and more intuitive content display. Furthermore, for different users, corresponding target songs can be identified, thereby generating target pages that match the behavioral characteristics of each user, achieving a color-driven personalized page.

[0052] This embodiment provides a data processing method that can be used in the aforementioned terminal devices, such as mobile terminals, and can also be applied to servers. Figure 5 This is a flowchart of a data processing method according to an embodiment of this application, such as... Figure 5 As shown, the process includes the following steps.

[0053] Step S501: Determine multiple candidate songs based on the user's listening behavior data within a preset time period. For details, please refer to [link to relevant documentation]. Figure 2 Step S201 of the illustrated embodiment will not be described again here.

[0054] In some optional implementations, step S501, "determining multiple candidate songs based on the user's listening behavior data within a preset time period," may include: determining the number of interactions for each song based on the user's listening behavior data within a preset time period; and selecting multiple songs whose number of interactions meets preset interaction conditions as candidate songs.

[0055] In this embodiment, the user's listening behavior data may include one or more interactive behaviors, such as playing a song, commenting on a song, or sharing a song. For each interactive behavior, the number of interactions for each song can be determined, such as the number of plays, comments, and shares.

[0056] Furthermore, interaction conditions are preset. If the number of interactions with a song meets the preset conditions, the song can be selected as a candidate song.

[0057] This embodiment primarily uses playback behavior statistics, specifically determining the number of times a user plays each song within a preset time period. Furthermore, the songs with the most plays are selected as candidate songs. For example, if 100 candidate songs are needed, the top 100 songs by play count can be used; that is, songs are sorted by play count, and the top 100 songs are selected as candidate songs.

[0058] In this embodiment, songs whose number of interactions meets the preset interaction conditions can more accurately represent the user's listening behavior and can initially filter out invalid songs that have only been listened to once.

[0059] Step S502: Determine the color category for each candidate song based on its cover image. For details, please refer to [link to details]. Figure 2 Step S202 of the illustrated embodiment will not be described again here.

[0060] In some optional implementations, step S502, "determining the color category corresponding to each candidate song based on the cover image of each candidate song", may include: determining the color of each pixel in the cover image of the candidate song; clustering each pixel into a preset number of color categories based on the color of each pixel; and taking the color category with the most pixels as the color category corresponding to the candidate song.

[0061] In this embodiment, multiple color categories are preset, and corresponding color ranges are set for each color category. For example, color categories may include: black, white, red, yellow, green, cyan, blue, purple, pink, and other categories.

[0062] For any candidate song's cover image, pixel-level color analysis can be performed to determine the color of each pixel. By clustering the colors of each pixel, the color category with the most pixels can be determined, and this color category can be used as the color category corresponding to the candidate song.

[0063] For example, the color histogram of the cover image can be determined, which can represent the number of pixels corresponding to each color value (e.g., RGB value); and based on the color category corresponding to each color value, the number of pixels under each color category can be counted, and finally the color category with the most pixels can be determined.

[0064] For example, for the color category of blue, since the RGB value of standard blue is (0,0,255), RGB values ​​within a certain range can be used as the blue color category. For example, pixels with RGB values ​​(R value, i.e., red component) between 0 and 40, G value (i.e. green component) between 0 and 40, and B value (i.e. blue component) between 200 and 255 are all considered as pixels belonging to the blue color category. Thus, colors such as dark blue and light blue can be clustered into the blue color category.

[0065] Step S503: Select the target color category from the color categories corresponding to each candidate song.

[0066] Specifically, step S503, "selecting the target color category from the color categories corresponding to each candidate song", may include steps S5031 to S5032.

[0067] Step S5031: Statistically analyze each candidate song according to its color category to determine the number of candidate songs corresponding to each color category.

[0068] Step S5032: Determine the target color category based on the number of candidate songs corresponding to each color category.

[0069] In this embodiment, after determining the color category of each candidate song, since the number of color categories is relatively small, statistics can be performed based on the color categories of each candidate song to determine the number of candidate songs under each color category. The more candidate songs there are, the more important the corresponding color category is. Therefore, the required color category, i.e., the target color category, can be determined based on the number of candidate songs corresponding to each color category. For example, the target color category can at least include the color category corresponding to the maximum number of candidate songs.

[0070] In some optional implementations, step S5032, "determine the target color category based on the number of candidate songs corresponding to each color category", may include steps a1 to a2.

[0071] Step a1: Determine the maximum number of candidate songs.

[0072] Step a2: If the maximum number of candidate songs meets the preset quantity condition, determine the target color category based on the color category corresponding to the maximum number of candidate songs.

[0073] Similarly, step S5032, "determine the target color category based on the number of candidate songs corresponding to each color category", may also include steps b1 to b2.

[0074] Step b1: Determine the maximum number of candidate songs.

[0075] Step b2: If the maximum number of candidate songs does not meet the preset quantity condition, all color categories corresponding to each candidate song are taken as the target color category.

[0076] In this embodiment, during the process of determining the target color category, as shown in steps a1 and b1, the number of candidate songs corresponding to various color categories can be compared to determine the maximum number of candidate songs. If multiple color categories have the same maximum number of candidate songs, then the number of candidate songs in one color category can be selected (e.g., randomly selected) as the maximum number of candidate songs. For ease of subsequent description, the color category corresponding to this maximum number of candidate songs is referred to as the "maximum color category".

[0077] A preset condition for selecting the target color category is established, namely a preset quantity condition, which is related to the maximum number of candidate songs. If the maximum number of candidate songs meets the preset quantity condition, it means that the cover image corresponding to the maximum color category can represent the user behavior profile relatively completely. Therefore, as shown in step a2, the target color category can be determined based on the maximum color category; for example, the color category corresponding to the maximum number of candidate songs (i.e., the maximum color category) is taken as the target color category.

[0078] Conversely, if the maximum number of candidate songs does not meet the preset quantity condition, then relying solely on the maximum color category may not be sufficient to reflect the user's listening behavior. Therefore, as shown in step b2, all color categories corresponding to each candidate song are used as target color categories. For example, if the determined candidate songs involve five color categories, then all five color categories are used as target color categories for subsequent use.

[0079] Optionally, the preset quantity condition includes the following condition one and / or condition two.

[0080] Condition 1: The maximum number of candidate songs is greater than the first preset number; wherein, when the maximum number of candidate songs meets the preset number condition, the target color category includes the color category corresponding to the maximum number of candidate songs.

[0081] Condition 2: The maximum number of candidate songs is less than the first preset number, and the sum of the maximum number of candidate songs and the number of adjacent candidate songs is greater than the second preset number, and the second preset number is greater than or equal to the first preset number; wherein, the number of adjacent candidate songs is the number of candidate songs corresponding to other color categories adjacent to the color category corresponding to the maximum number of candidate songs; when the maximum number of candidate songs meets the preset number condition, the target color category includes the color category corresponding to the maximum number of candidate songs and the color category corresponding to the number of adjacent candidate songs.

[0082] In this embodiment, the preset quantity condition may only include condition one, that is, a first preset quantity is preset. By comparing the size relationship between the maximum number of candidate songs and the first preset quantity, it can be determined whether the target color category is determined based on step a2 or step b2. Furthermore, if the maximum number of candidate songs is greater than the first preset quantity, it meets the preset quantity condition, and the color category corresponding to the maximum number of candidate songs (i.e., the maximum color category) is taken as the target color category. For example, the target color category may only include the maximum color category.

[0083] Alternatively, the preset quantity condition may include condition one and condition two. As long as the maximum number of candidate songs meets either condition one or condition two, it is determined that it meets the preset quantity condition.

[0084] Specifically, if the maximum number of candidate songs is less than a first preset number, other color categories adjacent to the color category corresponding to the maximum number of candidate songs are further determined. For each adjacent color category, the number of candidate songs corresponding to it can also be determined, i.e., the number of adjacent candidate songs. Furthermore, the sum of the maximum number of candidate songs and the number of adjacent candidate songs is calculated. If the sum of the two is greater than a second preset number, it means that when generating the target page subsequently, a sufficient number of cover images can be selected from the target color category and other adjacent color categories. Therefore, the maximum number of candidate songs can also be considered to meet the preset number condition.

[0085] The second preset quantity is greater than or equal to the first preset quantity. For example, the second preset quantity is greater than the first preset quantity. In this embodiment, the second preset quantity can specifically be the number of song covers to be displayed on the target page. For example, if the target page needs to display 35 cover images, then the second preset quantity can be set to 35.

[0086] In this embodiment, the adjacency of color categories can be determined by whether their corresponding hue ranges are adjacent. Hue represents color information, specifically the position of the color within the spectrum. This parameter can be represented by an angle, ranging from 0° to 360°. For example, starting from red and counting counter-clockwise, red is 0°, green is 120°, blue is 240°, and so on.

[0087] For example, if the color categories specifically include black, white, red, yellow, green, cyan, blue, purple, and pink, then black and white are adjacent color categories. For other colors, their respective hue ranges are set. For example, the hue range for red is [0-12], (320-360], the hue range for yellow is (12-60), and the hue range for pink is (300-320), etc. Furthermore, the order of the hues is: red, yellow, green, cyan, blue, purple, pink. That is, the adjacent color categories for red include yellow and pink, the adjacent color categories for yellow include red and green, the adjacent color categories for green include yellow and cyan, and so on.

[0088] In this embodiment, when the second preset quantity meets the above condition two, only the color category corresponding to the maximum number of candidate songs can be used as the target color category, or adjacent color categories can also be used as the target color category. This embodiment does not limit this.

[0089] Step S504: Determine the target songs contained in the target color category. See details below. Figure 2 Step S204 of the illustrated embodiment will not be described again here.

[0090] Step S505: Generate the target page corresponding to the target color category based on the cover image of each target song. For details, please refer to [link / reference]. Figure 2 Step S205 of the illustrated embodiment will not be described again here.

[0091] In some optional implementations, step S505, "generating a target page corresponding to the target color category based on the cover image of each target song," may include steps c1 to c2.

[0092] Step c1: Determine the target text corresponding to the target color category.

[0093] In this embodiment, corresponding text is provided for each color category; after determining the target color category, the appropriate target text can be determined.

[0094] Optionally, step c1, "determine the target text corresponding to the target color category", may include: determining the target text corresponding to the target color category based on the correspondence between color categories and text; the text in the correspondence is text related to mood and / or music style determined based on the corresponding color category.

[0095] Specifically, for any color category, corresponding text can be pre-generated, and this text is related to the corresponding mood and / or music style. For each color category, one or more pieces of text can be generated, and a correspondence between color categories and text can be established to form a corresponding text library. After determining the target color category, suitable target text can be determined based on this text library.

[0096] It should be noted that if there are multiple target color categories, such as in step b2 where all the color categories corresponding to each candidate song are taken as target color categories, then the target copy determined at this time is the copy corresponding to multiple colors, such as the copy corresponding to a color.

[0097] In this embodiment, text is pre-generated based on emotional characteristics, musical personality, etc., and the selected target text conforms to the user's color preferences, so that the target text can comprehensively describe the user's color preferences, emotional characteristics, musical personality, etc.; subsequently, a target page containing the target text can be generated, so that the target page is both visually impactful and can convey emotional and personalized information.

[0098] Step c2: Based on the target text and the cover images of each target song, generate the target page corresponding to the target color category.

[0099] In this embodiment, when generating the target page, the target text and various cover images are combined to generate the target page, so that the target page can contain richer information.

[0100] by Figure 3 For example, if the target color category is "blue," the target text could be, "Blue dominates your musical world, understated and serene, your unique musical color." The font format of this text can be determined based on actual needs; for example, the colors of some keywords may match the target color category.

[0101] Optionally, in order to ensure that the generated copy is strongly related to the music scene, step c1 above determines the target copy corresponding to the target color category. Specifically, it may include the following steps c11 and c12. After generating the target copy, step c2 is executed, that is, based on the target copy and the cover image of each target song, the target page corresponding to the target color category is generated.

[0102] Step c11: Match the target instrument based on the song information of each target song.

[0103] Step c12: Generate target text based on song information and target instrument.

[0104] In this embodiment, for each target song, song information related to that target song can be obtained. Furthermore, a pre-defined correspondence between song information and musical instruments can be established, and the musical instrument matching the song information of the target song, i.e., the target instrument, can be determined based on this correspondence. Subsequently, the song information of each target song and the matching target instrument can be combined to generate the target text to be displayed; for example, the target text includes the text content corresponding to the song information and the name of the target instrument, etc.

[0105] The song information can represent the attributes of the corresponding target song. For example, the song information may include at least one of the following: song frequency, song style, song range, song author, etc. This embodiment does not limit this.

[0106] Taking song frequencies as an example, a mapping relationship can be established between various instruments and their corresponding frequency ranges based on their main frequencies (frequency ranges); for example, the music frequency of the violin is 90~250Hz, and the music frequency of the harp is 1728~2048Hz, etc.

[0107] Furthermore, a mapping relationship can be established between various musical instruments and color categories. After determining the target color category based on the song information of the target song, the musical instrument corresponding to that target color category can be used as the target musical instrument. In addition, when there are multiple target color categories, i.e., the target page is a colored page, corresponding target musical instruments can also be set for it, and appropriate target text can be generated.

[0108] like Figure 7 As shown, the target text includes content generated based on the target musical instrument "harp": "The music frequency is similar to that of a harp in the 1728-2048Hz range." Figure 8 As shown, in color mode, the target text includes content generated based on the target instrument "piano": "The music frequency is similar to that of a piano in the range of 0-19724Hz." Figure 7 , Figure 8 This is just one example; the target instrument and its corresponding frequency may be determined based on actual needs.

[0109] Optionally, step S505, "generating a target page corresponding to the target color category based on the cover image of each target song," may include steps d1 to d3.

[0110] Step d1: Determine the second preset number of target cover images; the target cover images are the cover images of the target songs.

[0111] Step d2: Arrange the second preset number of target cover images according to a preset arrangement to generate a target image containing the second preset number of target cover images.

[0112] Step d3: Generate the target page corresponding to the target color category based on the target image.

[0113] In this embodiment, it is necessary to display some cover images on the target page. The number of cover images to be displayed can be predetermined, namely the second preset number mentioned above. Therefore, when generating the target page, it is necessary to obtain the second preset number of cover images to be displayed on the target page, i.e., target cover images, to ensure the display effect of subsequent pages. The required target cover images are mainly determined based on the cover images of the target song, and step d1 will be described in detail later.

[0114] Furthermore, the arrangement of the cover images within the target page is preset. For example, a cover image arrangement template can be preset, and a second preset number of target cover images are arranged according to this template. After arrangement, all target cover images can generate the target image to be displayed subsequently. It can be understood that the target image may include the individual target cover images; for example, the target image is a collage of the individual target cover images.

[0115] like Figure 3 As shown, if the second preset quantity is 35, and the preset arrangement is a 7×5 matrix arrangement, then the 35 target cover images can be arranged in a 7x5 matrix, ultimately generating a target image containing 35 target cover images. This target image can then be used by the target page when it needs to be displayed.

[0116] Optionally, step d1, "determining a second preset number of target cover images", may include steps d11 to d13.

[0117] Step d11: If the number of target songs is greater than or equal to the second preset number, select the second preset number of target cover images from the cover images of each target song.

[0118] Step d12: If the number of target songs is greater than or equal to the first preset number and less than the second preset number, copy the cover images of the first number of target songs to generate corresponding copied images; use the first number of copied images and the cover images of each target song as the target cover images of the second preset number; the first number is the difference between the second preset number and the number of target songs.

[0119] In this embodiment, if the number of target songs is greater than or equal to the second preset number, it means that a sufficient number of usable cover images can be directly selected from the existing cover images of target songs. Therefore, the second preset number of cover images can be selected as the target cover images.

[0120] If the number of target songs is less than the second preset number, but greater than or equal to the first preset number, it means that the number of target songs is insufficient, but the difference from the second preset number is not significant. In this case, the cover images of some of the target songs can be copied to expand the cover images, ultimately resulting in a sufficient number of target cover images, i.e., the second preset number of target cover images.

[0121] Specifically, a first quantity can be determined by subtracting the second preset quantity from the number of target songs. Then, this first quantity of target songs is selected, and the cover images of these target songs are copied to obtain corresponding copied images. The total number of copied images is the first quantity. By using all target covers and the first quantity of copied images as target cover images, the number of target cover images is ensured to be sufficient.

[0122] To minimize the visual impact of duplicated song covers, the first preset quantity should not be too large; in other words, the difference between the second and first preset quantities should not be too large. For example, (Th2 – Th1) / Th2 should not exceed a preset threshold. Here, Th1 represents the first preset quantity, and Th2 represents the second preset quantity.

[0123] For example, if Th2 = 35, and (Th2 – Th1) / Th2 cannot exceed 1 / 5, then Th1 = 28.

[0124] Step d13: If the number of target songs is less than the first preset number, determine the cover images of a second number of candidate songs from the candidate songs corresponding to other color categories adjacent to the target color category; use the cover images of the second number of candidate songs and the cover images of each target song as the second preset number of target cover images; the second number is the difference between the second preset number and the number of target songs.

[0125] In this embodiment, if the number of target songs is less than the first preset number, it indicates that the number of songs under the target color category is relatively small. In this case, cover images can be obtained from other color categories adjacent to the target color category. Specifically, the difference between the second preset number and the number of target songs can be used as the second number, and a second number of candidate songs can be determined from adjacent color categories. The cover images of these candidate songs can also be used as the target cover images. Here, the first number and the second number have the same meaning, but they are different in size. It can be understood that the second number is greater than the first number.

[0126] Since the colors of adjacent color categories are similar to the overall colors of the cover images under the target color category, they are all used as target cover images and the target page is generated. This also makes the cover images on the target page similar to the target color category.

[0127] Furthermore, if the number of target songs is too small to obtain the second preset number of target cover images, a fallback strategy can be used. For example, the cover images of a small number of target songs can be arranged in other ways to generate target images; or, the cover images of the target songs can be copied until the total number of copied cover images reaches the second preset number.

[0128] Figure 6 A flowchart illustrating this data processing method is shown. The method can be divided into monochrome mode and color mode. Specifically, monochrome mode contains only one target color category, while color mode includes multiple target color categories. For example... Figure 6 As shown, the method includes the following steps S601 to S6.

[0129] Step S601: Obtain user listening behavior data within a preset time period.

[0130] Step S602: Determine multiple candidate songs based on the user's listening behavior data within a preset time period.

[0131] Step S603: Determine the color category corresponding to each candidate song based on the cover image of each candidate song.

[0132] Step S604: Statistically analyze each candidate song to determine the number of candidate songs corresponding to each color category.

[0133] Step S605: Determine the maximum number of candidate songs N. MAX .

[0134] Step S606, determine N MAX Is it greater than or equal to Th2? Where Th2 is a second preset quantity, for example, Th2 = 35. If N MAX If the result is greater than or equal to Th2, then proceed to step S607; otherwise, proceed to step S609.

[0135] Step S607, Monochrome mode. Specifically, the color category corresponding to the maximum number of candidate songs can be used as the target color category.

[0136] Step S608: Select a second preset number of target cover images from the cover images of each target song. Then proceed to step S618.

[0137] Step S609, determine N MAXIs it greater than or equal to Th1? Where Th1 is the second preset quantity, for example, Th1 = 28. If N MAX If ≥Th1, then proceed to step S610; otherwise, proceed to step S612.

[0138] Step S610, Monochrome mode. Specifically, the color category corresponding to the maximum number of candidate songs can be used as the target color category.

[0139] Step S611: Randomly select a portion of the cover image and copy it to fill the second preset quantity, thus obtaining the target cover image.

[0140] As shown above, the cover images of a first number of target songs can be copied to generate corresponding copied images; the first number of copied images and the cover images of each target song can be used as the second preset number of target cover images.

[0141] For example, if N MAX If the value is 30, then there are 5 cover images missing. Since the initial quantity is 5, 5 cover images are selected for copying. Furthermore, when generating the target page, all target cover images are randomly arranged to minimize the visual impact of duplicated cover images.

[0142] Step S612: Determine the number N of adjacent candidate songs corresponding to adjacent color categories. nei .

[0143] Step S613, determine N MAX +N nei Is it greater than or equal to Th2? If N MAX +N nei If the result is greater than or equal to Th2, then proceed to step S614; otherwise, proceed to step S616.

[0144] Step S614, Monochrome mode. Specifically, similar to the aforementioned steps S608 and S610, the color category corresponding to the maximum number of candidate songs can be used as the target color category.

[0145] Step S615: Complete the cover image from adjacent color categories to obtain the second preset number of target cover images. See step d13 for details, which will not be repeated here.

[0146] Step S616, Color Mode. As shown in step b2 above, all color categories corresponding to each candidate song are taken as the target color category.

[0147] Step S617: Select a second preset number of target cover images from the cover images of each target song.

[0148] For example, if there are n color types in the color mode, then Th2 / n cover images can be selected as target cover images for each color type. Alternatively, they can be sorted according to the number of candidate songs corresponding to the color type. The more candidate songs there are, the more target cover images can be selected from the corresponding color type. This embodiment does not limit the selection method.

[0149] Step S618: Generate the target page corresponding to the target color category based on the second preset number of target cover images.

[0150] In step S608, the target cover images can be arranged randomly or in a certain order. After step S611, the target cover images generally need to be arranged randomly. After step S615, random arrangement is preferred to shuffle the cover images of various color categories.

[0151] Figure 7 A schematic diagram of a monochrome mode target page is shown, such as... Figure 7 As shown, the target color category is gold, and it contains 35 cover images.

[0152] In color mode, that is, after step S617, the cover images can be arranged randomly or according to various color categories. Cover images with the same color category are arranged first to make them close to each other.

[0153] Figure 8 A schematic diagram of a color mode target page is shown, such as... Figure 8 As shown, each cover image corresponds to a different color category, and the collection contains 35 cover images.

[0154] Optionally, step S505, "generating a target page corresponding to the target color category based on the cover image of each target song," may include steps e1 and e2.

[0155] Step e1: Determine the target pattern corresponding to the target color category.

[0156] Step e2: Generate the target page corresponding to the target color category based on the target pattern and the cover image of each target song.

[0157] In this embodiment, to ensure that the overall target page corresponds to the target color category and to add visual elements related to the target color category, in addition to determining the cover image of the target song, a pattern corresponding to the target color category, i.e., the target pattern, can also be determined when generating the target page. This target pattern is used as a background image related to the color (e.g., Figure 7 , Figure 8The corresponding target pattern is located below the cover image, ensuring that the target page and the target color category are consistent overall.

[0158] Specifically, the color of the target pattern matches the target color category. For example, the target pattern is a monochrome pattern whose color is the same as the color corresponding to the target color category. Alternatively, the target pattern can be a pattern that contains elements related to the target color category.

[0159] For example, in the blue color category, the ocean is generally associated with blue; therefore, on a blue target page, an image containing the ocean element could be used as the target image. Or, as... Figure 7 As shown, gold is generally associated with the sun, therefore the target pattern on the gold page contains sun elements; for example... Figure 8 As shown, rainbows are generally used to represent colors, so the target image on a color page contains rainbow elements. Using richer color elements can further enhance the color impact of the target page.

[0160] Alternatively, the song cover image is generally circular. When arranging the target cover images, there are gaps between adjacent target cover images. In this case, a uniform color can be used to fill the gaps, or, as shown... Figure 7 or Figure 8 As shown, you can also fill the area around each target cover image with a suitable color.

[0161] For example, the method may further include: for any target cover image, determining the main color corresponding to the target cover image; the main color is the color in the target cover image that belongs to the color category corresponding to the target cover image and has the largest number of pixels; or, the main color is the color corresponding to the color category of the target cover image; filling the outer area corresponding to the target cover image according to the main color of the target cover image to generate an extended image containing the target cover image and the corresponding outer area.

[0162] Furthermore, step d2 above, "arranging the second preset number of target cover images according to a preset arrangement," can specifically include: arranging the extended images corresponding to the second preset number of target cover images according to a preset arrangement.

[0163] In this embodiment, for a circular target cover image, a corresponding main color can be selected. Specifically, the color corresponding to the color category of the target cover image can be determined and directly used as the main color (i.e., a color from a certain color category is used as the main color); or, to highlight the diversity of the image, the color with the most pixels in the target cover image can be used as the main color. Furthermore, to maintain consistency with the target color category, the main color must also belong to one of the color categories corresponding to the target cover image (e.g., the target color category). In other words, the main color is the color in the target cover image that belongs to the color category corresponding to the target cover image and has the most pixels.

[0164] After filling the outer area of ​​the target cover image with the main color, the target cover image can be expanded. The expanded image can then be used to better arrange the various target cover images.

[0165] like Figure 7 and Figure 8 As shown, an extended image is a rectangular image that includes a circular cover image and an area surrounding the cover image; the cover image and the surrounding area together form a rectangular extended image.

[0166] For each target cover image, the extended images can be determined in the manner described above. Subsequently, the extended images are arranged to finally generate the target page.

[0167] The data processing method provided in this embodiment aggregates users' listening behavior preferences with the colors of cover images to generate visually impactful user color profiles with better visual effects and more intuitive content display. Furthermore, it can identify target songs for different users, thereby generating target pages that match their behavioral characteristics and achieving color-driven personalized pages. Determining the target color category based on the number of candidate songs corresponding to each color category ensures that the target page generated for that category matches the user's representative primary color. Automatically matching different display modes based on the number of cover images and the dominant color ensures that each user's annual report is both aesthetically pleasing and personalized, achieving a highly personalized visual presentation. Large-scale collage display based on multiple cover images helps create a strong visual impact, using color to enhance the page's emotional memorability. In addition, combining color analysis results with users' annual behavior to automatically match personality description templates and generate annual color personality copy that matches the dominant color allows color to not only serve as a visual element but also as a carrier of emotional expression and personalized summaries.

[0168] This embodiment also provides a data processing apparatus for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0169] This embodiment provides a data processing device, such as... Figure 9 As shown, the device includes: The song determination module 901 is used to determine multiple candidate songs based on the user's listening behavior data within a preset time period; Color classification module 902 is used to determine the color category corresponding to each candidate song based on the cover image of each candidate song; Processing module 903 is used to select a target color category from the color categories corresponding to each of the candidate songs; and to determine the target songs contained in the target color category; The generation module 904 is used to generate a target page corresponding to the target color category based on the cover image of each target song.

[0170] In some optional implementations, determining multiple candidate songs based on the user's listening behavior data within a preset time period includes: determining the number of interactions for each song based on the user's listening behavior data within the preset time period; and selecting multiple songs whose number of interactions meets preset interaction conditions as candidate songs.

[0171] In some optional implementations, determining the color category corresponding to each candidate song based on the cover image of each candidate song includes: determining the color of each pixel in the cover image of the candidate song; clustering each pixel into a preset number of color categories based on the color of each pixel; and selecting the color category with the most pixels as the color category corresponding to the candidate song.

[0172] In some optional implementations, selecting a target color category from the color categories corresponding to each of the candidate songs includes: statistically analyzing each candidate song according to its color category to determine the number of candidate songs corresponding to each color category; and determining the target color category based on the number of candidate songs corresponding to each color category.

[0173] In some optional implementations, determining the target color category based on the number of candidate songs corresponding to various color categories includes: determining the maximum number of candidate songs; and, if the maximum number of candidate songs meets a preset quantity condition, determining the target color category based on the color category corresponding to the maximum number of candidate songs; wherein the target color category includes the color category corresponding to the maximum number of candidate songs.

[0174] In some optional implementations, the preset quantity condition includes: the maximum number of candidate songs is greater than a first preset quantity; and / or, the maximum number of candidate songs is less than the first preset quantity, and the sum of the maximum number of candidate songs and the number of adjacent candidate songs is greater than a second preset quantity, wherein the second preset quantity is greater than or equal to the first preset quantity; wherein, the number of adjacent candidate songs is the number of candidate songs corresponding to other color categories adjacent to the color category corresponding to the maximum number of candidate songs.

[0175] In some optional implementations, determining the target color category based on the number of candidate songs corresponding to each color category includes: determining the maximum number of candidate songs; and if the maximum number of candidate songs does not meet a preset quantity condition, taking each color category corresponding to each candidate song as the target color category.

[0176] In some optional implementations, generating the target page corresponding to the target color category based on the cover image of each of the target songs includes: determining the target text corresponding to the target color category; and generating the target page corresponding to the target color category based on the target text and the cover image of each of the target songs.

[0177] In some optional implementations, determining the target text corresponding to the target color category includes: determining the target text corresponding to the target color category based on the correspondence between color categories and text; the text in the correspondence is text related to mood and / or music style determined based on the corresponding color category.

[0178] In some optional implementations, generating the target page corresponding to the target color category based on the cover image of each target song includes: matching target instruments based on the song information of each target song; generating target text based on the song information and the target instruments; and generating the target page corresponding to the target color category based on the target text and the cover image of each target song.

[0179] In some optional implementations, generating the target page corresponding to the target color category based on the cover image of each of the target songs includes: determining the target pattern corresponding to the target color category; and generating the target page corresponding to the target color category based on the target pattern and the cover image of each of the target songs.

[0180] In some optional implementations, generating the target page corresponding to the target color category based on the cover images of each target song includes: determining a second preset number of target cover images; the target cover images include the cover images corresponding to the target songs; arranging the second preset number of target cover images according to a preset arrangement to generate a target image containing the second preset number of target cover images; and generating the target page corresponding to the target color category based on the target images.

[0181] In some optional implementations, determining the second preset number of target cover images includes: when the number of target songs is greater than or equal to the second preset number, selecting the second preset number of target cover images from the cover images of each target song; when the number of target songs is greater than or equal to the first preset number and less than the second preset number, copying the cover images of the first number of target songs to generate corresponding copied images; using the first number of copied images and the cover images of each target song as the second preset number of target cover images; the first number being the difference between the second preset number and the number of target songs; when the number of target songs is less than the first preset number, determining the second number of candidate song cover images from candidate songs corresponding to other color categories adjacent to the target color category; using the second number of candidate song cover images and the cover images of each target song as the second preset number of target cover images; the second number being the difference between the second preset number and the number of target songs.

[0182] In some optional implementations, generating the target page corresponding to the target color category based on the cover images of each target song further includes: for any target cover image, determining the main color corresponding to the target cover image; the main color is the color in the target cover image that belongs to the color category corresponding to the target cover image and has the largest number of pixels; or, the main color is the color corresponding to the color category of the target cover image; filling the outer area corresponding to the target cover image according to the main color of the target cover image to generate an extended image containing the target cover image and the corresponding outer area; The step of arranging the second preset number of target cover images according to a preset arrangement includes: arranging the extended images corresponding to the second preset number of target cover images according to a preset arrangement.

[0183] The data processing apparatus provided in this disclosure can execute the data processing method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the various modules and units described above are the same as in the corresponding embodiments described above, and will not be repeated here.

[0184] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0185] The following is a detailed reference. Figure 10 The diagram illustrates a structural schematic suitable for implementing the electronic device described in the embodiments of this application. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from memory 1008 into random access memory (RAM) 1003. The RAM 1003 also stores various programs and data required for the operation of the electronic device. The processor 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0186] Typically, the following devices can be connected to the I / O interface 1005: input devices 1006 including, for example, a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 1007 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; memory devices 1008 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows electronic devices to exchange data via wireless or wired communication with other devices. Although Figure 10 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.

[0187] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1009, or installed from memory 1008, or installed from ROM 1002. When the computer program is executed by processor 1001, it performs the functions defined in the data processing method of embodiments of this application.

[0188] Figure 10 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0189] This application also provides a computer-readable storage medium. The methods described in this application can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the data processing methods shown in the above embodiments are implemented.

[0190] A portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0191] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.

Claims

1. A data processing method, characterized in that, The method includes: Multiple candidate songs are determined based on the user's listening behavior data within a preset time period; Based on the cover image of each candidate song, determine the color category corresponding to each candidate song; Select the target color category from the color categories corresponding to each of the candidate songs; Identify the target songs contained within the target color category; Generate the target page corresponding to the target color category based on the cover image of each target song.

2. The method according to claim 1, characterized in that, The process of determining multiple candidate songs based on user listening behavior data within a preset time period includes: Based on user listening behavior data within a preset time period, determine the number of interactions for each song; Multiple songs whose interaction counts meet the preset interaction criteria are selected as candidate songs.

3. The method according to claim 1, characterized in that, The step of determining the color category corresponding to each candidate song based on the cover image of each candidate song includes: Determine the color of each pixel in the cover image of the candidate songs; Cluster each pixel into a preset color category based on the color of each pixel; The color category with the most pixels is selected as the color category corresponding to the candidate song.

4. The method according to claim 1, characterized in that, The step of selecting the target color category from the color categories corresponding to each of the candidate songs includes: The candidate songs are statistically analyzed according to their color categories to determine the number of candidate songs corresponding to each color category. The target color category is determined based on the number of candidate songs corresponding to each color category.

5. The method according to claim 4, characterized in that, The step of determining the target color category based on the number of candidate songs corresponding to each color category includes: Determine the maximum number of candidate songs; If the maximum number of candidate songs meets a preset quantity condition, a target color category is determined based on the color category corresponding to the maximum number of candidate songs; the target color category includes the color category corresponding to the maximum number of candidate songs.

6. The method according to claim 5, characterized in that, The preset quantity conditions include: The maximum number of candidate songs is greater than the first preset number; And / or, The maximum number of candidate songs is less than a first preset number, and the sum of the maximum number of candidate songs and the number of adjacent candidate songs is greater than a second preset number, wherein the second preset number is greater than or equal to the first preset number; wherein, the number of adjacent candidate songs is the number of candidate songs corresponding to other color categories adjacent to the color category corresponding to the maximum number of candidate songs.

7. A data processing apparatus, characterized in that, The device includes: The song selection module is used to determine multiple candidate songs based on the user's listening behavior data within a preset time period; The color classification module is used to determine the color category of each candidate song based on the cover image of each candidate song. The processing module is used to select a target color category from the color categories corresponding to each of the candidate songs; and to determine the target songs contained in the target color category. The generation module is used to generate a target page corresponding to the target color category based on the cover image of each target song.

8. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the data processing method of any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the data processing method according to any one of claims 1 to 6.

10. A computer program product, characterized in that, Includes computer instructions for causing a computer to perform the data processing method according to any one of claims 1 to 6.