CN114115625A - Display control method, device and storage medium - Google Patents

Display control method, device and storage medium Download PDF

Info

Publication number
CN114115625A
CN114115625A CN202111427588.5A CN202111427588A CN114115625A CN 114115625 A CN114115625 A CN 114115625A CN 202111427588 A CN202111427588 A CN 202111427588A CN 114115625 A CN114115625 A CN 114115625A
Authority
CN
China
Prior art keywords
color
characteristic
display
wallpaper
determining
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
Application number
CN202111427588.5A
Other languages
Chinese (zh)
Inventor
郭艳成
梁石杨
农云飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Nissan Passenger Vehicle Co
Original Assignee
Dongfeng Nissan Passenger Vehicle Co
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Dongfeng Nissan Passenger Vehicle Co filed Critical Dongfeng Nissan Passenger Vehicle Co
Priority to CN202111427588.5A priority Critical patent/CN114115625A/en
Publication of CN114115625A publication Critical patent/CN114115625A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a display control method, a device and a storage medium, wherein the method comprises the following steps: when detecting that the wallpaper of the display interface is changed, extracting the characteristic color of the changed wallpaper; determining display parameters of a target interface control in a display interface according to the characteristic color; and performing color rendering on the target interface control according to the display parameters, and displaying the color-rendered target interface control in the display interface. According to the method and the device, the characteristic color of the wallpaper after the display interface is changed is extracted, the display parameter of the target interface control is determined according to the characteristic color, and the color rendering is performed on the target interface control according to the display parameter, so that the technical problem that the display style of the display interface is not uniform due to the fact that the display style of the target interface control is not changed after the wallpaper of the display interface is switched in the prior art is solved, the consistency of the display style of the display interface is improved, and meanwhile the user experience is improved.

Description

