Advertisement theme color recommendation method and device, electronic equipment and storage medium

By analyzing the number of times the advertising color is used in the advertising picture, selecting the main color and determining the theme color, the problem of time-consuming and inconsistent selection of theme colors in the existing technology is solved, and efficient and personalized theme color recommendations are achieved.

CN119809717APending Publication Date: 2025-04-11BEIJING DUSHANG SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411747238.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The existing advertising design platform lacks intelligent color matching functions, which leads to users need to manually select theme colors, which is time-consuming and error-prone, and cannot meet personalized needs, resulting in inconsistent visual effects of the advertising page.

Method used

By analyzing the number of times N ad colors used in the advertising picture, select the K ad colors that are mainly used, and determine the recommended theme colors based on these colors.

Benefits of technology

It improves the design efficiency and display effect of the theme color, avoids the problem of inconsistency between the theme color and the advertising picture, reduces the trial and error time for adjusting the theme color, and lowers the technical threshold for designing the theme color.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119809717A_ABST
    Figure CN119809717A_ABST
Patent Text Reader

Abstract

The invention provides an advertisement theme color recommendation method and device, electronic equipment and a storage medium, and relates to the field of artificial intelligence, in particular to the field of image processing and intelligent recommendation. According to the specific implementation scheme, N advertisement colors contained in an advertisement picture are determined; selecting K advertisement colors from the N advertisement colors based on the number of use times of each advertisement color in the N advertisement colors in the advertisement picture; and determining a recommended theme color based on the K advertisement colors. According to the embodiment of the invention, the theme color suitable for the advertisement picture can be recommended, and the design efficiency and the display effect of the theme color are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence, and in particular to the fields of image processing and intelligent recommendation. Background Art

[0002] The theme color of an ad refers to the dominant color on the ad landing page. For example, the theme color of an ad can include at least one of the colors of the background, title, and text of the ad. Setting the theme color of an ad can improve the attractiveness and display effect of the ad, thereby attracting the attention of viewers and creating a specific atmosphere. Therefore, choosing the right theme color is crucial. Summary of the invention

[0003] The present disclosure provides a method, device, electronic device and storage medium for recommending an advertisement theme color.

[0004] According to one aspect of the present disclosure, a method for recommending an advertisement theme color is provided, comprising:

[0005] Determine N advertisement colors contained in the advertisement image; where N is a positive integer;

[0006] Based on the number of times each of the N advertising colors is used in the advertising image, K advertising colors are selected from the N advertising colors; wherein K is a positive integer less than or equal to N;

[0007] Based on K advertisement colors, determine the recommended theme color.

[0008] According to another aspect of the present disclosure, a device for recommending an advertisement theme color is provided, comprising:

[0009] The advertisement color determination module is used to determine N advertisement colors contained in the advertisement image; wherein N is a positive integer;

[0010] An advertisement color selection module, for selecting K advertisement colors from N advertisement colors based on the number of times each advertisement color in the N advertisement colors is used in the advertisement picture; wherein K is a positive integer less than or equal to N;

[0011] The theme color determination module is used to determine a recommended theme color based on K advertisement colors.

[0012] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0013] at least one processor; and

[0014] a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.

[0016] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any method according to the embodiments of the present disclosure.

[0017] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements any method according to the embodiments of the present disclosure when executed by a processor.

[0018] In the technical solution of the disclosed embodiment, based on the number of times the N advertising colors are used in the advertising image, K main advertising colors can be selected in the advertising image, and based on the K advertising colors, a recommended theme color can be determined, so that a theme color suitable for the advertising image can be recommended, thereby improving the design efficiency and display effect of the theme color, avoiding the problem of incoordination between the theme color and the advertising image, reducing the trial and error time for adjusting the theme color, and lowering the technical threshold for designing the theme color.

[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0021] Figure 1 It is a flowchart of a method for recommending an advertisement theme color provided by an embodiment of the present disclosure;

[0022] Figure 2 is a schematic diagram of an application example of the present disclosure;

[0023] Figure 3 is a schematic block diagram of a device for recommending an advertisement theme color provided by an embodiment of the present disclosure;

[0024] Figure 4 is a schematic block diagram of a device for recommending an advertisement theme color provided by another embodiment of the present disclosure;

