Data large-screen page processing method and apparatus, and related device

By obtaining the large-screen data page to be colored, component information and preset color disks, the color is automatically determined and applied according to the component type, which solves the problem of low coloring efficiency on large-screen data pages, realizes automatic coloring, and improves editing efficiency. .

WO2024193632A1PCT designated stage expired Publication Date: 2024-09-26BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/082929
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-22
Filing Date
2024-03-21
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

During the editing process of large-screen data pages, users need to manually configure colors, resulting in low coloring efficiency.

Method used

By obtaining the large-screen data page to be colored, component information, and preset color disks, the target color is determined based on the component type, and the large-screen data page is automatically colored using the target color.

Benefits of technology

It improves the coloring efficiency of large-screen data pages, reduces the time and energy of manual configuration, and realizes automated color settings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082929_26092024_PF_FP
    Figure CN2024082929_26092024_PF_FP
Patent Text Reader

Abstract

The present disclosure discloses a data large-screen page processing method and apparatus, and a device and a storage medium. The method comprises: acquiring a data large-screen page to be colored, component information of said data large-screen page and a preset color disk, wherein said data large-screen page comprises components to be colored, and the component information comprises the component types of said components; using a color matching method corresponding to the component type of a target component to determine a target color of the target component, wherein the target component is one of said components comprised in said data large-screen page, and the target color of the target component is determined on the basis of the preset color disk and one or more of background colors of said data large-screen page; and using the target color to color the target component to obtain a colored data large-screen page. In the method, on the basis of the component types of components comprised in a data large-screen page, a target color of a component is determined, such that the automatic coloring of the components is realized, thereby improving the efficiency of coloring a data large-screen page.
Need to check novelty before this filing date? Find Prior Art

Description

A data large screen page processing method, device and related equipment

[0001] This application claims priority to Chinese Patent Application No. 202310287609.0 filed on March 22, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field

[0002] The present invention relates to a method and apparatus for processing a large-screen data page, and related equipment. Background Art

[0003] In scenarios involving data presentation, data is often displayed using a large data screen. A large data screen is a device with a large display screen used to display data. The large data screen editing platform can edit large data screens and provide data visualization services. Users can freely drag and drop the rich visualization components provided by the large data screen editing platform, such as data charts, graphs, and controls, to configure and layout the large data screen. This allows users to easily build a large data screen without programming and freely determine the screen size based on the resolution of the large data screen device. The large data screen also features display options such as 3D maps and transition animations. By configuring the display mode, users can make the data displayed on the large data screen dynamic and expressive, with eye-catching animated alerts when data is updated or changed, making it easier for users to present data. Users can use the large data screen displayed by the large data screen device to conduct walking storytelling in the exhibition hall or present data on the large data screen displayed by the large data screen device.

[0004] When a user edits a data large screen page to be displayed on a data large screen device, it is necessary to manually configure the color of the data large screen page according to the needs of the displayed content, resulting in low coloring efficiency of the data large screen page.

[0005] Summary of the Invention

[0006] In view of this, the present disclosure provides a data large screen page processing method, apparatus and related equipment, which can improve the coloring efficiency of data large screen pages.

[0007] To solve the above problems, the technical solutions provided by the present disclosure are as follows:

[0008] Based on this, the technical solutions provided by this disclosure are as follows:

[0009] In a first aspect, the present disclosure provides a method for processing a large data screen page, the method comprising:

[0010] Obtaining a large screen page of data to be colored, component information of the large screen page of data to be colored, and a preset color palette, wherein the large screen page of data to be colored includes components to be colored, the component information includes component types of each component to be colored, and the preset color palette includes one or more basic colors;

[0011] Determining a target color of the target component based on a component type of the target component, the target component being one of the components to be colored included in the large-screen page of data to be colored, and the target color being determined based on one or more of the preset color palette and a background color of the large-screen page of data to be colored;

[0012] The target component is colored using the target color to obtain a colored data large screen page.

[0013] In a second aspect, the present disclosure provides a data large-screen page processing device, the device comprising:

[0014] An acquisition unit is configured to acquire a large-screen page of data to be colored, component information of the large-screen page of data to be colored, and a preset color palette, wherein the large-screen page of data to be colored includes components to be colored, the component information includes component types of each component to be colored, and the preset color palette includes one or more basic colors;

[0015] a determining unit, configured to determine a target color of the target component based on a component type of the target component, the target component being one of the components to be colored included in the large-screen page of data to be colored, the target color being determined based on one or more of the preset color palette and a background color of the large-screen page of data to be colored;

[0016] The coloring unit is used to color the target component with the target color to obtain a colored data large screen page.

[0017] In a third aspect, the present disclosure provides an electronic device, comprising:

[0018] one or more processors;

[0019] a storage device having one or more programs stored thereon,

[0020] When the one or more programs are executed by the one or more processors, the one or more processors implement any one of the methods described in the first aspect.

[0021] In a fourth aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, any method described in the first aspect is implemented.

[0022] In a fifth aspect, the present disclosure provides a computer program product, which, when running on a device, enables the device to execute the method according to the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] FIG1 is a schematic diagram of a framework of an exemplary application scenario provided by an embodiment of the present disclosure;

[0024] FIG2 is a flow chart of a method for processing a large-screen data page according to an embodiment of the present disclosure;

[0025] FIG3 is a schematic diagram of a data large screen page provided by an embodiment of the present disclosure;

[0026] FIG4 is a schematic structural diagram of a data large screen page processing device provided by an embodiment of the present disclosure; and

[0027] FIG5 is a schematic diagram of the basic structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] In order to facilitate understanding and explanation of the technical solutions provided by the embodiments of the present disclosure, the background technology of the present disclosure will be described below.

[0029] Users who create data dashboards typically use components to edit the content they want to display. To enhance the viewing experience, users configure the colors of the components within the dashboard. Currently, users manually configure the colors of the components within the dashboard based on their own experience, resulting in inefficient color matching for the dashboards.

[0030] Based on this, the embodiment of the present disclosure provides a data large screen page processing method, device, equipment and storage medium. The method first obtains the data large screen page to be colored, the component information of the data large screen page to be colored and the preset color palette, wherein the data large screen page to be colored includes the components to be colored, the component information includes the component type of each component to be colored, and the preset color palette includes one or more basic colors; the target color of the target component is determined by a color matching method corresponding to the component type of the target component, the target component is one of the components to be colored included in the data large screen page to be colored, and the target color of the target component is determined based on the preset color palette and one or more of the background colors of the data large screen page to be colored; and then the target color is used to color the target component to obtain the colored data large screen page. In this way, the target color of the component can be determined based on the component type of the component included in the data large screen page, and the automatic coloring of the component can be realized, which can improve the efficiency of coloring the data large screen page.

