[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109933186B - Mobile web browser energy consumption optimization method based on screen brightness adjustment - Google Patents

Mobile web browser energy consumption optimization method based on screen brightness adjustment Download PDF

Info

Publication number
CN109933186B
CN109933186B CN201910060210.2A CN201910060210A CN109933186B CN 109933186 B CN109933186 B CN 109933186B CN 201910060210 A CN201910060210 A CN 201910060210A CN 109933186 B CN109933186 B CN 109933186B
Authority
CN
China
Prior art keywords
screen brightness
data
screen
content
brightness
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
CN201910060210.2A
Other languages
Chinese (zh)
Other versions
CN109933186A (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.)
NORTHWEST UNIVERSITY
Original Assignee
NORTHWEST UNIVERSITY
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 NORTHWEST UNIVERSITY filed Critical NORTHWEST UNIVERSITY
Priority to CN201910060210.2A priority Critical patent/CN109933186B/en
Publication of CN109933186A publication Critical patent/CN109933186A/en
Application granted granted Critical
Publication of CN109933186B publication Critical patent/CN109933186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Digital Computer Display Output (AREA)

Abstract

A mobile Web browser energy consumption optimization method based on screen brightness adjustment comprises the steps of 1) utilizing an interface of an open source project chrome applied by a Webkit to collect data and implement an optimization scheme, compiling the interface to serve as a Web browser tested by an experiment, 2) quantifying impression screen brightness factors, 3) realizing a mobile terminal embedded background system interface, 4) modeling all the factors influencing adjustment factors, processing collected different user data, realizing an SVM classifier, performing cross training on the classifier by using training data stored in a database, finally embedding an optimization model into a mobile terminal, 5) designing a visual compensation scheme after screen brightness adjustment, processing display contents according to screen brightness adjustment factors b and data in a frame cache, and displaying the processed display contents on a mobile terminal screen, wherein the maximum optimization rate is up to 30% by comparing energy consumption in a default screen brightness adjustment mode with energy consumption using an optimization method.

Description

一种基于屏幕亮度调节的移动网页浏览器能耗优化方法A method for optimizing energy consumption of mobile web browsers based on screen brightness adjustment

技术领域technical field

本发明属于移动计算技术领域,具体涉及一种基于屏幕亮度调节的移动网页浏览器能耗优化方法。The invention belongs to the technical field of mobile computing, and in particular relates to a method for optimizing energy consumption of a mobile web browser based on screen brightness adjustment.

背景技术Background technique

随着科技不断推陈出新,智能移动设备已经达到了普及的程度,与此同时,各种移动端应用急迫地消耗着移动终端的电量。经调查发现,超过52%的用户每天使用基于Webkit的Web浏览器,除此之外还有许多基于Webki的应用。经实验测量,屏幕亮度的耗电量在手机使用过程中占非常显著的一部分,而现有的技术并没有针对基于大用户群体的这部分应用来通过调整屏幕亮度降低移动端能耗的良好方案。With the continuous innovation of science and technology, smart mobile devices have reached the level of popularity. At the same time, various mobile applications are urgently consuming the power of mobile terminals. The survey found that more than 52% of users use Webkit-based Web browsers every day, and there are many Webki-based applications in addition. According to experimental measurements, the power consumption of screen brightness accounts for a very significant part in the use of mobile phones, but the existing technology does not have a good solution to reduce the energy consumption of mobile terminals by adjusting screen brightness for this part of applications based on large user groups .

发明内容Contents of the invention

为了克服上述现有技术的不足,本发明的目的是提供一种基于屏幕亮度调节的移动网页浏览器能耗优化方法,该优化方法在系统根据光照强度调节的屏幕亮度的基础上,结合用户体验适当降低屏幕亮度,以达到能耗优化的目的。考虑不同网页内容对用户体验的影响针对不同用户用SVM分类方法建立一个通用模型,通过采集不同用户,不同时刻,不同浏览内容下的系统根据光强调节的屏幕亮度,屏幕内容以及对应的用户可以接受的屏幕亮度训练分类模型。在用户使用基于Webkit的应用浏览内容时,提前分析Webkit渲染后在帧缓存中要在屏幕显示的下一帧内容的内容复杂度以及由光照强度决定的当前屏幕亮度,根据训练好的嵌入式模型动态调整屏幕亮度,同时对GPUBuffer缓存中的内容进行亮度补偿后再进行显示,在满足用户浏览时视觉需求的同时保证较低的屏幕亮度能耗,从软硬件级别降低移动Web应用能耗。In order to overcome the deficiencies of the above-mentioned prior art, the object of the present invention is to provide a method for optimizing energy consumption of mobile web browsers based on screen brightness adjustment. This optimization method is based on the screen brightness adjusted by the system according to the light intensity, combined with user experience. Properly reduce the screen brightness to optimize energy consumption. Considering the impact of different web content on user experience, a general model is established for different users using the SVM classification method. By collecting different users, different moments, and different browsing content, the system adjusts the screen brightness according to the light intensity, the screen content and the corresponding users can Accepted screen brightness to train a classification model. When a user uses a Webkit-based application to browse content, analyze in advance the content complexity of the next frame of content to be displayed on the screen in the frame buffer after Webkit rendering and the current screen brightness determined by the light intensity, according to the trained embedded model Dynamically adjust the brightness of the screen, and at the same time perform brightness compensation on the content in the GPUBuffer cache before displaying, which meets the visual needs of users while browsing while ensuring low screen brightness and energy consumption, and reduces the energy consumption of mobile Web applications from the software and hardware level.

为了实现上述目的,本发明采用的技术方案是:In order to achieve the above object, the technical scheme adopted in the present invention is:

一种基于屏幕亮度调节的移动网页浏览器能耗优化方法,包括以下步骤:A method for optimizing energy consumption of a mobile web browser based on screen brightness adjustment, comprising the following steps:

1)根据谷歌的基于Webkit应用的开源项目Chromium的接口,功能包含读取GPUBuffer中的帧缓存数据,根据亮度调节因子修改帧缓存内容,用于采集数据和实施优化方案,编译后作为本实验测试Web浏览器;1) According to the interface of Chromium, an open source project based on Google's Webkit application, the functions include reading the frame buffer data in the GPUBuffer, modifying the frame buffer content according to the brightness adjustment factor, and using it to collect data and implement optimization schemes. After compilation, it will be used as an experimental test web browser;

所述的开源项目Chromium基于Webkit内核,支持硬件加速渲染,具备浏览器及从GPUBuffer中读取帧缓存内容功能,以及写入GPUBuffer的功能,在数据采集过程中,通过Chromium针对GPU硬件加速渲染构建的openGL上下文,读取GPUBuffer中的内容,该内容以屏幕每个像素点的RGB空间进行存,。在使用优化模式时,同样将经过亮度补偿的像素点的值按RGB空间写入GPUBuffer;The open source project Chromium described above is based on the Webkit kernel, supports hardware-accelerated rendering, and has the functions of reading frame buffer content from the browser and GPUBuffer, and writing to GPUBuffer. The openGL context reads the content in the GPUBuffer, which is stored in the RGB space of each pixel of the screen. When using the optimization mode, the value of the brightness-compensated pixel is also written to the GPUBuffer in RGB space;

2)实验验证屏幕亮度改变影响用户体验的主要因素有浏览内容和环境光照强度,而环境光照强度直接影响系统调节的基础屏幕亮度,并且对这些因素做出量化;2) Experiments verify that the main factors affecting user experience when screen brightness changes are browsing content and ambient light intensity, and ambient light intensity directly affects the basic screen brightness adjusted by the system, and quantify these factors;

所述的影响屏幕调节的主要因素选择和量化,光强决定了系统调节的基础屏幕亮度,在这个基础上再适当降低屏幕亮度,因此调节的屏幕亮度与系统调节的屏幕亮度呈现正相关的关系,屏幕亮度在移动手机中用屏幕亮度等级值表示,选取Android手机进行实验,在Android Galaxy S4中屏幕亮度等级值level在1-15之间,对应用等级值计算屏幕亮度因子b,b=level/15;The selection and quantification of the main factors affecting screen adjustment mentioned above, the light intensity determines the basic screen brightness for system adjustment, on this basis, the screen brightness is appropriately reduced, so the adjusted screen brightness and the system adjusted screen brightness show a positive correlation. , the screen brightness is represented by the screen brightness level value in the mobile phone, and an Android phone is selected for the experiment. In the Android Galaxy S4, the screen brightness level value level is between 1-15, and the screen brightness factor b is calculated for the application level value, b=level /15;