[0025] Figure 5 The block diagram is a block diagram of an electronic device for implementing the method for recommending an advertisement theme color according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0027] In order to facilitate understanding of the method for recommending advertising theme colors provided by the embodiment of the present disclosure, the relevant technologies of the embodiment of the present disclosure are explained below. The following related technologies can be arbitrarily combined with the technical solutions of the embodiment of the present disclosure as optional solutions, and they all belong to the protection scope of the embodiment of the present disclosure.

[0028] Ad design platforms in related technologies usually provide a set of fixed color options for users who place ads. Users need to manually select theme colors, which are usually preset static color templates. Users select colors from the templates and apply them to the ad landing page. In addition, some platforms may provide selector tools based on color wheels or color classifications, but they still rely on the user's subjective judgment.

[0029] The above-mentioned related technologies have the following disadvantages:

[0030] Disadvantages 1. Users need to manually select the theme color, which is time-consuming and error-prone. Especially for users who lack professional design experience, they face great confusion in color selection and often have to make multiple adjustments to find a suitable color scheme. This manual operation not only reduces design efficiency, but also easily leads to incorrect color selection.

[0031] Disadvantage 2: There is no intelligent recommendation function based on the color content of the picture. Users can only manually select the theme color from the preset color options. Since the style and color of each advertising picture are different, the preset color template cannot meet the personalized needs of users, resulting in inconsistent overall visual effects of the advertising page and difficulty in matching the theme of the advertising content.

[0032] Disadvantage 3: Without considering the color tone of the picture uploaded by the user, the manually selected theme color may conflict with the main color tone of the picture, resulting in disharmonious color matching. For example, the user may choose a color that contrasts too much with the main color tone of the picture, or choose a similar but mismatched color, which will affect the aesthetics and click-through effect of the ad.

[0033] Disadvantage 4: Due to the lack of automatic recommendation and color matching functions, users often need to try and adjust color matching multiple times to find the right theme color. This trial and error process not only wastes time, but also increases design costs and affects the timeliness of advertising.

[0034] In order to solve at least one of the above problems, in the technical solution of the embodiment of the present disclosure, K main advertising colors can be selected in the advertising image based on the number of times the N advertising colors are used in the advertising image, and based on the K advertising colors, a recommended theme color can be determined, so that the theme color suitable for the advertising image can be recommended, which improves the design efficiency and display effect of the theme color, avoids the problem of incoordination between the theme color and the advertising image, reduces the trial and error time of adjusting the theme color, and lowers the technical threshold for designing the theme color.

[0035] The method for recommending advertising theme colors provided by the embodiments of the present disclosure can be applied to advertising design or theme color recommendation platforms / tools / systems. Users can upload advertising images to the advertising design platform, and the advertising design platform can automatically recommend theme colors. The theme colors can be applied to advertising landing pages displayed to the target group of the advertisement.

[0036] Figure 1 A flow chart of a method for recommending an advertising theme color provided by an embodiment of the present disclosure is shown. The method can be applied to a device for recommending an advertising theme color, which can be understood as a theme color recommendation system and is deployed in an electronic device. The electronic device is, for example, a single or multi-machine terminal, server, or other processing device. Among them, the terminal can be a user equipment (User Equipment, UE) such as a mobile device, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc.; the server can be a stand-alone server or a server cluster. In some possible implementations, the method can also be implemented by a processor calling computer-readable instructions stored in a memory. For example Figure 1 As shown, the method may include the following steps S110 to S130.

[0037] Step S110: Determine N advertisement colors included in the advertisement image; wherein N is a positive integer.

[0038] In the embodiment of the present disclosure, the N advertisement colors may be understood as all or part of the colors appearing in the advertisement image. For example, a color repeatedly used in the advertisement image may be used as one of the N advertisement colors.

[0039] Optionally, any image processing technology in the related art may be used to determine the N advertisement colors contained in the advertisement image, for example, by using color clustering analysis to identify and distinguish different colors in the advertisement image, thereby determining the N advertisement colors contained in the advertisement image.

[0040] In an example, the color value of each pixel in the advertising image can be extracted, such as RGB (Red-Green-Blue) value, HSV (Hue-Saturation-Value) value, etc. Each different color value can be used as an advertising color, and the same color value can be used as an advertising color, so that N advertising colors can be obtained.

[0041] Step S120: Based on the number of times each of the N advertisement colors is used in the advertisement image, K advertisement colors are selected from the N advertisement colors; wherein K is a positive integer less than or equal to N.

[0042] Exemplarily, the advertisement colors used more frequently in the advertisement pictures may be extracted to obtain K advertisement colors. For example, the number of selected advertisement colors K may be preset, or colors used more than or equal to a preset number of times in the advertisement pictures may be selected to obtain K advertisement colors.

[0043] Optionally, the number of times the advertisement color is used in the advertisement picture may be related to the area of ​​the advertisement color in the advertisement picture. The larger the area of ​​the advertisement color in the advertisement picture, the more times the advertisement color is used in the advertisement picture.

[0044] Optionally, the number of times the advertisement color is used in the advertisement picture may be determined based on the number of pixels occupied by each advertisement color in the advertisement picture. The more pixels the advertisement color corresponds to, the more times the advertisement color is used in the advertisement picture.

[0045] Optionally, the value of K may be preset, and based on the number of times each of the N advertisement colors is used in the advertisement image, the N advertisement colors are sorted in descending order to determine the K advertisement colors with the largest number of uses.

[0046] Optionally, a first threshold may be set in advance for the number of times used. For each of the N advertising colors, when the number of times the advertising color is used in an advertising image exceeds the first threshold, the advertising color may be determined as one of the K advertising colors, that is, K may not be a fixed value, but is determined based on the number of times each color is actually used in the advertising image.

[0047] Step S130: Determine a recommended theme color based on the K advertisement colors.

[0048] It can be understood that the recommended theme color is a color related to K advertisement colors, so that the theme color is harmoniously matched with the advertisement image. The recommended theme color can be one or more, and the user can confirm the theme color applied to the advertisement landing page from the one or more recommended theme colors. Optionally, the user may not confirm the theme color applied to the advertisement landing page from the recommended theme colors. In this case, a color classifier or color wheel tool can be provided to the user, and the theme color applied to the advertisement landing page can be selected based on the color classifier or color wheel tool.

[0049] Optionally, for each of the K advertising colors, a color corresponding to each advertising color may be determined in a preset color set, that is, a theme color corresponding to each of the K advertising colors may be determined. Different advertising colors may correspond to the same theme color, that is, the number of occurrences of these theme colors may be one or more times. Based on the number of occurrences of the theme color corresponding to the advertising color, a preset number of theme colors with the largest number of occurrences may be determined. Alternatively, a second threshold value may be set in advance for the number of occurrences, and when the number of occurrences of the theme color exceeds the second threshold value, the theme color may be determined as a recommended theme color.

[0050] Optionally, the theme color can be applied to the background, title, and text color of the advertisement image in the advertisement landing page.

[0051] Optionally, based on the theme color, a series of gradient colors can be determined as the colors of the background, title, text, etc. in the advertising landing page.

[0052] In the technical solution of the disclosed embodiment, based on the number of times the N advertising colors are used in the advertising image, K main advertising colors can be selected in the advertising image, and based on the K advertising colors, a recommended theme color can be determined, so that a theme color suitable for the advertising image can be recommended, thereby improving the design efficiency and display effect of the theme color, avoiding the problem of incoordination between the theme color and the advertising image, reducing the trial and error time for adjusting the theme color, and lowering the technical threshold for designing the theme color.

[0053] In some embodiments, step S130, determining a recommended theme color based on K advertisement colors, includes: determining a theme color in the preset color set based on a distance between each advertisement color in the K advertisement colors and each preset color in the preset color set.

[0054] In the disclosed embodiment, the preset color set may include multiple preset colors. Optionally, the preset color set is pre-configured, for example, the preset color set may be determined by an advertising design expert based on experience and uploaded to the system or pre-configured in the platform by a developer. Alternatively, the system may automatically obtain the historical theme color to obtain the preset color set. Alternatively, the preset color set may also be customized by the user.

