[go: up one dir, main page]

CN102193783B - Method and system for adjusting skin brightness of browser and electronic equipment - Google Patents

Method and system for adjusting skin brightness of browser and electronic equipment Download PDF

Info

Publication number
CN102193783B
CN102193783B CN201010121118.1A CN201010121118A CN102193783B CN 102193783 B CN102193783 B CN 102193783B CN 201010121118 A CN201010121118 A CN 201010121118A CN 102193783 B CN102193783 B CN 102193783B
Authority
CN
China
Prior art keywords
dominant hue
light intensity
external environment
brightness
browser
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
CN201010121118.1A
Other languages
Chinese (zh)
Other versions
CN102193783A (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 Yayue Technology Co ltd
Original Assignee
Tencent Technology Beijing 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201010121118.1A priority Critical patent/CN102193783B/en
Publication of CN102193783A publication Critical patent/CN102193783A/en
Application granted granted Critical
Publication of CN102193783B publication Critical patent/CN102193783B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention is suitable for the technical field of adjustment of visual brightness and provides a method and system for adjusting the skin brightness of a browser, and electronic equipment. The method comprises the following steps of: establishing a corresponding relation between a dominant hue and the light intensity of an external environment; acquiring a current dominant hue of the browser represented by an HSL (High Speed Logic) color mode and recording the brightness value of the current dominant hue; acquiring the light intensity value of the current external environment by using a photosensitive device; computing the color value of the dominant hue correspondingly used under the light intensity of the current external environment according to the corresponding relation between the dominant hue and the light intensity of the external environment; and computing the brightness difference value between the color value of the dominant hue and the brightness value of the dominant hue and adjusting the skin brightness of the browser according to the brightness difference value. Due to the adoption of the method and the system, the visual brightness feel of a user changes along with the change of the light intensity of the external environmental under the condition of not changing the screen brightness.

Description

A kind of method, system and electronic equipment of adjusting skin brightness of browser
Technical field
The invention belongs to and adjust visual brightness technical field, relate in particular to a kind of method, system and electronic equipment of adjusting skin brightness of browser.
Background technology
In prior art scheme, for example, if user wants to adjust the brightness of mobile terminal (mobile phone) browser skin, can only realize by adjusting the brightness of mobile terminal screen so, the mobile phone browser of indication is the browser of the browsing page that uses on mobile phone here.But the brightness of mobile terminal screen is graduation, change, can not reach the effect of gradual change.When the brightness of mobile terminal screen cannot change, software can not dynamically be adjusted mobile terminal screen brightness according to the light intensity of environment, thereby reaches the visual brightness of adjusting browser of mobile terminal skin.
Summary of the invention
The object of the present invention is to provide a kind of method of adjusting skin brightness of browser, be intended to solve in prior art, exist except adjusting screen intensity, cannot adjust by other means the problem of skin brightness of browser.
The present invention is achieved in that a kind of method of adjusting skin brightness of browser, said method comprising the steps of:
Set up the corresponding relation of the light intensity of dominant hue and external environment;
Obtain the current dominant hue representing with HSL color mode of browser, and record the brightness value of described current dominant hue;
Sensor devices obtains the light intensity value of current external environment;
According to described dominant hue and the corresponding relation of the light intensity of external environment, calculate the dominant hue colour of corresponding use under the light intensity of current external environment;
According to the brightness value of dominant hue colour and dominant hue, calculate luminance difference;
The brightness value of the part or all of visible color representing with HSL color mode of described browser is added to the above luminance difference, thereby obtain the current corresponding color of using.
Another object of the present invention is to provide a kind of system of adjusting skin brightness of browser, described system comprises:
Corresponding relation building module, for setting up the corresponding relation of light intensity of dominant hue and external environment;
Dominant hue acquisition module, for obtaining the current dominant hue representing with HSL color mode of browser, and records the brightness value of described current dominant hue;
Sensor devices, for obtaining the light intensity value of current external environment;
Computing module, for calculating the dominant hue colour of corresponding use under the light intensity of current external environment according to described dominant hue and the corresponding relation of the light intensity of external environment; And calculate luminance difference according to the brightness value of dominant hue colour and dominant hue;
Value added module, for the brightness value of the part or all of visible color representing with HSL color mode of described browser is added to the above luminance difference, thereby obtains the current corresponding color of using.
Another object of the present invention is to provide a kind of electronic equipment of the system that comprises adjustment skin brightness of browser recited above.
In the present invention, by sensor devices is installed on electronic equipment, described sensor devices obtains the light intensity of external environment, and software is dynamically adjusted skin brightness of browser according to the light intensity of the external environment getting.Thereby make do not changing in screen intensity situation, by the light intensity of external environment, dynamically adjust skin brightness of browser, the light and shade impression that user visually feels is changed along with ambient light Strength Changes.
Accompanying drawing explanation
Fig. 1 is the realization flow schematic diagram of the method for the adjustment skin brightness of browser that provides of the embodiment of the present invention.
Fig. 2 is the structural representation of the adjustment skin brightness of browser that provides of the embodiment of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and beneficial effect clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Terminological interpretation:
Sensor devices: be arranged on electronic equipment, can be used for responding to the electron device of extraneous bright and dark light.
HSL color mode: a kind of color standard of industry member; By tone (hue), saturation degree (saturation), brightness (1um) represents color.
In embodiments of the present invention, by sensor devices is installed on electronic equipment, described sensor devices obtains the light intensity of external environment, and software is dynamically adjusted skin brightness of browser according to the light intensity of the external environment getting.Thereby solved in prior art, exist except adjusting screen intensity, cannot adjust by other means the problem of skin brightness of browser.
Electronic equipment described in the present embodiment can be mobile terminal or portable computer etc., is understandable that, is not limited to above-mentioned two kinds of electronic equipments mentioning.
Refer to Fig. 1, the realization flow of the method for the adjustment skin brightness of browser providing for the embodiment of the present invention, it comprises the following steps:
In step S101, set up the corresponding relation of the light intensity of dominant hue and external environment;
Wherein, described corresponding relation is Y=f (x); Wherein, Y is the dominant hue colour that HSL color mode represents, the light intensity value that x is external environment.
In embodiments of the present invention, the corresponding relation that user can self-defined Y=f (x), thus strengthen user and experience the fade effect of vision light and shade.
In step S102, obtain the current dominant hue representing with HSL color mode of browser, and record the brightness value of described current dominant hue;
Wherein, with Cl, represent described brightness value.
In step S103, sensor devices obtains the light intensity value of current external environment;
As one embodiment of the present invention, sensor devices can obtain according to the default time interval light intensity value x of current external environment.The for example time period on daytime need be adjusted skin brightness of browser, therefore can be arranged on time period on daytime sensor devices and obtain according to the time interval light intensity value x of current external environment; And because evening is generally all under uniform light, therefore can be arranged on this time period not adjust skin brightness of browser.Owing to can customize the frequency that allows sensor devices obtain the light intensity value of current external environment, therefore can reach the effect of power saving.
In step S104, according to described dominant hue and the corresponding relation of the light intensity of external environment, calculate the dominant hue colour of corresponding use under the light intensity of current external environment;
In step S105, according to the brightness value of dominant hue colour and dominant hue, calculate luminance difference;
Wherein, L is luminance difference.
In step S106, according to described luminance difference, adjust the skin brightness of described browser.
In embodiments of the present invention, the described step of adjusting the skin brightness of described browser according to described luminance difference, is specially:
The brightness value of the part or all of visible color representing with HSL color mode of described browser is added to the above luminance difference, thereby obtain the current corresponding color of using.
Refer to Fig. 2, the structure of the system of the adjustment skin brightness of browser providing for the embodiment of the present invention, for convenience of explanation, only shows the part relevant to the embodiment of the present invention.The system of described adjustment skin brightness of browser comprises: corresponding relation building module 102, dominant hue acquisition module 104, sensor devices 106, computing module 108 and brightness adjustment module 110.The system of described adjustment skin brightness of browser can be the unit that is built in software unit, hardware cell or software and hardware combining in electronic equipment.
Corresponding relation building module 102 is for setting up the corresponding relation of light intensity of dominant hue and external environment, and described corresponding relation is Y=f (x); Wherein, Y is the dominant hue colour that HSL color mode represents, the light intensity value that x is external environment.
Dominant hue acquisition module 104 is for obtaining the current dominant hue representing with HSL color mode of browser, and records the brightness value of described current dominant hue; Wherein, with Cl, represent described brightness value.
Sensor devices 106 is for obtaining the light intensity value of current external environment.
Computing module 108 calculates the dominant hue colour of corresponding use under the light intensity of current external environment according to described dominant hue and the corresponding relation of the light intensity of external environment; And calculate luminance difference according to the brightness value of dominant hue colour and dominant hue; Wherein, L is luminance difference.Brightness adjustment module 110 is adjusted the skin brightness of described browser according to described luminance difference.
As one embodiment of the present invention, the system of described adjustment skin brightness of browser also comprises set of time module; The time interval that described set of time module is obtained the light intensity value of current external environment for sensor devices is set.
In embodiments of the present invention, described brightness adjustment module 110 is specially: value added module.
Described value added module, for the brightness value of the part or all of visible color representing with HSL color mode of described browser is added to the above luminance difference, thereby obtains the current corresponding color of using.
In sum, the embodiment of the present invention by installing sensor devices on electronic equipment, and described sensor devices obtains the light intensity of external environment, and software is dynamically adjusted skin brightness of browser according to the light intensity of the external environment getting.Thereby make do not changing in screen intensity situation, by the light intensity of external environment, dynamically adjust skin brightness of browser, the light and shade impression that user visually feels is changed along with ambient light Strength Changes.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is can carry out the hardware that instruction is relevant by program to complete, described program can be being stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (8)

1. a method of adjusting skin brightness of browser, is characterized in that, said method comprising the steps of:
Set up the corresponding relation of the light intensity of dominant hue and external environment;
Obtain the current dominant hue representing with HSL color mode of browser, and record the brightness value of described current dominant hue;
Sensor devices obtains the light intensity value of current external environment;
According to described dominant hue and the corresponding relation of the light intensity of external environment, calculate the dominant hue colour of corresponding use under the light intensity of current external environment;
According to the brightness value of dominant hue colour and dominant hue, calculate luminance difference;
The brightness value of the part or all of visible color representing with HSL color mode of described browser is added to the above luminance difference, thereby obtain the current corresponding color of using.
2. the method for claim 1, is characterized in that, described sensor devices obtains the step of the light intensity value of current external environment, is specially:
Sensor devices obtains the light intensity value of current external environment according to the default time interval.
3. the method for claim 1, is characterized in that, described corresponding relation is Y=f (x), and wherein, Y is the dominant hue colour that HSL color mode represents, the light intensity value that x is external environment; Described brightness value represents with Cl; It is to adopt L=Y-Cl formula to calculate that the described brightness value according to dominant hue colour and dominant hue calculates luminance difference, and wherein, L is luminance difference.
4. a system of adjusting skin brightness of browser, is characterized in that, described system comprises:
Corresponding relation building module, for setting up the corresponding relation of light intensity of dominant hue and external environment;
Dominant hue acquisition module, for obtaining the current dominant hue representing with HSL color mode of browser, and records the brightness value of described current dominant hue;
Sensor devices, for obtaining the light intensity value of current external environment;
Computing module, for calculating the dominant hue colour of corresponding use under the light intensity of current external environment according to described dominant hue and the corresponding relation of the light intensity of external environment; And calculate luminance difference according to the brightness value of dominant hue colour and dominant hue;
Value added module, for the brightness value of the part or all of visible color representing with HSL color mode of described browser is added to the above luminance difference, thereby obtains the current corresponding color of using.
5. system as claimed in claim 4, is characterized in that, the system of described adjustment skin brightness of browser also comprises:
Set of time module, the time interval of obtaining the light intensity value of current external environment for sensor devices is set.
6. system as claimed in claim 4, is characterized in that, described corresponding relation is Y=f (x), and wherein, Y is the dominant hue colour that HSL color mode represents, the light intensity value that x is external environment; Described brightness value represents with Cl; It is to adopt L=Y-Cl formula to calculate that the described brightness value according to dominant hue colour and dominant hue calculates luminance difference, and wherein, L is luminance difference.
7. one kind comprises the electronic equipment of the system of the adjustment skin brightness of browser described in claim 4 to 6 any one.
8. electronic equipment as claimed in claim 7, is characterized in that, described electronic equipment is mobile terminal or is portable computer.
CN201010121118.1A 2010-03-09 2010-03-09 Method and system for adjusting skin brightness of browser and electronic equipment Active CN102193783B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010121118.1A CN102193783B (en) 2010-03-09 2010-03-09 Method and system for adjusting skin brightness of browser and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010121118.1A CN102193783B (en) 2010-03-09 2010-03-09 Method and system for adjusting skin brightness of browser and electronic equipment

Publications (2)

Publication Number Publication Date
CN102193783A CN102193783A (en) 2011-09-21
CN102193783B true CN102193783B (en) 2014-05-07

Family

ID=44601905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010121118.1A Active CN102193783B (en) 2010-03-09 2010-03-09 Method and system for adjusting skin brightness of browser and electronic equipment

Country Status (1)

Country Link
CN (1) CN102193783B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103050090B (en) * 2011-10-14 2015-06-17 腾讯科技(深圳)有限公司 Method and device for adjusting display brightness of mobile terminal application
CN102810306B (en) * 2012-07-26 2015-01-07 广东欧珀移动通信有限公司 Method for automatically controlling brightness of display screen wallpaper
CN103793443A (en) * 2012-11-05 2014-05-14 腾讯科技(深圳)有限公司 Application control method and device
CN103809843B (en) * 2012-11-08 2018-08-24 腾讯科技(深圳)有限公司 A kind of method and apparatus adjusting brightness of display screen in a browser
CN102982769B (en) * 2012-11-09 2015-09-09 广东欧珀移动通信有限公司 A kind of method of Automatic adjusument screen appointed area brightness
CN103150090A (en) * 2013-01-30 2013-06-12 广东利为网络科技有限公司 Method and system for changing interface skin according to ambient light change
CN103327194A (en) * 2013-06-18 2013-09-25 广东欧珀移动通信有限公司 Mode switching method and device for browser skin brightness
CN104252327A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Reading mode start method and device
CN103744942B (en) * 2013-12-31 2017-05-31 广州市动景计算机科技有限公司 Web browser method and device, web page browsing terminal device
CN107067842B (en) * 2017-06-05 2020-08-07 南京寰嘉物联网科技有限公司 Color value adjusting method, mobile terminal and storage medium
CN107977999B (en) * 2017-12-04 2021-01-08 北京百度网讯科技有限公司 Intelligent color taking method and device
CN109979412A (en) * 2017-12-27 2019-07-05 深圳Tcl新技术有限公司 A kind of method, system and storage medium showing picture according to light
CN109739609B (en) * 2019-01-03 2021-01-15 腾讯科技(深圳)有限公司 Image processing method, image processing device, computer-readable storage medium and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1355478A (en) * 2000-11-28 2002-06-26 英业达(上海)有限公司 Method for improving display effect of network page
CN1786778A (en) * 2004-12-06 2006-06-14 奇菱科技股份有限公司 Brightness control device and method for intelligent display panel
CN101221740A (en) * 2007-01-08 2008-07-16 鸿富锦精密工业(深圳)有限公司 Digital Photo Frames
CN101567935A (en) * 2009-01-22 2009-10-28 宇龙计算机通信科技(深圳)有限公司 Mobile terminal display screen control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1355478A (en) * 2000-11-28 2002-06-26 英业达(上海)有限公司 Method for improving display effect of network page
CN1786778A (en) * 2004-12-06 2006-06-14 奇菱科技股份有限公司 Brightness control device and method for intelligent display panel
CN101221740A (en) * 2007-01-08 2008-07-16 鸿富锦精密工业(深圳)有限公司 Digital Photo Frames
CN101567935A (en) * 2009-01-22 2009-10-28 宇龙计算机通信科技(深圳)有限公司 Mobile terminal display screen control method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种基于色调/饱和度/亮度彩色空间的灰度变换算法;李冠章等;《湖北大学学报》;20081231;第30卷(第4期);356-359 *
李冠章等.一种基于色调/饱和度/亮度彩色空间的灰度变换算法.《湖北大学学报》.2008,第30卷(第4期),356-359.

Also Published As

Publication number Publication date
CN102193783A (en) 2011-09-21

Similar Documents

Publication Publication Date Title
CN102193783B (en) Method and system for adjusting skin brightness of browser and electronic equipment
CN102902460B (en) Screen display brightness adjusting method and terminal
US9502001B2 (en) Display control method and apparatus for power saving
US9524676B2 (en) Organic light-emitting diode display with burn-in reduction capabilities
KR102353766B1 (en) Apparatus and method for controlling display
CN113192470B (en) Screen adjusting method and device, storage medium and electronic equipment
CN109064996B (en) Display adjustment method and device, storage medium and electronic equipment
CN103871377B (en) Display method with strong light visibility and electronic device using the method
WO2017113343A1 (en) Method for adjusting backlight brightness and terminal
CN109857401B (en) Display method of electronic equipment, graphical user interface and electronic equipment
US20090085922A1 (en) Display device modulation system
US20150062185A1 (en) Electronic apparatus and method for controlling brightness for a display
CN105701165B (en) Browser model switching method and switching device
US20150187250A1 (en) Information processing method and electronic device
CN103413536A (en) Displayer energy-saving control method
CN101561705B (en) Display method as well as electronic device and computer
JP2023523060A (en) Method and apparatus for obtaining mapping curve parameters
CN105577935B (en) Screen luminance adjustment method and device
JP2015121799A (en) Use of on-chip frame buffer to improve lcd response time by overdriving
CN116092434B (en) Dimming method, dimming device, electronic equipment and computer readable storage medium
CN104376834B (en) A kind of luminance regulating method and electronic equipment
CN106528024A (en) Method for adjusting display screen resolution and display terminal
CN102270427B (en) Method and apparatus for enhancing reading effect of electronic book and electronic terminal
CN103278243A (en) Real color picking method, system and device
CN113781959B (en) Interface processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221115

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518133

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: Room 1601-1608, Floor 16, Yinke Building, 38 Haidian Street, Haidian District, Beijing

Patentee before: Tencent Technology (Beijing) Co.,Ltd.