CN113763237B - Intelligent beautifying method and device for visual report and computer readable storage medium - Google Patents
Intelligent beautifying method and device for visual report and computer readable storage medium Download PDFInfo
- Publication number
- CN113763237B CN113763237B CN202111317377.6A CN202111317377A CN113763237B CN 113763237 B CN113763237 B CN 113763237B CN 202111317377 A CN202111317377 A CN 202111317377A CN 113763237 B CN113763237 B CN 113763237B
- Authority
- CN
- China
- Prior art keywords
- color
- visual report
- visual
- report
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000000007 visual effect Effects 0.000 title claims abstract description 203
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000003860 storage Methods 0.000 title claims abstract description 14
- 230000003796 beauty Effects 0.000 claims abstract description 48
- 238000012800 visualization Methods 0.000 claims description 37
- 238000004458 analytical method Methods 0.000 claims description 17
- 230000006870 function Effects 0.000 claims description 11
- 238000010191 image analysis Methods 0.000 claims description 11
- 239000003086 colorant Substances 0.000 claims description 9
- 230000001815 facial effect Effects 0.000 claims description 4
- 230000007935 neutral effect Effects 0.000 claims description 2
- 238000013461 design Methods 0.000 description 11
- 230000008569 process Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 208000003464 asthenopia Diseases 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 239000007795 chemical reaction product Substances 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000005338 frosted glass Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a visual report intelligent beautifying method, a visual report intelligent beautifying device and a computer readable storage medium, wherein the visual report intelligent beautifying method comprises the following steps: receiving a visual report, and judging whether the visual report contains a background picture; if the visual report contains the background picture, calling a preset beautifying algorithm to beautify the visual report; and if the visual report does not contain the background image, adding a default background image to the visual report, and calling a preset beautifying algorithm to beautify the visual report. By implementing the method and the device, the beauty of the visual report is realized at low cost and high efficiency, so that a viewer can more easily understand the information to be transmitted by the visual report.
Description
Technical Field
The invention relates to the technical field of computer application, in particular to an intelligent beautifying method and device for a visual report and a computer-readable storage medium.
Background
Under the big background of the mobile internet era, in the process of digital transformation of enterprises, high-level managers tend to master the enterprise operation conditions at any time and any place through mobile terminals more and more.
However, in the current mainstream BI (Business Intelligence) tool in the market, in the process of making a mobile report, IT (Internet Technology) personnel generally have no design ability, cannot design an aesthetic report, and if the tool has the relevant design ability, more design resources and implementation cost are required to be invested, so that the efficiency of the whole process is low and the quality is uneven.
Two solutions commonly used in the industry at present are: report templates and subject skins. However, both of these solutions have certain limitations, among which the limitations of the reporting template are: based on the settled case reports, the inevitable content is fixed, the layout is fixed, and the analysis logic and the interaction logic are more biased; the limitations of the subject skin are: the method is only a packed color scheme, and the skin pushing speed cannot meet the customized requirements of the client at the B end.
Disclosure of Invention
The invention mainly aims to provide an intelligent beautifying method, an intelligent beautifying device and a computer-readable storage medium for a visual report, and aims to solve the technical problem of providing an easily-understood and beautiful visual report for a viewer at low cost and high efficiency.
In order to achieve the above object, the present invention provides an intelligent visual report beautifying method, which comprises the following steps:
receiving a visual report, and judging whether the visual report contains a background picture;
if the visual report contains the background picture, calling a preset beautifying algorithm to beautify the visual report;
and if the visual report does not contain the background image, adding a default background image to the visual report, and calling a preset beautifying algorithm to beautify the visual report.
Optionally, the step of calling a preset beautifying algorithm to beautify the visual report includes:
acquiring a visualization report dominant color according to the background image, and determining the integral style of the visualization report according to the visualization report dominant color;
and selecting a corresponding preset color matching rule and a preset layout rule according to the overall style, and beautifying the visual report according to the preset color matching rule and the preset layout rule.
Optionally, the step of beautifying the visual report according to the preset color matching rule and the preset layout rule includes:
matching colors for the visual report according to a visual report background color matching rule, a component background color matching rule, a chart component color matching rule and a text color matching rule which are included in the preset color matching rule;
and laying out the visual report according to the component layout rule and the text layout rule included in the preset layout rule.
Optionally, the step of selecting the corresponding preset color matching rule according to the overall style includes:
combining a preset image analysis algorithm and a color analysis algorithm to obtain a preset color matching algorithm;
the step of selecting the corresponding preset color matching rule according to the overall style comprises the following steps:
and selecting a corresponding preset color matching rule based on the preset color matching algorithm according to the overall style.
Optionally, the step of obtaining a dominant color of a visual report according to the background map, and determining an overall style of the visual report according to the dominant color of the visual report includes:
calling the image analysis algorithm to obtain a color standard value of the dominant color of the visual report, and calling the color analysis algorithm to convert the color standard value into a color space value;
and determining the overall style of the visual report according to the color space value and a preset style judgment rule.
Optionally, the step of beautifying the visual report according to the preset color matching rule includes:
and obtaining a color result value according to the preset color matching rule, the color space value and the color analysis algorithm, and beautifying the visual report according to the color result value.
Optionally, if the visualization report includes a background map, the step of calling a preset beauty algorithm to beautify the visualization report includes:
after the visual report finishes beautifying, judging whether the background image is manually added or not;
and if the background image is manually added, generating a color scheme, and saving the color scheme into the theme style as an alternative color scheme.
Optionally, after the step of determining whether the background map is manually added, the method further includes:
and if the background picture is not manually added, not generating a color matching scheme, and finishing the beautifying of the visual report.
In addition, to achieve the above object, the present invention provides an intelligent visual report beautifying device, including: a memory, a processor, and a visual reporting smart beauty program stored on the memory and executable on the processor, the visual reporting smart beauty program when executed by the processor implementing the steps of the visual reporting smart beauty method as recited in the preceding claims.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, on which a intelligent beauty program for visual report is stored, which when executed by a processor implements the steps of the intelligent beauty method for visual report as described above.
The invention provides a visual report intelligent beautifying method, a visual report intelligent beautifying device and a computer readable storage medium, wherein in the visual report intelligent beautifying method, whether a background picture is contained in a visual report is judged by receiving the visual report; if the visual report contains the background picture, calling a preset beautifying algorithm to beautify the visual report; if the visual report does not contain the background image, a default background image is added to the visual report, then a preset beautifying algorithm is called to beautify the visual report, so that beautifying of the visual report is realized at low cost and high efficiency, a viewer can more easily understand information needing to be transmitted by the visual report, and invalid actions of directly reporting beautifying when the visual report does not meet the requirements are avoided.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a first embodiment of the intelligent facial beautification method by using a visual report according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: a visual reporting intelligent beauty method, comprising the steps of:
receiving a visual report, and judging whether the visual report contains a background picture;
if the visual report contains the background picture, calling a preset beautifying algorithm to beautify the visual report;
and if the visual report does not contain the background image, adding a default background image to the visual report, and calling a preset beautifying algorithm to beautify the visual report.
Under the big background of the mobile internet era, in the process of digital transformation of enterprises, more and more high-level managers tend to master the enterprise operation conditions at any time and any place through mobile terminals; however, in the process of making a mobile report, an IT (Internet Technology ) person generally has no design ability in a mainstream BI (Business Intelligence) tool in the market at present, and cannot design an attractive report, if the IT has the relevant design ability, more design resources and implementation cost need to be invested, and the efficiency of the whole process is low and the quality is uneven; two solutions commonly used in the industry at present are: report templates and subject skins. However, both of these solutions have certain limitations, among which the limitations of the reporting template are: based on the settled case reports, the inevitable content is fixed, the layout is fixed, and the analysis logic and the interaction logic are more biased; the limitations of the subject skin are: the method is only a packed color scheme, and the skin pushing speed cannot meet the customized requirements of the client at the B end.
The invention provides an intelligent beautifying method for a visual report, which comprises the steps of receiving the visual report and judging whether the visual report contains a background picture or not; if the visual report contains the background picture, calling a preset beautifying algorithm to beautify the visual report; if the visual report does not contain the background image, a default background image is added to the visual report, then a preset beautifying algorithm is called to beautify the visual report, so that beautifying of the visual report is realized at low cost and high efficiency, a viewer can more easily understand information needing to be transmitted by the visual report, and invalid actions of directly reporting beautifying when the visual report does not meet the requirements are avoided.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC, and can also be an intelligent terminal device with a display function, a network connection function and an image rendering function, such as a smart phone, a tablet computer, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a visual reporting smart beauty program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke the visualization reporting smart beauty program stored in the memory 1005 and perform the following operations:
receiving a visual report, and judging whether the visual report contains a background picture;
if the visual report contains the background picture, calling a preset beautifying algorithm to beautify the visual report;
and if the visual report does not contain the background image, adding a default background image to the visual report, and calling a preset beautifying algorithm to beautify the visual report.
Further, processor 1001 may invoke a visualization reporting smart beauty program stored in memory 1005, and also perform the following operations:
the step of calling a preset beautifying algorithm to beautify the visual report comprises the following steps:
acquiring a visualization report dominant color according to the background image, and determining the integral style of the visualization report according to the visualization report dominant color;
and selecting a corresponding preset color matching rule and a preset layout rule according to the overall style, and beautifying the visual report according to the preset color matching rule and the preset layout rule.
Further, processor 1001 may invoke a visualization reporting smart beauty program stored in memory 1005, and also perform the following operations:
the step of beautifying the visual report according to the preset color matching rule and the preset layout rule comprises the following steps of:
matching colors for the visual report according to a visual report background color matching rule, a component background color matching rule, a chart component color matching rule and a text color matching rule which are included in the preset color matching rule;
and laying out the visual report according to the component layout rule and the text layout rule included in the preset layout rule.
Further, processor 1001 may invoke a visualization reporting smart beauty program stored in memory 1005, and also perform the following operations:
combining a preset image analysis algorithm and a color analysis algorithm to obtain a preset color matching algorithm;
the step of selecting the corresponding preset color matching rule according to the overall style comprises the following steps:
and selecting a corresponding preset color matching rule based on the preset color matching algorithm according to the overall style.
Further, processor 1001 may invoke a visualization reporting smart beauty program stored in memory 1005, and also perform the following operations:
the step of obtaining the dominant color of the visual report according to the background picture and determining the overall style of the visual report according to the dominant color of the visual report comprises the following steps:
calling the image analysis algorithm to obtain a color standard value of the dominant color of the visual report, and calling the color analysis algorithm to convert the color standard value into a color space value;
and determining the overall style of the visual report according to the color space value and a preset style judgment rule.
Further, processor 1001 may invoke a visualization reporting smart beauty program stored in memory 1005, and also perform the following operations:
the step of beautifying the visual report according to the preset color matching rule comprises the following steps:
and obtaining a color result value according to the preset color matching rule, the color space value and the color analysis algorithm, and beautifying the visual report according to the color result value.
Further, processor 1001 may invoke a visualization reporting smart beauty program stored in memory 1005, and also perform the following operations:
after the visual report finishes beautifying, judging whether the background image is manually added or not;
and if the background image is manually added, generating a color scheme, and saving the color scheme into the theme style as an alternative color scheme.
Further, processor 1001 may invoke a visualization reporting smart beauty program stored in memory 1005, and also perform the following operations:
and if the background picture is not manually added, not generating a color matching scheme, and finishing the beautifying of the visual report.
Referring to fig. 2, a first embodiment of the present invention provides a visual report intelligent beauty method, including:
step S10, receiving a visual report, and judging whether the visual report contains a background picture;
in this embodiment, the execution main body is an intelligent terminal device having a display function, a network connection function, and an image rendering function, and the intelligent terminal device may be a PC, or may be a smart phone, a tablet computer, a portable computer, or the like.
IT should be noted that the visual report is a report containing data information and chart information made by IT (Internet Technology) personnel or Business personnel, such as a visual report made by using a Business Intelligence (BI) tool; the data information is statistical data, and can be an integer value or a percentage value; the chart information may be a bar chart, a line chart, or a sector chart; in the embodiment, whether the background image exists in the received visual report uploaded by the IT personnel or the business personnel can be known according to the manufacturing characteristics of the BI tool; the background map can be added to the visual report by an IT person or a business person before uploading the visual report, or can be added to the report by a worker responsible for the beauty of the report after checking the visual report, so as to obtain the report capable of carrying out beauty optimization.
Step S20, if the visual report contains a background picture, calling a preset beautifying algorithm to beautify the visual report;
it is understood that if the visual report includes a background map, the visual report is suitable for the visual report intelligent beauty method provided by the invention. In the concrete implementation, the report of finishing the beauty can be obtained after waiting for a short time only by calling the one-key beauty function by the staff.
Step S21, if the visualization report does not include a background map, adding a default background map to the visualization report, and calling a preset beautifying algorithm to beautify the visualization report.
It can be understood that if the visual report does not include a background map, a more critical beauty foundation is lacked, in this embodiment, a part of beautiful background maps, that is, the default background map, is pre-stored in the preset database, at this time, the default background map is added to the visual report, and then, a one-key beauty function is invoked, so that a report of finishing beauty can be obtained after waiting for a short time.
In this embodiment, the step of calling a preset beauty algorithm to beautify the visual report in steps S20 and S21 includes:
a20, acquiring a visualization report dominant color according to the background image, and determining the integral style of the visualization report according to the visualization report dominant color;
step a21, selecting corresponding preset color matching rules and preset layout rules according to the overall style, and beautifying the visual report according to the preset color matching rules and the preset layout rules.
In one embodiment, step a21 is preceded by:
combining a preset image analysis algorithm and a color analysis algorithm to obtain a preset color matching algorithm;
the step of selecting the corresponding preset color matching rule according to the overall style in the step a21 includes:
selecting a corresponding preset color matching rule based on the preset color matching algorithm according to the overall style;
step a20 includes:
step a201, calling the image analysis algorithm to obtain a color standard value of a dominant color of the visual report, and calling the color analysis algorithm to convert the color standard value into a color space value;
step a202, determining the overall style of the visual report according to the color space value and a preset style judgment rule.
The step of beautifying the visual report according to the preset color matching rule in the step a21 includes:
and obtaining a color result value according to the preset color matching rule, the color space value and the color analysis algorithm, and beautifying the visual report according to the color result value.
In step a21, the step of beautifying the visual report according to the preset color matching rules and the preset layout rules includes:
step a210, color matching is carried out on the visual report according to a visual report background color matching rule, a component background color matching rule, a chart component color matching rule and a text color matching rule which are included in the preset color matching rule;
step a211, laying out the visual report according to the component layout rule and the text layout rule included in the preset layout rule.
Firstly, acquiring a background image main color (namely the report main color) based on the background image of the visual report, calling a preset image analysis algorithm to acquire an RGB value (namely the color standard value) of the report main color, and further distinguishing two report modes (namely the overall style) of report depth and report depth, wherein two different sets of color matching scheme rules exist in the two modes, and specifically:
calling a color analysis algorithm to convert the dominant color RGB values of the background map into HSV values (i.e., the color space values), defined as (H1, S1, V1), defining a report lightness pattern (i.e., the style determination rule) based on the following rules:
when V1 is larger than or equal to x, the overall style of the report is defined as a light color mode;
when V1< x, then report that the overall style is defined as dark mode;
where x is a dynamically adjustable parameter.
It should be noted that the RGB color scheme is a color standard in the industry, and various colors are obtained by changing three color channels of red (R), green (G), and blue (B) and superimposing them with each other, where RGB represents the colors of the three channels of red, green, and blue, and the standard almost includes all colors that can be perceived by human vision, and is one of the most widely used color systems, and 16777216(256 × 256) colors can be combined.
HSV (Hue, Saturation, Value): HSV is a color space created by a.r. Smith in 1978, also known as the hexagonal cone Model (Hexcone Model), based on the intuitive nature of color. The parameters of the colors in this model are: hue (H), saturation (S), lightness (V). S controls the amount of color mixed into white, with a higher S value meaning that the less white mixed, the more "pure" the color. V controls the amount of color mixing into black, and a higher V value means that the less the amount of mixing into black, the more "bright" the color.
Second, a report background color (i.e., the visual report background color matching rules) is defined:
in the light mode, the HSV value reporting the background color is (H1, x1, y 1); x1 and y1 are dynamically adjustable parameters;
in the dark mode, the HSV value reporting the background color is (H1, x2, y 2); x2 and y2 are dynamically adjustable parameters;
and converting the corresponding HSV value into an RGB value and using the RGB value as the report background color in each mode.
Further, a component background color (i.e., the component background color matching rules) is defined:
in order to highlight the hierarchical sense of the component, the background color of the component also needs to be defined separately.
In the light color mode, the background color of the component defaults to white + transparency rule, the HSV + AM values are (x3, y3, z3, A3 and M3), A is transparency, and M is ambiguity; x3, y3, z3, A3 and M3 are all dynamically adjustable parameters;
in the dark mode, the background color of the component defaults to a gradual change from top left to bottom right, top left HSV + AM (x4, y4, z4, a4, M4); lower right HSV + AM (x5, y5, z5, a5, M5);
wherein x4, y4, z4, A4, M4, x5, y5, z5, A5 and M5 are all dynamically adjustable parameters; the corresponding HSV value is converted back to an RGBA value (belonging to the color result value) as the component background color in both modes.
Then, a chart component color scheme (i.e., the chart component color matching rules) is defined:
in order to highlight the most core contents of the chart, the color schemes of the chart components also need to be separately defined, and a set of coordinated contrast color schemes is generated in real time;
the chart color scheme respectively generates a color band corresponding to light and dark modes in real time on the basis of the main color, HSV of the color band, the H value is related to the main hue H1, the S value and the V value are respectively in a section of functional relation, and the color matching function is also dynamic adjustable content; the finally generated color band is applied to the standard chart as a color matching scheme; the color schemes of particular components, such as tables, etc., are processed individually.
Finally, a text color match (i.e., the text color match rule) is defined: the text color is not a pure neutral color, and a little report dominant color is added to enable the text to show a color trend, so that the vitality and the youth feeling of the page are improved, the interface can be more durable, and the visual fatigue of a B-end product in long-term use is relieved.
And when color matching is completed, the components and the text are arranged, for example, a key statistical chart and the text are highlighted, and special effects such as frosted glass, gradual change, animation and the like can be set.
In this embodiment, steps S20 and S21 are followed by:
step S30, after the visual report is finished beautifying, judging whether the background image is manually added;
step S40, if the background image is manually added, generating a color scheme, and saving the color scheme into a theme style as an alternative color scheme;
and step S41, if the background picture is not manually added, not generating a color scheme, and finishing the beauty of the visual report.
It is understood that if the background map is manually added, which may be a background map purposely selected by a worker according to user preference, the generated color scheme may be saved so as to facilitate direct application in subsequent beautifying of the same type of visual report.
The core of the intelligent beauty method for the visual report provided by the embodiment is divided into four parts: reasonably coordinated page color matching, emphasized typesetting layout, enriched and diversified design elements, and targeted beautification of different component features (bar charts, tables, and the like). The following four steps are all the same design concept: the visual hierarchy, namely information transmission, utilizes visual elements to distinguish the importance of the content by composing the content, including enlarging fonts, using strong color matching and other design elements which can be added to emphasize key information and guide the reading sequence or focus of a viewer, so that a receiver can easily understand the information as much as possible, and meanwhile, the aesthetic property can be considered.
In the intelligent beauty method for the visual report, whether the visual report contains a background map or not is judged by receiving the visual report; if the visual report contains the background picture, calling a preset beautifying algorithm to beautify the visual report; if the visual report does not contain the background image, a default background image is added to the visual report, then a preset beautifying algorithm is called to beautify the visual report, so that beautifying of the visual report is realized at low cost and high efficiency, a viewer can more easily understand information needing to be transmitted by the visual report, and invalid actions of directly reporting beautifying when the visual report does not meet the requirements are avoided.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium has a visualization report intelligent beauty program stored thereon, and the visualization report intelligent beauty program, when executed by a processor, implements the following operations:
receiving a visual report, and judging whether the visual report contains a background picture;
if the visual report contains the background picture, calling a preset beautifying algorithm to beautify the visual report;
and if the visual report does not contain the background image, adding a default background image to the visual report, and calling a preset beautifying algorithm to beautify the visual report.
Further, the visualization reporting smart beauty program when executed by the processor further performs the following operations:
the step of calling a preset beautifying algorithm to beautify the visual report comprises the following steps:
acquiring a visualization report dominant color according to the background image, and determining the integral style of the visualization report according to the visualization report dominant color;
and selecting a corresponding preset color matching rule and a preset layout rule according to the overall style, and beautifying the visual report according to the preset color matching rule and the preset layout rule.
Further, the visualization reporting smart beauty program when executed by the processor further performs the following operations:
the step of beautifying the visual report according to the preset color matching rule and the preset layout rule comprises the following steps of:
matching colors for the visual report according to a visual report background color matching rule, a component background color matching rule, a chart component color matching rule and a text color matching rule which are included in the preset color matching rule;
and laying out the visual report according to the component layout rule and the text layout rule included in the preset layout rule.
Further, the visualization reporting smart beauty program when executed by the processor further performs the following operations:
combining a preset image analysis algorithm and a color analysis algorithm to obtain a preset color matching algorithm;
the step of selecting the corresponding preset color matching rule according to the overall style comprises the following steps:
and selecting a corresponding preset color matching rule based on the preset color matching algorithm according to the overall style.
Further, the visualization reporting smart beauty program when executed by the processor further performs the following operations:
the step of obtaining the dominant color of the visual report according to the background picture and determining the overall style of the visual report according to the dominant color of the visual report comprises the following steps:
calling the image analysis algorithm to obtain a color standard value of the dominant color of the visual report, and calling the color analysis algorithm to convert the color standard value into a color space value;
and determining the overall style of the visual report according to the color space value and a preset style judgment rule.
Further, the visualization reporting smart beauty program when executed by the processor further performs the following operations:
the step of beautifying the visual report according to the preset color matching rule comprises the following steps:
and obtaining a color result value according to the preset color matching rule, the color space value and the color analysis algorithm, and beautifying the visual report according to the color result value.
Further, the visualization reporting smart beauty program when executed by the processor further performs the following operations:
after the visual report finishes beautifying, judging whether the background image is manually added or not;
and if the background image is manually added, generating a color scheme, and saving the color scheme into the theme style as an alternative color scheme.
Further, the visualization reporting smart beauty program when executed by the processor further performs the following operations:
and if the background picture is not manually added, not generating a color matching scheme, and finishing the beautifying of the visual report.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (5)
1. A visual report intelligent beauty method, characterized in that the visual report intelligent beauty method comprises the following steps:
receiving a visual report, and judging whether the visual report contains a background picture;
if the visual report contains the background picture, calling a preset beautifying algorithm to beautify the visual report;
if the visual report does not contain the background image, adding a default background image to the visual report, and calling a preset beautifying algorithm to beautify the visual report;
the step of calling a preset beautifying algorithm to beautify the visual report comprises the following steps:
combining a preset image analysis algorithm and a color analysis algorithm to obtain a preset color matching algorithm;
acquiring a visualization report dominant color according to the background image, and determining the integral style of the visualization report according to the visualization report dominant color;
selecting corresponding preset color matching rules and preset layout rules according to the overall style based on the preset color matching algorithm, and beautifying the visual report according to the preset color matching rules and the preset layout rules;
the step of obtaining the dominant color of the visual report according to the background picture and determining the overall style of the visual report according to the dominant color of the visual report comprises the following steps:
calling the image analysis algorithm to obtain RGB values of the dominant color of the visual report, calling the color analysis algorithm to convert the RGB values into HSV values, and defining the values as (H1, S1, V1);
determining the integral style of the visual report according to the HSV value and a preset style judgment rule;
the preset style determination rule comprises the following steps: when V1 is larger than or equal to x, the overall style is defined as a light color mode, and when V1 is smaller than x, the overall style is defined as a dark color mode, wherein x is a dynamically adjustable parameter;
the step of beautifying the visual report according to the preset color matching rule and the preset layout rule comprises the following steps of:
matching colors for the visual report according to a visual report background color matching rule, a component background color matching rule, a chart component color matching rule and a text color matching rule which are included in the preset color matching rule;
laying out the visual report according to a component layout rule and a text layout rule which are included in the preset layout rule;
the visual report background color matching rules comprise: in the light color mode, the HSV value of the reported background color is (H1, x1, y 1), and x1 and y1 are dynamically adjustable parameters; in the dark color mode, reporting HSV values of the background color as (H1, x2, y 2), and reporting HSV values of x2 and y2 as dynamic adjustable parameters;
the assembly background color matching rule comprises the following steps: in the light color mode, the background color of the component defaults to white + transparency rule, and the HSV + AM value is (x3, y3, z3, A3, M3); a is transparency and M is haze; x3, y3, z3, A3 and M3 are all dynamically adjustable parameters; in the dark color mode, the background color of the component defaults to a gradient from top left to bottom right, and the HSV + AM value at the top left is (x4, y4, z4, A4, M4); lower right HSV + AM values (x5, y5, z5, a5, M5); wherein x4, y4, z4, A4, M4, x5, y5, z5, A5 and M5 are all dynamically adjustable parameters; converting the corresponding HSV value back to an RGBA value as the background color of the component in the two modes;
the chart component color matching rule comprises: the chart color scheme respectively generates a color band corresponding to light and dark modes in real time on the basis of the main color, HSV of the color band, the H value is related to the main hue H1, the S value and the V value are respectively in a section of functional relation, and the color matching function is also dynamic adjustable content; the finally generated color band is applied to the standard chart as a color matching scheme;
the text color matching rule comprises the following steps: text color is not a pure neutral color, and a partial report dominant color is added to make text appear color-prone.
2. The intelligent beauty method for visual reports of claim 1, wherein if said visual report contains a background map, said step of calling a pre-designed beauty algorithm to beautify said visual report comprises the steps of:
after the visual report finishes beautifying, judging whether the background image is manually added or not;
and if the background image is manually added, generating a color scheme, and saving the color scheme into the theme style as an alternative color scheme.
3. The visual reporting smart facial method of claim 2, wherein said step of determining whether said background map is manually added further comprises:
and if the background picture is not manually added, not generating a color matching scheme, and finishing the beautifying of the visual report.
4. A visual reporting intelligent facial beautification device, characterized in that the visual reporting intelligent facial beautification device comprises: a memory, a processor, and a visual reporting smart beauty program stored on the memory and executable on the processor, the visual reporting smart beauty program when executed by the processor implementing the steps of the visual reporting smart beauty method of any one of claims 1 to 3.
5. A computer-readable storage medium, wherein the computer-readable storage medium has stored thereon a visual reporting smart beauty program, which when executed by a processor, performs the steps of the visual reporting smart beauty method of any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111317377.6A CN113763237B (en) | 2021-11-09 | 2021-11-09 | Intelligent beautifying method and device for visual report and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111317377.6A CN113763237B (en) | 2021-11-09 | 2021-11-09 | Intelligent beautifying method and device for visual report and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113763237A CN113763237A (en) | 2021-12-07 |
CN113763237B true CN113763237B (en) | 2022-04-08 |
Family
ID=78784700
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111317377.6A Active CN113763237B (en) | 2021-11-09 | 2021-11-09 | Intelligent beautifying method and device for visual report and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113763237B (en) |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1487413A (en) * | 2002-09-30 | 2004-04-07 | 联想(北京)有限公司 | Method of automatically regulating interface style based on background image |
CN103123581B (en) * | 2011-11-21 | 2015-11-04 | 腾讯科技(深圳)有限公司 | A kind of application interface replacing options of mobile terminal and device and mobile terminal |
CN104965631B (en) * | 2015-05-26 | 2020-05-15 | 深圳市万普拉斯科技有限公司 | Desktop color matching method and device and intelligent terminal |
CN106873959B (en) * | 2016-07-12 | 2020-05-19 | 阿里巴巴集团控股有限公司 | Software interface color matching method and device |
CN108320312B (en) * | 2017-01-18 | 2022-01-11 | 阿里巴巴集团控股有限公司 | Image color matching method and device and computer terminal |
CN111275777A (en) * | 2018-12-04 | 2020-06-12 | 北京京东尚科信息技术有限公司 | Automatic color matching method, device, medium and electronic equipment |
CN109741425B (en) * | 2019-01-04 | 2023-07-25 | 广州方硅信息技术有限公司 | Banner picture generation method and device, storage medium and computer equipment |
CN112416346B (en) * | 2020-11-19 | 2022-05-31 | 腾讯科技(深圳)有限公司 | Interface color scheme generation method, device, equipment and storage medium |
CN113298921A (en) * | 2021-05-19 | 2021-08-24 | 广州虎牙科技有限公司 | Theme template color matching method and device, electronic equipment and storage medium |
-
2021
- 2021-11-09 CN CN202111317377.6A patent/CN113763237B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113763237A (en) | 2021-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106484396B (en) | Night mode switching method and device and terminal equipment | |
CN110865856B (en) | Interface element color display method and device | |
CN104866323B (en) | Unlocking interface generation method and device and electronic equipment | |
CN103123581B (en) | A kind of application interface replacing options of mobile terminal and device and mobile terminal | |
CN106023904A (en) | Display control method and device based on electronic ink screen | |
CN106056530A (en) | Method and device for displaying picture content in application | |
CN102402367A (en) | Method for implementing dynamic theme in mobile phone terminal | |
CN109859283B (en) | Color taking method, color taking device, electronic equipment and storable medium | |
CN104978186A (en) | Interface skin rendering method and apparatus | |
CN111164563B (en) | Image color adjusting system and color adjusting method of intelligent terminal | |
CN103065338A (en) | Method and device providing shadow for foreground image in background image | |
CN113687753A (en) | Split screen style configuration method and device, intelligent terminal and storage medium | |
CN111489429A (en) | Image rendering control method, terminal device and storage medium | |
CN112767238A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
CN112395030A (en) | Page processing method and device, electronic device and storage medium | |
CN111080806A (en) | Map processing method and device, electronic device and storage medium | |
CN107203312B (en) | Mobile terminal and picture rendering method and storage device thereof | |
CN113645476B (en) | Picture processing method and device, electronic equipment and storage medium | |
CN113763237B (en) | Intelligent beautifying method and device for visual report and computer readable storage medium | |
CN111562955B (en) | Method and device for configuring theme colors of terminal equipment and terminal equipment | |
JP5279085B2 (en) | Color arrangement conversion apparatus and program | |
JP2021158588A (en) | Image processing device, image processing system, and program | |
CN111199565B (en) | Data processing method, device, system, electronic equipment and storage medium | |
WO2023036089A1 (en) | Shadow generation method and apparatus, electronic device and storage medium | |
US10679383B2 (en) | Interface color branding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |