CN117492618A - Display processing method and device, storage medium and electronic equipment - Google Patents
Display processing method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN117492618A CN117492618A CN202311514576.5A CN202311514576A CN117492618A CN 117492618 A CN117492618 A CN 117492618A CN 202311514576 A CN202311514576 A CN 202311514576A CN 117492618 A CN117492618 A CN 117492618A
- Authority
- CN
- China
- Prior art keywords
- wallpaper
- color
- theme
- updated
- rendering
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 239000003086 colorant Substances 0.000 claims abstract description 42
- 238000000034 method Methods 0.000 claims abstract description 31
- 238000009877 rendering Methods 0.000 claims description 99
- 238000004590 computer program Methods 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 12
- 238000000605 extraction Methods 0.000 claims description 2
- 238000012512 characterization method Methods 0.000 claims 2
- 230000006872 improvement Effects 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 230000007613 environmental effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
The application discloses a display processing method, a device, a storage medium and electronic equipment, and relates to the technical field of display, wherein the method comprises the following steps: collecting color values of different areas on wallpaper set in the equipment; extracting main colors on the wallpaper according to the color values of the different areas, wherein the main colors are colors with the occurrence frequency and the pixel number ranking before a preset ranking on the wallpaper; generating a theme color configuration matched with the style of the wallpaper according to the main color on the wallpaper; and performing tone setting on the theme in the equipment based on a target theme color to obtain an updated theme, wherein the target theme color is selected by a user based on the theme color configuration. The method and the device can effectively realize the setting of the theme and the wallpaper, simultaneously give consideration to the improvement of meeting the user requirements and consistency of the color system, and promote the user experience.
Description
Technical Field
The present disclosure relates to the field of display technologies, and in particular, to a display processing method, a device, a storage medium, and an electronic apparatus.
Background
Theme and wallpaper can be arranged in many devices such as mobile phones, and color consistency between the theme and the wallpaper has important influence on display effect and visual experience of the devices.
At present, wallpaper and theme are usually set by a user by self setting or according to system recommendation, wherein the mode of setting according to the system recommendation can meet the color consistency between the wallpaper and the theme to a certain extent, but the color consistency is still deficient and the setting requirement of the user is difficult to meet.
The existing theme and wallpaper setting scheme has the defects that the setting of the theme and wallpaper is difficult to meet the requirements of users and the consistency of color systems is improved, and the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a scheme, which can effectively realize the setting of the theme and the wallpaper, and simultaneously give consideration to the improvement of meeting the user requirements and color consistency, and promote the user experience.
The embodiment of the application provides the following technical scheme:
according to one embodiment of the present application, a display processing method includes: collecting color values of different areas on wallpaper set in the equipment; extracting main colors on the wallpaper according to the color values of the different areas, wherein the main colors are colors with the occurrence frequency and the pixel number ranking before a preset ranking on the wallpaper; generating a theme color configuration matched with the style of the wallpaper according to the main color on the wallpaper; and performing tone setting on the theme in the equipment based on a target theme color to obtain an updated theme, wherein the target theme color is selected by a user based on the theme color configuration.
In some embodiments of the present application, after the target theme color is used to tone the theme in the device, the method further includes: calculating color characteristic data of the wallpaper according to the color values of the different areas; calculating color difference data of the wallpaper and the updated theme according to the color value on the wallpaper and the main tone of the updated theme; generating updated wallpaper adapting to the updated theme according to the color characteristic data and the color difference data; and replacing the wallpaper set in the equipment with the updated wallpaper.
In some embodiments of the present application, the generating a theme color configuration adapted to a style of the wallpaper according to the main color on the wallpaper includes at least one of the following ways: generating a preset number of adjustable color values matched with the style of the wallpaper according to the main color on the wallpaper; and generating a plurality of theme color combinations matched with the style of the wallpaper according to the main color on the wallpaper.
In some embodiments of the present application, the generating updated wallpaper adapted to the updated theme according to the color feature data and the color difference data includes: rendering the wallpaper set in the equipment in different styles according to the color characteristic data and the color difference data to obtain rendering wallpaper in various styles; and selecting one rendering wallpaper from the rendering wallpapers with the multiple styles to obtain the updated wallpaper.
In some embodiments of the present application, the generating updated wallpaper adapted to the updated theme according to the color feature data and the color difference data includes: obtaining a plurality of primary colors according to the selection of the user based on the theme color configuration; rendering the wallpaper set in the device based on a plurality of primary colors to obtain the updated wallpaper adapting to the updated theme.
In some embodiments of the present application, the selecting a rendering wallpaper from the rendering wallpapers with multiple styles to obtain the updated wallpaper includes one of the following ways: obtaining updated wallpaper according to one rendering wallpaper selected from the rendering wallpapers with multiple styles by a user; detecting the ambient light intensity, and selecting one rendering wallpaper from the rendering wallpapers of the multiple styles according to the ambient light intensity to obtain the updated wallpaper.
In some embodiments of the present application, the selecting a rendering wallpaper from the rendering wallpapers of the multiple styles according to the ambient light intensity to obtain the updated wallpaper includes: determining the intensity range of the ambient light intensity; determining a preset style corresponding to the intensity range and the theme style of the updated theme; and selecting the rendering wallpaper corresponding to the preset style from the rendering wallpapers with the multiple styles to obtain the updated wallpaper.
According to one embodiment of the present application, a display processing apparatus includes: the acquisition module is used for acquiring color values of different areas on wallpaper set in the equipment; the extraction module is used for extracting the main color on the wallpaper according to the color values of the different areas, wherein the main color is the color of which the appearance frequency and the pixel number rank on the wallpaper are positioned in front of a preset ranking; the generating module is used for generating a theme color configuration matched with the style of the wallpaper according to the main color on the wallpaper; and the setting module is used for setting the tone of the theme in the equipment based on a target theme color to obtain an updated theme, wherein the target theme color is selected by a user based on the theme color configuration.
In some embodiments of the present application, after the target theme color is used for shading the theme in the device, the apparatus further includes an updating module configured to: calculating color characteristic data of the wallpaper according to the color values of the different areas; calculating color difference data of the wallpaper and the updated theme according to the color value on the wallpaper and the main tone of the updated theme; generating updated wallpaper adapting to the updated theme according to the color characteristic data and the color difference data; and replacing the wallpaper set in the equipment with the updated wallpaper.
In some embodiments of the present application, the generating module is configured to implement at least one of the following manners: generating a preset number of adjustable color values matched with the style of the wallpaper according to the main color on the wallpaper; and generating a plurality of theme color combinations matched with the style of the wallpaper according to the main color on the wallpaper.
In some embodiments of the present application, the update module is configured to: rendering the wallpaper set in the equipment in different styles according to the color characteristic data and the color difference data to obtain rendering wallpaper in various styles; and selecting one rendering wallpaper from the rendering wallpapers with the multiple styles to obtain the updated wallpaper.
In some embodiments of the present application, the update module is configured to: obtaining a plurality of primary colors according to the selection of the user based on the theme color configuration; rendering the wallpaper set in the device based on a plurality of primary colors to obtain the updated wallpaper adapting to the updated theme.
In some embodiments of the present application, the update module is configured to implement one of the following ways: obtaining updated wallpaper according to one rendering wallpaper selected from the rendering wallpapers with multiple styles by a user; detecting the ambient light intensity, and selecting one rendering wallpaper from the rendering wallpapers of the multiple styles according to the ambient light intensity to obtain the updated wallpaper.
In some embodiments of the present application, the update module is configured to: determining the intensity range of the ambient light intensity; determining a preset style corresponding to the intensity range and the theme style of the updated theme; and selecting the rendering wallpaper corresponding to the preset style from the rendering wallpapers with the multiple styles to obtain the updated wallpaper.
According to another embodiment of the present application, a storage medium has stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method described in the embodiments of the present application.
According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and the processor reads the computer program stored in the memory to execute the method according to the embodiment of the application.
According to another embodiment of the present application, a computer program product or computer program includes computer instructions stored in a computer readable storage medium. The computer instructions are read from the computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the methods provided in the various alternative implementations described in the embodiments of the present application.
In the embodiment of the application, color values of different areas on wallpaper set in the equipment are collected; extracting main colors on the wallpaper according to the color values of the different areas, wherein the main colors are colors with the occurrence frequency and the pixel number ranking before a preset ranking on the wallpaper; generating a theme color configuration matched with the style of the wallpaper according to the main color on the wallpaper; and performing tone setting on the theme in the equipment based on a target theme color to obtain an updated theme, wherein the target theme color is selected by a user based on the theme color configuration.
In this way, the main colors on the wallpaper are extracted according to the color values of different areas on the wallpaper, the theme color configuration matched with the style of the wallpaper is generated according to the main colors, further, a user can select a target theme color matched with the style of the wallpaper and meeting the user requirements according to the theme color configuration, the theme in the device is set to be color tone based on the target theme color to obtain an updated theme, the consistency of the color systems of the updated theme and the wallpaper can be effectively improved, the user requirements can be met, the setting of the theme and the wallpaper can be effectively realized, the improvement of the user requirements and the consistency of the color systems can be simultaneously considered, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a flowchart of a display processing method according to an embodiment of the present application.
Fig. 2 shows a flow chart of a wallpaper updating method according to an embodiment of the present application.
FIG. 3 illustrates a flow chart of a theme color configuration generation method according to an embodiment of the present application.
Fig. 4 shows a block diagram of a display processing device according to an embodiment of the present application.
Fig. 5 shows a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present disclosure is further described in detail below with reference to the drawings and examples. It should be understood that the examples provided herein are merely illustrative of the present disclosure and are not intended to limit the present disclosure. In addition, the embodiments provided below are some of the embodiments for implementing the present disclosure, and not all of the embodiments for implementing the present disclosure, and the technical solutions described in the embodiments of the present disclosure may be implemented in any combination without conflict.
It should be noted that, in the embodiments of the present disclosure, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a method or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such method or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other related elements (e.g., a step in a method or a unit in an apparatus, e.g., a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.) in a method or apparatus comprising the element.
For example, the display processing method provided in the embodiment of the present disclosure includes a series of steps, but the display processing method provided in the embodiment of the present disclosure is not limited to the described steps, and similarly, the display processing apparatus provided in the embodiment of the present disclosure includes a series of units, but the apparatus provided in the embodiment of the present disclosure is not limited to including the explicitly described units, and may include units that are required to be set for acquiring related information or performing processing based on the information.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure.
Fig. 1 schematically shows a flow chart of a display processing method according to an embodiment of the present application. The execution subject of the display processing method can be any device with processing capability, such as a television, a computer, a mobile phone, a smart watch, a household appliance and the like. It will be appreciated that the device may perform some of the steps itself or in conjunction with a server.
As shown in fig. 1, the display processing method may include steps S110 to S140.
Step S110, collecting color values of different areas on wallpaper set in the equipment; step S120, extracting main colors on the wallpaper according to the color values of the different areas, wherein the main colors are colors with the occurrence frequency and the pixel number ranking before a preset ranking on the wallpaper; step S130, generating a theme color configuration matched with the style of the wallpaper according to the main color on the wallpaper; and step S140, setting the tone of the theme in the equipment based on a target theme color, so as to obtain an updated theme, wherein the target theme color is selected by a user based on the theme color configuration.
The wallpaper which is currently set in the device can be divided into different areas and the color values of pixels in the different areas are acquired. Then, according to the color values of different areas, the occurrence frequency of each color value in the different areas can be counted and ordered, the number of pixels of each color value on the wallpaper can be counted and ordered, the colors corresponding to the color values before the occurrence frequency and the number of pixels are ranked in a preset ranking mode can be respectively extracted according to the two orders, the extracted colors can be used as main colors on the wallpaper, and the main colors extracted from the two dimensions of the occurrence frequency and the number of pixels can effectively reflect the color system style of the wallpaper.
The main color can effectively reflect the color system style of the wallpaper, and a theme color configuration matched with the style of the wallpaper can be generated according to the main color on the wallpaper, and the theme color configuration can comprise an adjustable color value or a theme color combination. The user can select the theme color combination required by the user based on the theme color configuration in a personalized way, and the selected theme color combination is the target theme color.
Because the theme color configuration is matched with the color system style of the wallpaper, the target theme color selected by the user is matched with the color system style of the wallpaper, and the requirement of the user is met. And setting the tone of the theme in the equipment based on the target theme color, so that an updated theme which is matched with the color system style of the wallpaper and meets the requirement of a user can be obtained.
In this way, based on steps S110 to S140, the main color on the wallpaper is extracted according to the color values of different areas on the wallpaper, the theme color configuration matching the style of the wallpaper is generated according to the main color, further, the user can select the target theme color matching the style of the wallpaper and meeting the user requirements according to the theme color configuration, and the theme in the device is set to be the updated theme based on the target theme color, so that the consistency of the updated theme and the color system of the wallpaper can be effectively improved and the user requirements can be met, the setting of the theme and the wallpaper can be effectively realized, the improvement of the consistency of the user requirements and the color system can be simultaneously met, and the user experience is improved
Further alternative embodiments of the steps performed when the display process is performed under the embodiment of fig. 1 are described below.
In one embodiment, referring to fig. 2, after the target theme color is used to tone the theme in the device, the method may further include:
step S210, calculating color characteristic data of the wallpaper according to the color values of the different areas; step S220, calculating color difference data of the wallpaper and the updated theme according to the color value on the wallpaper and the main tone of the updated theme; step S230, generating updated wallpaper adapting to the updated theme according to the color characteristic data and the color difference data; and step S240, replacing the wallpaper set in the equipment with the updated wallpaper.
The color characteristic data of the wallpaper can be obtained through calculation according to the color values of different areas, namely the data reflecting the color characteristics of the wallpaper, and the color characteristic data of the wallpaper can comprise, but is not limited to, data such as occurrence frequency, pixel number, color shade and the like.
According to the color value on the wallpaper and the main tone of the update theme, the color difference data of the wallpaper and the update theme can be calculated, and the color difference data can reflect the data of the color difference. For example, the dominant hue of the update subject is 3, and the difference between the color value on the wallpaper and the 3 dominant hues can be calculated as the color difference data.
According to the color characteristic data and the color difference data, updated wallpaper which is suitable for an updated theme is generated, the wallpaper set in the device is replaced by the updated wallpaper, and the color system consistency of the updated wallpaper and the updated theme is higher, so that the color system consistency of the wallpaper and the theme in the setting can be further improved, and the display effect is improved.
In one embodiment, referring to fig. 3, step S130, the generating, according to the main color on the wallpaper, a theme color configuration adapted to the style of the wallpaper may include at least one of the following steps:
step S310, generating a preset number of adjustable color values matched with the style of the wallpaper according to the main color on the wallpaper; step S320, generating a plurality of theme color combinations matched with the style of the wallpaper according to the main color on the wallpaper.
A predetermined number of adjustable color values adapted to the style of the wallpaper may be generated according to the main color on the wallpaper, the predetermined number may be set according to the actual situation, for example, the predetermined number may be 65, and the predetermined number of adjustable color values may be displayed in a palette.
A plurality of theme-color combinations adapted to the style of the wallpaper may also be generated according to the main color on the wallpaper, each theme-color combination may include a predetermined kind of theme colors, and the predetermined kind may be set according to the actual situation, and the predetermined kind is for example 3 kinds.
The user can select the self-demanded theme color combination from the theme color combination types as the target theme color, and the user can also personally combine preset types (for example, 3 types) of adjustable color values in the palette to obtain the theme color combination as the target theme color.
Wherein, some similar colors similar to the main color can be generated according to the main color on the wallpaper, the generated similar colors and the main color can be used as the preset number of adjustable color values, and the generated similar colors and the main color are arranged and combined to obtain various theme color combinations.
In one embodiment, step S230, the generating updated wallpaper adapted to the updated theme according to the color feature data and the color difference data may include:
rendering the wallpaper set in the equipment in different styles according to the color characteristic data and the color difference data to obtain rendering wallpaper in various styles; and selecting one rendering wallpaper from the rendering wallpapers with the multiple styles to obtain the updated wallpaper.
And different styles of rendering can be performed on wallpaper set in the equipment according to the color characteristic data and the color difference data by adopting a preset large model or a plurality of rendering algorithms with different styles, so as to obtain rendering wallpaper with various styles.
For example, by adopting 6 different types of rendering algorithms, different types of rendering can be performed on wallpaper set in the device according to the color characteristic data and the color difference data, so as to obtain 6 types of rendering wallpaper.
One rendering wallpaper can be selected from the rendering wallpapers with various styles and used as the updating wallpaper, and the setting effect of the updating wallpaper can be further improved under the condition that the color consistency is met.
In one embodiment, the selecting a rendering wallpaper from the rendering wallpapers with multiple styles to obtain the updated wallpaper includes one of the following ways:
the first mode is to obtain the updated wallpaper according to one rendering wallpaper selected by a user from the rendering wallpapers with multiple styles;
and in a second mode, detecting the ambient light intensity, and selecting one rendering wallpaper from the rendering wallpapers in multiple styles according to the ambient light intensity to obtain the updated wallpaper.
In the first mode, a user can select one rendering wallpaper from rendering wallpapers with various styles, the one rendering wallpaper selected by the user is used as the obtained updated wallpaper, the updated wallpaper can further meet the user demand, and the user demand satisfaction degree is further improved on the basis of improving the consistency of the theme and the wallpaper color system.
In the second mode, the ambient light intensity corresponding to the equipment can be further detected through the light sensor, one rendering wallpaper is selected from rendering wallpapers of various styles according to the ambient light intensity and used as the obtained updated wallpaper, furthermore, the color consistency requirement is met under the influence of the current ambient light of the updated wallpaper, and the setting effect of the theme and the wallpaper is further improved.
It will be appreciated that as the intensity of ambient light is transformed, the rendering wallpaper may be switched from among multiple styles of rendering wallpaper as updated wallpaper.
Further, in an embodiment, the selecting, according to the ambient light intensity, a rendering wallpaper from the rendering wallpapers of the multiple styles to obtain the updated wallpaper may specifically include:
determining the intensity range of the ambient light intensity; determining a preset style corresponding to the intensity range and the theme style of the updated theme; and selecting the rendering wallpaper corresponding to the preset style from the rendering wallpapers with the multiple styles to obtain the updated wallpaper.
The environmental light can be divided into different intensity ranges in advance, and one intensity range where the detected environmental light intensity is located can be determined from the different intensity ranges. And after the update subject is set, the subject style of the update subject can be obtained.
Further, wallpaper styles corresponding to combinations of different intensity ranges and theme styles can be preset, and the corresponding wallpaper styles can be determined as preset styles according to the combination of the theme styles and the intensity ranges determined at the time.
And selecting rendering wallpaper corresponding to a preset style from the rendering wallpapers with multiple styles as the obtained updated wallpaper, and further, the updated wallpaper can effectively meet the color system consistency with an updated theme under the influence of ambient light.
In one embodiment, the generating the updated wallpaper adapted to the updated theme according to the color feature data and the color difference data may include: obtaining a plurality of primary colors according to the selection of the user based on the theme color configuration; rendering the wallpaper set in the device based on a plurality of primary colors to obtain the updated wallpaper adapting to the updated theme.
The user can select a plurality of (3 for example) color values from the theme color configuration as a plurality of primary colors in the palette to render the wallpaper to obtain updated wallpaper, and the theme color configuration is matched with the style of the wallpaper, so that the user can select a plurality of primary colors to render the wallpaper to be matched with the style of the primary color system of the wallpaper (i.e. adapted to the updated theme color system), and the wallpaper requirement of the user is further met.
In order to facilitate better implementation of the display processing method provided by the embodiment of the application, the embodiment of the application also provides a display processing device based on the display processing method. Wherein the meaning of the nouns is the same as in the display processing method, and specific implementation details can be referred to the description of the method embodiment. Fig. 4 shows a block diagram of a display processing device according to an embodiment of the present application.
As shown in fig. 4, the display processing apparatus 400 may include: the acquisition module 410 may be used to acquire color values of different areas on wallpaper set in the device; the extracting module 420 may be configured to extract a primary color on the wallpaper according to the color values of the different areas, where the primary color is a color on the wallpaper with a frequency of occurrence and a ranking of the number of pixels located before a predetermined ranking; the generating module 430 may be configured to generate a theme color configuration adapted to a style of the wallpaper according to a main color on the wallpaper; the setting module 440 may be configured to tone a theme in the device based on a target theme color, which is selected by the user based on the theme color configuration, to obtain an updated theme.
In some embodiments of the present application, after the target theme color is used for shading the theme in the device, the apparatus further includes an updating module configured to: calculating color characteristic data of the wallpaper according to the color values of the different areas; calculating color difference data of the wallpaper and the updated theme according to the color value on the wallpaper and the main tone of the updated theme; generating updated wallpaper adapting to the updated theme according to the color characteristic data and the color difference data; and replacing the wallpaper set in the equipment with the updated wallpaper.
In some embodiments of the present application, the generating module is configured to implement at least one of the following manners: generating a preset number of adjustable color values matched with the style of the wallpaper according to the main color on the wallpaper; and generating a plurality of theme color combinations matched with the style of the wallpaper according to the main color on the wallpaper.
In some embodiments of the present application, the update module is configured to: rendering the wallpaper set in the equipment in different styles according to the color characteristic data and the color difference data to obtain rendering wallpaper in various styles; and selecting one rendering wallpaper from the rendering wallpapers with the multiple styles to obtain the updated wallpaper.
In some embodiments of the present application, the update module is configured to: obtaining a plurality of primary colors according to the selection of the user based on the theme color configuration; rendering the wallpaper set in the device based on a plurality of primary colors to obtain the updated wallpaper adapting to the updated theme.
In some embodiments of the present application, the update module is configured to implement one of the following ways: obtaining updated wallpaper according to one rendering wallpaper selected from the rendering wallpapers with multiple styles by a user; detecting the ambient light intensity, and selecting one rendering wallpaper from the rendering wallpapers of the multiple styles according to the ambient light intensity to obtain the updated wallpaper.
In some embodiments of the present application, the update module is configured to: determining the intensity range of the ambient light intensity; determining a preset style corresponding to the intensity range and the theme style of the updated theme; and selecting the rendering wallpaper corresponding to the preset style from the rendering wallpapers with the multiple styles to obtain the updated wallpaper.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, in accordance with embodiments of the present application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
In addition, the embodiment of the application further provides an electronic device, as shown in fig. 5, and fig. 5 shows a block diagram of the electronic device according to an embodiment of the application, specifically:
the electronic device may include one or more processing cores 'processors 501, one or more computer-readable storage media's memory 502, a power supply 503, and an input unit 504, among other components. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 5 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
Wherein:
the processor 501 is a control center of the electronic device, and connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 502, and calling data stored in the memory 502, thereby performing overall monitoring of the electronic device. Optionally, processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user pages, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by executing the software programs and modules stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 502 may also include a memory controller to provide access to the memory 502 by the processor 501.
The electronic device further comprises a power supply 503 for powering the various components, preferably the power supply 503 is logically connected to the processor 501 via a power management system, whereby the functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 503 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 504, which input unit 504 may be used for receiving input digital or character information and for generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 501 in the electronic device loads executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and the processor 501 executes the computer programs stored in the memory 502, so as to implement the functions in the foregoing embodiments of the present application, where the processor 501 may perform the following steps:
collecting color values of different areas on wallpaper set in the equipment; extracting main colors on the wallpaper according to the color values of the different areas, wherein the main colors are colors with the occurrence frequency and the pixel number ranking before a preset ranking on the wallpaper; generating a theme color configuration matched with the style of the wallpaper according to the main color on the wallpaper; and performing tone setting on the theme in the equipment based on a target theme color to obtain an updated theme, wherein the target theme color is selected by a user based on the theme color configuration.
In some embodiments of the present application, after the target theme color is used for shading the theme in the device, the method further includes: calculating color characteristic data of the wallpaper according to the color values of the different areas; calculating color difference data of the wallpaper and the updated theme according to the color value on the wallpaper and the main tone of the updated theme; generating updated wallpaper adapting to the updated theme according to the color characteristic data and the color difference data; and replacing the wallpaper set in the equipment with the updated wallpaper.
In some embodiments of the present application, the generating a theme color configuration adapted to a style of the wallpaper according to the main color on the wallpaper includes at least one of the following ways: generating a preset number of adjustable color values matched with the style of the wallpaper according to the main color on the wallpaper; and generating a plurality of theme color combinations matched with the style of the wallpaper according to the main color on the wallpaper.
In some embodiments of the present application, the generating updated wallpaper adapted to the updated theme according to the color feature data and the color difference data includes: rendering the wallpaper set in the equipment in different styles according to the color characteristic data and the color difference data to obtain rendering wallpaper in various styles; and selecting one rendering wallpaper from the rendering wallpapers with the multiple styles to obtain the updated wallpaper.
In some embodiments of the present application, the generating updated wallpaper adapted to the updated theme according to the color feature data and the color difference data includes: obtaining a plurality of primary colors according to the selection of the user based on the theme color configuration; rendering the wallpaper set in the device based on a plurality of primary colors to obtain the updated wallpaper adapting to the updated theme.
In some embodiments of the present application, the selecting a rendering wallpaper from the rendering wallpapers with multiple styles to obtain the updated wallpaper includes one of the following ways: obtaining updated wallpaper according to one rendering wallpaper selected from the rendering wallpapers with multiple styles by a user; detecting the ambient light intensity, and selecting one rendering wallpaper from the rendering wallpapers of the multiple styles according to the ambient light intensity to obtain the updated wallpaper.
In some embodiments of the present application, the selecting a rendering wallpaper from the rendering wallpapers of the multiple styles according to the ambient light intensity to obtain the updated wallpaper includes: determining the intensity range of the ambient light intensity; determining a preset style corresponding to the intensity range and the theme style of the updated theme; and selecting the rendering wallpaper corresponding to the preset style from the rendering wallpapers with the multiple styles to obtain the updated wallpaper.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present embodiments also provide a storage medium having stored therein a computer program that can be loaded by a processor to perform the steps of any of the methods provided by the embodiments of the present application.
Wherein the storage medium may be a computer-readable storage medium, the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Since the computer program stored in the storage medium may perform any of the steps in the method provided in the embodiment of the present application, the beneficial effects that can be achieved by the method provided in the embodiment of the present application may be achieved, which are detailed in the previous embodiments and are not described herein.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains.
It will be understood that the present application is not limited to the embodiments that have been described above and shown in the drawings, but that various modifications and changes can be made without departing from the scope thereof.
Claims (10)
1. A display processing method, characterized by comprising:
collecting color values of different areas on wallpaper set in the equipment;
extracting main colors on the wallpaper according to the color values of the different areas, wherein the main colors are colors with the occurrence frequency and the pixel number ranking before a preset ranking on the wallpaper;
generating a theme color configuration matched with the style of the wallpaper according to the main color on the wallpaper;
and performing tone setting on the theme in the equipment based on a target theme color to obtain an updated theme, wherein the target theme color is selected by a user based on the theme color configuration.
2. The method of claim 1, wherein after the toning of the theme in the device based on the target theme color, the method further comprises:
calculating color characteristic data of the wallpaper according to the color values of the different areas;
calculating color difference data of the wallpaper and the updated theme according to the color value on the wallpaper and the main tone of the updated theme;
generating updated wallpaper adapting to the updated theme according to the color characteristic data and the color difference data;
and replacing the wallpaper set in the equipment with the updated wallpaper.
3. The method of claim 1, wherein the generating a theme color configuration adapted to the style of the wallpaper from the main color on the wallpaper comprises at least one of:
generating a preset number of adjustable color values matched with the style of the wallpaper according to the main color on the wallpaper;
and generating a plurality of theme color combinations matched with the style of the wallpaper according to the main color on the wallpaper.
4. The method of claim 2, wherein generating updated wallpaper adapted to the updated theme based on the color characterization data and the color difference data comprises:
rendering the wallpaper set in the equipment in different styles according to the color characteristic data and the color difference data to obtain rendering wallpaper in various styles;
and selecting one rendering wallpaper from the rendering wallpapers with the multiple styles to obtain the updated wallpaper.
5. The method of claim 2, wherein generating updated wallpaper adapted to the updated theme based on the color characterization data and the color difference data comprises:
obtaining a plurality of primary colors according to the selection of the user based on the theme color configuration;
rendering the wallpaper set in the device based on a plurality of primary colors to obtain the updated wallpaper adapting to the updated theme.
6. The method of claim 4, wherein selecting one rendering wallpaper from the plurality of styles of rendering wallpapers to obtain the updated wallpaper comprises one of:
obtaining updated wallpaper according to one rendering wallpaper selected from the rendering wallpapers with multiple styles by a user;
detecting the ambient light intensity, and selecting one rendering wallpaper from the rendering wallpapers of the multiple styles according to the ambient light intensity to obtain the updated wallpaper.
7. The method of claim 6, wherein the selecting a rendering wallpaper from the plurality of styles of rendering wallpapers according to the ambient light intensity to obtain the updated wallpaper comprises:
determining the intensity range of the ambient light intensity;
determining a preset style corresponding to the intensity range and the theme style of the updated theme;
and selecting the rendering wallpaper corresponding to the preset style from the rendering wallpapers with the multiple styles to obtain the updated wallpaper.
8. A display processing apparatus, comprising:
the acquisition module is used for acquiring color values of different areas on wallpaper set in the equipment;
the extraction module is used for extracting the main color on the wallpaper according to the color values of the different areas, wherein the main color is the color of which the appearance frequency and the pixel number rank on the wallpaper are positioned in front of a preset ranking;
the generating module is used for generating a theme color configuration matched with the style of the wallpaper according to the main color on the wallpaper;
and the setting module is used for setting the tone of the theme in the equipment based on a target theme color to obtain an updated theme, wherein the target theme color is selected by a user based on the theme color configuration.
9. A storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of any of claims 1 to 7.
10. An electronic device, comprising: a memory storing a computer program; a processor reading a computer program stored in a memory to perform the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311514576.5A CN117492618A (en) | 2023-11-14 | 2023-11-14 | Display processing method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311514576.5A CN117492618A (en) | 2023-11-14 | 2023-11-14 | Display processing method and device, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117492618A true CN117492618A (en) | 2024-02-02 |
Family
ID=89676115
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311514576.5A Pending CN117492618A (en) | 2023-11-14 | 2023-11-14 | Display processing method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117492618A (en) |
-
2023
- 2023-11-14 CN CN202311514576.5A patent/CN117492618A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109951627B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN103838724B (en) | Image search method and device | |
CN112950738B (en) | Rendering engine processing method and device, storage medium and electronic equipment | |
CN108040265A (en) | A kind of method and apparatus handled video | |
CN110938969A (en) | Intelligent clothes washing method, device and equipment and washing machine | |
CN117934351A (en) | Image quality enhancement method and device, storage medium and electronic equipment | |
CN117492618A (en) | Display processing method and device, storage medium and electronic equipment | |
CN117412088A (en) | Terminal control method and device, storage medium and electronic equipment | |
CN112734661A (en) | Image processing method and device | |
CN112449115A (en) | Shooting method and device and electronic equipment | |
CN111641868A (en) | Preview video generation method and device and electronic equipment | |
CN115797267A (en) | Image quality evaluation method, system, electronic device, and storage medium | |
CN114116079A (en) | Character display method and device, storage medium and electronic equipment | |
CN112131840A (en) | Page processing method, device, storage medium and processor | |
CN113641286A (en) | Screen capturing method, electronic equipment and computer storage medium | |
CN108958929B (en) | Method and device for applying algorithm library, storage medium and electronic equipment | |
CN117978989A (en) | Image color adjustment method and device, storage medium and electronic equipment | |
CN114374798B (en) | Scene recognition method, device, electronic equipment and computer readable storage medium | |
CN112458695B (en) | Washing method, washing device, electronic apparatus, and readable storage medium | |
CN104318157B (en) | Application scanning method and device and mobile terminal | |
CN114244950B (en) | Data switching method, device, electronic equipment and computer readable storage medium | |
CN117255332B (en) | Bluetooth connection control method and device, storage medium and electronic equipment | |
CN117412135A (en) | Channel recommendation method and device, storage medium and electronic equipment | |
CN117519867A (en) | Application display method and device, storage medium and electronic equipment | |
CN117544714A (en) | Contact person information presetting method and device, storage medium and electronic equipment |
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 |