Display control method, device and storage medium
Technical Field
The invention relates to the technical field of vehicle control, in particular to a display control method, a display control device and a storage medium.
Background
At present, automobiles become important vehicles, in order to meet the requirements of users, entertainment functions provided by a vehicle machine are more and more abundant, the current vehicle machine supports the wallpaper switching, users can select the wallpaper according to own preferences, but after the users switch the wallpaper, the theme style of a vehicle machine display interface control cannot be changed along with the wallpaper switching, so that the display style of the wallpaper and the control is inconsistent, the user experience is influenced, and therefore after the wallpaper of a display interface is switched, how to ensure that the display style of the display interface control is consistent with the display style of the wallpaper becomes a technical problem to be solved urgently.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a display control method, a display control device and a storage medium, and aims to solve the technical problem that display styles of wallpapers and controls of a display interface in the prior art are inconsistent.
To achieve the above object, the present invention provides a display control method, including the steps of:
when detecting that the wallpaper of the display interface is changed, extracting the characteristic color of the changed wallpaper;
determining display parameters of a target interface control in the display interface according to the characteristic color;
and performing color rendering on the target interface control according to the display parameters, and displaying the color-rendered target interface control in the display interface.
Optionally, when detecting that the wallpaper of the display interface is changed, extracting the characteristic color of the changed wallpaper includes:
when detecting that the wallpaper of the display interface is changed, selecting a plurality of sampling points corresponding to the target interface control on the changed wallpaper;
determining color parameters of each sampling point according to the pixel information of each sampling point, and determining the color mean value of the changed wallpaper according to the color parameters of each sampling point;
and determining the characteristic color of the changed wallpaper according to the color parameters of the sampling points and the color mean value.
Optionally, the determining the characteristic color of the changed wallpaper according to the color parameter and the color mean value of each sampling point includes:
determining the color variance of each sampling point according to the color parameters of each sampling point and the color mean value;
selecting characteristic sampling points with color variance smaller than a preset variance threshold from the plurality of sampling points to obtain a characteristic sampling point set;
and determining the characteristic color of the changed wallpaper according to the average value of the color parameters of the characteristic sampling points in the characteristic sampling point set.
Optionally, the determining, according to the characteristic color, the display parameter of the target interface control in the display interface includes:
determining the tone type of the changed wallpaper according to the characteristic color and a preset color threshold value;
selecting a corresponding color enhancement algorithm according to the tone type, and performing color enhancement on the characteristic color through the color enhancement algorithm;
and setting the characteristic color after the color enhancement as a control color parameter of a target interface control in the display interface.
Optionally, the selecting a corresponding color enhancement algorithm according to the hue type, and performing color enhancement on the characteristic color through the color enhancement algorithm includes:
when the tone type is light tone, determining a feature color variance according to the feature color and the feature color mean value of the feature color;
when the variance of the characteristic color is smaller than a preset threshold value, carrying out gray scale color brightness reduction on the characteristic color; and;
and when the variance of the characteristic color is larger than or equal to a preset threshold value, reducing the color brightness of the characteristic color.
Optionally, the selecting a corresponding color enhancement algorithm according to the hue type, and performing color enhancement on the characteristic color through the color enhancement algorithm includes:
when the tone type is a dark tone, determining a feature color variance according to the feature color and the feature color mean value of the feature color;
when the variance of the characteristic color is smaller than a preset threshold value, carrying out gray scale color brightness improvement on the characteristic color; and;
and when the variance of the characteristic color is larger than or equal to a preset threshold value, carrying out color brightness improvement on the characteristic color.
Optionally, the display parameters further include a control background parameter; the determining the display parameters of the target interface control in the display interface according to the characteristic color comprises the following steps:
determining a top layer of a background graph of a target interface control in the display interface according to the characteristic color through a preset gradient rule;
determining a background layer of a background image of a target interface control in the display interface according to the tone type of the characteristic color;
and determining a control background parameter of a target interface control in the display interface according to the top layer and the background layer.
After the color rendering is performed on the target interface control according to the display parameters and the color-rendered target interface control is displayed in the display interface, the method further includes:
the control target display component updates the color of the current display element to the characteristic color, and determines a first color parameter of the target atmosphere lamp according to the characteristic color;
determining a second color parameter of the target atmosphere lamp through a color enhancement algorithm according to the characteristic color;
and controlling the target atmosphere lamp to work according to the first color parameter and the second color parameter.
Further, to achieve the above object, the present invention also proposes a display control apparatus comprising:
the extraction module is used for extracting the characteristic color of the changed wallpaper when the wallpaper of the display interface is detected to be changed;
the determining module is used for determining display parameters of a target interface control in the display interface according to the characteristic color;
and the rendering module is used for performing color rendering on the target interface control according to the display parameters and displaying the color-rendered target interface control in the display interface.
Furthermore, to achieve the above object, the present invention also proposes a storage medium having stored thereon a display control program which, when executed by a processor, implements the steps of the display control method as described above.
When detecting that the wallpaper of the display interface is changed, extracting the characteristic color of the changed wallpaper; determining display parameters of a target interface control in the display interface according to the characteristic color; and performing color rendering on the target interface control according to the display parameters, and displaying the color-rendered target interface control in the display interface. According to the method and the device, the characteristic color of the wallpaper after the display interface is changed is extracted, the display parameter of the target interface control is determined according to the characteristic color, and the color rendering is performed on the target interface control according to the display parameter, so that the technical problem that the display style of the display interface is not uniform due to the fact that the display style of the target interface control is not changed after the wallpaper of the display interface is switched in the prior art is solved, the consistency of the display style of the display interface is improved, and meanwhile the user experience is improved.
Drawings
FIG. 1 is a flowchart illustrating a display control method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a display control method according to a second embodiment of the present invention;
FIG. 3 is a sampling diagram illustrating a display control method according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a process of extracting a feature color according to a second embodiment of the display control method of the present invention;
FIG. 5 is a flowchart illustrating a display control method according to a third embodiment of the present invention;
FIG. 6 is a flowchart illustrating a brightness reduction process for a characteristic color according to a third embodiment of the display control method of the present invention;
FIG. 7 is a flowchart illustrating a brightness enhancement of a characteristic color according to a third embodiment of the display control method of the present invention;
fig. 8 is a block diagram of a display control apparatus according to a first embodiment of 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.
An embodiment of the present invention provides a display control method, and referring to fig. 1, fig. 1 is a flowchart illustrating a display control method according to a first embodiment of the present invention.
In this embodiment, the display control method includes the steps of:
step S10: and when detecting that the wallpaper of the display interface is changed, extracting the characteristic color of the changed wallpaper.
It should be noted that the execution main body of the embodiment may be a computing service device with data processing, network communication, and program running functions, such as a tablet computer, a personal computer, a mobile phone, or an electronic device, a display control device, or a vehicle machine, which can implement the above functions. The present embodiment and each of the embodiments described below will be explained below by taking a display control apparatus as an example.
It is understood that the changed wallpaper may be the wallpaper currently displayed by the display interface; the changed wallpaper can be obtained by the following steps: (1) the method comprises the steps that a user selects wallpaper (2) from a plurality of wallpapers built in a vehicle machine system, the user sets a wallpaper switching period of a display interface in advance, and when the wallpaper switching period is reached, display control equipment automatically selects wallpaper (3) from the plurality of wallpapers built in the system, and the wallpaper obtained by the display control equipment from a cloud end is displayed; (4) in a specific festival, the display control equipment acquires wallpaper which is matched with the subject of the festival from the wallpaper arranged in the system or from the cloud; the changed wallpaper may also be obtained by other manners, which is not limited in this embodiment.
It should be understood that the characteristic color may be a theme color of the altered wallpaper; the characteristic color of the changed wallpaper can be extracted by selecting a plurality of sampling areas on the changed wallpaper and determining the characteristic color according to RGB color parameters of the plurality of sampling areas.
In a specific implementation, for example, a user switches wallpapers and selects a wallpaper of a display interface from a plurality of wallpapers built in a system, a display control device detects that the wallpaper of the display interface is changed, selects a plurality of sampling areas on the changed wallpaper, and determines a characteristic color of the changed wallpaper according to RGB color parameters of the plurality of sampling areas.
Step S20: and determining the display parameters of the target interface control in the display interface according to the characteristic color.
It should be understood that the target interface controls may be controls in the display interface for controlling the vehicle to implement a particular function, including navigation bars, status bars, and application cards; determining the display parameters of the target interface control according to the characteristic color may be determining the color, the background and other parameters of the target interface control according to the characteristic color.
Step S30: and performing color rendering on the target interface control according to the display parameters, and displaying the color-rendered target interface control in the display interface.
It can be understood that the color rendering of the target interface control according to the display parameters may be adjusting the color and background parameters of the target interface control according to the display parameters, and since the display parameters are determined according to the characteristic color of the changed wallpaper, the color style of the target interface control after the color rendering is consistent with the color style of the changed wallpaper.
In a specific implementation, for example, a user selects a wallpaper to be switched and selects a wallpaper of a display interface from a plurality of wallpapers built in a system, a display control device detects that the wallpaper is changed, selects a plurality of sampling areas from the changed wallpaper, determines a characteristic color of the changed wallpaper according to RGB color parameters of the plurality of sampling areas, determines display parameters such as a color and a background of a target interface control according to the characteristic color, adjusts the color and the background parameters of the target interface control according to the display parameters, and displays the adjusted target interface control, so that a color style of the target interface control is consistent with a color style of the changed wallpaper.
Further, since many display screens are used in the existing automobile to display different contents, in order to increase the interest of driving, the driving cab of the automobile is further provided with an atmosphere lamp, and in order to enable the display screens and the atmosphere lamps in the automobile to be linked to enhance the atmosphere of the vehicle space, after the step S30, the method further includes: the control target display component updates the color of the current display element to the characteristic color, and determines a first color parameter of the target atmosphere lamp according to the characteristic color; determining a second color parameter of the target atmosphere lamp through a color enhancement algorithm according to the characteristic color; and controlling the target atmosphere lamp to work according to the first color parameter and the second color parameter.
It should be understood that the target display assembly includes a meter screen, entertainment screen, etc.; for example, the target display component is a meter screen, the display control device extracts the characteristic color of the wallpaper after being changed, and the meter screen is controlled to update the color of the display element to the characteristic color, so that the color style of the meter screen is consistent with the color style of the wallpaper after being changed.
It is to be understood that the target ambience lamp may be a color-graded lamp, and the first color parameter may be a start point color or an end point color of the target ambience lamp color grading; the color enhancement algorithm may be an algorithm that increases or decreases color brightness; and when the first color parameter is the end point color of the target atmosphere lamp, the second color parameter is the start point color of the target atmosphere lamp.
In a specific implementation, for example, a user switches wallpapers of a display interface, a display control device detects that the wallpaper is changed, extracts a characteristic color of the changed wallpaper, updates the color of a current display element of a control instrument screen to the characteristic color, takes the characteristic color as an end point color of a target atmosphere lamp, increases or decreases the brightness of the characteristic color as a start point color of the target atmosphere lamp through a color enhancement algorithm, sends the start point color and the end point color to the target atmosphere lamp, controls and adjusts the position distribution of the color of the target atmosphere lamp, forms a dynamic effect of the target atmosphere lamp, and realizes linkage of the instrument display screen and the target atmosphere lamp with the color style of the changed wallpaper.
When detecting that the wallpaper of the display interface is changed, the embodiment extracts the characteristic color of the changed wallpaper; determining display parameters of a target interface control in the display interface according to the characteristic color; and performing color rendering on the target interface control according to the display parameters, and displaying the color-rendered target interface control in the display interface. According to the embodiment, the characteristic color of the wallpaper after the display interface is changed is extracted, the display parameter of the target interface control is determined according to the characteristic color, and the color rendering is performed on the target interface control according to the display parameter, so that the technical problem that the display style of the display interface is not uniform due to the fact that the display style of the target interface control is not changed after the wallpaper of the display interface is switched in the prior art is solved, and the user experience is improved while the consistency of the display style of the display interface is improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating a display control method according to a second embodiment of the present invention.
Based on the first embodiment described above, in the present embodiment, the step S10 includes:
step S101: when detecting that the wallpaper of the display interface is changed, selecting a plurality of sampling points corresponding to the target interface control on the changed wallpaper.
It should be understood that, selecting a plurality of sampling points corresponding to the target interface control on the changed wallpaper may be selecting a plurality of sampling points at a preset distance from the periphery of the target interface control, for example, selecting a plurality of sampling points at a preset number of pixels from the boundary of the target interface control.
It can be understood that the sampling points may be rectangular regions of m × n pixels, that is, the length of the rectangular region is m pixels, the width is n pixels, each sampling point has m × n pixels, and when m and n are 1, the sampling point only includes one pixel.
In a specific implementation, referring to fig. 3, taking a target interface control as an application card a as an example, 10 sampling points are selected on the changed wallpaper around the application card a, and distances between adjacent sampling points may be equal or different, which is determined according to an actual situation, and this embodiment is not limited thereto.
Step S102: and determining the color parameters of each sampling point according to the pixel information of each sampling point, and determining the color mean value of the changed wallpaper according to the color parameters of each sampling point.
It can be understood that the pixel information includes the number of pixel points of the sampling point and the RGB parameters of each pixel point; the color parameters may be RGB parameters of the sampling points; when m and n are 1, the RGB parameters of the pixel point are the color parameters of the sampling point; and when m and n are larger than 1, the average value of the RGB parameters of each pixel point in the sampling point is the color parameter of the sampling point.
It should be understood that after the color parameters, i.e., the RGB parameters, of each sampling point are determined, the RGB average values of all the sampling points can be obtained, and the color average value of the sampling points, i.e., the color average value of the changed wallpaper, can be obtained by adding and dividing 3 to the R value, the G value, and the B value of the RGB average values.
Step S103: and determining the characteristic color of the changed wallpaper according to the color parameters of the sampling points and the color mean value.
It should be understood that the determining of the characteristic color of the changed wallpaper according to the color parameter and the color mean value of each sampling point may be determining a deviation between the color parameter and the color mean value of each sampling point, then removing the sampling points whose deviations are greater than or equal to a preset deviation threshold, and finally averaging the RGB parameters of all the sampling points whose deviations are less than the preset deviation threshold to obtain an average RGB value, where the average RGB value is the characteristic color of the changed wallpaper.
Further, in order to ensure that the extracted characteristic color can accurately reflect the theme color of the changed wallpaper, so that the color style of the wallpaper and the color style of the target interface control are consistent, the step S103 includes: determining the color variance of each sampling point according to the color parameters of each sampling point and the color mean value; selecting characteristic sampling points with color variance smaller than a preset variance threshold from the plurality of sampling points to obtain a characteristic sampling point set; and determining the characteristic color of the changed wallpaper according to the average value of the color parameters of the characteristic sampling points in the characteristic sampling point set.
It can be understood that the color parameters include R values, G values, and B values, and the color variance is the variance between the R values, G values, and B values of the color parameters of each sampling point and the color mean; the preset variance threshold may be a preset threshold for selecting the feature sampling points.
It should be understood that when the color variance is smaller than the preset variance threshold, it indicates that the color of the sampling point is similar to the theme color of the changed wallpaper, and the corresponding sampling point is a feature sampling point; when the color variance is larger than or equal to a preset variance threshold value, the color of the sampling point is larger than the color difference of the wallpaper theme after the change, the corresponding sampling point is removed, and the characteristic sampling points form a characteristic sampling point set; and solving the average value of the color parameters of each characteristic sampling point in the characteristic sampling point set, wherein the solved average value is the characteristic color of the changed wallpaper.
In specific implementation, referring to fig. 4, for example, n sampling points are selected around an application card a, each sampling point includes m × n pixels, an RGB parameter of each sampling point and an RGB mean value of all pixel points are calculated, an average value of an R value, a G value, and a B value in the RGB mean value is obtained to obtain a color mean value of the wallpaper after change, a variance between each sampling point and the color mean value is determined according to the R value, the G value, and the B value in the RGB parameter of each sampling point, whether the variance is smaller than a preset variance threshold is judged, if yes, the sampling point is reserved as a characteristic sampling point, if not, the sampling point is extracted, finally, an average RGB value of all characteristic sampling points is calculated, extraction of a characteristic color is completed, and the average RGB value can represent the characteristic color of the wallpaper after change.
When detecting that the wallpaper of the display interface is changed, selecting a plurality of sampling points corresponding to the target interface control on the changed wallpaper; determining color parameters of each sampling point according to the pixel information of each sampling point, and determining the color mean value of the changed wallpaper according to the color parameters of each sampling point; and determining the characteristic color of the changed wallpaper according to the color parameters of the sampling points and the color mean value. According to the embodiment, a plurality of sampling points corresponding to the target interface control are selected from the changed wallpaper, the color parameters of the sampling points are determined according to the pixel information of the sampling points, the color mean value of the changed wallpaper is determined according to the color parameters, and the characteristic color of the changed wallpaper is determined according to the color parameters and the color mean value, so that the sampling points with large theme color deviation with the changed wallpaper can be removed, and the accuracy of characteristic color extraction is improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a display control method according to a third embodiment of the present invention.
Based on the above embodiments, in the present embodiment, the step S20 includes:
step S201: and determining the tone type of the changed wallpaper according to the characteristic color and a preset color threshold value.
It is understood that the preset color threshold may be a preset threshold for determining the wallpaper tone type; and when the average value of the R value, the G value and the B value of the RGB value of the characteristic color is larger than a preset color threshold value, judging that the tone type of the wallpaper is a light tone, and when the characteristic color is smaller than the preset color threshold value, judging that the tone type of the wallpaper is a deep tone.
Step S202: and selecting a corresponding color enhancement algorithm according to the tone type, and performing color enhancement on the characteristic color through the color enhancement algorithm.
It is understood that the color enhancement algorithm includes a brightness boosting algorithm and a brightness reduction algorithm; selecting a corresponding color enhancement algorithm according to the tone type, wherein when the tone type is a light tone, a brightness reduction algorithm is selected, and the brightness of the characteristic color is reduced through the brightness reduction algorithm; and when the tone type is a dark tone, selecting a brightness improvement algorithm, and improving the brightness of the characteristic color through the brightness improvement algorithm.
Step S203: and setting the characteristic color after the color enhancement as a control color parameter of a target interface control in the display interface.
As can be appreciated, the control color parameters include color parameters of the controls of the application card and the button color parameters of the navigation bar and status bar.
In the specific implementation, when the mean value corresponding to the characteristic color is greater than or equal to a preset color threshold value, the tone type of the wallpaper after being changed is judged to be light tone, and the brightness of the characteristic color is reduced through a brightness reduction algorithm; and when the mean value corresponding to the characteristic color is smaller than a preset color threshold value, judging that the color tone type of the wallpaper after being changed is a deep color tone, increasing the brightness of the characteristic color through a brightness increasing algorithm, and setting the characteristic color after brightness reduction or brightness increase as the color parameters of a control, a navigation bar and a status bar key of the application card.
Further, since the characteristic colors are divided into gray-scale colors and color colors, in order to improve the contrast between the control and the background in the target interface space, the step S202 includes: when the tone type is light tone, determining a feature color variance according to the feature color and the feature color mean value of the feature color; when the variance of the characteristic color is smaller than a preset threshold value, carrying out gray scale color brightness reduction on the characteristic color; and when the variance of the characteristic color is larger than or equal to a preset threshold value, reducing the color brightness of the characteristic color.
It is understood that the characteristic color mean value may be an average of R, G, and B values of the characteristic color; the variance of the characteristic color can be the variance of the R value, the G value and the B value of the characteristic color and the average value of the characteristic color; the preset threshold value can be a preset threshold value for judging whether the characteristic color is a gray scale color or a color; when the variance of the characteristic color is smaller than a preset threshold value, the characteristic color is judged to be gray-scale color, the brightness of the gray-scale color is reduced for the characteristic color, when the variance of the characteristic color is larger than or equal to the preset threshold value, the characteristic color is judged to be color, and the brightness of the color is reduced for the characteristic color.
In a specific implementation, referring to fig. 6, when the characteristic color is a light tone, determining whether a variance of the characteristic color is smaller than a preset threshold k, when the variance of the characteristic color is smaller than the preset threshold, determining that the characteristic color is a gray-scale color, performing gray-scale color brightness reduction on the characteristic color, when the variance of the characteristic color is greater than or equal to the preset threshold, determining that the characteristic color is a color, and performing color brightness reduction on the characteristic color; the reduction of the color brightness and the reduction of the gray-scale color brightness can be referred to tables 1 and 2, wherein a is a brightness attenuation coefficient in the range of (0,1), and the intensified color is a characteristic color after the brightness reduction.
Table 1: light tone-color lightness reduction
Characteristic color R G B
Accent color R (1-a)*G (1-a)*B
Table 2: light tone-gray scale color brightness reduction
Characteristic color R G B
Accent color (1-a)*R (1-a)*G (1-a)*B
Further, since the characteristic colors are divided into gray-scale colors and color colors, in order to improve the contrast between the control and the background in the target interface space, the step S202 includes: when the tone type is a dark tone, determining a feature color variance according to the feature color and the feature color mean value of the feature color; when the variance of the characteristic color is smaller than a preset threshold value, carrying out gray scale color brightness improvement on the characteristic color; and when the variance of the characteristic color is larger than or equal to a preset threshold value, carrying out color brightness improvement on the characteristic color.
In a specific implementation, referring to fig. 7, when the characteristic color is a dark hue, determining whether a characteristic color variance of the characteristic color is smaller than a preset threshold k, when the characteristic color variance is smaller than the preset threshold, determining that the characteristic color is a gray-scale color, performing gray-scale color brightness improvement on the characteristic color, when the characteristic color variance is greater than or equal to the preset threshold, determining that the characteristic color is a color, and performing color brightness improvement on the characteristic color; the gray-scale color brightness improvement and the color brightness improvement can refer to tables 3 and 4, wherein a in the tables is a brightness improvement coefficient, the range is (0,1), and the reinforced color is the characteristic color after the brightness improvement.
Table 3: dark tone-gray scale color brightness enhancement
Characteristic color R G B
Accent color (1+a)*R (1+a)*G (1+a)*B
Table 4: dark tone-color brightness enhancement
Characteristic color R G B
Accent color (1+a)*R G B
Further, in order to make the background color of the target interface control, the control color and the color style of the changed wallpaper have a correlation, the display parameters further include a control background parameter; the determining the display parameters of the target interface control in the display interface according to the characteristic color comprises the following steps: determining a top layer of a background graph of a target interface control in the display interface according to the characteristic color through a preset gradient rule; determining a background layer of a background image of a target interface control in the display interface according to the tone type of the characteristic color; and determining a control background parameter of a target interface control in the display interface according to the top layer and the background layer.
It should be understood that the target interface controls include status bars, navigation bars, and application cards; the preset gradient color rule can be a preset rule that the color in the sight line direction has transparent color and gradually increases to the characteristic color; the background image of the target interface control is formed by combining a plurality of image layers, and the top image layer of the background image can be obtained according to the characteristic color and the preset gradient color rule, and the top image layer can also be called a theme color mask.
It can be understood that, if the target interface control is a navigation bar and a status bar, the background layer has a layer, when the tone type of the characteristic color is light tone, a preset light-color ground color is called as the background layer, and when the tone type of the characteristic color is dark tone, a preset dark-color ground color is called as the background layer; the top layer image layer and one background image layer are control background parameters of the navigation bar and the status bar; the background images of the navigation bar and the status bar are a theme color masking image layer and a background image layer in sequence from the outside to the inside in the sight line direction.
It should be understood that, if the target interface control is an application card, the background layer has two layers, the middle layer is a gaussian fuzzy covering layer, and the bottom layer is a wallpaper cutting map; the Gaussian fuzzy covering layer has dark tone and light tone, and when the characteristic color is light tone, the light-tone Gaussian fuzzy covering layer is called; when the characteristic color is dark tone, calling a dark tone Gaussian fuzzy covering layer; the top layer image layer and the two corresponding background image layers are control background parameters of the application card; and applying the background image of the card, and sequentially arranging a theme color masking image layer, a Gaussian fuzzy masking image layer and a background cutting image layer from the outside to the inside in the sight line direction.
Determining the tone type of the changed wallpaper according to the characteristic color and a preset color threshold; selecting a corresponding color enhancement algorithm according to the tone type, and performing color enhancement on the characteristic color through the color enhancement algorithm; and setting the characteristic color after the color enhancement as a control color parameter of a target interface control in the display interface. In the embodiment, the tone type of the wallpaper after being changed is determined through the characteristic color and the preset color threshold, the corresponding color enhancement algorithm is selected according to the tone type to perform color enhancement on the characteristic color, and the characteristic color after color enhancement is used as the control color parameter of the target interface control, so that the contrast between the background of the target interface control and the control can be improved, and the viewing experience of a user is improved.
Furthermore, an embodiment of the present invention further provides a storage medium, where the storage medium stores a display control program, and the display control program, when executed by a processor, implements the steps of the display control method as described above.
Referring to fig. 8, fig. 8 is a block diagram illustrating a display control apparatus according to a first embodiment of the present invention.
As shown in fig. 8, the display control apparatus according to the embodiment of the present invention includes: an extraction module 10, a determination module 20 and a rendering module 30.
The extraction module 10 is configured to, when detecting that a wallpaper of a display interface is changed, extract a characteristic color of the changed wallpaper;
the determining module 20 is configured to determine display parameters of a target interface control in the display interface according to the characteristic color;
and the rendering module 30 is configured to perform color rendering on the target interface control according to the display parameter, and display the color-rendered target interface control in the display interface.
When detecting that the wallpaper of the display interface is changed, the embodiment extracts the characteristic color of the changed wallpaper; determining display parameters of a target interface control in the display interface according to the characteristic color; and performing color rendering on the target interface control according to the display parameters, and displaying the color-rendered target interface control in the display interface. According to the embodiment, the characteristic color of the wallpaper after the display interface is changed is extracted, the display parameter of the target interface control is determined according to the characteristic color, and the color rendering is performed on the target interface control according to the display parameter, so that the technical problem that the display style of the display interface is not uniform due to the fact that the display style of the target interface control is not changed after the wallpaper of the display interface is switched in the prior art is solved, and the user experience is improved while the consistency of the display style of the display interface is improved.
A second embodiment of the display control apparatus of the present invention is proposed based on the first embodiment of the display control apparatus of the present invention described above.
In this embodiment, the rendering module 30 is further configured to control the target display component to update the color of the current display element to the characteristic color, and determine a first color parameter of the target ambience lamp according to the characteristic color; determining a second color parameter of the target atmosphere lamp through a color enhancement algorithm according to the characteristic color; and controlling the target atmosphere lamp to work according to the first color parameter and the second color parameter.
The extraction module 10 is further configured to, when detecting that the wallpaper of the display interface changes, select a plurality of sampling points corresponding to the target interface control on the changed wallpaper; determining color parameters of each sampling point according to the pixel information of each sampling point, and determining the color mean value of the changed wallpaper according to the color parameters of each sampling point; and determining the characteristic color of the changed wallpaper according to the color parameters of the sampling points and the color mean value.
The extraction module 10 is further configured to determine a color variance of each sampling point according to the color parameter and the color mean of each sampling point; selecting characteristic sampling points with color variance smaller than a preset variance threshold from the plurality of sampling points to obtain a characteristic sampling point set; and determining the characteristic color of the changed wallpaper according to the average value of the color parameters of the characteristic sampling points in the characteristic sampling point set.
The determining module 20 is further configured to determine a tone type of the changed wallpaper according to the characteristic color and a preset color threshold; selecting a corresponding color enhancement algorithm according to the tone type, and performing color enhancement on the characteristic color through the color enhancement algorithm; and setting the characteristic color after the color enhancement as a control color parameter of a target interface control in the display interface.
The determining module 20 is further configured to determine a variance of the characteristic color according to the characteristic color and a characteristic color mean of the characteristic color when the color tone type is a light color tone; when the variance of the characteristic color is smaller than a preset threshold value, carrying out gray scale color brightness reduction on the characteristic color; and when the variance of the characteristic color is larger than or equal to a preset threshold value, reducing the color brightness of the characteristic color.
The determining module 20 is further configured to determine a variance of the characteristic color according to the characteristic color and the characteristic color mean of the characteristic color when the color tone type is a dark color tone; when the variance of the characteristic color is smaller than a preset threshold value, carrying out gray scale color brightness improvement on the characteristic color; and when the variance of the characteristic color is larger than or equal to a preset threshold value, carrying out color brightness improvement on the characteristic color.
The determining module 20 is further configured to determine a top layer of a background map of a target interface control in the display interface according to the characteristic color through a preset gradient rule; determining a background layer of a background image of a target interface control in the display interface according to the tone type of the characteristic color; and determining control background parameters of a target interface control in the display interface according to the top layer and the background layer, wherein the display parameters further comprise control background parameters.
Other embodiments or specific implementations of the display control apparatus according to the present invention may refer to the above method embodiments, and are not described herein again.
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 solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) 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 (10)