[0055] Exemplarily, based on the distance between each of the K advertising colors and each of the preset colors in the preset color set, determining the theme color in the preset color set may specifically include: respectively calculating the distance between each of the K advertising colors and each of the preset colors, determining K color distance sets corresponding to the K advertising colors, that is, determining the color distance set corresponding to each advertising color. Each color distance set may include the distance between its corresponding advertising color and each preset color, and the theme color may be determined based on the K color distance sets. Specifically, according to the color distance set, a preset color with a shorter distance from the advertising color, that is, a preset color with a lower degree of difference from the advertising color, may be determined, and then the theme color may be selected from the preset colors with a shorter distance corresponding to each advertising color. For example, a third threshold may be set in advance for the distance, and when the color distance set contains a distance value less than the third threshold, the preset color corresponding to the distance value may be determined as the theme color corresponding to the advertising color. Further, the theme color corresponding to an advertising color may be directly determined as one of the recommended theme colors, or the recommended theme color may be determined based on the number of occurrences from multiple theme colors corresponding to multiple advertising colors.

[0056] In one example, the system may arrange each distance in the color distance set in descending order, taking one color distance set as a row, and arranging the color distance sets corresponding to each advertising color in the column direction according to the descending order of the number of times each advertising color is used in the advertising image, to form a color difference matrix M. The theme color may include the preset color corresponding to the distance value at the front of the column number in the matrix M. Optionally, the system or the user may pre-set the number of theme colors R, and the theme color may include the preset color corresponding to the distance value in the first R columns in the matrix M. For example, the preset colors corresponding to the distance values ​​in the first R columns are all used as recommended theme colors, or the theme color is selected from the preset colors corresponding to the distance values ​​in the first R columns based on the number of appearances.

[0057] Optionally, any color difference algorithm in the related art may be used to determine the distance between each of the K advertisement colors and each preset color. For example, the distance between the advertisement color and the preset color may be determined based on the CIE DE2000 (CIE 2000 Color-Difference Formula, International Commission on Illumination color difference formula) color difference standard, or the distance between the advertisement color and the preset color may be determined based on the Delta E difference value in the Lab color space.

[0058] According to the above method of the embodiment of the present disclosure, the theme color can be determined in the preset color set by calculating the distance between the advertisement color and the preset color. By limiting the theme color within the range of the preset color set, it can be ensured that the theme color is suitable for the advertising delivery scenario, avoiding the recommendation of inappropriate theme colors, and ensuring the advertising effect.

[0059] In some embodiments, determining a theme color in the preset color set based on a distance between each advertisement color in the K advertisement colors and each preset color in the preset color set includes:

[0060] Based on the distance between each advertisement color in the K advertisement colors and each preset color in the preset color set, determine X groups of preset colors corresponding to X advertisement colors in the K advertisement colors one by one; wherein X is a positive integer less than or equal to K, and the X groups of preset colors include Y preset colors that are closest to the corresponding advertisement colors, and Y is a positive integer;

[0061] A theme color is determined in the preset color set based on the number of occurrences of each preset color in the preset color set in the X groups of preset colors.

[0062] In the disclosed embodiment, the X advertisement colors among the K advertisement colors may be understood as all or part of the K advertisement colors. For example, a corresponding set of preset colors may be determined for each advertisement color among the K advertisement colors. Alternatively, some colors may be further selected from the K advertisement colors, and a corresponding set of colors may be determined for each selected color.

[0063] Optionally, for an advertisement color, a corresponding color distance set may be determined, and Y preset colors closest to the advertisement color may be determined according to the color distance set to obtain a set of preset colors. Similarly, a set of preset colors corresponding to each of the X advertisement colors may be calculated to obtain X sets of preset colors corresponding to the X advertisement colors.

[0064] Each distance in the color distance set is arranged in descending order, and one color distance set is taken as a row. The color distance sets corresponding to each advertising color are arranged in the column direction according to the descending order of the number of times each advertising color is used in the advertising image, so as to form a two-dimensional color difference matrix M.

[0065] In an example, each distance in the color distance set can be arranged in descending order, with one color distance set as a row, and the color distance sets corresponding to each advertising color are arranged in the column direction according to the descending order of the number of times each advertising color is used in the advertising picture, to form a two-dimensional color difference matrix M, and a submatrix S with X rows and Y columns is extracted from the upper left corner of the matrix M, the submatrix S containing Y color distance values ​​corresponding to each of the X advertising colors, and based on each color distance value in the submatrix S, the submatrix S can be mapped to obtain X groups of preset colors corresponding one-to-one to the X advertising colors, each group of preset colors including Y preset colors.