浏览内容一方面,其内容复杂度影响用户体验从而影响屏幕亮度的调节,内容越复杂,用户对屏幕亮度的需求越高。在此,用像素点灰度值的熵来描述内容复杂度;另一方面,浏览内容也影响光补偿以后的还原能力,因此影响屏幕亮度可调节的下限。经过实验统计,当屏幕内容经过光补偿之后,如果有超过12%的像素点的亮度值无法被还原,则会影响用户的使用体验,因此,设置12%作为屏幕光补偿调节的阈值,当像素点比例超过阈值时,根据超出的比例线性上调分类器得出的屏幕亮度调节因子Browsing content On the one hand, the complexity of the content affects the user experience and thus affects the adjustment of the screen brightness. The more complex the content, the higher the user's demand for screen brightness. Here, the entropy of the pixel gray value is used to describe the content complexity; on the other hand, browsing the content also affects the restoration ability after light compensation, thus affecting the adjustable lower limit of the screen brightness. According to experimental statistics, after the screen content is light-compensated, if the brightness value of more than 12% of the pixels cannot be restored, it will affect the user experience. Therefore, 12% is set as the threshold for screen light compensation adjustment. When the pixel When the point ratio exceeds the threshold, the screen brightness adjustment factor obtained by the classifier is linearly increased according to the exceeded ratio

实现移动端嵌入式后台系统接口,功能包括:自动采集模型训练数据和使用时的模型预测数据,以及调节屏幕亮度以实施优化方案;Realize the embedded background system interface of the mobile terminal, the functions include: automatically collect model training data and model prediction data during use, and adjust the screen brightness to implement the optimization plan;

步骤3)所述的后台系统接口,功能包括:自动采集模型训练数据和使用时的模型预测数据,以及调节屏幕亮度以实施优化方案。用户使用基于Webkit的应用进行浏览时,后台系统将自动采集模型训练数据,数据包括:不同用户,不同时刻,不同浏览内容下的系统屏幕亮度,屏幕浏览内容以及对应的用户可以接受的屏幕亮度调节因子;The functions of the background system interface described in step 3) include: automatically collecting model training data and model prediction data during use, and adjusting screen brightness to implement an optimization plan. When a user uses a Webkit-based application to browse, the background system will automatically collect model training data. The data includes: system screen brightness for different users, different times, and different browsing content, screen browsing content, and corresponding user-acceptable screen brightness adjustments factor;

在应用优化模型进行浏览时,后台系统将每隔5s对使用时用户数据进行采集,数据包括:该用户,当前时刻,当前系统屏幕亮度因子,当前存储在GPU缓存中的浏览内容,作为特征值输入优化模型;When browsing with the optimized model, the background system will collect user data every 5s. The data includes: the user, the current moment, the current system screen brightness factor, and the browsing content currently stored in the GPU cache as feature values input optimization model;

针对所有对调整因子有影响的因素进行建模对采集到的不同用户数据进行处理后,根据数据样本的特征设计并实现SVM分类器,使用存储在数据库中的训练数据对分类器进行交叉训练,最后将优化模型嵌入移动端;Modeling is carried out for all the factors that affect the adjustment factor. After processing the collected different user data, design and implement the SVM classifier according to the characteristics of the data samples, and use the training data stored in the database to perform cross-training on the classifier. Finally, the optimized model is embedded in the mobile terminal;

步骤4)将步骤3采集到的训练数据作为SVM优化模型的输入值,为建立一个通用模型,我们对不同用户的数据计算平均值后作为训练数据,使用python设置SVM的参数后进行利用数据集按照5:1的比例交叉训练并生成分类器Step 4) Use the training data collected in step 3 as the input value of the SVM optimization model. In order to establish a general model, we calculate the average value of the data of different users and use it as the training data. Use python to set the parameters of the SVM and use the data set Cross-train and generate a classifier according to a 5:1 ratio

设计屏幕亮度调整后的视觉补偿方案,根据屏幕亮度调整因子b以及帧缓存中的数据对显示内容进行处理后再显示在移动端屏幕上;Design a visual compensation scheme after screen brightness adjustment, and process the display content according to the screen brightness adjustment factor b and the data in the frame buffer before displaying it on the mobile screen;

步骤5)所述的视觉补偿方案。帧缓存中的数据在优化方案亮度调整以后相对原有的系统调整值在亮度上会变得更暗,为了弥补这种差异从而满足用户体验,因此采用将原RGB图像转化为YUV图像,然后根据公式Yl=b*min(Y/b,255)≈Y对亮度Y值进行补偿。Step 5) described visual compensation scheme. After the brightness adjustment of the optimization scheme, the data in the frame buffer will become darker in brightness than the original system adjustment value. In order to make up for this difference and satisfy the user experience, the original RGB image is converted into a YUV image, and then according to The formula Yl=b*min(Y/b,255)≈Y compensates the brightness Y value.