1. A display control method, characterized in that the method comprises:
when detecting that the wallpaper of the display interface is changed, extracting the characteristic color of the changed wallpaper;
determining display parameters of a target interface control in the display interface according to the characteristic color;
and performing color rendering on the target interface control according to the display parameters, and displaying the color-rendered target interface control in the display interface.
2. The method as claimed in claim 1, wherein the extracting the characteristic color of the changed wallpaper when detecting that the wallpaper of the display interface is changed comprises:
when detecting that the wallpaper of the display interface is changed, selecting a plurality of sampling points corresponding to the target interface control on the changed wallpaper;
determining color parameters of each sampling point according to the pixel information of each sampling point, and determining the color mean value of the changed wallpaper according to the color parameters of each sampling point;
and determining the characteristic color of the changed wallpaper according to the color parameters of the sampling points and the color mean value.
3. The method as claimed in claim 2, wherein the determining the characteristic color of the changed wallpaper according to the color parameter and the color mean value of each sampling point comprises:
determining the color variance of each sampling point according to the color parameters of each sampling point and the color mean value;
selecting characteristic sampling points with color variance smaller than a preset variance threshold from the plurality of sampling points to obtain a characteristic sampling point set;
and determining the characteristic color of the changed wallpaper according to the average value of the color parameters of the characteristic sampling points in the characteristic sampling point set.
4. The method of claim 1, wherein the display parameters comprise control color parameters, and wherein determining the display parameters of a target interface control in the display interface according to the characteristic color comprises:
determining the tone type of the changed wallpaper according to the characteristic color and a preset color threshold value;
selecting a corresponding color enhancement algorithm according to the tone type, and performing color enhancement on the characteristic color through the color enhancement algorithm;
and setting the characteristic color after the color enhancement as a control color parameter of a target interface control in the display interface.
5. The method as claimed in claim 4, wherein said selecting a corresponding color enhancement algorithm according to the hue type and performing color enhancement on the characteristic color through the color enhancement algorithm comprises:
when the tone type is light tone, determining a feature color variance according to the feature color and the feature color mean value of the feature color;
when the variance of the characteristic color is smaller than a preset threshold value, carrying out gray scale color brightness reduction on the characteristic color; and;
and when the variance of the characteristic color is larger than or equal to a preset threshold value, reducing the color brightness of the characteristic color.
6. The method as claimed in claim 4, wherein said selecting a corresponding color enhancement algorithm according to the hue type and performing color enhancement on the characteristic color through the color enhancement algorithm comprises:
when the tone type is a dark tone, determining a feature color variance according to the feature color and the feature color mean value of the feature color;
when the variance of the characteristic color is smaller than a preset threshold value, carrying out gray scale color brightness improvement on the characteristic color; and;
and when the variance of the characteristic color is larger than or equal to a preset threshold value, carrying out color brightness improvement on the characteristic color.
7. The method of claim 4, wherein the display parameters further include a control context parameter; the determining the display parameters of the target interface control in the display interface according to the characteristic color comprises the following steps:
determining a top layer of a background graph of a target interface control in the display interface according to the characteristic color through a preset gradient rule;
determining a background layer of a background image of a target interface control in the display interface according to the tone type of the characteristic color;
and determining a control background parameter of a target interface control in the display interface according to the top layer and the background layer.
8. The method of any of claims 1-7, wherein after color rendering the target interface control according to the display parameters and displaying the color-rendered target interface control in the display interface, the method further comprises:
the control target display component updates the color of the current display element to the characteristic color, and determines a first color parameter of the target atmosphere lamp according to the characteristic color;
determining a second color parameter of the target atmosphere lamp through a color enhancement algorithm according to the characteristic color;
and controlling the target atmosphere lamp to work according to the first color parameter and the second color parameter.
9. A display control apparatus, characterized in that the apparatus comprises:
the extraction module is used for extracting the characteristic color of the changed wallpaper when the wallpaper of the display interface is detected to be changed;
the determining module is used for determining display parameters of a target interface control in the display interface according to the characteristic color;
and the rendering module is used for performing color rendering on the target interface control according to the display parameters and displaying the color-rendered target interface control in the display interface.
10. A storage medium having a display control program stored thereon, the display control program, when executed by a processor, implementing the steps of the display control method according to any one of claims 1 to 8.
CN202111427588.5A 2021-11-25 2021-11-25 Display control method, device and storage medium Pending CN114115625A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111427588.5A CN114115625A (en) 2021-11-25 2021-11-25 Display control method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111427588.5A CN114115625A (en) 2021-11-25 2021-11-25 Display control method, device and storage medium