[0066] Optionally, the number of theme colors to be recommended may be preset, and the values ​​of X and Y may be determined according to the number of theme colors, so that the number of selected theme colors can meet the requirements. For example, the values ​​of X and Y may be equal to the number of theme colors to be recommended. Alternatively, the values ​​of X and Y may be proportional to the number of theme colors to be recommended.

[0067] In the disclosed embodiment, all preset colors in the X groups of preset colors may be traversed to obtain the number of occurrences of each preset color, and a preset color with a larger number of occurrences may be determined as a theme color.

[0068] Optionally, the user may preset the number of theme colors, and the number of occurrences of the preset colors may be sorted in descending order, and the theme colors may include a preset number of preset colors with a greater number of occurrences.

[0069] Optionally, the user may set a fourth threshold in advance for the number of occurrences of a preset color. When the number of occurrences of a preset color is greater than the fourth threshold, the preset color may be determined as the theme color.

[0070] According to the above method of the embodiment of the present disclosure, the selection range of advertisement colors and preset colors can be narrowed, the matching degree between theme colors and advertisement pictures can be further improved, and theme colors that are more suitable for advertisement pictures can be recommended.

[0071] In some embodiments, the theme color includes R colors that meet the theme color condition, wherein the theme color condition is related to the number of occurrences, and R is an integer greater than or equal to 2;

[0072] The recommendation method of the advertising theme color may also include:

[0073] If the number of colors that meet the theme color condition in the preset color set is less than R, then increase the value of X and / or the value of Y, and return to the step of determining X groups of preset colors that correspond one-to-one to the X advertisement colors, until R colors that meet the theme color condition are determined in the preset color set.

[0074] In the embodiment of the present disclosure, the theme color condition may include the number of theme colors R preset by the user, and / or the number of occurrences of the preset color is greater than the fourth threshold. It is understood that in actual applications, the number of theme colors determined based on the X groups of preset colors may be less than R.

[0075] In one example, when the number of colors that meet the theme color condition in the preset color set is less than R, the height X and width Y of the submatrix S can be increased, and the theme color in the preset color set can be re-determined until the number of colors that meet the theme color condition in the preset color set is greater than or equal to R.

[0076] According to the above method of the embodiment of the present disclosure, the value of X and / or the value of Y can be increased, that is, the selection range of X advertising colors and Y preset colors can be expanded, thereby increasing the number of theme colors to R, ensuring that the R theme colors specified by the user can be obtained, thereby improving the user experience. In addition, by first narrowing the selection range of theme colors and then increasing the range when the number is insufficient, it can be ensured that the theme color that is most closely related to the advertising color in the advertising image is selected first. This ensures that the recommended theme color has a high degree of match with the advertising image and meets the visual design requirements of the advertisement.

[0077] In some embodiments, the X advertisement colors are advertisement colors that are used most frequently in advertisement images.

[0078] In the embodiment of the present disclosure, the number of times each advertisement color in the advertisement image is used may be sorted in descending order to obtain advertisement colors with the largest number of times used, X.

[0079] In one example, when the number of colors that meet the theme color condition in the preset color set is less than R, the value of X can be increased to obtain the advertising colors that are used the most times X, and the theme color in the preset color set is re-determined until the number of colors that meet the theme color condition in the preset color set is greater than or equal to R.

[0080] By first narrowing the X value range for theme color selection, and then increasing the X value range according to the number of times the ad color is used when the number is insufficient, it can be ensured that the theme color related to the ad color that is used most frequently in the ad image is selected first, thereby ensuring that the recommended theme color has a high degree of match with the ad image and meets the visual design requirements of the ad.

[0081] In some embodiments, step S110, determining N advertisement colors included in the advertisement image, includes: determining N advertisement colors in the advertisement image based on the distance between each color in the advertisement image and a preset filter color.

[0082] Optionally, a corresponding preset value may be set for the distance between each color in the advertisement image and the filter color, and the color corresponding to the distance greater than the preset value is determined as one of the N advertisement colors. That is, a color with a large difference from the filter color is selected as one of the N advertisement colors.

[0083] Optionally, the user may be supported to customize the filter color, so that the N advertisement colors do not include the filter color and the color close to the filter color, thereby improving the user experience.

[0084] In the disclosed embodiment, N advertisement colors are selected based on the filtered colors, which can reduce the processing of inappropriate colors, improve processing efficiency, and ensure that the recommended theme color is more in line with the user's expectations.