本发明的有益效果是:The beneficial effects of the present invention are:

移动终端在使用过程中,屏幕耗电量是非常显著的一个部分,同时在使用移动浏览器浏览网页的过程中,用户对于不同浏览内容的屏幕亮度接受程度是不同的,但是现在的系统屏幕亮度调节机制只考虑光线强弱,没有结合用户体验来调整屏幕亮度,造成了能量资源的浪费。针对上述问题,设计优化方法,在满足用户浏览时视觉需求的同时保证较低的屏幕亮度能耗,从软硬件级别降低移动Web应用能耗。训练生成的分类器准确率高达98%。During the use of mobile terminals, screen power consumption is a very significant part. At the same time, in the process of using mobile browsers to browse web pages, users have different screen brightness acceptance for different browsing content, but the current system screen brightness The adjustment mechanism only considers the light intensity, and does not adjust the screen brightness in combination with the user experience, resulting in a waste of energy resources. In view of the above problems, an optimization method is designed to meet the visual needs of users while browsing while ensuring low screen brightness and energy consumption, and reducing the energy consumption of mobile Web applications from the level of software and hardware. The training produced a classifier with up to 98% accuracy.

经测试,用户使用2种不同手机在不同环境光照下,以及浏览不同内容时,对比默认屏幕亮度调节模式下的能耗与使用优化方法的能耗,优化都具有一定优化能力,最大能耗优化率高达30%。After testing, when users use two different mobile phones under different environmental lighting and browse different content, comparing the energy consumption in the default screen brightness adjustment mode and the energy consumption using the optimization method, the optimization has a certain optimization ability, and the maximum energy consumption optimization rate as high as 30%.

附图说明Description of drawings

图1为本发明方法的工作流程图。Fig. 1 is the work flowchart of the method of the present invention.

具体实施方式Detailed ways

以下结合附图对本发明进一步叙述,但本发明不局限于以下实施例。The present invention will be further described below in conjunction with the accompanying drawings, but the present invention is not limited to the following embodiments.

一种基于屏幕亮度调节的移动网页浏览器能耗优化方法,包括以下步骤:A method for optimizing energy consumption of a mobile web browser based on screen brightness adjustment, comprising the following steps:

1)根据谷歌的基于Webkit应用的开源项目Chromium的接口,功能包含读取GPUBuffer中的帧缓存数据,根据亮度调节因子修改帧缓存内容,用于采集数据和实施优化方案,编译后作为本实验测试Web浏览器;1) According to the interface of Chromium, an open source project based on Google's Webkit application, the functions include reading the frame buffer data in the GPUBuffer, modifying the frame buffer content according to the brightness adjustment factor, and using it to collect data and implement optimization schemes. After compilation, it will be used as an experimental test web browser;

所述的开源项目Chromium基于Webkit内核,支持硬件加速渲染,具备浏览器及从GPUBuffer中读取帧缓存内容功能,以及写入GPUBuffer的功能,在数据采集过程中,通过Chromium针对GPU硬件加速渲染构建的openGL上下文,读取GPUBuffer中的内容,该内容以屏幕每个像素点的RGB空间进行存,。在使用优化模式时,同样将经过亮度补偿的像素点的值按RGB空间写入GPUBuffer;The open source project Chromium described above is based on the Webkit kernel, supports hardware-accelerated rendering, and has the functions of reading frame buffer content from the browser and GPUBuffer, and writing to GPUBuffer. The openGL context reads the content in the GPUBuffer, which is stored in the RGB space of each pixel of the screen. When using the optimization mode, the value of the brightness-compensated pixel is also written to the GPUBuffer in RGB space;

2)实验验证屏幕亮度改变影响用户体验的主要因素有浏览内容和环境光照强度,而环境光照强度直接影响系统调节的基础屏幕亮度,并且对这些因素做出量化;2) Experiments verify that the main factors affecting user experience when screen brightness changes are browsing content and ambient light intensity, and ambient light intensity directly affects the basic screen brightness adjusted by the system, and quantify these factors;

所述的影响屏幕调节的主要因素选择和量化,光强决定了系统调节的基础屏幕亮度,在这个基础上再适当降低屏幕亮度,因此调节的屏幕亮度与系统调节的屏幕亮度呈现正相关的关系,屏幕亮度在移动手机中用屏幕亮度等级值表示;The selection and quantification of the main factors affecting screen adjustment mentioned above, the light intensity determines the basic screen brightness for system adjustment, on this basis, the screen brightness is appropriately reduced, so the adjusted screen brightness and the system adjusted screen brightness show a positive correlation. , the screen brightness is represented by the screen brightness level value in the mobile phone;

浏览内容内容复杂度影响用户体验从而影响屏幕亮度的调节,内容越复杂,用户对屏幕亮度的需求越高,因此,用像素点灰度值的熵来描述内容复杂度;浏览内容也影响光补偿以后的还原能力,因此影响屏幕亮度可调节的下限,当屏幕内容经过光补偿之后,如果有超过12%的像素点的亮度值无法被还原,则会影响用户的使用体验,因此,设置12%作为屏幕光补偿调节的阈值,当像素点比例超过阈值时,根据超出的比例线性上调分类器得出的屏幕亮度调节因子;The content complexity of browsing content affects the user experience and thus affects the adjustment of screen brightness. The more complex the content, the higher the user's demand for screen brightness. Therefore, the entropy of the pixel gray value is used to describe the content complexity; browsing content also affects light compensation. The ability to restore in the future affects the adjustable lower limit of the screen brightness. After the screen content undergoes light compensation, if the brightness value of more than 12% of the pixels cannot be restored, it will affect the user experience. Therefore, set 12% As the threshold for screen light compensation adjustment, when the pixel ratio exceeds the threshold, the screen brightness adjustment factor obtained by the classifier is linearly increased according to the exceeded ratio;

3)实现移动端嵌入式后台系统接口,后台系统接口功能包括:自动采集模型训练数据和使用时的模型预测数据,以及调节屏幕亮度以实施优化方案;用户使用基于Webkit的应用进行浏览时,后台系统将自动采集模型训练数据,模型训练数据:不同用户,不同时刻,不同浏览内容下的系统屏幕亮度,屏幕浏览内容以及对应的用户可以接受的屏幕亮度调节因子;在应用优化模型进行浏览时,后台系统将每隔5s对使用时用户数据进行采集,采集的数据包括:该用户,当前时刻,当前系统屏幕亮度因子,当前存储在GPU缓存中的浏览内容,作为特征值输入优化模型;3) Realize the interface of the embedded background system of the mobile terminal. The functions of the background system interface include: automatically collecting model training data and model prediction data during use, and adjusting the brightness of the screen to implement an optimization plan; when users use Webkit-based applications to browse, the background system The system will automatically collect model training data, model training data: system screen brightness under different users, different moments, and different browsing content, screen browsing content and corresponding screen brightness adjustment factors acceptable to users; when browsing with the optimized model, The background system will collect user data during use every 5s. The collected data includes: the user, the current moment, the current system screen brightness factor, and the browsing content currently stored in the GPU cache, which are input into the optimization model as feature values;

4)针对所有对调节因子有影响的因素进行建模对采集到的不同用户数据进行处理后,根据数据样本的特征设计并实现SVM分类器,使用存储在数据库中的训练数据对分类器进行交叉训练,最后将优化模型嵌入移动端;采集到的训练数据作为SVM优化模型的输入值,为建立一个通用模型,对不同用户的数据计算平均值后作为训练数据,使用python设置SVM的参数后进行利用数据集按照5:1的比例交叉训练并生成分类器;4) Modeling for all factors that affect the adjustment factor After processing the collected different user data, design and implement the SVM classifier according to the characteristics of the data sample, and use the training data stored in the database to cross the classifier Training, and finally embed the optimization model into the mobile terminal; the collected training data is used as the input value of the SVM optimization model. In order to establish a general model, the average value of the data of different users is calculated as the training data, and the parameters of the SVM are set using python. Use the data set to cross-train and generate a classifier at a ratio of 5:1;

5)设计屏幕亮度调整后的视觉补偿方案,根据屏幕亮度调整因子b以及帧缓存中的数据对显示内容进行处理后再显示在移动端屏幕上;所述的视觉补偿方案,帧缓存中的数据在优化方案亮度调整以后相对原有的系统调整值在亮度上会变得更暗,采用将原RGB图像转化为YUV图像,然后根据公式Yl=b*min(Y/b,255)≈Y对亮度Y值进行补偿。5) Design the visual compensation scheme after the screen brightness adjustment, and display the content on the mobile terminal screen after processing the display content according to the screen brightness adjustment factor b and the data in the frame buffer; the visual compensation scheme, the data in the frame buffer After the brightness adjustment of the optimization scheme, the brightness will become darker compared to the original system adjustment value. The original RGB image is converted into a YUV image, and then according to the formula Yl=b*min(Y/b,255)≈Y pair Brightness Y value is compensated.