[0031] To facilitate understanding of a data large screen page processing method provided by an embodiment of the present disclosure, a data large screen page processing method provided by an embodiment of the present disclosure is described below with reference to the accompanying drawings, and is described below with reference to the scenario example shown in Figure 1. Referring to Figure 1, this figure is a schematic diagram of a framework of an exemplary application scenario provided by an embodiment of the present disclosure.

[0032] In actual application, the user inputs the data large screen page to be colored, the component information of the data large screen page to be colored, and the preset color palette including the selected basic color for coloring, into the device for processing the data large screen page. Among them, the component information of the data large screen page to be colored can be obtained by pre-component analysis of the data large screen page to be colored, or based on the editing data of the data large screen page edited by the user. The component information includes the component type of each component to be colored of the data large screen page to be colored. The device for processing the data large screen page then colors the components to be colored according to the target color to obtain the data large screen page that has been completed.

[0033] It should be noted that the device used for data large screen page processing can be a device that provides data large screen page processing services to users, such as a server. Users can access and use the data large screen page processing services provided by the server through a client or page configured on a terminal device. The device used for data large screen page processing can also be a terminal device such as a computer. The terminal device is pre-configured with a program that implements data large screen page processing. Users can use the program that implements data large screen page processing to color the data large screen page.

[0034] Those skilled in the art will appreciate that the framework diagram shown in FIG1 is merely an example in which the embodiments of the present disclosure may be implemented, and the scope of application of the embodiments of the present disclosure is not limited in any way by the framework.

[0035] To facilitate understanding of the technical solution provided by the embodiment of the present disclosure, the data large screen page processing method provided by the embodiment of the present disclosure is described below with reference to the accompanying drawings.

[0036] Referring to FIG. 2 , which is a flow chart of a data large screen page processing method provided by an embodiment of the present disclosure, as shown in FIG. 2 , the method may include S201 - S203:

[0037] S201: Acquire a large-screen page of data to be colored, component information of the large-screen page of data to be colored, and a preset color palette.

[0038] The data large screen page to be colored is a page that needs to be colored after the user edits the content of the data large screen page. Referring to Figure 3, this figure is a schematic diagram of a data large screen page provided by an embodiment of the present disclosure. The data large screen page to be colored includes components to be colored. The components to be colored are, for example, charts, text, data, and decorative images included in the data large screen page to be colored. Taking the data large screen page to be colored shown in Figure 3 as an example, the components to be colored include the title text "XXX Business Monitoring", a bar chart, a pie chart, a bubble chart, a decorative border, and a table.

[0039] The component to be colored can have an initial color. This initial color can be, for example, the color originally configured for the component to be colored, or a neutral color. Neutral colors include white, black, and gray. The data large screen page to be colored has a background color. In the disclosed embodiment, the background color is pre-set by the user or is the default background color of the data large screen page.

[0040] The component information of the data large screen page to be colored includes relevant information of the components to be colored. The data large screen page to be colored includes components to be colored of one or more component types. The component information of the data large screen page to be colored includes the component type of each component to be colored. Taking the data large screen page to be colored shown in Figure 3 as an example, the component information of the data large screen page to be colored includes "XXX business monitoring" as a background type component, a bar chart as a category type component, a pie chart as a category type component, a bubble chart as a numerical type component, a decorative border as a decorative type component, and a table as a background type component.

[0041] The component information of the data large screen page to be colored can be generated by the user while editing the data large screen page to be colored, or can be obtained by identifying and analyzing the data large screen page to be colored. As an example, the component information of the data large screen page to be colored is a POMtree. The POMtree includes the component type of each component to be colored in the data large screen page to be colored.

[0042] In some possible implementations, the component type includes one or more of a category component, a value component, a decoration component, and a background component.

[0043] Among them, the category-type component is a text that includes multiple contents. The category-type component uses different colors to represent texts with different contents. The text is data or characters. Category-type components are, for example, bar charts, line charts, scatter charts, pie charts, rose charts, funnel charts, Sankey charts, radar charts, or tables. For example, as shown in Figure 3, a bar chart is a category-type component. The bar chart is used to display "cost", "sales" and "net profit" for each month from January to March. The bar chart includes texts with three types of content, namely "cost", "sales" and "net profit".

[0044] Numeric components contain data with multiple values. Numeric components use color depth to represent changes in the data value. Some examples of numerical components include bubble charts, circle charts, and heat maps.

[0045] Decorative components are components with decorative functions, such as title backgrounds, decorative lines, borders, table lines, etc., which are used to decorate large data screen pages.

[0046] Background components are components that form the background of the large screen page of the data to be colored. Background components include, for example, title text, flip cards, icon graphics, text, etc.

[0047] In addition to obtaining information about the data large screen page to be colored and the components of the data large screen page to be colored, a preset color palette is also obtained. The preset color palette is used to determine the target color of the components to be colored. The preset color palette includes one or more basic colors. The basic colors included in the preset color palette can be pre-selected by the user or preset default colors.

[0048] S202: Determine a target color of the target component based on the component type of the target component.

[0049] Components to be colored have corresponding methods for determining target colors depending on their component types. The component type of the target component can be determined based on the component information of the large screen page of data to be colored. The target component is one of the multiple components to be colored included in the large screen page of data to be colored. The target color of the target component is determined based on one or more of a preset color palette and the background color of the large screen page of data to be colored.

[0050] As some examples, the embodiments of the present disclosure provide specific implementations of target colors of target components of four component types, as described below.

[0051] S203: Coloring the target component with the target color to obtain a colored data large screen page.

[0052] The target component is colored using the determined target color. The disclosed embodiments do not limit the method for coloring the target component. In one possible implementation, after determining the target color of the target component, the target component included in the data large screen page to be colored is colored. In another possible implementation, after determining the target color of each target component included in the data large screen page to be colored, each target component included in the data large screen page to be colored is colored together.

[0053] Based on the relevant contents of S201-S203 above, it can be known that according to the component type of the component to be colored, the target color of the component to be colored is determined, and the target color is used for coloring. In this way, the data large screen page to be colored can be automatically colored, thereby improving the efficiency of generating the data large screen page.

[0054] In some possible implementations, the component type includes one or more of a category component, a value component, a decoration component, and a background component. The present disclosure provides specific implementations of target colors for target components of the above four component types.