Publications (1)

Publication Number Publication Date
CN114115625A true CN114115625A (en) 2022-03-01

Family

ID=80370550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111427588.5A Pending CN114115625A (en) 2021-11-25 2021-11-25 Display control method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114115625A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117241446A (en) * 2023-11-13 2023-12-15 博泰车联网(南京)有限公司 Vehicle atmosphere lamp control method, control device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104718528A (en) * 2014-03-28 2015-06-17 华为终端有限公司 Method and device for determining color of interface control, and terminal device
CN105224162A (en) * 2014-06-12 2016-01-06 乐蛙科技(上海)有限公司 The matching process of terminal demonstration style and system
CN111427573A (en) * 2020-03-09 2020-07-17 南京贝湾信息科技有限公司 Pattern generation method, computing device and storage medium
CN112416346A (en) * 2020-11-19 2021-02-26 腾讯科技(深圳)有限公司 Interface color scheme generation method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104718528A (en) * 2014-03-28 2015-06-17 华为终端有限公司 Method and device for determining color of interface control, and terminal device
CN105224162A (en) * 2014-06-12 2016-01-06 乐蛙科技(上海)有限公司 The matching process of terminal demonstration style and system
CN111427573A (en) * 2020-03-09 2020-07-17 南京贝湾信息科技有限公司 Pattern generation method, computing device and storage medium
CN112416346A (en) * 2020-11-19 2021-02-26 腾讯科技(深圳)有限公司 Interface color scheme generation method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
诺杰光电: "电脑液晶显示屏背光氛围灯画面同步变化ambilight安装教程 诺杰光电", pages 3, Retrieved from the Internet <URL:https://www.bilibili.com/video/BV1F4411M7xA> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117241446A (en) * 2023-11-13 2023-12-15 博泰车联网(南京)有限公司 Vehicle atmosphere lamp control method, control device, electronic equipment and storage medium
CN117241446B (en) * 2023-11-13 2024-02-27 博泰车联网(南京)有限公司 Vehicle atmosphere lamp control method, control device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109801605B (en) Screen brightness adjusting method, electronic equipment, mobile terminal and storage medium
CN103176761A (en) Screen background setting method and movable terminal
CN108665428B (en) Image enhancement method, device, equipment and storage medium
CN105335939B (en) Image processing method and device
CN104778047A (en) Content display method and terminal
US20210134016A1 (en) Method and apparatus for assigning colours to an image
CN108205671A (en) Image processing method and device
CN114115625A (en) Display control method, device and storage medium
CN105955588A (en) Method and apparatus for displaying icon on interface
CN111914604A (en) Augmented reality display method for applying hair color to eyebrow
CN114549670A (en) Image processing method and image processing system
CN109389150B (en) Image consistency comparison method and device, storage medium and electronic equipment
CN116894801A (en) Image quality enhancement method and device, electronic equipment and storage medium
CN113781968A (en) Backlight adjusting method, device, equipment and storage medium
CN111160267A (en) Image processing method, terminal and storage medium
JP2013210793A (en) System, method, and program for optimizing ar display
CN109559707B (en) Gamma value processing method and device of display panel and display equipment
CN116884359A (en) Adaptive dimming method, device, equipment and storage medium based on picture content
He et al. Effective haze removal under mixed domain and retract neighborhood
CN115578294B (en) Image enhancement method, device, equipment and storage medium
CN112927321B (en) Intelligent image design method, device, equipment and storage medium based on neural network
CN103959204A (en) Information processing device, information processing method, and recording medium
CN114693697A (en) Image processing method, device, equipment and computer readable storage medium
CN114266762A (en) Method, device and equipment for acquiring seat data and computer readable storage medium
CN113886726A (en) Page display method and device, electronic equipment and storage medium

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