实施例Example

1)邀请20个志愿者使用开发的浏览器浏览网页,通过调用后台接口采集用户训练数据,在不同时刻,用户浏览不同浏览内容下时,首先记录系统屏幕亮度和当前屏幕浏览内容,同时在此基础上降低屏幕亮度并对应进行光补偿,记录用户可以接受的屏幕亮度调节因子。以此作为一条完整的训练数据。针对20个用户浏览超过500个网页时的数据,并对不同用户的数据计算平均值。1) Invite 20 volunteers to use the developed browser to browse the web, and collect user training data by calling the background interface. Basically, reduce the screen brightness and perform light compensation accordingly, and record the screen brightness adjustment factor acceptable to the user. Take this as a complete training data. For the data when 20 users browse more than 500 web pages, and calculate the average value for the data of different users.

2)根据处理过后得到的超过5000条数据交叉训练SVM分类器,并嵌入移动终端。2) Cross-train the SVM classifier according to more than 5000 pieces of data obtained after processing, and embed it into the mobile terminal.

3)在使用过程中,后台系统每隔5s从浏览器和系统中收集一次用户数据,输入模型,得到模型输出到屏幕亮度调节因子b。3) During use, the background system collects user data from the browser and the system every 5s, inputs the model, and obtains the model output to the screen brightness adjustment factor b.

4)根据b对收集的当前帧缓存显示的内容做一个亮度补偿,同时计算超过光补偿范围的像素点比例,如果超过了阈值就对超过的部分做一个线性的计算,调整屏幕亮度调节因子b,最后把经过光补偿的内容写入帧缓存以后再逐渐调整亮度到通过b计算得到的亮度值。4) According to b, make a brightness compensation for the content displayed in the current frame buffer collected, and calculate the proportion of pixels exceeding the light compensation range at the same time. If it exceeds the threshold, perform a linear calculation on the excess part, and adjust the screen brightness adjustment factor b , and finally write the light-compensated content into the frame buffer and then gradually adjust the brightness to the brightness value calculated by b.

Claims (1)