[0055] For example, the target component is a category-type component.

[0056] The target color of text with the same content information in a category component must remain consistent. For example, in the bar chart shown in Figure 3, the bar chart includes three types of text: "Cost," "Sales," and "Net Profit." The bar chart's colors for "Cost," "Sales," and "Net Profit" are different, while the bar chart's colors for text with the same content information are the same.

[0057] A target color of a target component is determined by using a color matching method corresponding to the component type of the target component, including the following two steps.

[0058] A1: Obtain multiple texts included in the target component from the component information of the large screen page of the data to be colored.

[0059] The component information of the data large screen page to be colored further includes a plurality of texts included in each category-type component. The texts included in the target component are obtained from the component information of the data large screen page to be colored.

[0060] A2: Determine the target colors corresponding to the content texts of the target component.

[0061] The target component can include multiple texts. Multiple texts include texts with different contents. Determine the target color corresponding to each text content.

[0062] The target color corresponding to the text of each content can be obtained based on a preset color palette. In one possible implementation, the target color can be a basic color of the preset color palette. Based on the multiple basic colors included in the preset color palette, corresponding basic colors are assigned to texts of different contents as target colors. In another possible implementation, the target color is an extended color. In one possible case, the extended color is obtained by mixing multiple basic colors included in the preset color palette. For example, the preset color palette includes red and yellow. Red and yellow are mixed to obtain the extended color orange. In another possible case, the extended color is obtained by adjusting the brightness of the basic colors included in the preset color palette. For example, the preset color palette includes light red, and the extended color is a dark red obtained by adjusting the brightness of the light red.

[0063] The embodiment of the present disclosure does not limit the method of determining the target colors corresponding to the respective content texts of the target component.

[0064] In a possible implementation, a corresponding target color is assigned to the text of each content based on the basic color or extended color included in the preset color palette.

[0065] In another possible implementation, one of the multiple texts included in the target component is obtained, that is, the colored area of ​​the target text and the adjacent area of ​​the colored area, and the target color of the target text is determined based on the colored color of the adjacent area. The colored area of ​​the target text is the area corresponding to the target text that needs to be colored with the target color. Taking the above-mentioned target component as a bar chart as an example, the columnar area included in the bar chart of the large-screen page of data to be colored is the area that needs to be colored. The adjacent area of ​​the colored area can be obtained by image processing the large-screen page of data to be colored. Using an image processing algorithm, the large-screen page of data to be colored is divided into areas that need to be colored, and a colored area and an adjacent area adjacent to the colored area are obtained.

[0066] Based on a preset color wheel, multiple first candidate colors are determined. A first metric value is calculated for each first candidate color. The first candidate color with the highest first metric value is then used as the target color corresponding to the target text. The first metric value is calculated based on one or more of the harmony between the first candidate color and the coloring color of the adjacent area, the distinction between the first candidate color and the coloring color of the adjacent area, and the continuity between the first candidate color and the coloring color of the adjacent area. The harmony, distinction, and continuity can all be calculated using corresponding formulas. In some possible implementations, based on the degree of proximity between the colored area and the adjacent area, the weight corresponding to the adjacent area is configured. The degree of proximity between the colored area and the adjacent area can be determined based on the boundary length between the colored area and the adjacent area. The degree of proximity is positively correlated with the boundary length. The weight corresponding to the adjacent area is used to adjust the values ​​of the harmony, distinction, and continuity calculated using the coloring color of the adjacent area. For example, the harmony calculated between the calculated first candidate color and the coloring color of the adjacent area is multiplied by the weight of the adjacent area to obtain an updated harmony.

[0067] In order to keep the target colors corresponding to the texts with the same content included in the large-screen page of the data to be colored the same, a correspondence between the target text and the target color is established. In this way, when the target color corresponding to the text is determined later, the correspondence between the target text and the target color established historically can be queried. If the correspondence between the target text and the target color that needs to be determined this time can be queried, the target color corresponding to the target text can be determined. If the correspondence between the target text and the target color that needs to be determined this time cannot be queried, the target color corresponding to the target text is determined from the first candidate color. By utilizing the established correspondence between the target text and the target color, the color of the texts with the same content in the large-screen page of the data to be colored can be kept the same.

[0068] For example, the target component is a numeric component.

[0069] Numeric components contain data representing multiple values. Numeric components can use color depth to represent changes in the data's value. For example, if a numeric component is a heat map, its target color is red. For higher data values, the corresponding colored area will be colored darker red. For lower data values, the corresponding colored area will be colored lighter red.

[0070] The present disclosure provides a specific implementation method for determining a target color of a target component based on a component type of the target component, including:

[0071] B1: Calculate the brightness of each second candidate color and the difference between each second candidate color and the background color.

[0072] The second candidate color is a color determined according to a preset color palette. The second candidate color can be a basic color or an extended color included in the preset color palette. Each second candidate color has a different color system.

[0073] The lightness of the second candidate color is used to measure the depth of the second candidate color. The lightness of the second candidate color can be calculated using formula (1). C1 = -2.1 + 0.05 × (100 - L) (1)

[0074] Where L is the brightness of the second candidate color. C1 is the lightness of the second candidate color. The darker the second candidate color, the larger the value of C1. The lighter the second candidate color, the smaller the value of C1.

[0075] The difference between the second candidate color and the background color is used to measure the difference between the second candidate color and the background color. The difference between the second candidate color and the background color is calculated using formula (2)

[0076] Among them, L i 、a i and b i Respectively represent the three components of the second candidate color in LAB (Lab color space, color-opponent space). i is the brightness of the second candidate color, a i and b i Indicates the color opposition dimension. L j 、a j and b j Represents the three components of the background color in LAB. j is the brightness of the background color, a j and b j Represents the color opposition dimension.

[0077] B2: Calculate the second metric value of each second candidate color using the brightness and difference.

[0078] The second metric value of the second candidate color can be the sum of the lightness of the second candidate color and the difference of the second candidate color, or a weighted sum thereof, wherein the weights corresponding to the lightness and the difference can be preconfigured.

[0079] B3: Determine an extreme color according to the second metric value of each second candidate color, where the extreme color corresponds to extreme value data included in the numerical component.

