CN116844494A - Screen backlight brightness adjusting method and device, computer equipment and storage medium - Google Patents
Screen backlight brightness adjusting method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN116844494A CN116844494A CN202310826781.9A CN202310826781A CN116844494A CN 116844494 A CN116844494 A CN 116844494A CN 202310826781 A CN202310826781 A CN 202310826781A CN 116844494 A CN116844494 A CN 116844494A
- Authority
- CN
- China
- Prior art keywords
- light intensity
- backlight
- value
- mode
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000005070 sampling Methods 0.000 claims abstract description 141
- 230000008859 change Effects 0.000 claims abstract description 83
- 238000001514 detection method Methods 0.000 claims abstract description 70
- 230000007613 environmental effect Effects 0.000 claims abstract description 25
- 238000004590 computer program Methods 0.000 claims description 15
- 230000009467 reduction Effects 0.000 claims description 10
- 230000000630 rising effect Effects 0.000 claims description 8
- 230000001174 ascending effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000005286 illumination Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
- G09G3/3406—Control of illumination source
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/34—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
- G09G3/3406—Control of illumination source
- G09G3/3413—Details of control of colour illumination sources
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Liquid Crystal (AREA)
Abstract
The invention provides a screen backlight brightness adjusting method, a device, computer equipment and a storage medium, wherein the method is characterized in that environmental light intensity values of preset sampling times are continuously acquired within a first preset time to form an environmental light intensity value sequence; acquiring brightness value change trend information corresponding to an environment light intensity value sequence and a sampling effectiveness detection result corresponding to the environment light intensity value sequence; if the brightness value change trend corresponds to the continuous descending change trend or the brightness value change trend corresponds to the continuous ascending change trend and the sampling validity detection result corresponds to the sampling validity result, a preset first backlight dimming strategy or a preset second backlight dimming strategy and a current backlight mode are obtained, and the current backlight mode is adjusted to a night mode or a daytime mode according to the first backlight dimming strategy or the second backlight dimming strategy, so that the screen backlight brightness can be automatically adjusted to the brightness set by the night mode or the daytime mode according to the ambient light intensity change, and the user experience is improved.
Description
Technical Field
The present application relates to the field of automotive engine screen brightness technologies, and in particular, to a method and apparatus for adjusting screen backlight brightness, a computer device, and a storage medium.
Background
With development of automobile technology, there is a need in the development process of automobile software, namely, the backlight brightness of an automobile screen needs to be automatically adjusted according to the intensity of the environment light in the automobile so as to improve the user experience. If the brightness of the screen backlight is not regulated, the screen backlight needs to be high-brightness backlight under the condition of brighter illumination intensity, and a driver can feel comfortable when looking at the screen; if the automobile enters a tunnel or an underground garage and other environments with darker ambient light at the moment, the backlight brightness of the screen of the automobile is always too high, so that the automobile is too dazzling to influence the driving safety of a driver; in addition, the backlight brightness of the screen is in the condition of being too dark, when the automobile enters an environment with good illumination intensity, the content of the screen of the automobile machine is difficult to be seen by a driver because the backlight brightness of the screen is too dark.
Disclosure of Invention
The embodiment of the application provides a method, a device, computer equipment and a storage medium for adjusting screen backlight brightness, which aim to solve the problem that the screen backlight brightness cannot be automatically adjusted according to the change of the light intensity of an environment in a vehicle in the prior art.
In order to solve the above problems, in a first aspect, an embodiment of the present application provides a method for adjusting brightness of a screen backlight, including:
continuously collecting environment light intensity values of preset sampling times in a first preset time to form an environment light intensity value sequence;
acquiring brightness value change trend information corresponding to the environment light intensity value sequence, and acquiring a sampling effectiveness detection result corresponding to the environment light intensity value sequence;
if the brightness value change trend is determined to correspond to a continuous descending change trend, and the sampling effectiveness detection result corresponds to a sampling effectiveness result, a preset first backlight dimming strategy and a preset current backlight mode are obtained, and the preset first backlight dimming strategy and the preset current backlight mode are used for adjusting the current backlight mode to a night mode through the first backlight dimming strategy;
and if the brightness value change trend corresponds to the continuous rising change trend and the sampling effectiveness detection result corresponds to the sampling effectiveness result, acquiring a preset second backlight dimming strategy and a preset current backlight mode, and adjusting the current backlight mode to a daytime mode through the second backlight dimming strategy.
In a second aspect, an embodiment of the present application provides a device for adjusting brightness of a backlight of a screen, including:
The sampling unit is used for continuously collecting the ambient light intensity values of preset sampling times in a first preset time to form an ambient light intensity value sequence;
the acquisition unit is used for acquiring brightness value change trend information corresponding to the environment light intensity value sequence and acquiring a sampling effectiveness detection result corresponding to the environment light intensity value sequence;
the night mode adjusting unit is used for acquiring a preset first backlight dimming strategy and a current backlight mode if the brightness value change trend is determined to correspond to the continuous descending change trend and the sampling validity detection result is determined to correspond to the sampling validity result, and adjusting the current backlight mode to a night mode through the first backlight dimming strategy;
and the daytime mode adjusting unit is used for acquiring a preset second backlight dimming strategy and a current backlight mode if the brightness value change trend corresponds to the continuous rising change trend and the sampling validity detection result corresponds to the sampling validity result, and adjusting the current backlight mode to the daytime mode through the second backlight dimming strategy.
In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the computer program to implement the method for adjusting brightness of a backlight of a screen according to the first aspect.
In a fourth aspect, an embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, where the computer program includes program instructions, where the program instructions when executed by a processor cause the processor to perform the method for adjusting brightness of a screen backlight according to the first aspect.
The application provides a screen backlight brightness adjusting method, a device, computer equipment and a storage medium, wherein the method is characterized in that environmental light intensity values of preset sampling times are continuously acquired within a first preset time to form an environmental light intensity value sequence; acquiring brightness value change trend information corresponding to the environment light intensity value sequence and a sampling effectiveness detection result corresponding to the environment light intensity value sequence; if it is determined that the brightness value change trend corresponds to a continuous decrease change trend or the brightness value change trend corresponds to a continuous increase change trend and the sampling effectiveness detection result corresponds to a sampling effectiveness result, a preset first backlight dimming strategy or a preset second backlight dimming strategy and a current backlight mode are obtained, and the front backlight mode is adjusted to a night mode or a daytime mode according to the first backlight dimming strategy or the second backlight dimming strategy, so that the screen backlight brightness is automatically adjusted to the brightness set by the night mode or the daytime mode according to the ambient light intensity change, and the use experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for adjusting brightness of a backlight of a screen according to an embodiment of the present application;
fig. 2 is a schematic block diagram of a screen backlight brightness adjusting device according to an embodiment of the present application;
fig. 3 is a schematic block diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
The embodiment of the application provides a screen backlight brightness adjusting method, which is applied to a vehicle-mounted system.
Fig. 1 is a flowchart illustrating a method for adjusting brightness of a backlight of a screen according to an embodiment of the present application. As shown in fig. 1, the method includes steps S110 to S140.
S110, continuously collecting the ambient light intensity values of preset sampling times in a first preset time to form an ambient light intensity value sequence.
In this embodiment, a photosensitive sensor device is provided on the vehicle system for detecting the current ambient light intensity. Wherein, the car machine system controls the photosensitive sensor device to collect the ambient light intensity value in real time or periodically. When the vehicle machine system of the vehicle is started, the ambient light intensity values of the preset sampling times can be continuously acquired within the first preset time through the photosensitive sensor device to form an ambient light intensity value sequence, the photosensitive sensor device samples the ambient light intensity every 100ms, and therefore the ambient light intensity value sequence of the preset sampling times is continuously acquired within the first preset time, and the brightness value change trend information corresponding to the ambient light intensity value sequence can be conveniently acquired by the following vehicle machine system.
The first preset time and the preset sampling times can be a time threshold and a sampling times threshold set by a vehicle-mounted system or a time threshold and a sampling times threshold set manually by a user.
In one embodiment, step S110 includes:
acquiring a first time period, a second time period and a third time period which are included in the first preset time;
acquiring a first environmental light intensity value subsequence corresponding to the first time period, a second environmental light intensity value subsequence corresponding to the second time period and a third environmental light intensity value subsequence corresponding to the third time period;
and the first environment light intensity value subsequence, the second environment light intensity value subsequence and the third environment light intensity value subsequence sequentially form the environment light intensity value sequence.
In this embodiment, since the method for adjusting the brightness of the screen backlight adjusts the brightness of the screen backlight only based on the ambient light intensity value acquired by the photosensitive sensor, the problem that the optimization adjustment of the brightness of the screen backlight is not complete is easy to occur. For example, in the driving process, a user shields natural environment light due to the problems of object placement angles and the like in the vehicle, so that parameters of the photosensitive sensor for collecting the environment light intensity value are inaccurate, and further a screen backlight brightness adjustment error is easy to cause. Thus, in order to improve the accuracy of the screen backlight brightness adjustment, a sub-sequence of ambient light intensity values for a plurality of time periods is acquired within a first preset time.
The first preset time may include a plurality of time periods of the subsequence of the ambient light intensity values, where the plurality of time periods included in the first preset time are not specifically limited.
Preferably, the first time period, the second time period and the third time period included in the first preset time are acquired; and obtaining a first sub-sequence of ambient light intensity values corresponding to the first time period, a second sub-sequence of ambient light intensity values corresponding to the second time period, and a third sub-sequence of ambient light intensity values corresponding to the third time period; and the first environmental light intensity value subsequence, the second environmental light intensity value subsequence and the third environmental light intensity value subsequence sequentially form the environmental light intensity value sequence, so that the vehicle-mounted system can more accurately judge the brightness value change trend information corresponding to the environmental light intensity value sequence based on the environmental light intensity value subsequences of a plurality of time periods.
S120, obtaining brightness value change trend information corresponding to the environment light intensity value sequence, and obtaining a sampling effectiveness detection result corresponding to the environment light intensity value sequence.
In this embodiment, the vehicle-mounted system acquires an ambient light intensity value sequence acquired by the photosensitive sensor device, and determines that a mode of screen backlight brightness matching is a night mode or a daytime mode according to brightness value change trend information corresponding to the ambient light intensity value sequence. The brightness value change trend information corresponding to the environment light intensity value sequence is bright- > dark or dark- > bright. When the brightness value change trend information corresponding to the environment light intensity value sequence is bright- > dark, the mode of screen backlight brightness matching is a night mode; when the brightness value change trend information corresponding to the environment light intensity value sequence is dark- > bright, the screen backlight brightness matching mode is a daytime mode.
In addition, after the vehicle-mounted system determines the mode of the screen matching of the vehicle-mounted system, a sampling effectiveness detection result corresponding to the environment light intensity value sequence is obtained according to the environment light intensity value sequence, so that the vehicle-mounted system adjusts the backlight brightness of the screen to a corresponding daytime mode or night mode according to the matched mode and the sampling effectiveness detection result corresponding to the environment light intensity value sequence.
In an embodiment, as a first embodiment of obtaining the sampling validity detection result corresponding to the ambient light intensity value sequence in step S120, step S120 includes:
acquiring a preset daytime mode light intensity threshold value or a preset night mode light intensity threshold value;
acquiring the total number of the ambient light intensity values included in the ambient light intensity value sequence, and marking the total number as a first numerical value;
acquiring the total number of the ambient light intensity values which are larger than the daytime mode light intensity threshold in the ambient light intensity value sequence, and recording the total number as a second numerical value;
acquiring the total number of the ambient light intensity values smaller than the night mode light intensity threshold in the ambient light intensity value sequence, and marking the total number as a third numerical value;
if the ratio of the second numerical value to the first numerical value is greater than or equal to a preset first ratio threshold, or if the ratio of the third numerical value to the first numerical value is greater than or equal to a preset second ratio threshold, judging that the sampling effectiveness detection result is a sampling effectiveness result;
And if the ratio of the second value to the first value is smaller than the first ratio threshold, or if the ratio of the third value to the first value is smaller than the second ratio threshold, judging that the sampling validity detection result is a sampling invalidity result.
In this embodiment, the obtaining of the sampling validity detection result corresponding to the ambient light intensity value sequence may specifically be performed by: judging the ratio of the total number of the ambient light intensity values which are larger than the daytime mode light intensity threshold value in the ambient light intensity value sequence to the total number of the ambient light intensity values which are included in the ambient light intensity value sequence and the size of a preset first proportional threshold value, or judging the ratio of the total number of the ambient light intensity values which are smaller than the night mode light intensity threshold value in the ambient light intensity value sequence to the total number of the ambient light intensity values which are included in the ambient light intensity value sequence and the size of a preset second proportional threshold value, so as to determine whether the sampling effectiveness detection result is a sampling effectiveness result.
For example: when the total number of the ambient light intensity values included in the ambient light intensity value sequence is 10, the total number of the ambient light intensity values greater than the daytime mode light intensity threshold in the ambient light intensity value sequence is 8, and the preset first ratio threshold is 3/5, it is known that the ratio of the total number of the ambient light intensity values greater than the daytime mode light intensity threshold in the ambient light intensity value sequence to the total number of the ambient light intensity values included in the ambient light intensity value sequence is 4/5 and greater than the preset first ratio threshold is 3/5, and the vehicle-to-vehicle system can determine that the sampling effectiveness detection result is a sampling effectiveness result.
In an embodiment, as a second embodiment of obtaining the sampling validity detection result corresponding to the ambient light intensity value sequence in step S120, step S120 includes:
acquiring a preset daytime mode light intensity threshold value or a preset night mode light intensity threshold value;
acquiring the total number of the ambient light intensity values which are larger than the daytime mode light intensity threshold in the ambient light intensity value sequence, and recording the total number as a fourth numerical value;
acquiring the total number of the ambient light intensity values smaller than the night mode light intensity threshold in the ambient light intensity value sequence, and recording the total number as a fifth value;
if the fourth value is determined to be greater than or equal to a preset first number threshold, or if the fifth value is determined to be greater than or equal to a preset second number threshold, judging the sampling effectiveness detection result as a sampling effectiveness result;
and if the fourth number is smaller than the first number threshold, or if the fifth number is smaller than the second number threshold, judging that the sampling validity detection result is sampling invalid.
In this embodiment, the obtaining of the sampling validity detection result corresponding to the ambient light intensity value sequence may specifically further include: and judging the total number of the ambient light intensity values larger than the daytime mode light intensity threshold value in the ambient light intensity value sequence and the preset first number threshold value, or judging the total number of the ambient light intensity values smaller than the night mode light intensity threshold value in the ambient light intensity value sequence and the preset second number threshold value, so as to determine whether the sampling effectiveness detection result is a sampling effectiveness result.
For example: when the total number of the ambient light intensity values in the ambient light intensity value sequence, which is greater than the daytime mode light intensity threshold, is 8 and the preset first number threshold is 6, it is known that the total number of the ambient light intensity values in the ambient light intensity value sequence, which is greater than the daytime mode light intensity threshold, is greater than the preset first number threshold, and at this time, the vehicle-mounted system can determine that the sampling effectiveness detection result is a sampling effectiveness result.
In one embodiment, after step S120, the method includes:
and if the sampling validity detection result corresponds to the sampling invalidity result, returning to execute the step of continuously acquiring the ambient light intensity value of the preset sampling times in the first preset time to form an ambient light intensity value sequence.
In this embodiment, after the steps of obtaining the brightness value change trend information corresponding to the ambient light intensity value sequence and obtaining the sampling validity detection result corresponding to the ambient light intensity value sequence, if it is determined that the sampling validity detection result corresponds to the sampling invalidity result, the vehicle-to-machine system will control the photosensitive sensor device to continuously execute the step of continuously collecting the ambient light intensity values of the preset sampling times in the first preset time to form the ambient light intensity value sequence, and keep the current mode of the screen unchanged, so that the backlight brightness of the screen cannot be randomly adjusted, thereby improving the stability of the current mode of the screen.
S130, if it is determined that the brightness value change trend corresponds to a continuous descending change trend, and the sampling effectiveness detection result corresponds to a sampling effectiveness result, a preset first backlight dimming strategy and a current backlight mode are obtained, so that the current backlight mode is adjusted to a night mode through the first backlight dimming strategy.
In this embodiment, when the vehicle-mounted system determines that the brightness value change trend information corresponding to the ambient light intensity value sequence corresponds to a continuous descending change trend, and the sampling validity detection result corresponds to a sampling validity result, the vehicle-mounted system correspondingly acquires a first backlight dimming strategy and a current backlight mode preset on a vehicle-mounted screen, and adjusts the current backlight mode to a night mode based on the preset first backlight dimming strategy; preferably, the brightness value corresponding to the ambient light intensity value sequence changes at least five times from light to dark, for example, each ambient light intensity value in the ambient light intensity value sequence is X1, X2, X3, X4, X5, X6, X7, X8, X9 and X10, respectively, where X1, X2, X3, X4, X5, X6, X7, X8, X9 and X10 are all positive integers. When at least any six continuous ambient light intensity values show a descending trend, if X1> X2> X3> X4> X5> X6> X7< X8> X9 and > X10, the vehicle system determines that the mode of vehicle screen matching is a night mode, so that the brightness of the vehicle screen can be automatically adjusted according to the ambient light intensity change.
In an embodiment, the obtaining a preset first backlight dimming policy and a current backlight mode for adjusting the current backlight mode to a night mode according to the first backlight dimming policy includes:
acquiring a backlight brightness reduction value and a first dimming duration corresponding to the first backlight dimming strategy;
acquiring a first target backlight brightness value corresponding to the night mode;
and acquiring a current backlight brightness value corresponding to the current backlight mode, and uniformly changing and adjusting the current backlight brightness value to the first target backlight brightness value in the first dimming duration by taking the backlight brightness reduction value as an adjusting step length so as to switch to the night mode.
In this embodiment, in order to improve the experience of the user on the vehicle screen, the vehicle system sets the backlight brightness of the vehicle screen to be adjusted to the brightness set in the night mode in the preset first dimming time period in a brightness gradual change manner. Specifically, a backlight brightness reduction value and a first dimming duration corresponding to the first backlight dimming strategy are obtained; acquiring a first target backlight brightness value corresponding to the night mode; and acquiring a current backlight brightness value corresponding to the current backlight mode, and uniformly changing and adjusting the current backlight brightness value to the first target backlight brightness value in the first dimming duration by taking the backlight brightness reduction value as an adjusting step length so as to switch to the night mode. The first dimming duration may be manually set by a user, and the first dimming duration is preferably 3s in this embodiment.
Therefore, the method solves the problem that the backlight brightness of the automobile engine screen is too bright due to the change of the ambient light intensity, and avoids discomfort of a user caused by the sudden change of the backlight brightness of the automobile engine screen.
And S140, if the brightness value change trend corresponds to the continuous rising change trend and the sampling effectiveness detection result corresponds to the sampling effectiveness result, acquiring a preset second backlight dimming strategy and a preset current backlight mode, and adjusting the current backlight mode to a daytime mode through the second backlight dimming strategy.
In this embodiment, when the vehicle-mounted system determines that the brightness value change trend information corresponding to the ambient light intensity value sequence corresponds to a continuous rising change trend, and the sampling validity detection result corresponds to a sampling validity result, the vehicle-mounted system correspondingly acquires a second backlight dimming strategy and a current backlight mode preset on a vehicle-mounted screen, and adjusts the current backlight mode to a daytime mode based on the preset second backlight dimming strategy; preferably, the brightness value corresponding to the ambient light intensity value sequence changes from dark to light at least five times continuously, for example, each ambient light intensity value in the ambient light intensity value sequence is X1, X2, X3, X4, X5, X6, X7, X8, X9 and X10, respectively, wherein X1, X2, X3, X4, X5, X6, X7, X8, X9 and X10 are all positive integers. When at least any six continuous ambient light intensity values show a descending trend, if X1< X2< X3< X4< X5< X6> X7< X8> X9 and > X10, the vehicle system determines that the mode of the vehicle screen matching is a daytime mode, so that the brightness of the vehicle screen can be automatically adjusted according to the ambient light intensity change.
In an embodiment, the obtaining the preset second backlight dimming policy and the current backlight mode for adjusting the current backlight mode to the daytime mode according to the second backlight dimming policy includes:
acquiring a backlight brightness increasing value and a second dimming duration corresponding to the second backlight dimming strategy;
acquiring a second target backlight brightness value corresponding to the daytime mode;
and obtaining a current backlight brightness value corresponding to the current backlight mode, and uniformly changing and adjusting the current backlight brightness value to the two target backlight brightness values in the second dimming time length by taking the backlight brightness increasing value as an adjusting step length so as to switch to the daytime mode.
In this embodiment, in order to improve the experience of the user on the vehicle screen, the vehicle system sets the backlight brightness of the vehicle screen to be adjusted to the brightness set in the daytime mode in the preset second dimming time period according to the brightness gradual change mode. Specifically, a backlight brightness increasing value and a second dimming duration corresponding to the second backlight dimming strategy are obtained; acquiring a second target backlight brightness value corresponding to the daytime mode; and obtaining a current backlight brightness value corresponding to the current backlight mode, and uniformly changing and adjusting the current backlight brightness value to the two target backlight brightness values in the second dimming time length by taking the backlight brightness increasing value as an adjusting step length so as to switch to the daytime mode. The second dimming duration may be manually set by the user, and the second dimming duration is preferably 1s in this embodiment.
Therefore, the method solves the problem that the backlight brightness of the automobile engine screen is too dark due to the change of the ambient light intensity, and avoids discomfort of a user caused by the sudden change of the backlight brightness of the automobile engine screen.
According to the method, the ambient light intensity values are collected within the preset time to form an ambient light intensity value sequence, and the current backlight mode of the vehicle screen is adjusted to be in a night mode or in a daytime mode according to the brightness value change trend information corresponding to the ambient light intensity value sequence and the sampling effectiveness detection result corresponding to the ambient light intensity value sequence, so that the backlight brightness of the screen can be automatically adjusted to be set in the night mode or the daytime mode according to the ambient light intensity change, and the use experience of a user is improved.
The embodiment of the application also provides a screen backlight brightness adjusting device which is operated in any embodiment for executing the screen backlight brightness adjusting method. Specifically, referring to fig. 2, fig. 2 is a schematic block diagram of a screen backlight brightness adjusting device according to an embodiment of the application.
As shown in fig. 2, the screen backlight brightness adjusting apparatus 100 includes a sampling unit 110, an acquisition unit 120, a night mode adjusting unit 130, and a day mode adjusting unit 140.
The sampling unit 110 is configured to continuously collect the ambient light intensity values of the preset sampling times in a first preset time, so as to form an ambient light intensity value sequence.
In this embodiment, a photosensitive sensor device is provided on the vehicle system for detecting the current ambient light intensity. Wherein, the car machine system controls the photosensitive sensor device to collect the ambient light intensity value in real time or periodically. When the vehicle machine system of the vehicle is started, the ambient light intensity values of the preset sampling times can be continuously acquired within the first preset time through the photosensitive sensor device to form an ambient light intensity value sequence, the photosensitive sensor device samples the ambient light intensity every 100ms, and therefore the ambient light intensity value sequence of the preset sampling times is continuously acquired within the first preset time, and the brightness value change trend information corresponding to the ambient light intensity value sequence can be conveniently acquired by the following vehicle machine system.
The first preset time and the preset sampling times can be a time threshold and a sampling times threshold set by a vehicle-mounted system or a time threshold and a sampling times threshold set manually by a user.
In one embodiment, the sampling unit 110 includes:
Acquiring a first time period, a second time period and a third time period which are included in the first preset time;
acquiring a first environmental light intensity value subsequence corresponding to the first time period, a second environmental light intensity value subsequence corresponding to the second time period and a third environmental light intensity value subsequence corresponding to the third time period;
and the first environment light intensity value subsequence, the second environment light intensity value subsequence and the third environment light intensity value subsequence sequentially form the environment light intensity value sequence.
In this embodiment, since the method for adjusting the brightness of the screen backlight adjusts the brightness of the screen backlight only based on the ambient light intensity value acquired by the photosensitive sensor, the problem that the optimization adjustment of the brightness of the screen backlight is not complete is easy to occur. For example, in the driving process, a user shields natural environment light due to the problems of object placement angles and the like in the vehicle, so that parameters of the photosensitive sensor for collecting the environment light intensity value are inaccurate, and further a screen backlight brightness adjustment error is easy to cause. Thus, in order to improve the accuracy of the screen backlight brightness adjustment, a sub-sequence of ambient light intensity values for a plurality of time periods is acquired within a first preset time.
The first preset time may include a plurality of time periods of the subsequence of the ambient light intensity values, where the plurality of time periods included in the first preset time are not specifically limited.
Preferably, the first time period, the second time period and the third time period included in the first preset time are acquired; and obtaining a first sub-sequence of ambient light intensity values corresponding to the first time period, a second sub-sequence of ambient light intensity values corresponding to the second time period, and a third sub-sequence of ambient light intensity values corresponding to the third time period; and the first environmental light intensity value subsequence, the second environmental light intensity value subsequence and the third environmental light intensity value subsequence sequentially form the environmental light intensity value sequence, so that the vehicle-mounted system can more accurately judge the brightness value change trend information corresponding to the environmental light intensity value sequence based on the environmental light intensity value subsequences of a plurality of time periods.
The obtaining unit 120 is configured to obtain brightness value variation trend information corresponding to the ambient light intensity value sequence, and obtain a sampling effectiveness detection result corresponding to the ambient light intensity value sequence.
In this embodiment, the vehicle-mounted system acquires an ambient light intensity value sequence acquired by the photosensitive sensor device, and determines that a mode of screen backlight brightness matching is a night mode or a daytime mode according to brightness value change trend information corresponding to the ambient light intensity value sequence. The brightness value change trend information corresponding to the environment light intensity value sequence is bright- > dark or dark- > bright. When the brightness value change trend information corresponding to the environment light intensity value sequence is bright- > dark, the mode of screen backlight brightness matching is a night mode; when the brightness value change trend information corresponding to the environment light intensity value sequence is dark- > bright, the screen backlight brightness matching mode is a daytime mode.
In addition, after the vehicle-mounted system determines the mode of the screen matching of the vehicle-mounted system, a sampling effectiveness detection result corresponding to the environment light intensity value sequence is obtained according to the environment light intensity value sequence, so that the vehicle-mounted system adjusts the backlight brightness of the screen to a corresponding daytime mode or night mode according to the matched mode and the sampling effectiveness detection result corresponding to the environment light intensity value sequence.
In an embodiment, as a first embodiment of acquiring the sampling validity detection result corresponding to the ambient light intensity value sequence in the acquisition unit 120, the acquisition unit 1120 includes:
Acquiring a preset daytime mode light intensity threshold value or a preset night mode light intensity threshold value;
acquiring the total number of the ambient light intensity values included in the ambient light intensity value sequence, and marking the total number as a first numerical value;
acquiring the total number of the ambient light intensity values which are larger than the daytime mode light intensity threshold in the ambient light intensity value sequence, and recording the total number as a second numerical value;
acquiring the total number of the ambient light intensity values smaller than the night mode light intensity threshold in the ambient light intensity value sequence, and marking the total number as a third numerical value;
if the ratio of the second numerical value to the first numerical value is greater than or equal to a preset first ratio threshold, or if the ratio of the third numerical value to the first numerical value is greater than or equal to a preset second ratio threshold, judging that the sampling effectiveness detection result is a sampling effectiveness result;
and if the ratio of the second value to the first value is smaller than the first ratio threshold, or if the ratio of the third value to the first value is smaller than the second ratio threshold, judging that the sampling validity detection result is a sampling invalidity result.
In this embodiment, the obtaining of the sampling validity detection result corresponding to the ambient light intensity value sequence may specifically be performed by: judging the ratio of the total number of the ambient light intensity values which are larger than the daytime mode light intensity threshold value in the ambient light intensity value sequence to the total number of the ambient light intensity values which are included in the ambient light intensity value sequence and the size of a preset first proportional threshold value, or judging the ratio of the total number of the ambient light intensity values which are smaller than the night mode light intensity threshold value in the ambient light intensity value sequence to the total number of the ambient light intensity values which are included in the ambient light intensity value sequence and the size of a preset second proportional threshold value, so as to determine whether the sampling effectiveness detection result is a sampling effectiveness result.
For example: when the total number of the ambient light intensity values included in the ambient light intensity value sequence is 10, the total number of the ambient light intensity values greater than the daytime mode light intensity threshold in the ambient light intensity value sequence is 8, and the preset first ratio threshold is 3/5, it is known that the ratio of the total number of the ambient light intensity values greater than the daytime mode light intensity threshold in the ambient light intensity value sequence to the total number of the ambient light intensity values included in the ambient light intensity value sequence is 4/5 and greater than the preset first ratio threshold is 3/5, and the vehicle-to-vehicle system can determine that the sampling effectiveness detection result is a sampling effectiveness result.
In an embodiment, as a second embodiment of acquiring the sampling validity detection result corresponding to the ambient light intensity value sequence in the acquisition unit 120, the acquisition unit 120 includes:
acquiring a preset daytime mode light intensity threshold value or a preset night mode light intensity threshold value;
acquiring the total number of the ambient light intensity values which are larger than the daytime mode light intensity threshold in the ambient light intensity value sequence, and recording the total number as a fourth numerical value;
acquiring the total number of the ambient light intensity values smaller than the night mode light intensity threshold in the ambient light intensity value sequence, and recording the total number as a fifth value;
if the fourth value is determined to be greater than or equal to a preset first number threshold, or if the fifth value is determined to be greater than or equal to a preset second number threshold, judging the sampling effectiveness detection result as a sampling effectiveness result;
and if the fourth number is smaller than the first number threshold, or if the fifth number is smaller than the second number threshold, judging that the sampling validity detection result is sampling invalid.
In this embodiment, the obtaining of the sampling validity detection result corresponding to the ambient light intensity value sequence may specifically further include: and judging the total number of the ambient light intensity values larger than the daytime mode light intensity threshold value in the ambient light intensity value sequence and the preset first number threshold value, or judging the total number of the ambient light intensity values smaller than the night mode light intensity threshold value in the ambient light intensity value sequence and the preset second number threshold value, so as to determine whether the sampling effectiveness detection result is a sampling effectiveness result.
For example: when the total number of the ambient light intensity values in the ambient light intensity value sequence, which is greater than the daytime mode light intensity threshold, is 8 and the preset first number threshold is 6, it is known that the total number of the ambient light intensity values in the ambient light intensity value sequence, which is greater than the daytime mode light intensity threshold, is greater than the preset first number threshold, and at this time, the vehicle-mounted system can determine that the sampling effectiveness detection result is a sampling effectiveness result.
In an embodiment, after the acquisition unit 120, the method comprises:
and if the sampling validity detection result corresponds to the sampling invalidity result, returning to execute the step of continuously acquiring the ambient light intensity value of the preset sampling times in the first preset time to form an ambient light intensity value sequence.
In this embodiment, after the steps of obtaining the brightness value change trend information corresponding to the ambient light intensity value sequence and obtaining the sampling validity detection result corresponding to the ambient light intensity value sequence, if it is determined that the sampling validity detection result corresponds to the sampling invalidity result, the vehicle-to-machine system will control the photosensitive sensor device to continuously execute the step of continuously collecting the ambient light intensity values of the preset sampling times in the first preset time to form the ambient light intensity value sequence, and keep the current mode of the screen unchanged, so that the backlight brightness of the screen cannot be randomly adjusted, thereby improving the stability of the current mode of the screen.
The night mode adjusting unit 130 is configured to obtain a preset first backlight dimming policy and a current backlight mode if it is determined that the brightness value change trend corresponds to a continuous decreasing change trend and the sampling validity detection result corresponds to a sampling validity result, so as to adjust the current backlight mode to a night mode according to the first backlight dimming policy.
In this embodiment, when the vehicle-mounted system determines that the brightness value change trend information corresponding to the ambient light intensity value sequence corresponds to a continuous descending change trend, and the sampling validity detection result corresponds to a sampling validity result, the vehicle-mounted system correspondingly acquires a first backlight dimming strategy and a current backlight mode preset on a vehicle-mounted screen, and adjusts the current backlight mode to a night mode based on the preset first backlight dimming strategy; preferably, the brightness value corresponding to the ambient light intensity value sequence changes at least five times from light to dark, for example, each ambient light intensity value in the ambient light intensity value sequence is X1, X2, X3, X4, X5, X6, X7, X8, X9 and X10, respectively, where X1, X2, X3, X4, X5, X6, X7, X8, X9 and X10 are all positive integers. When at least any six continuous ambient light intensity values show a descending trend, if X1> X2> X3> X4> X5> X6> X7< X8> X9 and > X10, the vehicle system determines that the mode of vehicle screen matching is a night mode, so that the brightness of the vehicle screen can be automatically adjusted according to the ambient light intensity change.
In an embodiment, the obtaining a preset first backlight dimming policy and a current backlight mode for adjusting the current backlight mode to a night mode according to the first backlight dimming policy includes:
acquiring a backlight brightness reduction value and a first dimming duration corresponding to the first backlight dimming strategy;
acquiring a first target backlight brightness value corresponding to the night mode;
and acquiring a current backlight brightness value corresponding to the current backlight mode, and uniformly changing and adjusting the current backlight brightness value to the first target backlight brightness value in the first dimming duration by taking the backlight brightness reduction value as an adjusting step length so as to switch to the night mode.
In this embodiment, in order to improve the experience of the user on the vehicle screen, the vehicle system sets the backlight brightness of the vehicle screen to be adjusted to the brightness set in the night mode in the preset first dimming time period in a brightness gradual change manner. Specifically, a backlight brightness reduction value and a first dimming duration corresponding to the first backlight dimming strategy are obtained; acquiring a first target backlight brightness value corresponding to the night mode; and acquiring a current backlight brightness value corresponding to the current backlight mode, and uniformly changing and adjusting the current backlight brightness value to the first target backlight brightness value in the first dimming duration by taking the backlight brightness reduction value as an adjusting step length so as to switch to the night mode. The first dimming duration may be manually set by a user, and the first dimming duration is preferably 3s in this embodiment.
Therefore, the method solves the problem that the backlight brightness of the automobile engine screen is too bright due to the change of the ambient light intensity, and avoids discomfort of a user caused by the sudden change of the backlight brightness of the automobile engine screen.
And the daytime mode adjustment unit 140 is configured to obtain a preset second backlight dimming policy and a current backlight mode if it is determined that the brightness value variation trend corresponds to a continuous rising variation trend and the sampling validity detection result corresponds to a sampling validity result, so as to adjust the current backlight mode to the daytime mode through the second backlight dimming policy.
In this embodiment, when the vehicle-mounted system determines that the brightness value change trend information corresponding to the ambient light intensity value sequence corresponds to a continuous rising change trend, and the sampling validity detection result corresponds to a sampling validity result, the vehicle-mounted system correspondingly acquires a second backlight dimming strategy and a current backlight mode preset on a vehicle-mounted screen, and adjusts the current backlight mode to a daytime mode based on the preset second backlight dimming strategy; preferably, the brightness value corresponding to the ambient light intensity value sequence changes from dark to light at least five times continuously, for example, each ambient light intensity value in the ambient light intensity value sequence is X1, X2, X3, X4, X5, X6, X7, X8, X9 and X10, respectively, wherein X1, X2, X3, X4, X5, X6, X7, X8, X9 and X10 are all positive integers. When at least any six continuous ambient light intensity values show an ascending trend, if X1< X2< X3< X4< X5< X6> X7< X8> X9 and > X10, the vehicle system determines that the mode of the vehicle screen matching is a daytime mode, so that the brightness of the vehicle screen can be automatically adjusted according to the ambient light intensity change.
In an embodiment, the obtaining the preset second backlight dimming policy and the current backlight mode for adjusting the current backlight mode to the daytime mode according to the second backlight dimming policy includes:
acquiring a backlight brightness increasing value and a second dimming duration corresponding to the second backlight dimming strategy;
acquiring a second target backlight brightness value corresponding to the daytime mode;
and obtaining a current backlight brightness value corresponding to the current backlight mode, and uniformly changing and adjusting the current backlight brightness value to the two target backlight brightness values in the second dimming time length by taking the backlight brightness increasing value as an adjusting step length so as to switch to the daytime mode.
In this embodiment, in order to improve the experience of the user on the vehicle screen, the vehicle system sets the backlight brightness of the vehicle screen to be adjusted to the brightness set in the daytime mode in the preset second dimming time period according to the brightness gradual change mode. Specifically, a backlight brightness increasing value and a second dimming duration corresponding to the second backlight dimming strategy are obtained; acquiring a second target backlight brightness value corresponding to the daytime mode; and obtaining a current backlight brightness value corresponding to the current backlight mode, and uniformly changing and adjusting the current backlight brightness value to the two target backlight brightness values in the second dimming time length by taking the backlight brightness increasing value as an adjusting step length so as to switch to the daytime mode. The second dimming duration may be manually set by the user, and the second dimming duration is preferably 1s in this embodiment.
Therefore, the method solves the problem that the backlight brightness of the automobile engine screen is too dark due to the change of the ambient light intensity, and avoids discomfort of a user caused by the sudden change of the backlight brightness of the automobile engine screen.
The device is used for collecting the ambient light intensity values within the preset time to form an ambient light intensity value sequence, and according to the brightness value change trend information corresponding to the ambient light intensity value sequence and the sampling effectiveness detection result corresponding to the ambient light intensity value sequence, the current backlight mode of the vehicle screen is adjusted to be in a night mode or a daytime mode, so that the backlight brightness of the screen can be automatically adjusted to the brightness set in the night mode or the daytime mode according to the ambient light intensity change, and the use experience of a user is improved.
The above-described screen backlight brightness adjusting means may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 3.
Referring to fig. 3, fig. 3 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 is a server, and the server may be a stand-alone server or a server cluster formed by a plurality of servers.
With reference to fig. 3, the computer device 500 includes a processor 502, a memory, and a network interface 505, which are connected by a device bus 501, where the memory may include a storage medium 503 and an internal memory 504.
The storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, may cause the processor 502 to perform a screen backlight brightness adjustment method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a method for screen backlight brightness adjustment.
The network interface 505 is used for network communication, such as providing for transmission of data information, etc. It will be appreciated by those skilled in the art that the architecture shown in fig. 3 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting of the computer device 500 to which the present inventive arrangements may be implemented, and that a particular computer device 500 may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
The processor 502 is configured to execute a computer program 5032 stored in a memory, so as to implement the method for adjusting the brightness of the backlight of the screen disclosed in the embodiment of the application.
Those skilled in the art will appreciate that the embodiment of the computer device shown in fig. 3 is not limiting of the specific construction of the computer device, and in other embodiments, the computer device may include more or less components than those shown, or certain components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may include only a memory and a processor, and in such embodiments, the structure and function of the memory and the processor are consistent with the embodiment shown in fig. 3, and will not be described again.
It should be appreciated that in an embodiment of the application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the application, a computer-readable storage medium is provided. The computer readable storage medium may be a nonvolatile computer readable storage medium or a volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program when executed by a processor implements the screen backlight brightness adjustment method disclosed in the embodiments of the present application.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus, device and unit described above may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein. Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, for example, the division of the units is merely a logical function division, there may be another division manner in actual implementation, or units having the same function may be integrated into one unit, for example, multiple units or components may be combined or may be integrated into another apparatus, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present application.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units may be stored in a storage medium if implemented in the form of software functional units and sold or used as stand-alone products. Based on such understanding, the technical solution of the present application may be essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a background server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
Claims (10)
1. A method for adjusting the brightness of a backlight of a screen, comprising:
continuously collecting environment light intensity values of preset sampling times in a first preset time to form an environment light intensity value sequence;
acquiring brightness value change trend information corresponding to the environment light intensity value sequence, and acquiring a sampling effectiveness detection result corresponding to the environment light intensity value sequence;
if the brightness value change trend is determined to correspond to a continuous descending change trend, and the sampling effectiveness detection result corresponds to a sampling effectiveness result, a preset first backlight dimming strategy and a preset current backlight mode are obtained, and the preset first backlight dimming strategy and the preset current backlight mode are used for adjusting the current backlight mode to a night mode through the first backlight dimming strategy;
and if the brightness value change trend corresponds to the continuous rising change trend and the sampling effectiveness detection result corresponds to the sampling effectiveness result, acquiring a preset second backlight dimming strategy and a preset current backlight mode, and adjusting the current backlight mode to a daytime mode through the second backlight dimming strategy.
2. The method of claim 1, wherein the obtaining a sampling validity detection result corresponding to the sequence of ambient light intensity values comprises:
acquiring a preset daytime mode light intensity threshold value or a preset night mode light intensity threshold value;
acquiring the total number of the ambient light intensity values included in the ambient light intensity value sequence, and marking the total number as a first numerical value;
acquiring the total number of the ambient light intensity values which are larger than the daytime mode light intensity threshold in the ambient light intensity value sequence, and recording the total number as a second numerical value;
acquiring the total number of the ambient light intensity values smaller than the night mode light intensity threshold in the ambient light intensity value sequence, and marking the total number as a third numerical value;
if the ratio of the second numerical value to the first numerical value is greater than or equal to a preset first ratio threshold, or if the ratio of the third numerical value to the first numerical value is greater than or equal to a preset second ratio threshold, judging that the sampling effectiveness detection result is a sampling effectiveness result;
and if the ratio of the second value to the first value is smaller than the first ratio threshold, or if the ratio of the third value to the first value is smaller than the second ratio threshold, judging that the sampling validity detection result is a sampling invalidity result.
3. The method of claim 1, wherein the obtaining a sampling validity detection result corresponding to the sequence of ambient light intensity values comprises:
acquiring a preset daytime mode light intensity threshold value or a preset night mode light intensity threshold value;
acquiring the total number of the ambient light intensity values which are larger than the daytime mode light intensity threshold in the ambient light intensity value sequence, and recording the total number as a fourth numerical value;
acquiring the total number of the ambient light intensity values smaller than the night mode light intensity threshold in the ambient light intensity value sequence, and recording the total number as a fifth value;
if the fourth value is determined to be greater than or equal to a preset first number threshold, or if the fifth value is determined to be greater than or equal to a preset second number threshold, judging the sampling effectiveness detection result as a sampling effectiveness result;
and if the fourth number is smaller than the first number threshold, or if the fifth number is smaller than the second number threshold, judging that the sampling validity detection result is sampling invalid.
4. The method for adjusting the backlight brightness of a screen according to claim 1, wherein the obtaining a preset first backlight dimming policy and a current backlight mode for adjusting the current backlight mode to a night mode by the first backlight dimming policy comprises:
Acquiring a backlight brightness reduction value and a first dimming duration corresponding to the first backlight dimming strategy;
acquiring a first target backlight brightness value corresponding to the night mode;
and acquiring a current backlight brightness value corresponding to the current backlight mode, and uniformly changing and adjusting the current backlight brightness value to the first target backlight brightness value in the first dimming duration by taking the backlight brightness reduction value as an adjusting step length so as to switch to the night mode.
5. The method for adjusting the brightness of a backlight of a screen according to claim 1, wherein the obtaining a preset second backlight dimming policy and a current backlight mode for adjusting the current backlight mode to a daytime mode by the second backlight dimming policy comprises:
acquiring a backlight brightness increasing value and a second dimming duration corresponding to the second backlight dimming strategy;
acquiring a second target backlight brightness value corresponding to the daytime mode;
and obtaining a current backlight brightness value corresponding to the current backlight mode, and uniformly changing and adjusting the current backlight brightness value to the two target backlight brightness values in the second dimming time length by taking the backlight brightness increasing value as an adjusting step length so as to switch to the daytime mode.
6. The method for adjusting the brightness of a backlight of a screen according to claim 1, wherein continuously collecting the ambient light intensity values of the preset number of samples in the first preset time to form the ambient light intensity value sequence comprises:
acquiring a first time period, a second time period and a third time period which are included in the first preset time;
acquiring a first environmental light intensity value subsequence corresponding to the first time period, a second environmental light intensity value subsequence corresponding to the second time period and a third environmental light intensity value subsequence corresponding to the third time period;
and the first environment light intensity value subsequence, the second environment light intensity value subsequence and the third environment light intensity value subsequence sequentially form the environment light intensity value sequence.
7. The method according to claim 1, wherein after the steps of obtaining the brightness value change trend information corresponding to the ambient light intensity value sequence and obtaining the sampling validity detection result corresponding to the ambient light intensity value sequence, the method further comprises:
and if the sampling validity detection result corresponds to the sampling invalidity result, returning to execute the step of continuously acquiring the ambient light intensity value of the preset sampling times in the first preset time to form an ambient light intensity value sequence.
8. A screen backlight brightness adjusting apparatus, comprising:
the sampling unit is used for continuously collecting the ambient light intensity values of preset sampling times in a first preset time to form an ambient light intensity value sequence;
the acquisition unit is used for acquiring brightness value change trend information corresponding to the environment light intensity value sequence and acquiring a sampling effectiveness detection result corresponding to the environment light intensity value sequence;
the night mode adjusting unit is used for acquiring a preset first backlight dimming strategy and a current backlight mode if the brightness value change trend is determined to correspond to the continuous descending change trend and the sampling validity detection result is determined to correspond to the sampling validity result, and adjusting the current backlight mode to a night mode through the first backlight dimming strategy;
and the daytime mode adjusting unit is used for acquiring a preset second backlight dimming strategy and a current backlight mode if the brightness value change trend corresponds to the continuous rising change trend and the sampling validity detection result corresponds to the sampling validity result, and adjusting the current backlight mode to the daytime mode through the second backlight dimming strategy.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the screen backlight brightness adjustment method according to any one of claims 1-7 when executing the computer program.
10. A storage medium storing a computer program comprising program instructions that, when executed by a processor, cause the processor to perform the screen backlight brightness adjustment method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310826781.9A CN116844494A (en) | 2023-07-06 | 2023-07-06 | Screen backlight brightness adjusting method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310826781.9A CN116844494A (en) | 2023-07-06 | 2023-07-06 | Screen backlight brightness adjusting method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116844494A true CN116844494A (en) | 2023-10-03 |
Family
ID=88173978
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310826781.9A Pending CN116844494A (en) | 2023-07-06 | 2023-07-06 | Screen backlight brightness adjusting method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116844494A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117334162A (en) * | 2023-10-11 | 2024-01-02 | 深圳市穗晶光电股份有限公司 | LED backlight source control system and method thereof |
-
2023
- 2023-07-06 CN CN202310826781.9A patent/CN116844494A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117334162A (en) * | 2023-10-11 | 2024-01-02 | 深圳市穗晶光电股份有限公司 | LED backlight source control system and method thereof |
CN117334162B (en) * | 2023-10-11 | 2024-05-10 | 深圳市穗晶光电股份有限公司 | LED backlight source control system and method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7639149B2 (en) | Automatic lighting device and method for controlling light | |
JP5447657B2 (en) | Biological condition determination device | |
CN108701229B (en) | Driving behavior analysis method and driving behavior analysis device | |
CN116844494A (en) | Screen backlight brightness adjusting method and device, computer equipment and storage medium | |
CN112519788B (en) | Method and device for determining driving style and automobile | |
CN111169371B (en) | Control method and device for vehicle steering lamp, electronic equipment and storage medium | |
EP2098059B1 (en) | Process, apparatus and computer program for enhancing detail visibility in an input image | |
CN111506181B (en) | Automatic equipment brightness adjusting method, device, equipment and storage medium | |
KR102533295B1 (en) | Vehicle and control method for the same | |
CN112685125B (en) | Theme switching method and device of application program and computer readable storage medium | |
US20140351279A1 (en) | Information processing device and information processing method | |
CN116403544A (en) | Display control method and device for vehicle screen, electronic equipment and storage medium | |
JPH07257220A (en) | Vigilance evaluation device for vehicle | |
JP6221953B2 (en) | Vehicle display device | |
JP2023184482A (en) | Comfort brake control system and control method for vehicle | |
CN110909574B (en) | Vehicle-mounted fatigue detection equipment and method | |
CN114677989A (en) | Screen brightness adjusting method and device | |
CN115206248A (en) | Display brightness adjusting method, computer storage medium and head-up display | |
CN116320772A (en) | Fingerprint image acquisition method, fingerprint image acquisition equipment, storage medium and fingerprint image acquisition product | |
CN115447616B (en) | Method and device for generating objective index of vehicle driving | |
WO2020129146A1 (en) | Display control device and display control method | |
CN111210791A (en) | Screen brightness adjusting method and device of vehicle multimedia equipment | |
CN115705830B (en) | Screen brightness adjusting method, device and system and electronic equipment | |
CN114189612B (en) | Camera installation angle determining method and device and terminal equipment | |
CN118506708A (en) | Brightness control method and device for electronic rearview mirror, vehicle 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 |