1. A mobile web browser energy consumption optimization method based on screen brightness adjustment is characterized by comprising the following steps:
1) Reading frame cache data in a GPUBuffer according to an interface of an open source project chrome based on Webkit application of Google, modifying frame cache content according to a brightness adjusting factor, acquiring data, implementing an optimization scheme, and compiling the frame cache data to serve as a Web browser for the experimental test;
the open source item chrome supports hardware accelerated rendering based on a Webkit kernel, has the functions of a browser, reading frame cache content from a GPUBuffer and writing the frame cache content into the GPUBuffer, and reads the content in the GPUBuffer through openGL context constructed by the chrome aiming at GPU hardware accelerated rendering in the data acquisition process, wherein the content is stored in an RGB space of each pixel point of a screen. When the optimization mode is used, the value of the pixel point subjected to brightness compensation is written into a GPUBuffer according to the RGB space;
2) The experiment verifies that the main factors influencing the user experience due to the change of the screen brightness comprise browsing content and environment illumination intensity, the environment illumination intensity directly influences the basic screen brightness adjusted by the system, and the factors are quantized;
the main factors influencing the screen adjustment are selected and quantized, the light intensity determines the basic screen brightness adjusted by the system, and the screen brightness is properly reduced on the basis, so that the adjusted screen brightness and the screen brightness adjusted by the system are in a positive correlation relationship, and the screen brightness is represented by a screen brightness grade value in the mobile phone;
the complexity of browsing the content affects the user experience, so that the adjustment of the screen brightness is affected, and the more complex the content is, the higher the requirement of the user on the screen brightness is, so that the content complexity is described by the entropy of the gray value of the pixel point; the browsing content also affects the reduction capability after optical compensation, so that the lower limit of adjustable screen brightness is affected, after the screen content is subjected to optical compensation, if the brightness values of more than 12% of the pixels cannot be reduced, the use experience of a user is affected, so that 12% of the pixels are set as the threshold value of the screen optical compensation adjustment, and when the proportion of the pixels exceeds the threshold value, the screen brightness adjustment factor obtained by the classifier is linearly adjusted upwards according to the exceeding proportion;
3) The method realizes the mobile terminal embedded background system interface, and the background system interface function comprises the following steps: automatically collecting model training data and model prediction data during use, and adjusting screen brightness to implement an optimization scheme; when a user browses by using the Webkit-based application, a background system automatically acquires model training data, wherein the model training data comprises: different users, different moments, system screen brightness under different browsing contents, screen browsing contents and corresponding screen brightness adjustment factors acceptable by the users; when the optimization model is applied to browse, the background system collects user data every 5s during use, and the collected data comprises the following data: the user, the current moment, the current system screen brightness factor and the browsing content currently stored in the GPU cache are used as characteristic values to be input into the optimization model;
4) Modeling aiming at all factors influencing the adjusting factors, processing the acquired different user data, designing and realizing an SVM classifier according to the characteristics of a data sample, performing cross training on the classifier by using training data stored in a database, and finally embedding an optimization model into a mobile terminal; the method comprises the steps that collected training data serve as input values of an SVM optimization model, in order to establish a general model, average values of data of different users are calculated and then serve as training data, python is used for setting parameters of the SVM, then cross training is conducted by utilizing a data set according to the proportion of 5;
5) Designing a visual compensation scheme after the screen brightness is adjusted, processing the display content according to the screen brightness adjustment factor b and the data in the frame buffer, and then displaying the processed display content on the mobile terminal screen; in the visual compensation scheme, after the brightness of the data in the frame buffer is adjusted according to the optimization scheme, the data becomes darker in brightness relative to an original system adjustment value, the original RGB image is converted into a YUV image, and then the brightness Y value is compensated according to a formula of Yl = b × min (Y/b, 255) approximately matching Y;
and processing the display content according to the screen brightness adjusting factor b and the data in the frame buffer, displaying the processed display content on the mobile terminal screen, and comparing the energy consumption in the default screen brightness adjusting mode with the energy consumption of the optimization method, wherein the maximum optimization rate is up to 30%.
CN201910060210.2A 2019-01-22 2019-01-22 Mobile web browser energy consumption optimization method based on screen brightness adjustment Active CN109933186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910060210.2A CN109933186B (en) 2019-01-22 2019-01-22 Mobile web browser energy consumption optimization method based on screen brightness adjustment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910060210.2A CN109933186B (en) 2019-01-22 2019-01-22 Mobile web browser energy consumption optimization method based on screen brightness adjustment

Publications (2)

Publication Number Publication Date
CN109933186A CN109933186A (en) 2019-06-25
CN109933186B true CN109933186B (en) 2023-04-07

Family

ID=66985077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910060210.2A Active CN109933186B (en) 2019-01-22 2019-01-22 Mobile web browser energy consumption optimization method based on screen brightness adjustment

Country Status (1)