[0085] In some embodiments, the filtered color includes white; the N advertisement colors do not include a color whose distance from white is less than or equal to a preset value.

[0086] In the disclosed embodiment, the distance between the advertisement color and white can be understood as the difference between the advertisement color and white. The closer the distance between the advertisement color and white is, the smaller the difference between the advertisement color and white is. In practical applications, the advertisement color with a smaller difference from white may be the color of a face, a wall, the sky, etc.

[0087] Since there may be many colors with a small distance from white in the advertising pictures, visually similar theme colors may be recommended for different advertising pictures. In order to solve the above problem, the disclosed embodiment can filter out white and colors close to white from N advertising colors to avoid visual convergence of theme colors of different advertising pictures, and can generate different theme colors for different advertising pictures. The theme colors can reflect the unique style of the advertising pictures, further enhancing the attractiveness and display effect of the advertising pictures.

[0088] In order to more clearly understand the technical solution of the embodiment of the present disclosure, a specific application example is provided below. Figure 2 As shown, the method for recommending the advertisement theme color may include the following multiple processing flows:

[0089] S21: Advertising picture upload, that is, the user can upload the advertising picture to the system;

[0090] S22: Advertising color extraction, that is, the system can extract the top K most used colors from the advertising image and generate a color set A. In order to avoid excessive visual convergence between the theme color and the main color of the advertising image, the system can filter out colors that are less different from white (that is, the distance from the white color is less than a preset value), thereby ensuring that the extracted advertising color can better reflect the true color tone of the image. This filtering process can prevent the theme color from being too monotonous, especially preventing the influence of colors close to white on the design effect. After filtering, the colors in set A are arranged in descending order according to the number of times they are used, and the advertising colors that are used more frequently in the advertising images are given priority in the subsequent processing.

[0091] S23: Distance calculation, that is, the system can calculate the distance of each advertisement color after filtering. i , calculate the difference distance between each color and the preset color set (set B), and obtain the color distance set D corresponding to each advertising color i . D i The colors in the image are arranged in ascending order according to the difference distance. The smaller the color distance, the closer the two colors are visually. Through this difference distance calculation, the matching degree between each ad color and each preset color can be determined to ensure that the recommended theme color is in harmony with the overall tone of the picture.

[0092] S24: Matrix generation, that is, the system can generate each advertisement color a i The corresponding color distance set D i As a row, they are arranged row by row to form a two-dimensional color difference matrix M. Each row of the matrix M represents the color distance difference between the advertising color and each preset color. This step structures all color matching relationships by constructing a matrix, thus providing a data basis for the next step.

[0093] S25: Submatrix extraction, that is, the system can extract a submatrix S with X rows and Y columns (for example, X and Y can be equal to the number of theme colors R) from the upper left corner of the matrix M. The extraction of the submatrix S ensures that a suitable theme color is selected from the most forward matching.

[0094] S26: Color statistics and recommendation, that is, the system can count the preset colors corresponding to each color distance in the submatrix S, and obtain the number of occurrences of each preset color. The more the preset color appears, the higher the matching degree between the preset color and the advertisement color. The preset colors can be sorted in descending order according to the number of occurrences, and the first R colors can be selected as the final recommended theme colors. Through the statistics and sorting of the number of occurrences, the system can give priority to recommending those theme colors that have a high matching degree with the main color of the picture, ensuring that the output theme colors meet the visual design requirements of the advertisement.

[0095] The technical solution provided by the present disclosure can bring significant help to advertisement design and advertisement delivery platform in the following aspects:

[0096] 1. Improve design efficiency

[0097] The intelligent color matching algorithm greatly simplifies the process of selecting the theme color of the advertisement. Users (advertisers) who place advertisements no longer need to manually select the theme color. The platform can automatically recommend a matching theme color based on the color in the advertisement image, reducing the trial and error time of manual operation. This not only saves designers’ time, but also improves the design efficiency of the advertising platform.

[0098] 2. Optimize user experience

[0099] Advertisers can easily obtain theme colors that are coordinated with the colors in the ad images through the intelligent recommendation function provided by the platform, reducing the complexity of choosing theme colors. Especially for non-professional design users, this function greatly improves the convenience of use and avoids color matching errors caused by lack of design experience. The entire design process is more concise and efficient, which enhances user satisfaction with the platform.

[0100] 3. Improve the visual effect of advertising

[0101] By intelligently matching the main color of the ad image (i.e., K ad colors) with the preset colors, the overall visual harmony of the ad page is ensured, avoiding color conflicts or inconsistencies. This helps to improve the aesthetics and attractiveness of the ad, thereby increasing the user's click-through rate and interaction rate, and ultimately improving the ad's effectiveness and conversion rate.

[0102] 4. Enhance platform competitiveness

[0103] Compared with the traditional system that relies on manual selection of theme colors, the intelligent solution provided by the present disclosure has significant technical advantages. Through automated color recommendation, the system can stand out in the market, provide a more personalized and efficient design experience, enhance the market competitiveness of the platform, and attract more advertisers to use it.

[0104] 5. Reduce the cost of trial and error

[0105] The platform's intelligent recommendation function effectively avoids the trial-and-error process of adjusting color matching multiple times, and advertisers can get a nearly perfect theme color selection at the first recommendation. This ability to reduce repeated adjustments significantly reduces the time cost and workload of design, and improves the design efficiency and online speed of advertising.

[0106] According to an embodiment of the present disclosure, the present disclosure also provides a device for recommending an advertisement theme color. Figure 3 A schematic block diagram of a device for recommending an advertisement theme color provided by an embodiment of the present disclosure is shown. Figure 3 As shown, the device comprises:

[0107] The advertisement color determination module 310 is used to determine N advertisement colors contained in the advertisement image; wherein N is a positive integer;

[0108] The advertisement color selection module 320 is used to select K advertisement colors from the N advertisement colors based on the number of times each advertisement color from the N advertisement colors is used in the advertisement picture; wherein K is a positive integer less than or equal to N;

[0109] The theme color determination module 330 is used to determine a recommended theme color based on K advertisement colors.

[0110] In some embodiments, the theme color determination module 330 is specifically used to:

[0111] Based on the distance between each advertisement color in the K advertisement colors and each preset color in the preset color set, a theme color is determined in the preset color set.

[0112] In some embodiments, Figure 4 As shown, the theme color determination module 330 includes:

[0113] The preset color determination submodule 410 is used to determine X groups of preset colors corresponding to X advertisement colors in the K advertisement colors based on the distance between each advertisement color in the K advertisement colors and each preset color in the preset color set; wherein X is a positive integer less than or equal to K, and the X groups of preset colors include Y preset colors that are closest to the corresponding advertisement colors, and Y is a positive integer;

[0114] The theme color determination submodule 420 is used to determine the theme color in the preset color set based on the number of occurrences of each preset color in the preset color set in the X groups of preset colors.

[0115] In some embodiments, the theme color includes R colors that meet the theme color condition, wherein the theme color condition is related to the number of occurrences, and R is an integer greater than or equal to 2; Figure 4 As shown, the theme color determination module 330 further includes a processing submodule 430, and the processing submodule 430 is used to:

[0116] If the number of colors that meet the theme color condition in the preset color set is less than R, then increase the value of X and / or the value of Y, and return to the step of determining X groups of preset colors that correspond one-to-one to the X advertisement colors, until R colors that meet the theme color condition are determined in the preset color set.

[0117] In some embodiments, the X advertisement colors are advertisement colors that are used most frequently in advertisement images.

[0118] In some embodiments, the advertisement color determination module 310 is specifically configured to:

[0119] Based on the distance between each color in the advertisement image and the preset filtering color, N advertisement colors are determined in the advertisement image.

[0120] In some embodiments, the filtered color includes white; the N advertisement colors do not include a color whose distance from white is less than or equal to a preset value.

[0121] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.

[0122] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0123] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0124] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0125] like Figure 5 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 507 to a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0126] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0127] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSP), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as the method for recommending advertising theme colors. For example, in some embodiments, the method for recommending advertising theme colors may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the method for recommending advertising theme colors described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to execute the method for recommending an advertisement theme color in any other appropriate manner (for example, by means of firmware).

[0128] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0129] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0130] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0131] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a cathode ray tube (CRT) or a liquid crystal display (LCD) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0132] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.

[0133] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0134] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0135] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for recommending an advertisement theme color, comprising: Determine N advertisement colors contained in the advertisement image; where N is a positive integer; Based on the number of times each of the N advertising colors is used in the advertising picture, K advertising colors are selected from the N advertising colors; wherein K is a positive integer less than or equal to N; Based on the K advertisement colors, a recommended theme color is determined.

2. The method according to claim 1, wherein: The step of determining a recommended theme color based on the K advertisement colors includes: The theme color is determined in the preset color set based on a distance between each advertisement color in the K advertisement colors and each preset color in the preset color set.

3. The method according to claim 2, wherein: The determining the theme color in the preset color set based on the distance between each advertisement color in the K advertisement colors and each preset color in the preset color set includes: Based on the distance between each advertisement color in the K advertisement colors and each preset color in the preset color set, determine X groups of preset colors corresponding to X advertisement colors in the K advertisement colors one by one; wherein X is a positive integer less than or equal to K, and the X groups of preset colors include Y preset colors that are closest to the corresponding advertisement colors, where Y is a positive integer; The theme color is determined in the preset color set based on the number of occurrences of each preset color in the preset color set in the X groups of preset colors.

4. The method according to claim 2 or 3, wherein: The theme color includes R colors that meet the theme color condition, wherein the theme color condition is related to the number of occurrences, and R is an integer greater than or equal to 2; The method further comprises: If the number of colors satisfying the theme color condition in the preset color set is less than R, the value of X and / or the value of Y is increased, and the process returns to the step of determining X groups of preset colors corresponding one-to-one to the X advertisement colors, until R colors satisfying the theme color condition are determined in the preset color set.

5. The method according to claim 3, wherein: The X advertisement colors are advertisement colors that are used most frequently in the advertisement image.

6. The method according to any one of claims 1 to 5, wherein: The determining of N advertisement colors contained in the advertisement picture includes: Based on the distance between each color in the advertisement picture and a preset filter color, the N advertisement colors are determined in the advertisement picture.

7. The method according to claim 6, wherein: The filter color includes white; and the N advertisement colors do not include a color whose distance from white is less than or equal to a preset value.

8. A device for recommending an advertisement theme color, comprising: The advertisement color determination module is used to determine N advertisement colors contained in the advertisement image; wherein N is a positive integer; An advertisement color selection module, configured to select K advertisement colors from the N advertisement colors based on the number of times each advertisement color from the N advertisement colors is used in the advertisement picture; wherein K is a positive integer less than or equal to N; The theme color determination module is used to determine a recommended theme color based on the K advertisement colors.

9. The device according to claim 8, wherein: The theme color determination module is also used for: The theme color is determined in the preset color set based on a distance between each advertisement color in the K advertisement colors and each preset color in the preset color set.

10. The device according to claim 9, wherein: The theme color determination module includes: a preset color determination submodule, configured to determine, based on the distance between each advertisement color in the K advertisement colors and each preset color in the preset color set, X groups of preset colors corresponding one-to-one to X advertisement colors in the K advertisement colors; wherein X is a positive integer less than or equal to K, and the X groups of preset colors include Y preset colors that are closest to the corresponding advertisement colors, where Y is a positive integer; The theme color determination submodule is used to determine the theme color in the preset color set based on the number of occurrences of each preset color in the preset color set in the X groups of preset colors.

11. The device according to claim 9 or 10, wherein: The theme color includes R colors that meet the theme color condition, wherein the theme color condition is related to the number of occurrences, and R is an integer greater than or equal to 2; The theme color determination module further includes a processing submodule, and the processing submodule is used to: If the number of colors satisfying the theme color condition in the preset color set is less than R, the value of X and / or the value of Y is increased, and the process returns to the step of determining X groups of preset colors corresponding one-to-one to the X advertisement colors, until R colors satisfying the theme color condition are determined in the preset color set.

12. The device according to claim 10, wherein: The X advertisement colors are advertisement colors that are used most frequently in the advertisement image.

13. The device according to any one of claims 8 to 12, wherein: The advertisement color determination module is further used for: Based on the distance between each color in the advertisement picture and a preset filter color, the N advertisement colors are determined in the advertisement picture.

14. The device according to claim 13, wherein: The filter color includes white; and the N advertisement colors do not include a color whose distance from white is less than or equal to a preset value.

15. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

16. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.

17. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.