[0080] According to the calculated second metric values ​​of each second candidate color, the target color corresponding to the extreme value, that is, the extreme color, is first determined. The extreme value is the data with the largest value and the data with the smallest value included in the numerical component. The component information of the large-screen page of the data to be colored also includes the values ​​of the data of each numerical component. The extreme data is obtained from the component information of the large-screen page of the data to be colored. The target color corresponding to the extreme value can be the second candidate color with the largest or smallest second metric value. For example, the target color corresponding to the data with the largest value is the second candidate color with the largest second metric value. The target color corresponding to the data with the smallest value is the second candidate color with the smallest second metric value. Or, for example, the target color corresponding to the data with the largest value is the second candidate color with the largest second metric value. The target color corresponding to the data with the smallest value is the second candidate color ranked second from largest to smallest in terms of second metric value.

[0081] In one possible implementation, the extreme value data includes intermediate value data. The intermediate value data is a preset value. For example, the intermediate value data is 0. If the extreme value data includes intermediate value data, such as the data with the largest value or the data with the smallest value, the neutral color is used as the color corresponding to the intermediate value data. Another extreme value data is used to determine an extreme color based on the second metric values ​​of each second candidate color.

[0082] In another possible implementation, the extreme value data does not include intermediate value data. There are two extreme colors. To prevent a large difference in hue between two calculated colors, the hue difference between the two extreme colors is calculated. If the hue difference between the two extreme colors is not within a preset range, the extreme colors are re-determined based on the second metric values ​​of each second candidate color. If the hue difference between the two extreme colors is within a preset range, the two extreme colors are determined. The preset range is greater than or equal to 120 and less than or equal to 240.

[0083] B4: Determine a third candidate color for the data included in the numerical component excluding the extreme value data based on the extreme color.

[0084] After obtaining the extreme color, the extreme color is used to determine a third candidate color corresponding to the data other than the extreme value data. The third candidate color has a lightness lower than that of the extreme color, and the third candidate color and the extreme color belong to the same color family. The third candidate color can be determined using a color lightness mapping algorithm. The extreme color and the third candidate color can form a step color palette for coloring numerical components.

[0085] In a possible implementation, the brightness of the third candidate color corresponding to the value of data other than the extreme value data is determined by using the correspondence between the extreme value and the brightness of the extreme color.

[0086] For example, the extreme value data includes the intermediate value data 0. The neutral color corresponding to the intermediate value data is white. The extreme color determined in step B3 is dark red, with a lightness of A and an extreme value of 100. The third candidate color corresponding to the data with a value of 50 is red with a lightness of half that of A. For another example, the extreme value data does not include the intermediate value data. The extreme colors determined in step B3 are dark red and dark blue. The extreme values ​​are 100 and -100. The extreme color corresponding to the extreme value of 100 is dark red with a lightness of A. The extreme color corresponding to the extreme value of -100 is dark blue with a lightness of B. The third candidate color corresponding to the data with values ​​between 100 and 0 is red. The third candidate color corresponding to the data with values ​​between 0 and -100 is blue. The third candidate color corresponding to the data with a value of 50 is red with a lightness of half that of A. The third candidate color corresponding to the data with a value of -25 is blue with a lightness of one-quarter that of A.

[0087] For example, the target component is a decoration-type component.

[0088] A decorative component can be selected by the user from a component library and has an initial color.

[0089] The present disclosure provides a specific implementation method for determining a target color of a target component based on a component type of the target component, including:

[0090] C1: Get the initial color of the decorative component from the component information of the large screen page of the data to be colored.

[0091] The initial color of a decorative component may not match the overall color scheme of the data screen to be colored, necessitating a color change. The component information for the data screen to be colored also includes the initial colors of each decorative component. The initial colors of each decorative component are obtained from the component information for the data screen to be colored. The number of initial colors for a decorative component can be one or more.

[0092] C2: Determine the target color based on the initial color and the basic colors included in the preset color palette.

[0093] The initial color of the decorative component is set according to the initial color scheme of the decorative component. On the basis of using the initial color of the decorative component and maintaining the initial color scheme of the decorative component, the target color is determined using the basic colors included in the preset color palette.

[0094] In a possible implementation, the initial color is only one color. From the basic colors included in the preset color palette, the basic color with the smallest difference from the initial color is selected as the target color.

[0095] In another possible implementation, the initial color is a plurality of colors. The initial color includes an initial primary color and an initial secondary color. The initial primary color is the initial color used primarily for coloring decorative components. The initial secondary color is the initial color used secondary for coloring decorative components. The color difference between the initial primary color and the initial secondary color is calculated. The color difference can be obtained by calculating the difference between the color matrix of the initial primary color and the color matrix of the initial secondary color. The target primary color is then determined based on a preset color palette. The target primary color can be a basic color included in the preset color palette, or an extended color. Finally, the target secondary color is calculated using the target primary color and the color difference between the initial primary color and the initial secondary color.

[0096] For example, the target component is a background-type component.

[0097] Background components are components that form the background of the data screen to be colored. Background components generally use neutral colors.

[0098] The present disclosure provides a specific implementation method for determining a target color of a target component based on a component type of the target component, including:

[0099] D1: Calculate the degree of distinction between each fourth candidate color and the background color. The fourth candidate color is a neutral color.

[0100] The background component needs to be highly distinguishable from the background color of the large screen page of the data to be colored so that it can be easily identified when viewing. Calculate the distinction between the fourth candidate color and the background color. Formulas (3)-(27) are used to calculate the distinction. a1′=a1(1+G) (9) a2′=a2(1+G) (10) ΔL′=L1+L2 (19) ΔC′=C2′-C1′ (20) R T=-R C sin (2Δθ) (27)

[0101] Where ΔE is the distinction between the fourth candidate color and the background color. L1, a1, and b1 represent the three components of the fourth candidate color in LAB. L1 is the brightness of the background color, a1 and b1 represent the color opposition dimension of the fourth candidate color. L2, a2, and b2 represent the three components of the background color in LAB. L2 is the brightness of the background color, a2 and b2 represent the color opposition dimension of the background color. K L , K C and K H is the default value.

[0102] D2: Select the fourth candidate color whose discrimination is greater than the discrimination threshold as the target color of the target component.

[0103] The discrimination threshold is predetermined. The fourth candidate color having a discrimination greater than the discrimination threshold is clearly distinguishable from the background color. The fourth candidate color having a discrimination greater than the discrimination threshold is used as the target color of the target component.

[0104] Based on the above, it can be seen that for components of different component types, there are corresponding methods for determining target colors. In this way, a target color that meets the display requirements of the component type can be determined, and a more appropriate target color can be determined.