Country Link
CN (1) CN109933186B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111476866B (en) * 2020-04-09 2024-03-12 咪咕文化科技有限公司 Video optimization and playing method, system, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103474043A (en) * 2013-09-24 2013-12-25 沈阳美行科技有限公司 Method adjusting color of navigation map according to luminance of screen
CN103902713A (en) * 2014-04-03 2014-07-02 上海交通大学 Method and system for automatically adjusting browser color scheme of intelligent mobile terminal
CN103956153A (en) * 2014-04-30 2014-07-30 华南理工大学 Method for achieving intelligent device screen brightness control software based on user habits
CN105469771A (en) * 2016-02-02 2016-04-06 京东方科技集团股份有限公司 Vehicle-mounted rear view display system and display method
CN106648023A (en) * 2016-10-02 2017-05-10 上海青橙实业有限公司 Mobile terminal and power-saving method of mobile terminal based on neural network
US9829947B1 (en) * 2014-04-04 2017-11-28 Google Llc Selecting and serving a content item based on device state data of a device
CN107817891A (en) * 2017-11-13 2018-03-20 广东欧珀移动通信有限公司 Screen control method, device, equipment and storage medium
CN108509037A (en) * 2018-03-26 2018-09-07 维沃移动通信有限公司 A kind of method for information display and mobile terminal

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7894177B2 (en) * 2005-12-29 2011-02-22 Apple Inc. Light activated hold switch
CN1885949B (en) * 2006-06-29 2010-11-03 西北大学 Laser projection display device based on optical fibre laser
CN104700770A (en) * 2013-12-10 2015-06-10 中国移动通信集团公司 Web content-based LED screen brightness adjusting method and device
US20150346786A1 (en) * 2014-05-29 2015-12-03 Symbol Technologies, Inc. Method and apparatus for performing power management functions
CN105759935B (en) * 2016-01-29 2019-01-18 华为技术有限公司 A kind of terminal control method and terminal
CN105632458A (en) * 2016-02-26 2016-06-01 深圳天珑无线科技有限公司 Method, device and related equipment for adjusting screen brightness
US10114440B2 (en) * 2016-06-22 2018-10-30 Razer (Asia-Pacific) Pte. Ltd. Applying power management based on a target time
CN106250012A (en) * 2016-07-20 2016-12-21 广东欧珀移动通信有限公司 Screen brightness and color temperature adjustment method, device and terminal equipment
CN107067004A (en) * 2017-03-20 2017-08-18 上海云从企业发展有限公司 The adjusting method and device of a kind of electronic equipment and its screen intensity
CN108877741A (en) * 2018-07-27 2018-11-23 维沃移动通信有限公司 A kind of screen luminance adjustment method and terminal device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103474043A (en) * 2013-09-24 2013-12-25 沈阳美行科技有限公司 Method adjusting color of navigation map according to luminance of screen
CN103902713A (en) * 2014-04-03 2014-07-02 上海交通大学 Method and system for automatically adjusting browser color scheme of intelligent mobile terminal
US9829947B1 (en) * 2014-04-04 2017-11-28 Google Llc Selecting and serving a content item based on device state data of a device
CN103956153A (en) * 2014-04-30 2014-07-30 华南理工大学 Method for achieving intelligent device screen brightness control software based on user habits
CN105469771A (en) * 2016-02-02 2016-04-06 京东方科技集团股份有限公司 Vehicle-mounted rear view display system and display method
CN106648023A (en) * 2016-10-02 2017-05-10 上海青橙实业有限公司 Mobile terminal and power-saving method of mobile terminal based on neural network
CN107817891A (en) * 2017-11-13 2018-03-20 广东欧珀移动通信有限公司 Screen control method, device, equipment and storage medium
CN108509037A (en) * 2018-03-26 2018-09-07 维沃移动通信有限公司 A kind of method for information display and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
朱正伟.《基于用户行为的智能手机能耗优化方法》.《计算机工程》.2018,第44卷(第44期),286-290. *
王海.《一种基于用户行为的嵌入式功耗优化方法》.《系统仿真学报》.2015,第27卷(第27期),320-326. *

Also Published As

Publication number Publication date
CN109933186A (en) 2019-06-25

Similar Documents

Publication Publication Date Title
Cao et al. Contrast enhancement of brightness-distorted images by improved adaptive gamma correction
CN104268843B (en) Image self-adapting enhancement method based on histogram modification
CN107895566B (en) A two-step method for liquid crystal pixel compensation based on S-curve and logarithmic curve
CN111583161A (en) Blurred image enhancement method, computer device and storage medium
CN108805836A (en) Method for correcting image based on the reciprocating HDR transformation of depth
CN101488323B (en) A method of backlight adjustment and image processing
CN101340511A (en) Adaptive video image enhancing method based on lightness detection
TWI666921B (en) Method and device for tone-mapping a high dynamic range image
CN101826282B (en) Liquid crystal display device and processing method of digital image signal
CN107799080B (en) A Liquid Crystal Pixel Compensation Method Based on Segmented Curve
WO2017088483A1 (en) Display device image processing method and system, computer program and storage medium
CN103295206B (en) A kind of twilight image Enhancement Method and device based on Retinex
CN105407296A (en) Real-time video enhancement method and device
KR101233495B1 (en) Management techniques for video playback
CN102214446A (en) Method for adjusting backlight of display and related device
JP5440241B2 (en) Image enhancement device, image enhancement method, and image enhancement program
CN109587558B (en) Video processing method, device, electronic device, and storage medium
CN103680371A (en) Display characteristic adjustment device and adjustment method of a display
CN109584182A (en) A kind of image processing method and system
CN104299600B (en) Image display device and image optimization method thereof
CN113191956B (en) Backlight image enhancement method based on depth matting
CN109933186B (en) Mobile web browser energy consumption optimization method based on screen brightness adjustment
Banić et al. Puma: A high-quality retinex-based tone mapping operator
Miao et al. Novel tone mapping method via macro-micro modeling of human visual system
CN102158670B (en) Digital video image contrast adaptive-stretching method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant