CN103414834B - A kind of screen power-saving method, device and mobile terminal - Google Patents

A kind of screen power-saving method, device and mobile terminal Download PDF

Info

Publication number
CN103414834B
CN103414834B CN201310319800.5A CN201310319800A CN103414834B CN 103414834 B CN103414834 B CN 103414834B CN 201310319800 A CN201310319800 A CN 201310319800A CN 103414834 B CN103414834 B CN 103414834B
Authority
CN
China
Prior art keywords
brightness
mobile terminal
screen
pixel
image
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.)
Expired - Fee Related
Application number
CN201310319800.5A
Other languages
Chinese (zh)
Other versions
CN103414834A (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 Dingxing Digital Network Technology Co Ltd
Original Assignee
Shenzhen Dingxing Digital Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Dingxing Digital Network Technology Co Ltd filed Critical Shenzhen Dingxing Digital Network Technology Co Ltd
Priority to CN201310319800.5A priority Critical patent/CN103414834B/en
Publication of CN103414834A publication Critical patent/CN103414834A/en
Application granted granted Critical
Publication of CN103414834B publication Critical patent/CN103414834B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Telephone Function (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

本发明适用于移动终端技术领域,提供了一种屏幕节电方法、装置及移动终端,包括:当移动终端的屏幕处于亮屏状态时,采集所述移动终端所处的环境的图像;获取所述图像中每个像素点的亮度值,并根据每个像素点的亮度值确定所述移动终端的环境亮度;根据所述移动终端的环境亮度调整所述移动终端的屏幕亮度。在本发明实施例中,避免了当环境光线较亮或环境光线较暗时,用户看不清屏幕显示的内容的情况,解决了移动终端屏幕亮度调节方式操作繁琐,耗费了用户时间,降低了节电效率,导致不必要的电量消耗且屏幕使用寿命降低的问题,节省了用户时间,提高了节电效率,减少了节电电量消耗,且提高了屏幕使用寿命。

The present invention is applicable to the technical field of mobile terminals, and provides a screen power saving method, device and mobile terminal, including: when the screen of the mobile terminal is in a bright screen state, collecting an image of the environment where the mobile terminal is located; the brightness value of each pixel in the image, and determine the ambient brightness of the mobile terminal according to the brightness value of each pixel; adjust the screen brightness of the mobile terminal according to the ambient brightness of the mobile terminal. In the embodiment of the present invention, the situation that the user cannot see the content displayed on the screen when the ambient light is bright or dark is avoided, and the cumbersome operation of the screen brightness adjustment method of the mobile terminal is solved, which consumes the user's time and reduces the Power-saving efficiency leads to unnecessary power consumption and reduced screen service life, which saves user time, improves power-saving efficiency, reduces power-saving power consumption, and improves screen life.

Description

一种屏幕节电方法、装置及移动终端A screen power saving method, device and mobile terminal

技术领域technical field

本发明属于移动终端技术领域,尤其涉及一种屏幕节电方法、装置及移动终端。The invention belongs to the technical field of mobile terminals, and in particular relates to a screen power saving method, device and mobile terminal.

背景技术Background technique

随着移动终端智能化时代的到来,移动终端的配置越来越强大,功能越来越齐全,与此同时,由于移动终端体积的限制及电池技术的瓶颈,移动终端的电量极其有限,而移动终端的屏幕显示耗费了过多的电量,部分移动终端的屏幕耗电量甚至达到总电量的50%以上。通常对移动终端的亮度进行调节,以减少移动终端的屏幕显示耗费的电量。With the advent of the era of intelligent mobile terminals, the configuration of mobile terminals is becoming more and more powerful, and the functions are becoming more and more complete. At the same time, due to the limitation of the volume of mobile terminals and the bottleneck of battery technology, the power of mobile terminals The screen display of the terminal consumes too much power, and the power consumption of the screen of some mobile terminals even reaches more than 50% of the total power. Usually, the brightness of the mobile terminal is adjusted to reduce the power consumed by the screen display of the mobile terminal.

然而,由于现有移动终端屏幕亮度调节方式操作繁琐,耗费了用户时间,降低了节电效率,导致不必要的电量消耗且屏幕使用寿命降低。例如,移动终端屏幕的亮度是固定的,当环境光线较亮时或环境光线较暗时,看不清屏幕显示的内容,每次用户需要通过手动调节亮度,以改变屏幕亮度,适应不同使用环境,操作繁琐。此外,现有技术中也有通过在移动终端中增加光线传感器来实现此功能,但传感器本身就耗费较大的电量,而增加光线传感器也额外增加了移动终端的成本。However, due to the cumbersome operation of the existing mobile terminal screen brightness adjustment method, the user's time is consumed, the power saving efficiency is reduced, and unnecessary power consumption is caused and the service life of the screen is reduced. For example, the brightness of the mobile terminal screen is fixed. When the ambient light is bright or dark, the content displayed on the screen cannot be seen clearly. Each time the user needs to manually adjust the brightness to change the screen brightness to adapt to different use environments. , the operation is cumbersome. In addition, in the prior art, this function is also implemented by adding a light sensor in the mobile terminal, but the sensor itself consumes a lot of power, and adding a light sensor also increases the cost of the mobile terminal.

发明内容Contents of the invention

本发明实施例的目的在于提供一种屏幕节电方法,旨在解决由于现有移动终端屏幕亮度调节方式操作繁琐,耗费了用户时间,降低了节电效率,导致不必要的电量消耗且屏幕使用寿命降低的问题。The purpose of the embodiments of the present invention is to provide a screen power saving method, which aims to solve the problem that due to the cumbersome operation of the existing mobile terminal screen brightness adjustment method, the user's time is wasted, the power saving efficiency is reduced, and unnecessary power consumption and screen usage are caused. The problem of reduced lifespan.

本发明实施例是这样实现的,一种屏幕节电方法,包括:The embodiment of the present invention is achieved in this way, a screen power saving method, comprising:

当移动终端的屏幕处于亮屏状态时,采集所述移动终端所处的环境的图像;When the screen of the mobile terminal is in a bright screen state, collecting an image of the environment where the mobile terminal is located;

获取所述图像中每个像素点的亮度值,并根据每个像素点的亮度值确定所述移动终端的环境亮度;Acquiring the brightness value of each pixel in the image, and determining the ambient brightness of the mobile terminal according to the brightness value of each pixel;

根据所述移动终端的环境亮度调整所述移动终端的屏幕亮度。Adjusting the screen brightness of the mobile terminal according to the ambient brightness of the mobile terminal.

本发明实施例的另一目的在于提供一种屏幕节电装置,包括:Another object of the embodiments of the present invention is to provide a screen power saving device, comprising:

第一获取单元,用于当移动终端的屏幕处于亮屏状态时,采集所述移动终端所处的环境的图像;A first acquiring unit, configured to acquire an image of the environment where the mobile terminal is located when the screen of the mobile terminal is in a bright screen state;

第二获取单元,用于获取所述图像中每个像素点每个的亮度值,并根据每个像素点的亮度值确定所述移动终端的环境亮度;The second acquisition unit is configured to acquire the brightness value of each pixel in the image, and determine the ambient brightness of the mobile terminal according to the brightness value of each pixel;

调整单元,用于根据所述移动终端的环境亮度调整所述移动终端的屏幕亮度。An adjusting unit, configured to adjust the screen brightness of the mobile terminal according to the ambient brightness of the mobile terminal.

本发明实施例的另一目的在于提供一种移动终端,包括上述屏幕节电装置。Another object of the embodiments of the present invention is to provide a mobile terminal, including the above-mentioned screen power saving device.

在本发明实施例中,通过获取所述图像中每个像素点的亮度值,并根据每个像素点的亮度值确定所述移动终端的环境亮度;根据所述移动终端的环境亮度调整所述移动终端的屏幕亮度,从而避免了当环境光线较亮或环境光线较暗时,用户看不清屏幕显示的内容的情况,当环境光线较亮时,自动把屏幕亮度调亮,当环境光线较暗时,自动把屏幕亮度调暗,从而解决了移动终端屏幕亮度调节方式操作繁琐,耗费了用户时间,降低了节电效率,导致不必要的电量消耗且屏幕使用寿命降低的问题,节省了用户时间,提高了节电效率,减少了节电电量消耗,且提高了屏幕使用寿命。In the embodiment of the present invention, the brightness value of each pixel in the image is obtained, and the ambient brightness of the mobile terminal is determined according to the brightness value of each pixel; the mobile terminal is adjusted according to the ambient brightness of the mobile terminal. The screen brightness of the mobile terminal avoids the situation that the user cannot see the content displayed on the screen when the ambient light is bright or dark. When the ambient light is bright, the screen brightness is automatically adjusted. When the ambient light is low When it is dark, the brightness of the screen is automatically dimmed, thereby solving the problem of cumbersome operation of the screen brightness adjustment method of the mobile terminal, which consumes the user's time, reduces the power saving efficiency, causes unnecessary power consumption and reduces the service life of the screen, and saves the user Time, improve the power saving efficiency, reduce the power consumption of power saving, and improve the service life of the screen.

附图说明Description of drawings

图1是本发明实施例提供的屏幕节电方法的实现流程图;FIG. 1 is a flowchart for realizing a screen power saving method provided by an embodiment of the present invention;

图2是本发明实施例提供的屏幕节电方法步骤S103具体实现流程图;FIG. 2 is a flow chart of the specific implementation of step S103 of the screen power saving method provided by the embodiment of the present invention;

图3是本发明实施例提供的查询列表较佳的结构框图;Fig. 3 is a better structural block diagram of the query list provided by the embodiment of the present invention;

图4是本发明实施例提供的实际应用中较佳的实现流程图;Fig. 4 is a better implementation flowchart in practical application provided by the embodiment of the present invention;

图5是本发明实施例提供的屏幕节电装置的结构框图。FIG. 5 is a structural block diagram of a screen power saving device provided by an embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

在本发明实施例中,通过获取所述图像中每个像素点的亮度值,并根据每个像素点的亮度值确定所述移动终端的环境亮度;根据所述移动终端的环境亮度调整所述移动终端的屏幕亮度,从而避免了当环境光线较亮或环境光线较暗时,用户看不清屏幕显示的内容的情况,当环境光线较亮时,自动把屏幕亮度调亮,当环境光线较暗时,自动把屏幕亮度调暗,从而解决了移动终端屏幕亮度调节方式操作繁琐,耗费了用户时间,降低了节电效率,导致不必要的电量消耗且屏幕使用寿命降低的问题,节省了用户时间,提高了节电效率,减少了节电电量消耗,且提高了屏幕使用寿命。In the embodiment of the present invention, the brightness value of each pixel in the image is obtained, and the ambient brightness of the mobile terminal is determined according to the brightness value of each pixel; the mobile terminal is adjusted according to the ambient brightness of the mobile terminal. The screen brightness of the mobile terminal avoids the situation that the user cannot see the content displayed on the screen when the ambient light is bright or dark. When the ambient light is bright, the screen brightness is automatically adjusted. When the ambient light is low When it is dark, the brightness of the screen is automatically dimmed, thereby solving the problem of cumbersome operation of the screen brightness adjustment method of the mobile terminal, which consumes the user's time, reduces the power saving efficiency, causes unnecessary power consumption and reduces the service life of the screen, and saves the user Time, improve the power saving efficiency, reduce the power consumption of power saving, and improve the service life of the screen.

实施例1Example 1

图1示出了本发明实施例提供的一种屏幕节电方法的实现流程,详述如下:Figure 1 shows the implementation process of a screen power saving method provided by an embodiment of the present invention, which is described in detail as follows:

在步骤S101中,当移动终端的屏幕处于亮屏状态时,采集所述移动终端所处的环境的图像;In step S101, when the screen of the mobile terminal is in a bright screen state, collecting an image of the environment where the mobile terminal is located;

在本实施例中,当移动终端的屏幕处于亮屏状态时,获取包含移动终端使用环境的图像,具体地,将屏幕处于亮屏状态作为触发条件,当通过对系统应用程序的进程进行监听,以判断移动终端的屏幕是否处于亮屏状态,当监听到电容式触摸屏被点亮时,表示屏幕处于亮屏状态,即获取包含移动终端使用环境的图像。In this embodiment, when the screen of the mobile terminal is in the bright screen state, an image containing the usage environment of the mobile terminal is obtained. Specifically, the screen in the bright screen state is used as a trigger condition. When the process of the system application is monitored, To judge whether the screen of the mobile terminal is in the bright screen state, when it is detected that the capacitive touch screen is lighted up, it means that the screen is in the bright screen state, that is, an image including the use environment of the mobile terminal is acquired.

在本实施例中,获取包含移动终端使用环境的图像,具体地,可通过位于移动终端上的摄像设备,获取包含移动终端使用环境的图像,摄像设备的镜头通过固定的帧速率捕捉图像,将图像的数据保存在缓冲区中,便于后续移动终端在图像中提取像素点的亮度值。In this embodiment, an image including the environment in which the mobile terminal is used is acquired. Specifically, an image including the environment in which the mobile terminal is used can be acquired through an imaging device located on the mobile terminal. The lens of the imaging device captures the image at a fixed frame rate, and the The data of the image is saved in the buffer, which is convenient for the subsequent mobile terminal to extract the brightness value of the pixel in the image.

作为本发明的一个优选实施例,采集所述移动终端所处的环境的图像,包括:As a preferred embodiment of the present invention, collecting images of the environment where the mobile terminal is located includes:

每隔预设时间,采集所述移动终端所处的环境的图像。The image of the environment where the mobile terminal is located is collected every preset time.

预设时间可以为系统默认,也可以用户自设,在此不做限制。The preset time can be the default of the system, or can be set by the user, and there is no limitation here.

在获取到的图像中提取每个像素点的亮度值,直至电容式触摸屏符合预设停止复位条件。The brightness value of each pixel is extracted from the acquired image until the capacitive touch screen meets the preset stop reset condition.

在步骤S102中,获取所述图像中每个像素点的亮度值,并根据每个像素点的亮度值确定所述移动终端的环境亮度;In step S102, acquire the brightness value of each pixel in the image, and determine the ambient brightness of the mobile terminal according to the brightness value of each pixel;

在本实施例中,获取所述图像中每个像素点的亮度值,包括:In this embodiment, obtaining the brightness value of each pixel in the image includes:

在获取到的图像中,将每个像素点的红色分量、绿色分量以及蓝色分量(red、green、blue,RGB)转换为色调、饱和度以及亮度值(Hue、saturation、value,HSV);In the acquired image, convert the red component, green component and blue component (red, green, blue, RGB) of each pixel into hue, saturation and brightness values (Hue, saturation, value, HSV);

获取每个像素点的亮度值。Get the brightness value of each pixel.

在本实施例中,在获取到的图像中,获取每个像素点的红色分量、绿色分量以及蓝色分量,将每个像素点的RGB转换为HSV。其中,RGB颜色空间转换为HSV颜色空间为现有技术,在此不做赘述。In this embodiment, in the acquired image, the red component, the green component and the blue component of each pixel are acquired, and the RGB of each pixel is converted into HSV. Wherein, converting the RGB color space to the HSV color space is a prior art, and details are not described here.

在本实施例中,提取每个像素点的亮度值,以矩阵的形式的记录存储,便于后续直接调用亮度值。In this embodiment, the luminance value of each pixel is extracted, recorded and stored in the form of a matrix, so that the luminance value can be called directly later.

在本实施例中,在获取到的图像中,获取所述图像中每个像素点的亮度值,直至移动终端的屏幕处于熄屏状态。In this embodiment, in the acquired image, the luminance value of each pixel in the image is acquired until the screen of the mobile terminal is in an off state.

在本实施例中,根据每个像素点的亮度值确定所述移动终端的环境亮度,包括:In this embodiment, determining the ambient brightness of the mobile terminal according to the brightness value of each pixel includes:

将获取到的每个像素点的亮度值相加,除以所述像素点的个数,生成移动终端的环境亮度。The acquired brightness values of each pixel are added and divided by the number of pixels to generate the ambient brightness of the mobile terminal.

在本实施例中,通过预设加法函数,将获取到的每个像素点的亮度值相加,生成亮度总值。In this embodiment, the acquired luminance values of each pixel are added through a preset addition function to generate a total luminance value.

在本实施例中,获取像素点的个数,可通过获取图像的分辨率,例如,图像的的分辨率为1920*1080时,表示图像中像素点的个数为2073600个。In this embodiment, the number of pixels can be obtained by obtaining the resolution of the image. For example, when the resolution of the image is 1920*1080, it means that the number of pixels in the image is 2073600.

在本实施例中,亮度总值除以所述像素点的个数,生成环境亮度。In this embodiment, the total brightness value is divided by the number of pixels to generate ambient brightness.

在本实施例中,通过亮度总值除以所述像素点的个数,生成环境亮度,由于取值的像素点较多,使得获取到的环境亮度具有较高的准确性。In this embodiment, the ambient brightness is generated by dividing the total brightness value by the number of pixels, and the obtained ambient brightness has higher accuracy due to the large number of pixels that take values.

在步骤S103中,根据所述移动终端的环境亮度调整所述移动终端的屏幕亮度。In step S103, the brightness of the screen of the mobile terminal is adjusted according to the brightness of the environment of the mobile terminal.

在本实施例中,图2示出了步骤S103的具体实施流程,详述如下:In this embodiment, FIG. 2 shows the specific implementation process of step S103, which is described in detail as follows:

在步骤S201中,根据环境亮度在预设的查询列表中,查询所述环境亮度属于的亮度范围,查询列表包括了多个亮度范围和预设亮度;In step S201, query the brightness range to which the ambient brightness belongs in a preset query list according to the ambient brightness, and the query list includes a plurality of brightness ranges and preset brightness;

在本实施例中,通过综合各种环境的结果建立一个查询列表,查询列表包括了多个亮度范围和预设亮度,每个亮度范围对应一个预设亮度。In this embodiment, a query list is established by synthesizing the results of various environments. The query list includes multiple brightness ranges and preset brightness, and each brightness range corresponds to a preset brightness.

在步骤S202中,根据预先建立的所述亮度范围与所述预设亮度的对应关系,获取与所述环境亮度属于的亮度范围相对应的预设亮度;In step S202, according to the pre-established correspondence between the brightness range and the preset brightness, the preset brightness corresponding to the brightness range to which the ambient brightness belongs is acquired;

在步骤S203中,将屏幕的亮度调整至预设亮度。In step S203, the brightness of the screen is adjusted to a preset brightness.

在本实施例中,在预设时间内,根据预先建立的所述亮度范围与所述预设亮度的对应关系亮度值,查询环境亮度属于的亮度范围,以获取到亮度范围对应的预设亮度。具体地,如图3为一个查询列表,C至D、E至F、G至F、I至J分别表示每个频率范围,K至L、M至N、O至P、Q至R分别表示每个亮度范围,当获取到亮度范围为x1时,查表可得,x1属于C至D的范围内,对应的预设亮度为y1。此时,将屏幕的亮度调整至预设亮度y1In this embodiment, within a preset time, according to the pre-established brightness value of the corresponding relationship between the brightness range and the preset brightness, query the brightness range to which the ambient brightness belongs, so as to obtain the preset brightness corresponding to the brightness range . Specifically, as shown in Figure 3 is a query list, C to D, E to F, G to F, I to J represent each frequency range respectively, K to L, M to N, O to P, Q to R represent respectively For each brightness range, when the obtained brightness range is x 1 , it can be obtained by looking up the table, x 1 belongs to the range from C to D, and the corresponding preset brightness is y 1 . At this time, the brightness of the screen is adjusted to the preset brightness y 1 .

在本实施例中,为便于说明,以实际应用为例,当移动设备亮屏的时候,打开摄像头,每间隔3秒,软件获取摄像头所拍摄的图像数据的其中一帧,然后把其中每个像素点的RGB转换为HSV(HSV中V的值表示该像素点的亮度值),并获取一帧中所有像素点的亮度值,并计算该帧每个像素环境亮度。查表可得,环境亮度对应的预设亮度,然后再将屏幕的亮度调整至预设亮度,从而避免了当环境光线较亮或环境光线较暗时,用户看不清屏幕显示的内容的情况,当环境光线较亮时,自动把屏幕亮度调亮,当环境光线较暗时,自动把屏幕亮度调暗,无须增加硬件,减少了成本,无需用户手动调节,以减少电量损耗,提高移动终端的续航时间。In this embodiment, for the sake of illustration, take a practical application as an example. When the screen of the mobile device is turned on, the camera is turned on. Every 3 seconds, the software acquires one frame of the image data captured by the camera, and then converts each The RGB of the pixel is converted to HSV (the value of V in HSV represents the brightness value of the pixel), and the brightness values of all pixels in a frame are obtained, and the ambient brightness of each pixel in the frame is calculated. Look up the table to get the preset brightness corresponding to the ambient brightness, and then adjust the brightness of the screen to the preset brightness, thus avoiding the situation that the user cannot clearly see the content displayed on the screen when the ambient light is bright or the ambient light is dark , when the ambient light is bright, the screen brightness is automatically adjusted, and when the ambient light is dark, the screen brightness is automatically dimmed, no need to increase hardware, reduce costs, and no manual adjustment by the user to reduce power consumption and improve mobile terminals battery life.

在本实施例中,在所述根据预先建立的所述亮度范围与所述预设亮度的对应关系,获取与所述环境亮度属于的亮度范围相对应的预设亮度之前,包括:In this embodiment, before acquiring the preset brightness corresponding to the brightness range to which the ambient brightness belongs according to the pre-established correspondence between the brightness range and the preset brightness, the steps include:

建立亮度范围与所述预设亮度的对应关系并记录存储。A corresponding relationship between the brightness range and the preset brightness is established and recorded for storage.

作为本发明的一个优选实施例,在采集所述移动终端所处的环境的图像之前,包括:As a preferred embodiment of the present invention, before collecting the image of the environment where the mobile terminal is located, it includes:

读取系统时间和用户指定的时间段。Read system time and user-specified time period.

当时间段到达时,执行采集所述移动终端所处的环境的图像的步骤。When the time period arrives, the step of collecting images of the environment where the mobile terminal is located is performed.

在本实施例中,为便于说明,以实际应用为例,当用户所选择的时间段为上午、中午、下午、晚上,也就是早点6点到晚上12点,在早点6点到晚上12点内进行采集所述移动终端所处的环境的图像的步骤,在凌晨不执行移动终端采集所述移动终端所处的环境的图像步骤,以减少电量损耗,提高移动终端的续航时间。In this embodiment, for the sake of illustration, taking the actual application as an example, when the time period selected by the user is morning, noon, afternoon, and evening, that is, from 6:00 am to 12:00 pm, and from 6:00 am to 12:00 pm The step of collecting images of the environment in which the mobile terminal is located is carried out in the early morning, and the step of collecting images of the environment in which the mobile terminal is located is not performed in the early morning, so as to reduce power consumption and improve the battery life of the mobile terminal.

实施例2Example 2

作为本发明的优选实施例,图4示出了本发明实施例在实际应用中较佳的实现流程图,详述如下:As a preferred embodiment of the present invention, FIG. 4 shows a flow chart of a better implementation of the embodiment of the present invention in practical applications, and is described in detail as follows:

在步骤S401中,移动终端点亮屏幕;In step S401, the mobile terminal lights up the screen;

在步骤S402中,摄像头获取图像;In step S402, the camera acquires an image;

在步骤S403中,根据图像计算中HSV;In step S403, the middle HSV is calculated according to the image;

在步骤S404中,根据V值计算环境亮度;In step S404, the ambient brightness is calculated according to the V value;

在步骤S405中,在查询列表中,查询环境亮度对应的预设亮度;In step S405, query the preset brightness corresponding to the ambient brightness in the query list;

在步骤S406中,根据预设亮度,调节屏幕亮度。In step S406, the brightness of the screen is adjusted according to the preset brightness.

实施例3Example 3

图5示出了本发明实施例提供的一种屏幕节电装置的结构框图,该装置可以运行于具备摄像设备的各种终端,包括但不限于移动电话、口袋计算机(PocketPersonalComputer,PPC)、掌上电脑、计算机、笔记本电脑、个人数字助理(PersonalDigitalAssistant,PDA)、MP4、MP3等。为了便于说明,仅示出了与本实施例相关的部分。Figure 5 shows a structural block diagram of a screen power saving device provided by an embodiment of the present invention, which can run on various terminals equipped with camera equipment, including but not limited to mobile phones, pocket computers (Pocket Personal Computer, PPC), palm Computer, computer, laptop, personal digital assistant (PersonalDigitalAssistant, PDA), MP4, MP3, etc. For ease of description, only the parts related to this embodiment are shown.

参照图5,该屏幕节电装置,包括:Referring to Figure 5, the screen power saving device includes:

第一获取单元51,用于当移动终端的屏幕处于亮屏状态时,采集所述移动终端所处的环境的图像;The first acquiring unit 51 is configured to acquire an image of the environment where the mobile terminal is located when the screen of the mobile terminal is in a bright screen state;

第二获取单元52,用于获取所述图像中每个像素点每个的亮度值,并根据每个像素点的亮度值确定所述移动终端的环境亮度;The second acquisition unit 52 is configured to acquire the brightness value of each pixel in the image, and determine the ambient brightness of the mobile terminal according to the brightness value of each pixel;

调整单元53,用于根据所述移动终端的环境亮度调整所述移动终端的屏幕亮度。The adjustment unit 53 is configured to adjust the brightness of the screen of the mobile terminal according to the brightness of the environment of the mobile terminal.

进一步地,所述第一获取单元还用于采集所述移动终端所处的环境的图像。Further, the first acquisition unit is further configured to acquire images of the environment where the mobile terminal is located.

进一步地,在该屏幕节电装置中,所述第二获取单元,包括:Further, in the screen power saving device, the second acquisition unit includes:

转换子单元,用于在获取到的图像中,将每个像素点的红色分量、绿色分量以及蓝色分量转换为色调、饱和度以及亮度值;The conversion subunit is used to convert the red component, green component and blue component of each pixel into hue, saturation and brightness values in the acquired image;

获取子单元,用于获取每个像素点的亮度值。Obtain subunits, used to obtain the brightness value of each pixel.

进一步地,在该屏幕节电装置中,所述调整单元,包括:Further, in the screen power saving device, the adjustment unit includes:

生成子单元,用于将获取到的每个像素点的亮度值相加,除以所述像素点的个数,生成环境亮度;generating a subunit for adding the obtained brightness values of each pixel and dividing by the number of pixels to generate ambient brightness;

进一步地,在该屏幕节电装置中,所述调整单元,包括:Further, in the screen power saving device, the adjustment unit includes:

查询子单元,用于根据环境亮度在预设的查询列表中,查询所述环境亮度属于的亮度范围,查询列表包括了多个亮度范围和预设亮度;The query subunit is used to query the brightness range to which the ambient brightness belongs in the preset query list according to the ambient brightness, and the query list includes a plurality of brightness ranges and preset brightness;

第二获取子单元,用于根据预先建立的所述亮度范围与所述预设亮度的对应关系,获取与所述环境亮度属于的亮度范围相对应的预设亮度;The second acquiring subunit is configured to acquire the preset brightness corresponding to the brightness range to which the ambient brightness belongs according to the pre-established correspondence between the brightness range and the preset brightness;

调整子单元,用于将屏幕的亮度调整至预设亮度。The adjustment subunit is used to adjust the brightness of the screen to a preset brightness.

在本发明实施例中,通过获取所述图像中每个像素点的亮度值,并根据每个像素点的亮度值确定所述移动终端的环境亮度;根据所述移动终端的环境亮度调整所述移动终端的屏幕亮度,从而避免了当环境光线较亮或环境光线较暗时,用户看不清屏幕显示的内容的情况,当环境光线较亮时,自动把屏幕亮度调亮,当环境光线较暗时,自动把屏幕亮度调暗,从而解决了移动终端屏幕亮度调节方式操作繁琐,耗费了用户时间,降低了节电效率,导致不必要的电量消耗且屏幕使用寿命降低的问题,节省了用户时间,提高了节电效率,减少了节电电量消耗,且提高了屏幕使用寿命。In the embodiment of the present invention, the brightness value of each pixel in the image is obtained, and the ambient brightness of the mobile terminal is determined according to the brightness value of each pixel; the mobile terminal is adjusted according to the ambient brightness of the mobile terminal. The screen brightness of the mobile terminal avoids the situation that the user cannot see the content displayed on the screen when the ambient light is bright or dark. When the ambient light is bright, the screen brightness is automatically adjusted. When the ambient light is low When it is dark, the brightness of the screen is automatically dimmed, thereby solving the problem of cumbersome operation of the screen brightness adjustment method of the mobile terminal, which consumes the user's time, reduces the power saving efficiency, causes unnecessary power consumption and reduces the service life of the screen, and saves the user Time, improve the power saving efficiency, reduce the power consumption of power saving, and improve the service life of the screen.

本发明实施例提供的装置可以应用在前述对应的方法实施例一、二中,详情参见上述实施例一、二的描述,在此不再赘述。The device provided by the embodiment of the present invention can be applied in the above-mentioned corresponding method embodiments 1 and 2. For details, refer to the description of the above-mentioned embodiments 1 and 2, which will not be repeated here.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (6)

1.一种屏幕节电方法,其特征在于,包括:1. A screen power-saving method, characterized in that, comprising: 当移动终端的屏幕处于亮屏状态时,采集所述移动终端所处的环境的图像;When the screen of the mobile terminal is in a bright screen state, collecting an image of the environment where the mobile terminal is located; 获取所述图像中每个像素点的亮度值,并根据每个像素点的亮度值确定所述移动终端的环境亮度;Acquiring the brightness value of each pixel in the image, and determining the ambient brightness of the mobile terminal according to the brightness value of each pixel; 根据所述移动终端的环境亮度调整所述移动终端的屏幕亮度;adjusting the screen brightness of the mobile terminal according to the ambient brightness of the mobile terminal; 所述当移动终端的屏幕处于亮屏状态时,采集所述移动终端所处的环境的图像,具体为:When the screen of the mobile terminal is in a bright screen state, the image of the environment where the mobile terminal is collected is specifically: 将屏幕处于亮屏状态作为触发条件,通过对系统应用程序的进程进行监听,以判断移动终端的屏幕是否处于亮屏状态,当监听到电容式触摸屏被点亮时,表示屏幕处于亮屏状态,即获取包含移动终端使用环境的图像;The screen is in the bright screen state as a trigger condition, by monitoring the process of the system application program, to determine whether the screen of the mobile terminal is in the bright screen state, when the capacitive touch screen is monitored to be lit, it means that the screen is in the bright screen state That is, to obtain an image containing the usage environment of the mobile terminal; 其中,获取所述图像中每个像素点的亮度值,并根据每个像素点的亮度值确定所述移动终端的环境亮度,具体为:Wherein, the brightness value of each pixel in the image is obtained, and the ambient brightness of the mobile terminal is determined according to the brightness value of each pixel, specifically: 将每个像素点的红色分量、绿色分量以及蓝色分量(red、green、blue,RGB)转换为色调、饱和度以及亮度值(Hue、saturation、value,HSV),将获取到的每个像素点的亮度值相加,除以所述像素点的个数,生成移动终端的环境亮度。Convert the red component, green component and blue component (red, green, blue, RGB) of each pixel to hue, saturation and brightness value (Hue, saturation, value, HSV), and each obtained pixel The luminance values of the dots are added and divided by the number of the pixel dots to generate the ambient luminance of the mobile terminal. 2.如权利要求1所述的方法,其特征在于,采集所述移动终端所处的环境的图像,包括:2. The method according to claim 1, wherein collecting the image of the environment where the mobile terminal is located comprises: 每隔预设时间,采集所述移动终端所处的环境的图像。The image of the environment where the mobile terminal is located is collected every preset time. 3.如权利要求1所述的方法,其特征在于,根据所述移动终端的环境亮度调整所述移动终端的屏幕亮度,包括:3. The method according to claim 1, wherein adjusting the screen brightness of the mobile terminal according to the ambient brightness of the mobile terminal comprises: 根据环境亮度在预设的查询列表中,查询所述环境亮度属于的亮度范围,查询列表包括了多个亮度范围和预设亮度;According to the ambient brightness in the preset query list, query the brightness range to which the ambient brightness belongs, and the query list includes a plurality of brightness ranges and preset brightness; 根据预先建立的所述亮度范围与所述预设亮度的对应关系,获取与所述环境亮度属于的亮度范围相对应的预设亮度;Acquiring a preset brightness corresponding to the brightness range to which the ambient brightness belongs according to the pre-established correspondence between the brightness range and the preset brightness; 将屏幕的亮度调整至预设亮度。Adjust the brightness of the screen to the preset brightness. 4.一种屏幕节电装置,其特征在于,包括:4. A screen power saving device, characterized in that it comprises: 第一获取单元,用于当移动终端的屏幕处于亮屏状态时,采集所述移动终端所处的环境的图像;A first acquiring unit, configured to acquire an image of the environment where the mobile terminal is located when the screen of the mobile terminal is in a bright screen state; 第二获取单元,用于获取所述图像中每个像素点每个的亮度值,并根据每个像素点的亮度值确定所述移动终端的环境亮度;The second acquisition unit is configured to acquire the brightness value of each pixel in the image, and determine the ambient brightness of the mobile terminal according to the brightness value of each pixel; 调整单元,用于根据所述移动终端的环境亮度调整所述移动终端的屏幕亮度;an adjusting unit, configured to adjust the screen brightness of the mobile terminal according to the ambient brightness of the mobile terminal; 所述当移动终端的屏幕处于亮屏状态时,采集所述移动终端所处的环境的图像,具体为:When the screen of the mobile terminal is in a bright screen state, the image of the environment where the mobile terminal is collected is specifically: 将屏幕处于亮屏状态作为触发条件,通过对系统应用程序的进程进行监听,以判断移动终端的屏幕是否处于亮屏状态,当监听到电容式触摸屏被点亮时,表示屏幕处于亮屏状态,即获取包含移动终端使用环境的图像;The screen is in the bright screen state as a trigger condition, and the process of the system application program is monitored to determine whether the screen of the mobile terminal is in the bright screen state. That is, to obtain an image containing the usage environment of the mobile terminal; 其中,获取所述图像中每个像素点的亮度值,并根据每个像素点的亮度值确定所述移动终端的环境亮度,具体为:Wherein, the brightness value of each pixel in the image is obtained, and the ambient brightness of the mobile terminal is determined according to the brightness value of each pixel, specifically: 将每个像素点的红色分量、绿色分量以及蓝色分量(red、green、blue,RGB)转换为色调、饱和度以及亮度值(Hue、saturation、value,HSV),将获取到的每个像素点的亮度值相加,除以所述像素点的个数,生成移动终端的环境亮度。Convert the red component, green component and blue component (red, green, blue, RGB) of each pixel to hue, saturation and brightness value (Hue, saturation, value, HSV), and each obtained pixel The luminance values of the dots are added and divided by the number of the pixel dots to generate the ambient luminance of the mobile terminal. 5.如权利要求4所述的装置,其特征在于,所述调整单元,包括:5. The device according to claim 4, wherein the adjusting unit comprises: 查询子单元,用于根据环境亮度在预设的查询列表中,查询所述环境亮度属于的亮度范围,查询列表包括了多个亮度范围和预设亮度;The query subunit is used to query the brightness range to which the ambient brightness belongs in the preset query list according to the ambient brightness, and the query list includes a plurality of brightness ranges and preset brightness; 第二获取子单元,用于根据预先建立的所述亮度范围与所述预设亮度的对应关系,获取与所述环境亮度属于的亮度范围相对应的预设亮度;The second acquiring subunit is configured to acquire the preset brightness corresponding to the brightness range to which the ambient brightness belongs according to the pre-established correspondence between the brightness range and the preset brightness; 调整子单元,用于将屏幕的亮度调整至预设亮度。The adjustment subunit is used to adjust the brightness of the screen to a preset brightness. 6.一种移动终端,其特征在于:包括权利要求4至5任意一项所述屏幕节电装置。6. A mobile terminal, characterized by comprising the screen power saving device according to any one of claims 4 to 5.
CN201310319800.5A 2013-07-26 2013-07-26 A kind of screen power-saving method, device and mobile terminal Expired - Fee Related CN103414834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310319800.5A CN103414834B (en) 2013-07-26 2013-07-26 A kind of screen power-saving method, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310319800.5A CN103414834B (en) 2013-07-26 2013-07-26 A kind of screen power-saving method, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN103414834A CN103414834A (en) 2013-11-27
CN103414834B true CN103414834B (en) 2016-01-20

Family

ID=49607817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310319800.5A Expired - Fee Related CN103414834B (en) 2013-07-26 2013-07-26 A kind of screen power-saving method, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN103414834B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038839B (en) * 2014-04-29 2017-09-29 四川长虹电器股份有限公司 Picture quality of television method of adjustment
CN104378811A (en) * 2014-11-14 2015-02-25 惠州Tcl移动通信有限公司 Mobile terminal LCD luminance detection and control method and system
CN105677005B (en) * 2014-11-19 2020-12-11 中兴通讯股份有限公司 Screen control method and device for mobile terminal
CN105072346B (en) * 2015-08-26 2018-03-23 浙江大华技术股份有限公司 A kind of automatic camera control method, device and automatic camera camera
EP3323237B1 (en) 2015-08-26 2025-05-14 Zhejiang Dahua Technology Co., Ltd Methods and systems for traffic monitoring
CN105578081B (en) * 2015-12-18 2018-03-06 广东欧珀移动通信有限公司 Imaging method, imaging sensor, imaging device and electronic installation
CN105609086A (en) * 2015-12-30 2016-05-25 深圳Tcl数字技术有限公司 Brightness adjustment method and device of display interface
CN107426802B (en) 2016-05-24 2020-06-26 华为终端有限公司 Terminal management method and device
CN107682522A (en) * 2017-08-15 2018-02-09 捷开通讯(深圳)有限公司 The mobile terminal and its adjusting method and memory of a kind of adjustable screen background
KR20190031416A (en) * 2017-08-18 2019-03-26 선전 구딕스 테크놀로지 컴퍼니, 리미티드 Fingerprint image acquisition method, apparatus and terminal
CN108231038A (en) * 2018-01-23 2018-06-29 北京小米移动软件有限公司 Screen luminance adjustment method and device
KR102770241B1 (en) 2018-07-13 2025-02-20 삼성전자주식회사 Electronic device and operating method for controlling brightness of a light source
CN108962192A (en) * 2018-08-08 2018-12-07 歌尔科技有限公司 Screen luminance adjustment method, intelligent wearable device and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040196252A1 (en) * 2003-04-04 2004-10-07 Lg Electronics Inc. Apparatus, method and computer program product for controlling screen brightness of mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2185874T3 (en) * 1996-04-10 2003-05-01 Samsung Electronics Co Ltd PROCEDURE TO IMPROVE IMAGE QUALITY THROUGH THE EQUALIZATION OF HISTOGRAM FOR MEDIA ADJUSTMENT AND CIRCUIT FOR CARRYING OUT.

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040196252A1 (en) * 2003-04-04 2004-10-07 Lg Electronics Inc. Apparatus, method and computer program product for controlling screen brightness of mobile terminal

Also Published As

Publication number Publication date
CN103414834A (en) 2013-11-27

Similar Documents

Publication Publication Date Title
CN103414834B (en) A kind of screen power-saving method, device and mobile terminal
US8994845B2 (en) System and method of adjusting a camera based on image data
JP5786254B2 (en) Method and apparatus for controlling light emitting devices in a terminal device, and terminal device
CN111247801B (en) System and method for event camera data processing
TWI433135B (en) Display adjusting device and display adjusting method
US20180350031A1 (en) Image blurring method, electronic device and computer device
CN106303280A (en) A method, device and terminal for supplementary light for photographing
CN102999298B (en) The method of a kind of camera module transmission view data and computer
CN105577935B (en) Screen luminance adjustment method and device
CN110148380B (en) Display picture adjusting method and device and storage medium
JP2020504831A (en) Interface image display method, apparatus and program
CN105574896B (en) A kind of efficient background modeling method towards high-resolution video
CN107431769A (en) Camera device, flicker detection method and flicker detection program
TWI594224B (en) Backlight brightness adjustment system and method
CN102324100A (en) Real-time color acquiring method and device based on camera of mobile terminal
CN104978946A (en) Display device backlight self-adaptive adjusting method and apparatus
CN108735183A (en) Display screen brightness adjusting method and related product
CN115705663A (en) Image processing method and electronic equipment
CN116668838A (en) Image processing method and electronic device
CN109729280A (en) A kind of image processing method and mobile terminal
WO2011162899A1 (en) Devices and methods of user interfaces to generate a high current drain impact user notification relating to a wallpaper image
US9602739B1 (en) Lookup table interpolation in a film emulation camera system
JP5556215B2 (en) Image quality adjustment method for display unit using camera for portable device, apparatus and program thereof
EP2658245B1 (en) System and method of adjusting camera image data
CN102821206B (en) An intelligent dimming method and mobile terminal during camera preview

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160120

Termination date: 20160726

CF01 Termination of patent right due to non-payment of annual fee