[0105] Based on the data large screen page processing method provided by the above method embodiment, the embodiment of the present disclosure also provides a data large screen page processing device, which will be described below with reference to the accompanying drawings.

[0106] See Figure 4, which is a schematic diagram of the structure of a data large screen page processing device provided by an embodiment of the present disclosure. As shown in Figure 4, the data large screen page processing device includes:

[0107] An acquisition unit 401 is configured to acquire a large-screen data page to be colored, component information of the large-screen data page to be colored, and a preset color palette, wherein the large-screen data page to be colored includes components to be colored, the component information includes component types of each component to be colored, and the preset color palette includes one or more basic colors;

[0108] A determining unit 402 is configured to determine a target color of the target component based on a component type of the target component, wherein the target component is one of the components to be colored included in the large-screen page of data to be colored, and the target color is determined based on one or more of the preset color palette and a background color of the large-screen page of data to be colored;

[0109] The coloring unit 403 is configured to color the target component using the target color to obtain a colored data large screen page.

[0110] In one possible implementation, the component type of the target component is a category-type component, the category-type component includes texts of multiple contents, and the category-type component is a component that uses different colors to represent texts of different contents. The component information of the large-screen data page to be colored also includes multiple texts included in each category-type component. The determining unit 402 is used to determine the target color of the target component based on the component type of the target component, including:

[0111] The determination unit 402 is used to obtain multiple texts included in the target component from the component information of the large-screen page of the data to be colored; determine the target colors corresponding to the texts in each content of the target component, and the target colors are obtained based on the preset color palette.

[0112] In a possible implementation, the determining unit 402 is configured to determine the target colors corresponding to the texts of the respective contents of the target component, including:

[0113] The determination unit 402 is used to determine the colored area of ​​the target text and the adjacent area of ​​the colored area from the large-screen page of data to be colored, where the target text is one of the multiple texts included in the target component; calculate the first metric value of each first candidate color, where the first candidate color is a color determined according to the preset color palette, and the first metric value of the first candidate color is calculated based on one or more of the harmony between the first candidate color and the colored color of the adjacent area, the distinguishability between the first candidate color and the colored color of the adjacent area, and the continuity between the first candidate color and the colored color of the adjacent area; and use the first candidate color with the highest first metric value as the target color corresponding to the target text.

[0114] In a possible implementation, the apparatus further includes:

[0115] An establishing unit is used to establish a corresponding relationship between the target text and the target color.

[0116] In a possible implementation, the determining unit 402 is configured to determine the target colors corresponding to the texts of the respective contents of the target component, including:

[0117] The determining unit 402 is configured to query and obtain target colors corresponding to the respective texts included in the target component.

[0118] In one possible implementation, the target color is a basic color of the preset color palette, or an extended color, which is obtained by mixing multiple basic colors included in the preset color palette, or by adjusting the brightness of the basic colors included in the preset color palette.

[0119] In one possible implementation, the component type of the target component is a numerical component, the numerical component includes data of multiple numerical values, the numerical component is a component that uses color depth to reflect the numerical change of data, the numerical component includes data of multiple numerical values, and the component information of the large-screen page of data to be colored also includes the numerical values ​​of the data of each numerical component. The determining unit 402 is used to determine the target color of the target component based on the component type of the target component, including:

[0120] The determination unit 402 is used to calculate the brightness of each second candidate color and the difference between each second candidate color and the background color, the second candidate color is a color determined according to the preset color palette; the second metric value of each second candidate color is calculated using the brightness and the difference; an extreme color is determined according to the second metric value of each second candidate color, the extreme color corresponds to the extreme value data included in the numerical component, and the extreme value data is obtained from the component information of the large-screen page of the data to be colored; according to the extreme color, a third candidate color of the data included in the numerical component other than the extreme value data is determined, the brightness of the third candidate color is less than the brightness of the extreme color, and the third candidate color belongs to the same color system as the extreme color.

[0121] In a possible implementation, the extreme value data included in the numerical component includes intermediate value data, and the determining unit 402 is further configured to use a neutral color as a color corresponding to the intermediate value data.

[0122] In a possible implementation, the extreme value data included in the numerical component does not include intermediate value data, the number of the extreme colors is two, and the hue difference between the two extreme colors is within a preset range.

[0123] In one possible implementation, the component type of the target component is a decorative component, which is a component with a decorative function. The component information of the large-screen data page to be colored also includes the initial color of each decorative component. The determining unit 402 is configured to determine the target color of the target component based on the component type of the target component, including:

[0124] The determining unit 402 is configured to obtain an initial color of the decorative component from the component information of the large-screen data page to be colored; and determine a target color based on the initial color and the basic colors included in the preset color palette.

[0125] In a possible implementation, the initial color includes an initial primary color and an initial secondary color. The determining unit 402 is configured to determine the target color according to the initial color and the basic colors included in the preset color palette, including:

[0126] The determination unit 402 is used to calculate the color difference between the initial primary color and the initial secondary color; and use the target primary color and the color difference to calculate the target secondary color, where the target primary color is determined based on the preset color palette, the target primary color is the target color corresponding to the target component whose color is the initial primary color, and the target secondary color is the target color corresponding to the target component whose color is the initial secondary color.

[0127] In one possible implementation, the component type of the target component is a background component, which is a component constituting the background of the large-screen page of the data to be colored. The determining unit 402 is configured to determine the target color of the target component based on the component type of the target component, including:

[0128] The determining unit 402 is configured to calculate the degree of distinction between each fourth candidate color and the background color, where the fourth candidate color is a neutral color; and select a fourth candidate color with a degree of distinction greater than a threshold value of distinction as the target color of the target component.

[0129] Based on the data large screen page processing method provided in the above method embodiment, the present disclosure also provides an electronic device, including: one or more processors; a storage device on which one or more programs are stored. When the one or more programs are executed by the one or more processors, the one or more processors implement the data large screen page processing method as described in any of the above embodiments.

[0130] Reference is now made to FIG5 , which illustrates a schematic diagram of the structure of an electronic device 500 suitable for implementing an embodiment of the present disclosure. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (portable Android devices), PMPs (Portable Media Players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), and fixed terminals such as digital televisions (TVs) and desktop computers. The electronic device illustrated in FIG5 is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.

[0131] As shown in Figure 5, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the electronic device 500 are also stored in the RAM 503. The processing device 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.

[0132] Typically, the following devices may be connected to the I / O interface 505: an input device 508 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 5 shows the electronic device 500 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

[0133] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0134] The electronic device provided by the embodiment of the present disclosure and the data large-screen page processing method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0135] Based on a data large screen page processing method provided in the above method embodiment, an embodiment of the present disclosure provides a computer storage medium on which a computer program is stored, wherein when the program is executed by a processor, the data large screen page processing method as described in any of the above embodiments is implemented.

[0136] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or 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 above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0137] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (Hypertext Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

[0138] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0139] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the data large-screen page processing method.

[0140] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0141] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0142] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. The name of a unit / module does not, in some cases, limit the unit itself. For example, a voice data acquisition module may also be described as a "data acquisition module."

[0143] The functions described above in the present disclosure may be performed at least in part by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

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

[0145] According to one or more embodiments of the present disclosure, Example 1 provides a method for processing a large data screen page, the method comprising:

[0146] Obtaining a large screen page of data to be colored, component information of the large screen page of data to be colored, and a preset color palette, wherein the large screen page of data to be colored includes components to be colored, the component information includes component types of each component to be colored, and the preset color palette includes one or more basic colors;

[0147] Determining a target color of the target component based on a component type of the target component, the target component being one of the components to be colored included in the large-screen page of data to be colored, and the target color being determined based on one or more of the preset color palette and a background color of the large-screen page of data to be colored;

[0148] The target component is colored using the target color to obtain a colored data large screen page.

[0149] According to one or more embodiments of the present disclosure, Example 2 provides a method for processing a large data screen page, wherein the component type of the target component is a category-type component, the category-type component includes text of multiple contents, and the category-type component is a component that uses different colors to represent text of different contents. The component information of the large data screen page to be colored also includes multiple texts included in each category-type component. Determining the target color of the target component based on the component type of the target component includes:

[0150] Acquire multiple texts included in the target component from the component information of the large-screen page of data to be colored;

[0151] Determine target colors corresponding to the texts of each content of the target component, where the target colors are obtained based on the preset color palette.

[0152] According to one or more embodiments of the present disclosure, Example 3 provides a method for processing a large data screen page, wherein determining the target colors corresponding to the text of each content of the target component includes:

[0153] Determining, from the large-screen page of data to be colored, a colored area of ​​the target text and an adjacent area of ​​the colored area, the target text being one of the multiple texts included in the target component;

[0154] calculating a first metric value for each first candidate color, where the first candidate color is a color determined according to the preset color wheel, and the first metric value for the first candidate color is calculated based on one or more of a degree of harmony between the first candidate color and a coloring color of the adjacent area, a degree of distinction between the first candidate color and the coloring color of the adjacent area, and a degree of continuity between the first candidate color and the coloring color of the adjacent area;

[0155] The first candidate color with the highest first metric value is used as the target color corresponding to the target text.

[0156] According to one or more embodiments of the present disclosure, Example 4 provides a method for processing a large data screen page, the method further comprising:

[0157] A correspondence between the target text and the target color is established.

[0158] According to one or more embodiments of the present disclosure, Example 5 provides a method for processing a large data screen page, wherein determining the target colors corresponding to the text of each content of the target component includes:

[0159] The query obtains the target colors corresponding to the respective texts included in the target component.

[0160] According to one or more embodiments of the present disclosure, Example 6 provides a method for processing a large-screen data page, wherein the target color is the basic color of the preset color palette, or an extended color, and the extended color is obtained by mixing multiple basic colors included in the preset color palette, or by adjusting the brightness of the basic colors included in the preset color palette.

[0161] According to one or more embodiments of the present disclosure, Example 7 provides a method for processing a large data screen page, wherein the component type of the target component is a numerical component, the numerical component includes data of multiple numerical values, the numerical component is a component that uses color depth to reflect the numerical change of the data, the numerical component includes data of multiple numerical values, and the component information of the large data screen page to be colored also includes the numerical values ​​of the data of each numerical component. Determining the target color of the target component based on the component type of the target component includes:

[0162] Calculating the brightness of each second candidate color and the difference between each second candidate color and the background color, wherein the second candidate color is determined according to the preset color palette;

[0163] Calculating a second metric value of each of the second candidate colors using the brightness and the difference;

[0164] Determining an extreme color according to the second metric value of each of the second candidate colors, where the extreme color corresponds to extreme value data included in the numerical component, and the extreme value data is obtained from component information of the large-screen page of the data to be colored;

[0165] According to the extreme color, a third candidate color of the data included in the numerical component except the extreme value data is determined, the brightness of the third candidate color is smaller than the brightness of the extreme color, and the third candidate color and the extreme color belong to the same color system.

[0166] According to one or more embodiments of the present disclosure, Example 8 provides a method for processing a large data screen page, wherein the extreme value data included in the numerical component includes intermediate value data, and the method further includes:

[0167] A neutral color is used as the color corresponding to the intermediate value data.

[0168] According to one or more embodiments of the present disclosure, Example 9 provides a method for processing a large-screen data page, wherein the extreme value data included in the numerical component does not include intermediate value data, the number of extreme colors is two, and the hue difference between the two extreme colors is within a preset range.

[0169] According to one or more embodiments of the present disclosure, Example 10 provides a method for processing a large data screen page, wherein the component type of the target component is a decorative component, which is a component with a decorative function, and the component information of the large data screen page to be colored also includes the initial color of each decorative component. Determining the target color of the target component based on the component type of the target component includes:

[0170] Obtaining the initial color of the decorative component from the component information of the large screen page of data to be colored;

[0171] A target color is determined according to the initial color and basic colors included in the preset color palette.

[0172] According to one or more embodiments of the present disclosure, Example 11 provides a method for processing a large data screen page, wherein the initial color includes an initial primary color and an initial secondary color, and determining a target color based on the initial color and a basic color included in the preset color palette includes:

[0173] Calculating a color difference between the initial primary color and the initial secondary color;

[0174] The target secondary color is calculated using the target primary color and the color difference. The target primary color is determined based on the preset color palette. The target primary color is the target color corresponding to the target component whose color is the initial primary color. The target secondary color is the target color corresponding to the target component whose color is the initial secondary color.

[0175] According to one or more embodiments of the present disclosure, Example 12 provides a method for processing a large data screen page, wherein the component type of the target component is a background component, and the background component is a component constituting the background of the large data screen page to be colored. Determining a target color of the target component based on the component type of the target component includes:

[0176] Calculating the degree of distinction between each fourth candidate color and the background color, wherein the fourth candidate color is a neutral color;

[0177] A fourth candidate color with a discrimination degree greater than the discrimination degree threshold is selected as the target color of the target component.

