CN113891139B - Operation interface theme switching method, terminal and computer readable storage medium - Google Patents

Operation interface theme switching method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN113891139B
CN113891139B CN202111148728.5A CN202111148728A CN113891139B CN 113891139 B CN113891139 B CN 113891139B CN 202111148728 A CN202111148728 A CN 202111148728A CN 113891139 B CN113891139 B CN 113891139B
Authority
CN
China
Prior art keywords
theme
interface
interface theme
brightness
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111148728.5A
Other languages
Chinese (zh)
Other versions
CN113891139A (en
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.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202111148728.5A priority Critical patent/CN113891139B/en
Publication of CN113891139A publication Critical patent/CN113891139A/en
Application granted granted Critical
Publication of CN113891139B publication Critical patent/CN113891139B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses an operation interface theme switching method, a terminal and a computer readable storage medium, wherein the method comprises the following steps: acquiring light parameters of the current environment, and determining the brightness level of the current environment according to the light parameters; acquiring a brightness interface theme corresponding to the brightness level from a preset interface theme library; and switching the current interface theme into a brightness interface theme, and displaying a corresponding background picture and a corresponding text state in an operation interface of the system. According to the method and the device, the light parameters of the current environment are obtained, and the corresponding brightness interface theme can be obtained according to the brightness of the current environment, so that when the brightness change of the environment is detected, the current interface theme can be automatically switched to the brightness interface theme, the background picture and the character state matched with the brightness of the environment can be displayed on the operation interface, the theme of the operation interface does not need to be manually switched by a user or an operator, and the problem that the system cannot automatically switch the operation interface theme according to the environment change is solved.

Description

Operation interface theme switching method, terminal and computer readable storage medium
Technical Field
The invention relates to the field of terminal application, in particular to an operation interface theme switching method, a terminal and a computer readable storage medium.
Background
Along with the popularization of the intelligent television and the continuous development of the intelligent television, people put forward diversified requirements on the functions of the intelligent television, and the changeable operation interface can enrich the elements and styles presented by the intelligent television, so that the intelligent television is loved by different people, and meanwhile, the interestingness of the operation interface of the intelligent television is also improved.
At present, the smart television needs to manually adjust the interface theme, but cannot automatically adjust the interface theme according to the ambient light, for example: when a curtain is pulled on a room or a television is watched at night, the interface of the intelligent television system still keeps a high-brightness state, and the stimulation to the eyes of a viewer is large at the moment, so that the viewer feels uncomfortable to the reading of the television content; or, every time the indoor atmosphere lamp is turned on, the theme of the television system is still unchanged, and the atmosphere of the whole environment is seriously influenced; moreover, whenever the weather changes, the viewer cannot intuitively feel the change of the weather through the interface theme of the system, and cannot switch the festival interface theme at a specific festival, but needs a worker to manually switch the festival interface theme, so that the festival atmosphere cannot be created.
Therefore, the prior art has yet to be improved.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide an operation interface theme switching method, a terminal and a computer readable storage medium, aiming at the defects in the prior art, so as to solve the technical problem that the operation interface theme cannot be automatically switched according to the environmental change in the existing operation system.
The technical scheme adopted by the invention for solving the technical problem is as follows:
in a first aspect, the present invention provides an operation interface theme switching method, where the operation interface theme switching method includes the following steps:
acquiring light parameters of a current environment, and determining the brightness level of the current environment according to the light parameters;
acquiring a brightness interface theme corresponding to the brightness level from a preset interface theme library;
and switching the current interface theme into the brightness interface theme, and displaying a corresponding background picture and a corresponding text state in an operation interface of the system.
In one implementation, the obtaining of the light parameters of the current environment includes;
presetting a plurality of brightness interface themes; each brightness interface theme corresponds to one environment brightness level;
setting a background picture, an icon and a character state corresponding to each brightness interface theme;
and setting the interface theme library, and storing each brightness interface theme and the corresponding background picture, icon and character state association in the interface theme library.
In one implementation, the obtaining a light parameter of a current environment and determining a brightness level of the current environment according to the light parameter includes:
shooting an image of an indoor environment through a camera, and calculating light parameters of the indoor environment in the image according to exposure parameters;
judging whether the light parameter is smaller than a first threshold value;
if the light parameter is smaller than the first threshold, judging that the brightness level of the current environment is a first level;
judging whether the light parameter is larger than a second threshold value;
and if the light parameter is greater than the second threshold value, judging that the brightness level of the current environment is a second level.
In one implementation, the obtaining, from a preset interface theme library, a brightness interface theme corresponding to the brightness level includes:
if the brightness level of the current environment is the first level, obtaining a dark interface theme from the preset interface theme library; the dark interface theme corresponds to a dark background picture, a bright icon and a bright character state;
if the brightness level of the current environment is the second level, acquiring a light-color interface theme from the preset interface theme library; and the light-color interface theme corresponds to a light-color background picture, a dark-color icon and a dark-color character state.
In one implementation, the switching the current interface theme to the brightness interface theme and displaying the corresponding background map and text state in the operation interface of the system includes:
switching the current interface theme to the dark color interface theme, and displaying the dark color background picture, the bright color icon and the bright color character state in an operation interface of the system;
or switching the current interface theme into the light-color interface theme, and displaying the light-color background picture, the dark-color icon and the dark-color character state in an operation interface of the system.
In one implementation, the switching the current interface theme to the brightness interface theme and displaying the corresponding background map and text state in the operation interface of the system includes:
acquiring RGB color values of the switched interface theme;
determining the highest value in the RGB color values and the color corresponding to the highest value;
and superposing the color depth in the corresponding color according to the highest value.
In one implementation, the method further comprises:
acquiring date information of the system, and judging whether the current date is a set festival or not;
if the current date is the set festival, acquiring a festival interface theme corresponding to the set festival;
and switching the current interface theme into the festival interface theme, and displaying the festival background picture, the festival icon and the festival character state in an operation interface of the system.
In one implementation, the determining whether the current date is a set festival, and then includes:
if the current date is a non-set festival, acquiring the networking state of the equipment;
judging whether the equipment is in a networking state;
if the equipment is in the networking state, acquiring weather information and a corresponding weather picture through network big data;
and switching the background picture of the current interface theme into the weather picture so as to switch the current interface theme into the weather theme.
In a second aspect, the present invention provides a terminal, comprising: the processor is used for processing the operation interface theme switching program, and the operation interface theme switching program is used for realizing the operation interface theme switching method according to the first aspect when being executed by the processor.
In a third aspect, the present invention provides a computer-readable storage medium, where an operation interface theme switching program is stored, and when the operation interface theme switching program is executed by a processor, the operation interface theme switching program is used to implement the operation interface theme switching method according to the first aspect.
The invention adopts the technical scheme and has the following effects:
according to the method and the device, the light parameters of the current environment are obtained, and the corresponding brightness interface theme can be obtained according to the brightness of the current environment, so that when the brightness change of the environment is detected, the current interface theme can be automatically switched to the brightness interface theme, the background picture and the character state matched with the brightness of the environment can be displayed on the operation interface, the theme of the operation interface does not need to be manually switched by a user or an operator, and the problem that the system cannot automatically switch the operation interface theme according to the environment change is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a flowchart of an operation interface theme switching method in an implementation manner of the present invention.
Fig. 2 is a functional schematic of a terminal in one implementation of the 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
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Exemplary method
As shown in fig. 1, an embodiment of the present invention provides an operation interface theme switching method, where the operation interface theme switching method includes the following steps:
step S100, obtaining light parameters of the current environment, and determining the brightness level of the current environment according to the light parameters.
In this embodiment, the method for switching the theme of the operation interface is applied to a terminal, where the terminal includes but is not limited to: in this embodiment, an intelligent television is taken as an example, and the method for switching the theme of the operation interface is described.
In this embodiment, the smart television has a function of sensing the brightness of the indoor environment, and by sensing the brightness of the indoor environment, when the brightness of the indoor environment changes (for example, a curtain is pulled on a room), the theme of the operation interface of the smart television is automatically switched to the theme matched with the brightness of the indoor environment, so that the stimulation of the high-brightness display effect in the dark environment to the eyes of the user is reduced, or the stimulation of the low-brightness display effect in the bright environment to the eyes of the user is reduced.
In an implementation manner of this embodiment, in order to make the smart tv have a function of sensing a brightness level of an indoor environment, the smart tv is provided with a camera, and the camera captures a plurality of photos of the indoor environment and identifies the brightness level of the indoor environment by using an AI identification technology, so that the camera is used as an auxiliary device to achieve a purpose of automatically switching an operation interface theme.
In another implementation manner of this embodiment, in order to enable the smart television to have a function of sensing a brightness level of an indoor environment, a brightness sensor may be further disposed in the smart television, and the brightness sensor is utilized to collect light parameters of the indoor environment, so as to sense the brightness level of the indoor environment, and the brightness sensor is used as an auxiliary device, thereby achieving an objective of automatically switching an operation interface theme.
In this embodiment, in order to enable the smart television to automatically switch the operation interface theme, a plurality of luminance interface themes need to be set in the smart television in advance; each brightness interface theme corresponds to one environment brightness level; specifically, each of the luminance interface themes corresponds to a range of luminance values, such as: brightness interface theme L 1 Corresponding to an ambient brightness level of L 1 ,L 1 The corresponding luminance value ranges from 100nit to 200nit.
Further, when a plurality of brightness interface themes are set, a background picture, an icon and a character state corresponding to each brightness interface theme need to be set; wherein, the background map may be a solid background map matched with the ambient brightness level, such as: brightness interface theme L 1 Corresponding to a black background picture; the background map may also be a custom background map that matches ambient light levels, such as: brightness interface theme L 1 Corresponding to the black background image, the black percentage in the black background image is greater than a predetermined value (for example, greater than 85%); the background image determines a color system and a theme color corresponding to each brightness interface theme.
Further, when the icon corresponding to each brightness interface theme is set, the color of the icon may be a color that is in sharp contrast with the brightness interface theme (or the background map), for example: the theme color of the luminance interface theme is a dark-family theme (i.e., black), then the color of the icon may be a bright-color icon (i.e., white).
Further, when setting the text state corresponding to each brightness interface theme, the text state (i.e. text color) may be a color that is in sharp contrast with the brightness interface theme (or the background map), for example: the theme color of the brightness interface theme is a dark system theme (namely, black), and then the text state can be a bright-color text state (namely, white); by setting the text state to be in a state of being compared with the background image, text content displayed in the operation interface can be made fresh and natural when the brightness interface theme is displayed.
Furthermore, after a plurality of brightness interface themes are set, an interface theme library is required to be set; the interface theme library is a local database of the intelligent television and is used for storing a plurality of factory-set brightness interface themes and/or user-defined themes and storing themes downloaded from a network database; when the interface theme library is set, a plurality of folders can be set in the interface theme library, and each brightness interface theme and the corresponding background image, icon and character state of the brightness interface theme are stored in the corresponding folder in the interface theme library in an associated manner.
Of course, in another implementation manner of this embodiment, according to a switching requirement of a real-time scene, the luminance interface theme and the corresponding background map, icon, and text state thereof may be obtained from a server or a network database in real time, and the theme of the operation interface of the smart television is switched to the theme matched with the indoor environment luminance.
That is, in one implementation manner of the present embodiment, step S100 includes the following steps before:
step S001, presetting a plurality of brightness interface themes; each brightness interface theme corresponds to one environment brightness level;
step S002, setting a background picture, an icon and a character state corresponding to each brightness interface theme;
and S003, setting the interface theme library, and storing each brightness interface theme and the corresponding background picture, icon and character state association thereof in the interface theme library.
In this embodiment, in a normal use process of the smart television, that is, in a process of watching a television program by a user, the smart television may acquire a light parameter of a current indoor environment; wherein the light parameter is a brightness value; then, determining the brightness level of the current indoor environment through the acquired light parameters; the brightness level is a brightness value range, that is, the range of the brightness value of the current environment is determined according to the collected brightness value of the indoor environment.
Further, in this embodiment, the brightness levels are L in order from dark to bright 0 ,L 1 ,L 2 ,L 3 ,L 4 ,L 5 ,L 6 (ii) a According to the corresponding relation of the brightness value range, the brightness level L 0 The brightness value range of (1) is 0nit to 100nit, and the brightness level L 1 The brightness value of (1) is in the range of 100nit to 200nit 6 The luminance value range of (1) is 600nit to 700nit.
Specifically, when the brightness level of the current indoor environment is determined, an image of the indoor environment can be shot through a camera of the smart television; the camera can be a built-in camera of the intelligent television, and the built-in camera can rise to a certain height, namely extends out of the shell of the intelligent television and shoots images of an indoor environment; when the camera shoots the image of the indoor environment, in order to improve the accuracy of the camera for identifying the indoor brightness, the camera can also be a rotary camera, and the camera is controlled to rotate to different angles to shoot images at multiple angles, so that the light parameters of the indoor environment are comprehensively obtained according to the images shot at different angles.
Furthermore, after the image of the indoor environment is obtained, the light parameters in the shot image can be identified through an AI algorithm, namely, the brightness value of a certain area in the image is identified through the AI algorithm; wherein a certain region in the image may be a designated viewing region, for example: an area 2 m to 3 m away from the smart television; alternatively, a certain area in the image may also be a shooting area of a certain object in a room, for example: a furnishing area of the sofa; when the brightness value of a certain area in an image is identified, the corresponding brightness value can be calculated according to the shooting parameters in each image, for example: and calculating the brightness value of the indoor environment according to the exposure parameters in each image.
Further, after the brightness value of the indoor environment is obtained, the brightness level of the indoor environment can be determined according to the brightness value obtained through calculation; in this embodiment, it may be determined whether the brightness value of the indoor environment is smaller than a first threshold, and if the brightness value of the indoor environment is smaller than the first threshold, the brightness level of the current environment is determined as a first level; wherein the first threshold is 100nit, and the first brightness level is a brightness level L 0 The luminance value range is 0nit to 100nit, i.e., the luminance value range of the lowest level.
If the brightness level of the indoor environment is greater than the first threshold value, further judging whether the brightness value of the indoor environment is greater than a second threshold value, and if the brightness value of the indoor environment is greater than the second threshold value, judging that the brightness level of the current environment is a second level; wherein the second threshold is 600nit, the second threshold isThe second brightness level is a brightness level L 6 The luminance value range is 600nit to 700nit, i.e., the highest level luminance value range.
That is, in an implementation manner of this embodiment, step S100 specifically includes the following steps:
step S110, shooting an image of an indoor environment through a camera, and calculating light parameters of the indoor environment in the image according to exposure parameters;
step S120, judging whether the light parameter is smaller than a first threshold value;
step S130, if the light parameter is smaller than the first threshold, determining that the brightness level of the current environment is a first level;
step S140, judging whether the light parameter is larger than a second threshold value;
step S150, if the light parameter is greater than the second threshold, determining that the brightness level of the current environment is a second level.
According to the embodiment, the image of the indoor environment is shot through the camera, the light parameter of the indoor environment in the image is calculated according to the exposure parameter, the brightness change of the indoor environment can be directly sensed through the camera of the intelligent television, and therefore the theme of the operation interface is automatically switched according to the change of the indoor brightness.
As shown in fig. 1, in an implementation manner of the embodiment of the present invention, the method for switching the operation interface theme further includes the following steps:
and step S200, acquiring a brightness interface theme corresponding to the brightness level from a preset interface theme library.
In this embodiment, after determining the brightness level of the indoor environment, the smart television obtains a brightness interface theme corresponding to the brightness level from a preset interface theme library; when the corresponding brightness interface theme is obtained, interface resource information of the corresponding brightness interface theme is mainly obtained, so that interface resources of the corresponding brightness interface theme are obtained; the interface resource information refers to display information of display elements in an operation interface, for example: the color of the background picture, the color of the icon, the status of the characters, the resource storage path and the like.
Further, when a corresponding brightness interface theme is obtained, a related index table can be obtained according to the determined brightness level, and an interface style identifier of the brightness interface theme corresponding to the brightness level is obtained from the index table; wherein the interface style identification is used for identifying a unique user interface; and further, searching corresponding background pictures, icons, character states and the like from a preset interface theme library according to the acquired interface style identification.
Further, if the brightness level of the current environment is a first level, obtaining a dark interface theme from the preset interface theme library; optionally, in this embodiment, the brightness level corresponding to the first level is L 0 In order to adapt to the darkness of the current environment, a dark color interface theme is adopted in this embodiment, that is, the dark color interface theme corresponds to a dark color background image, a bright color icon and a bright color text state, wherein the dark color background image may be a background image of black or a color close to black (for example, dark blue), the bright color icon is an icon of a color (for example, white) that is in sharp contrast with the dark color, and the bright color text state is a text state of a color (for example, white) that is in sharp contrast with the dark color.
Further, if the brightness level of the current environment is a second level, acquiring a bright interface theme from the preset interface theme library; optionally, in this embodiment, the brightness level corresponding to the second level is L 6 In order to adapt to the brightness of the current environment, a bright interface theme is adopted in this embodiment, that is, the bright interface theme corresponds to a bright background map, a dark icon, and a dark text state, where the bright background map may be a background map of white or a color close to white (for example, light green), the dark icon is an icon of a color (for example, black) that is in sharp contrast with the bright color, and the dark text state is a text state of a color (for example, black) that is in sharp contrast with the bright color.
That is, in an implementation manner of this embodiment, the step S200 specifically includes the following steps:
step S210, if the brightness level of the current environment is a first level, obtaining a dark interface theme from the preset interface theme library; the dark interface theme corresponds to a dark background picture, a bright icon and a bright character state;
step S220, if the brightness level of the current environment is the second level, obtaining a light-color interface theme from the preset interface theme library; and the light-color interface theme corresponds to a light-color background picture, a dark-color icon and a dark-color character state.
According to the embodiment, the corresponding dark color interface theme or light color interface theme is automatically acquired according to the brightness of the current indoor environment, so that the current interface theme is automatically switched to the operation interface theme corresponding to the brightness of the indoor environment.
As shown in fig. 1, in an implementation manner of the embodiment of the present invention, the method for switching the operation interface theme further includes the following steps:
and step S300, switching the current interface theme into the brightness interface theme, and displaying the corresponding background picture and character state in an operation interface of the system.
In this embodiment, after the corresponding deep-color interface theme or light-color interface theme is obtained, the current interface theme can be switched to the corresponding deep-color interface theme or light-color interface theme according to the requirements of the actual application scene, and the corresponding background image and character state are displayed in the operation interface of the system; when the theme of the operation interface is switched, the smart television acquires a theme switching function, and modifies the theme parameter of the current interface theme according to the theme switching function and the dark interface theme or the light interface theme, so that the theme switching process is completed; the theme parameters are background image color parameters, icon color parameters, character state parameters and the like corresponding to the dark color interface theme or the light color interface theme.
Further, in an actual application scene, if the indoor environment is a dark environment, the operation interface theme acquired by the smart television is a dark color interface theme; at this time, according to the theme switching function and the background image color parameter, the icon color parameter and the character state parameter of the dark color interface theme, the current interface theme can be switched to the dark color interface theme, and the dark color background image, the bright color icon and the bright color character state are displayed in the operation interface of the system; and after the theme switching is finished, displaying theme switching prompt information in an operation interface of the system.
That is, in an implementation manner of this embodiment, step S300 specifically includes the following steps:
and S310, switching the current interface theme to the dark color interface theme, and displaying the dark color background picture, the bright color icon and the bright color character state in an operation interface of the system.
Further, in an actual application scene, if an indoor environment is a bright environment, an operation interface theme acquired by the smart television is a bright interface theme; at this time, according to the theme switching function and the background image color parameter, the icon color parameter and the character state parameter of the bright interface theme, the current interface theme can be switched to the bright interface theme, and the light-color background image, the dark-color icon and the dark-color character state are displayed in an operation interface of the system; and after the theme switching is finished, displaying theme switching prompt information in an operation interface of the system.
In an implementation manner of this embodiment, step S300 specifically includes the following steps:
and step S320, switching the current interface theme into the light-color interface theme, and displaying the light-color background picture, the dark-color icon and the dark-color character state in an operation interface of the system.
Certainly, in the actual application scenario of this embodiment, after the theme is switched to the dark-color interface, according to the gradual change condition of the brightness of the indoor environment, a gradual change process (a process from dark color to light color) is adopted to gradually switch the theme of the operation interface to the theme of the corresponding color, so that the theme of the operation interface of the smart television gradually changes along with the brightness change of the indoor environment.
In the same way, after the theme of the light-color interface is switched, according to the gradual change condition of the brightness of the indoor environment, the theme of the operation interface is switched to the theme of the corresponding color gradually by adopting a gradual change process (a change process from light color to dark color), so that the theme of the operation interface of the smart television is gradually changed along with the brightness change of the indoor environment.
In this embodiment, after switching to a dark interface theme or a light interface theme, in order to ensure the percentage of colors displayed in the operation interface, it is further required to detect whether the percentage of the same hue (i.e., color) of the picture in the operation interface exceeds a set value (for example, the set value is 70%); if the RGB color value exceeds the set value, the RGB color value of the interface theme after switching is obtained, and the highest value in the RGB color values in the operation interface is judged and determined; obtaining a highest value and a corresponding color through judgment, and superposing color depth in the corresponding color according to the highest value; for example: when the RGB color value is judged, the highest R value is obtained, and at the moment, the ratio of red reaches a certain value by superposing red.
That is, in one implementation manner of the present embodiment, the step S300 is followed by the following steps:
step S410, acquiring RGB color values of the interface theme after switching;
step S420, determining the highest value in the RGB color values and the corresponding color;
and step S430, superposing color depth in the corresponding color according to the maximum value.
In this embodiment, in addition to switching the color system of the theme according to the brightness of the indoor environment, the holiday interface theme can also be switched according to the system date; when the festival interface theme is switched, whether the current date is a set festival or not is determined by acquiring date information of the system; if the festival interface theme is the set festival, acquiring the festival interface theme corresponding to the set festival, switching the current interface theme to the festival interface theme according to a theme switching function and the background map color parameter, the icon color parameter and the character state parameter of the festival interface theme, and displaying the festival background map, the festival icon and the festival character state in an operation interface of the system.
That is, in an implementation manner of this embodiment, the method further includes the following steps:
step S510, acquiring date information of the system, and judging whether the current date is a set festival or not;
step S520, if the current date is the set festival, acquiring a festival interface theme corresponding to the set festival;
step S530, the current interface theme is switched to the festival interface theme, and the festival background picture, the festival icon and the festival character state are displayed in the operation interface of the system.
In this embodiment, when determining whether the current date is the set festival, if the current date is the non-set festival, determining whether weather information can be acquired from a server or network big data according to the networking state of the device, so as to switch the current interface theme to the weather theme.
Specifically, when the device is detected to be in a networking state, the geographic position of the device is determined through the IP address of the device, or the position where weather information needs to be acquired is determined according to the position specified by a user; further, weather information of the location is obtained according to the obtained geographic position or the specified position; finally, determining a corresponding weather picture and theme tone according to the acquired weather information, thereby switching the background picture of the current interface theme into the weather picture and switching the theme tone of the current interface theme into the theme tone related to weather, for example: and the acquired weather is sunny, the theme tone is blue or light blue, and the theme tone is switched into the blue or light blue through a theme switching function.
That is, in one implementation manner of the present embodiment, step S510 is followed by the following steps:
step S540, if the current date is a non-set festival, the networking state of the equipment is obtained;
step S550, judging whether the equipment is in a networking state;
step S560, if the device is in the networking state, acquiring weather information and a corresponding weather picture through network big data;
step S570, switching the background image of the current interface theme to the weather image, so as to switch the current interface theme to the weather theme.
It is worth mentioning that during a set festival, if the smart television detects that the brightness value of the indoor environment changes to a greater extent, the brightness interface theme is preferentially switched to adapt to the brightness change of the indoor environment; if the intelligent television detects that the brightness value of the indoor environment tends to be stable (for example, under the condition that a curtain is not pulled up in the daytime), the festival interface theme is preferentially switched.
During non-set festivals, if the intelligent television detects that the brightness value change degree of the indoor environment is large, the brightness interface theme is preferentially switched to adapt to the brightness change of the indoor environment; if the intelligent television detects that the brightness value of the indoor environment tends to be stable (for example, under the condition that a curtain is not pulled up in the daytime), the weather interface theme is preferentially switched.
Certainly, according to the actual needs of the use scene of the user, the functions of the holiday interface theme and the weather interface theme can be closed in the operation interface of the smart television.
According to the embodiment, the light parameters of the current environment are obtained, the corresponding brightness interface theme can be obtained according to the brightness of the current environment, so that when the change of the environment brightness is detected, the current interface theme can be automatically switched to the brightness interface theme, the background picture and the text state matched with the environment brightness can be displayed on the operation interface, the theme of the operation interface does not need to be manually switched by a user or an operator, and the problem that the system can not automatically switch the operation interface theme according to the change of the environment is solved.
Exemplary device
Based on the above embodiments, the present invention further provides a terminal, and a schematic block diagram thereof may be as shown in fig. 2.
The terminal includes: the system comprises a processor, a memory, an interface, a display screen and a communication module which are connected through a system bus; wherein the processor of the terminal is configured to provide computing and control capabilities; the memory of the terminal includes a computer-readable storage medium and an internal memory; the computer-readable storage medium stores an operating system and a computer program; the internal memory provides an environment for the operation of an operating system and a computer program in the computer-readable storage medium; the interface is used for connecting external terminal equipment, such as: mobile terminals and computers; the display screen is used for displaying corresponding operation interface theme switching information; the communication module is used for communicating with a cloud server or a mobile terminal.
The computer program is used for realizing an operation interface theme switching method when being executed by a processor.
It will be understood by those skilled in the art that the block diagram of fig. 2 is a block diagram of only a portion of the structure associated with the inventive arrangements and is not intended to limit the terminals to which the inventive arrangements may be applied, and that a particular terminal may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a terminal is provided, which includes: the processor and the memory, the memory stores an operation interface theme switching program, and the operation interface theme switching program is used for realizing the operation interface theme switching method when being executed by the processor.
In one embodiment, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores an operation interface theme switching program, and the operation interface theme switching program is used for implementing the operation interface theme switching method as above when being executed by a processor.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases or other media used in the embodiments provided herein may include non-volatile and/or volatile memory.
In summary, the present invention provides an operation interface theme switching method, a terminal and a computer readable storage medium, wherein the method includes: acquiring light parameters of the current environment, and determining the brightness level of the current environment according to the light parameters; acquiring a brightness interface theme corresponding to the brightness level from a preset interface theme library; and switching the current interface theme into a brightness interface theme, and displaying a corresponding background picture and a corresponding text state in an operation interface of the system. According to the method and the device, the light parameters of the current environment are obtained, and the corresponding brightness interface theme can be obtained according to the brightness of the current environment, so that when the brightness change of the environment is detected, the current interface theme can be automatically switched to the brightness interface theme, the background picture and the character state matched with the brightness of the environment can be displayed on the operation interface, the theme of the operation interface does not need to be manually switched by a user or an operator, and the problem that the system cannot automatically switch the operation interface theme according to the environment change is solved.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (8)

1. An operation interface theme switching method is characterized by comprising the following steps:
acquiring light parameters of a current environment, and determining the brightness level of the current environment according to the light parameters;
acquiring a brightness interface theme corresponding to the brightness level from a preset interface theme library;
switching the current interface theme into the brightness interface theme, and displaying a corresponding background picture and a corresponding character state in an operation interface of the system;
the method comprises the steps of obtaining light parameters of the current environment;
presetting a plurality of brightness interface themes; each brightness interface theme corresponds to one environment brightness level;
setting a background picture, an icon and a character state corresponding to each brightness interface theme;
setting the interface theme library, and storing each brightness interface theme and the corresponding background picture, icon and character state association in the interface theme library;
when a corresponding brightness interface theme is obtained, obtaining a related index table according to the determined brightness level, and obtaining an interface style identification of the brightness interface theme corresponding to the brightness level from the index table;
the switching of the current interface theme to the brightness interface theme and the displaying of the corresponding background picture and text state in the operation interface of the system comprise:
acquiring RGB color values of the switched interface theme;
determining the highest value in the RGB color values and the color corresponding to the highest value;
and superposing color depth in the corresponding color according to the highest value.
2. The method for switching the operational interface theme according to claim 1, wherein the obtaining the light parameter of the current environment and determining the brightness level of the current environment according to the light parameter comprises:
shooting an image of an indoor environment through a camera, and calculating light parameters of the indoor environment in the image according to exposure parameters;
judging whether the light parameter is smaller than a first threshold value;
if the light parameter is smaller than the first threshold, judging that the brightness level of the current environment is a first level;
judging whether the light parameter is larger than a second threshold value;
and if the light parameter is greater than the second threshold value, judging that the brightness level of the current environment is a second level.
3. The method for switching the interface theme according to claim 1, wherein the obtaining the interface theme with the brightness corresponding to the brightness level from a preset interface theme library includes:
if the brightness level of the current environment is the first level, obtaining a dark color interface theme from the preset interface theme library; the dark interface theme corresponds to a dark background picture, a bright icon and a bright character state;
if the brightness level of the current environment is the second level, acquiring a light-color interface theme from the preset interface theme library; and the light-color interface theme corresponds to a light-color background picture, a dark-color icon and a dark-color character state.
4. The method for switching the theme of the operation interface according to claim 3, wherein the switching the current interface theme to the brightness interface theme and displaying the corresponding background image and text state in the operation interface of the system comprises:
switching the current interface theme to the dark color interface theme, and displaying the dark color background image, the bright color icon and the bright color character state in an operation interface of the system;
or switching the current interface theme to the light-color interface theme, and displaying the light-color background image, the dark-color icon and the dark-color character state in an operation interface of the system.
5. The method for switching the theme of the operation interface according to claim 1, further comprising:
acquiring date information of the system, and judging whether the current date is a set festival or not;
if the current date is the set festival, acquiring a festival interface theme corresponding to the set festival;
and switching the current interface theme into the festival interface theme, and displaying the festival background picture, the festival icon and the festival character state in an operation interface of the system.
6. The method for switching the theme of the operation interface according to claim 5, wherein the determining whether the current date is the set festival or not, and then comprises:
if the current date is a non-set festival, acquiring the networking state of the equipment;
judging whether the equipment is in a networking state;
if the equipment is in the networking state, acquiring weather information and a corresponding weather picture through network big data;
and switching the background picture of the current interface theme into the weather picture so as to switch the current interface theme into the weather theme.
7. A terminal, comprising: the processor and the memory, the memory stores an operation interface theme switching program, and the operation interface theme switching program is used for realizing the operation interface theme switching method according to any one of claims 1 to 6 when being executed by the processor.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium stores an operation interface theme switching program, which is used to implement the operation interface theme switching method according to any one of claims 1 to 6 when executed by a processor.
CN202111148728.5A 2021-09-27 2021-09-27 Operation interface theme switching method, terminal and computer readable storage medium Active CN113891139B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111148728.5A CN113891139B (en) 2021-09-27 2021-09-27 Operation interface theme switching method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111148728.5A CN113891139B (en) 2021-09-27 2021-09-27 Operation interface theme switching method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113891139A CN113891139A (en) 2022-01-04
CN113891139B true CN113891139B (en) 2023-02-03

Family

ID=79007824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111148728.5A Active CN113891139B (en) 2021-09-27 2021-09-27 Operation interface theme switching method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113891139B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9952756B2 (en) * 2014-01-17 2018-04-24 Intel Corporation Dynamic adjustment of a user interface
CN105744336B (en) * 2014-12-11 2019-01-01 Tcl光电科技(惠州)有限公司 The method and system of the display styles of automatic replacement smart television
CN107145349A (en) * 2017-04-28 2017-09-08 珠海市魅族科技有限公司 Method for switching theme, device, computer installation and computer-readable recording medium
CN112395026B (en) * 2019-08-14 2022-09-23 腾讯科技(深圳)有限公司 Theme state adjusting method, device, equipment and storage medium
CN112181557A (en) * 2020-09-22 2021-01-05 西安闻泰电子科技有限公司 Theme switching method and device, electronic equipment and storage medium
CN112492106A (en) * 2020-11-27 2021-03-12 北京高途云集教育科技有限公司 Page theme switching method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113891139A (en) 2022-01-04

Similar Documents

Publication Publication Date Title
CN109951627B (en) Image processing method, image processing device, storage medium and electronic equipment
CN111416950A (en) Video processing method and device, storage medium and electronic equipment
US8331721B2 (en) Automatic image correction providing multiple user-selectable options
WO2017035949A1 (en) Intelligent home device interaction method and system based on intelligent television video scene
US11070717B2 (en) Context-aware image filtering
CN110809120B (en) Light supplementing method for shot picture, smart television and computer readable storage medium
CN108701439A (en) A kind of image display optimization method and device
US10070112B2 (en) Image processing device, imaging device, image processing method, program, and recording medium
CN104834382A (en) Mobile terminal application program response system and method
CN110673900A (en) Light effect adjusting method, intelligent terminal and storage medium
CN106204743B (en) Control method and device for augmented reality function and mobile terminal
CN115525140A (en) Gesture recognition method, gesture recognition apparatus, and storage medium
CN111372139A (en) Image parameter adjusting method, television and storage medium
CN113891139B (en) Operation interface theme switching method, terminal and computer readable storage medium
CN112887615B (en) Shooting method and device
CN112541955A (en) Image processing method, device and equipment
CN111726542A (en) Camera light supplementing method, terminal and storage medium
CN105677005A (en) Screen control method and device for mobile terminal
CN107241555A (en) Luminance regulating method, device, TV and the storage medium of composograph
CN107578753B (en) Mobile terminal, display screen brightness adjusting method and storage medium
CN111225151A (en) Intelligent terminal, shooting control method and computer-readable storage medium
CN111414221B (en) Display method and device
CN116600190A (en) Photographing control method and device for mobile phone and computer readable storage medium
CN113962840A (en) Image processing method, image processing device, electronic equipment and storage medium
CN113487497A (en) Image processing method and device 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
GR01 Patent grant
GR01 Patent grant