[0178] According to one or more embodiments of the present disclosure, Example 13 provides a device for processing a large data screen page, the device comprising:

[0179] An acquisition unit is configured to acquire a large-screen page of data to be colored, component information of the large-screen page of data to be colored, and a preset color palette, wherein the large-screen page of data to be colored includes components to be colored, the component information includes component types of each component to be colored, and the preset color palette includes one or more basic colors;

[0180] a first determining unit, configured to determine a target color of the target component based on a component type of the target component, the target component being one of the components to be colored included in the large-screen page of data to be colored, the target color being determined based on one or more of the preset color palette and a background color of the large-screen page of data to be colored;

[0181] The coloring unit is used to color the target component with the target color to obtain a colored data large screen page.

[0182] According to one or more embodiments of the present disclosure, Example 14 provides a data large screen page processing device, wherein the component type of the target component is a category-type component, the category-type component includes text of multiple contents, and the category-type component is a component that uses different colors to represent text of different contents. The component information of the data large screen page to be colored also includes multiple texts included in each category-type component. The determination unit is used to determine the target color of the target component based on the component type of the target component, including:

[0183] The determination unit is used to obtain multiple texts included in the target component from the component information of the large-screen page of the data to be colored; determine the target colors corresponding to the texts in each content of the target component, and the target colors are obtained based on the preset color palette.

[0184] According to one or more embodiments of the present disclosure, Example 15 provides a data large screen page processing device, wherein the determining unit is configured to determine target colors corresponding to the text of each content of the target component, including:

[0185] The determination unit is used to determine the colored area of ​​the target text and the adjacent area of ​​the colored area from the large-screen page of data to be colored, where the target text is one of the multiple texts included in the target component; calculate the first metric value of each first candidate color, where the first candidate color is a color determined according to the preset color palette, and the first metric value of the first candidate color is calculated based on one or more of the harmony between the first candidate color and the colored color of the adjacent area, the distinguishability between the first candidate color and the colored color of the adjacent area, and the continuity between the first candidate color and the colored color of the adjacent area; and use the first candidate color with the highest first metric value as the target color corresponding to the target text.

[0186] According to one or more embodiments of the present disclosure, Example 16 provides a data large screen page processing device, the device further comprising:

[0187] An establishing unit is used to establish a corresponding relationship between the target text and the target color.

[0188] According to one or more embodiments of the present disclosure, Example 17 provides a data large screen page processing device, wherein the determining unit is configured to determine target colors corresponding to the text of each content of the target component, including:

[0189] The determining unit is used to query and obtain target colors corresponding to the respective texts included in the target component.

[0190] According to one or more embodiments of the present disclosure, Example 18 provides a data large-screen page processing device, wherein the target color is the basic color of the preset color palette, or an extended color, and the extended color is obtained by mixing multiple basic colors included in the preset color palette, or by adjusting the brightness of the basic colors included in the preset color palette.

[0191] According to one or more embodiments of the present disclosure, Example 19 provides a data large screen page processing device, wherein the component type of the target component is a numerical component, the numerical component includes data of multiple numerical values, the numerical component is a component that uses color depth to reflect the numerical change of the data, the numerical component includes data of multiple numerical values, the component information of the data large screen page to be colored also includes the numerical value of the data of each numerical component, and the determination unit is used to determine the target color of the target component based on the component type of the target component, including:

[0192] The determination unit is used to calculate the brightness of each second candidate color and the difference between each second candidate color and the background color, the second candidate color is a color determined according to the preset color palette; the second metric value of each second candidate color is calculated using the brightness and the difference; according to the second metric value of each second candidate color, an extreme color is determined, the extreme color corresponds to the extreme value data included in the numerical component, and the extreme value data is obtained from the component information of the large-screen page of the data to be colored; according to the extreme color, a third candidate color of the data included in the numerical component other than the extreme value data is determined, the brightness of the third candidate color is less than the brightness of the extreme color, and the third candidate color belongs to the same color system as the extreme color.

[0193] According to one or more embodiments of the present disclosure, Example 20 provides a data large screen page processing device, wherein the extreme value data included in the numerical component includes intermediate value data, and the device further includes:

[0194] The second determining unit is configured to use a neutral color as a color corresponding to the intermediate value data.

[0195] According to one or more embodiments of the present disclosure, Example 21 provides a data large-screen page processing device, wherein the extreme value data included in the numerical component does not include intermediate value data, the number of extreme colors is two, and the hue difference between the two extreme colors is within a preset range.

[0196] According to one or more embodiments of the present disclosure, Example 22 provides a data large screen page processing device, wherein the component type of the target component is a decorative component, and the decorative component is a component with a decorative function. The component information of the data large screen page to be colored also includes the initial color of each decorative component. The determination unit is used to determine the target color of the target component based on the component type of the target component, including:

[0197] The determining unit is configured to obtain an initial color of the decorative component from the component information of the large-screen page of data to be colored; and determine a target color based on the initial color and the basic colors included in the preset color palette.

[0198] According to one or more embodiments of the present disclosure, Example 23 provides a data large screen page processing device, wherein the initial color includes an initial primary color and an initial secondary color, and the determination unit is configured to determine a target color based on the initial color and a basic color included in the preset color palette, including:

[0199] The determination unit is used to calculate the color difference between the initial primary color and the initial secondary color; and use the target primary color and the color difference to calculate the target secondary color, wherein the target primary color is determined based on the preset color palette, the target primary color is the target color corresponding to the target component whose color is the initial primary color, and the target secondary color is the target color corresponding to the target component whose color is the initial secondary color.

[0200] According to one or more embodiments of the present disclosure, Example 24 provides a data large screen page processing device, wherein the component type of the target component is a background component, and the background component is a component constituting the background of the data large screen page to be colored. The determining unit is configured to determine the target color of the target component based on the component type of the target component, including:

[0201] The determining unit is configured to calculate the degree of distinction between each fourth candidate color and the background color, where the fourth candidate color is a neutral color; and select a fourth candidate color with a degree of distinction greater than a threshold value of the degree of distinction as the target color of the target component.

[0202] According to one or more embodiments of the present disclosure, Example 25 provides an electronic device, including:

[0203] one or more processors;

[0204] a storage device having one or more programs stored thereon,

[0205] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of Examples 1 to 12.

[0206] According to one or more embodiments of the present disclosure, Example 26 provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any one of Examples 1 to 12 is implemented.

[0207] It should be noted that the various embodiments of this disclosure are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Reference can be made to the descriptions of the systems or devices disclosed in the embodiments for similarities and differences between them. Since the systems or devices disclosed in the embodiments correspond to the methods disclosed in the embodiments, their descriptions are relatively simple, and reference can be made to the descriptions of the methods for any related details.

[0208] It should be understood that in the present disclosure, "at least one (item)" refers to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0209] It should also be noted that, in the present disclosure, relational terms such as first and second, etc., are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the statement "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0210] The steps of the methods or algorithms described in conjunction with the embodiments of the present disclosure may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0211] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined in this disclosure may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not limited to the embodiments shown herein, but is intended to be applied in the widest manner consistent with the principles and novel features of the present disclosure.

Claims

1. A data large screen page processing method, comprising: Acquire a large screen page of data to be colored, component information of the large screen page of data to be colored, and a preset color palette, wherein the large screen page of data to be colored includes components to be colored, the component information includes component types of each component to be colored, and the preset color palette includes one or more basic colors; Determining a target color of the target component based on a component type of the target component, the target component being one of the components to be colored included in the large-screen page of data to be colored, and the target color being determined based on one or more of the preset color palette and the background color of the large-screen page of data to be colored; and The target component is colored using the target color to obtain a colored data large-screen page.

2. The method according to claim 1, wherein: The component type of the target component is a category component, the category component includes texts of multiple contents, the category component is a component that uses different colors to reflect texts of different contents, the component information of the large screen page of data to be colored also includes multiple texts included in each category component, and determining the target color of the target component based on the component type of the target component includes: Acquire multiple texts included in the target component from the component information of the large-screen page of the data to be colored; and Determine the target colors corresponding to the texts of the various contents of the target component, respectively, wherein the target colors are obtained based on the preset color palette.

3. The method according to claim 2, wherein: The determining of the target colors corresponding to the texts of the respective contents of the target component includes: Determine, from the large-screen page of data to be colored, a colored area of ​​a target text and an adjacent area of ​​the colored area, wherein the target text is one of a plurality of texts included in the target component; Calculating a first metric value of each first candidate color, where the first candidate color is a color determined according to the preset color wheel, and the first metric value of the first candidate color is calculated according to one or more of a harmony between the first candidate color and a coloring color of the adjacent area, a distinction between the first candidate color and the coloring color of the adjacent area, and a continuity between the first candidate color and the coloring color of the adjacent area; and The first candidate color with the highest first metric value is used as the target color corresponding to the target text.

4. The method according to claim 3, further comprising: A corresponding relationship between the target text and the target color is established.

5. The method according to claim 4, wherein: The determining of the target colors corresponding to the texts of the respective contents of the target component includes: The target colors corresponding to the respective texts included in the target component are obtained by querying.

6. The method according to any one of claims 1 to 5, wherein: The target color is a basic color of the preset color palette, or an extended color, which is obtained by mixing multiple basic colors included in the preset color palette, or by adjusting the brightness of the basic colors included in the preset color palette.

7. The method according to claim 1, wherein: The component type of the target component is a numerical component, the numerical component includes data of multiple numerical values, the numerical component is a component that uses color depth to reflect the numerical change of the data, the component information of the large screen page of data to be colored also includes the numerical values ​​of the data of each numerical component, and the target color of the target component is determined based on the component type of the target component, including: Calculating the brightness of each second candidate color and the difference between each second candidate color and the background color, wherein the second candidate color is a color determined according to the preset color palette; Calculating a second metric value of each of the second candidate colors using the brightness and the difference; Determine an extreme color according to the second metric value of each of the second candidate colors, wherein the extreme color corresponds to extreme value data included in the numerical component, and the extreme value data is obtained from component information of the large-screen page of the data to be colored; and According to the extreme color, a third candidate color of the data included in the numerical component except the extreme value data is determined, the brightness of the third candidate color is smaller than the brightness of the extreme color, and the third candidate color and the extreme color belong to the same color system.

8. The method according to claim 7, wherein: The extreme value data included in the numerical component includes intermediate value data, and the method further includes: A neutral color is used as the color corresponding to the intermediate value data.

9. The method according to claim 7, wherein: The extreme value data included in the numerical component does not include intermediate value data, the number of the extreme colors is two, and the hue difference between the two extreme colors is within a preset range.

10. The method according to claim 1, wherein: The component type of the target component is a decorative component, which is a component with a decorative function. The component information of the large screen page of data to be colored also includes the initial color of each decorative component. The determining the target color of the target component based on the component type of the target component includes: Obtaining the initial color of the decorative component from the component information of the large screen page of data to be colored; and The target color is determined according to the initial color and the basic colors included in the preset color palette.

11. The method according to claim 10, wherein: The initial color includes an initial primary color and an initial secondary color, and determining the target color according to the initial color and the basic color included in the preset color palette includes: Calculating a color difference between the initial primary color and the initial secondary color; and The target secondary color is calculated using the target primary color and the color difference, wherein the target primary color is determined based on the preset color palette, the target primary color is the target color corresponding to the target component whose color is the initial primary color, and the target secondary color is the target color corresponding to the target component whose color is the initial secondary color.

12. The method according to claim 1, wherein: The component type of the target component is a background component, and the background component is a component constituting the background of the large screen page of the data to be colored. The determining the target color of the target component based on the component type of the target component includes: Calculating the degree of distinction between each fourth candidate color and the background color, wherein the fourth candidate color is a neutral color; and A fourth candidate color whose distinguishability is greater than the distinguishability threshold is selected as the target color of the target component.

13. A data large screen page processing device, comprising: an acquisition unit configured to acquire a large screen page of data to be colored, component information of the large screen page of data to be colored, and a preset color palette, wherein the large screen page of data to be colored includes components to be colored, the component information includes component types of each component to be colored, and the preset color palette includes one or more basic colors; a determining unit configured to determine a target color of the target component based on a component type of the target component, the target component being one of the components to be colored included in the large-screen page of data to be colored, the target color being determined based on one or more of the preset color palette and the background color of the large-screen page of data to be colored; and The coloring unit is configured to color the target component using the target color to obtain a colored data large-screen page.

14. An electronic device, wherein: include: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 12.

15. A computer readable medium, wherein: A computer program is stored thereon, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.

Citation Information

Patent Citations

  • Dynamic color determination for user interface components of a video player

    CN108353212A

  • A color adjustment method for an application picture in wearable equipment and the wearable equipment

    CN109917901A

  • Automatic page color matching method and device, equipment and storage medium

    CN114253539A

  • Data large-screen page processing method and device and related equipment

    CN116820308A