CN104601808A - Method for automatically adjusting screen luminance by detecting environment light through mobile phone camera - Google Patents

Method for automatically adjusting screen luminance by detecting environment light through mobile phone camera Download PDF

Info

Publication number
CN104601808A
CN104601808A CN201410850192.5A CN201410850192A CN104601808A CN 104601808 A CN104601808 A CN 104601808A CN 201410850192 A CN201410850192 A CN 201410850192A CN 104601808 A CN104601808 A CN 104601808A
Authority
CN
China
Prior art keywords
index value
camera
mobile phone
adjusting screen
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410850192.5A
Other languages
Chinese (zh)
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.)
XI'AN QIANYI ENTERPRISE MANAGEMENT CONSULTATION Co Ltd
Original Assignee
XI'AN QIANYI ENTERPRISE MANAGEMENT CONSULTATION 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 XI'AN QIANYI ENTERPRISE MANAGEMENT CONSULTATION Co Ltd filed Critical XI'AN QIANYI ENTERPRISE MANAGEMENT CONSULTATION Co Ltd
Priority to CN201410850192.5A priority Critical patent/CN104601808A/en
Publication of CN104601808A publication Critical patent/CN104601808A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method for automatically adjusting screen luminance by detecting environment light through mobile phone camera, the method comprises the following steps: obtaining the index value generated by the camera, which detects the strong and weak state of the environment light, using the index value, transmitting the index value adopted by the camera under different environments into the inner core, judging the index value in the backlight adjusting function, and setting suitable backlight luminance according to different index value. The method for automatically adjusting screen luminance of mobile phone by detecting strong and weak state of environment light through mobile phone camera can be realized. The convenience for using the mobile phone in the (indoor and outdoor) environment being different in luminance is offered for the user, the cost of the mobile phone is reduced and the structure design is simpler.

Description

The method of automatic adjusting screen brightness is carried out by mobile phone camera ambient light
Technical field
This method, based on high-pass platform, regulates mobile phone backlight brightness automatically by the power of mobile phone camera ambient light.
Background technology
Automatically regulate backlight function to be detected surround lighting by optical sensor additional on cell phone mainboard at present, regulate mobile phone backlight brightness according to the power of varying environment light.
Existing methodical shortcoming is:
Mobile phone will realize automatically regulating the function of backlight to need additionally to increase optical sensor, increases cost, makes handset structure more complicated.
Summary of the invention
Needing additionally to increase device to solve current phone brightness adjusting method, high, the baroque technical problem of cost, the invention provides a kind of method being carried out automatic adjusting screen brightness by mobile phone camera ambient light.
Technical solution of the present invention is as follows:
Carried out a method for automatic adjusting screen brightness by mobile phone camera ambient light, its special character is:
The method before application, index value in the camera exposure meter first corresponding to varying environment brightness, formulate the bright dark degree of a set of difference and index value illuminometer one to one, then carry out following steps:
1] the index value that camera obtains current environment is opened on backstage;
2] change current environment, repeat step 1, index value corresponding under obtaining varying environment;
3] import the camera index value obtained under varying environment into kernel, in backlight adjustment function, index value is judged, obtain the backlight brightness values corresponding to current index value according to the illuminometer generated, thus suitable backlight illumination is set to mobile phone.
Based on above basic scheme, the present invention also makes following optimization further:
Step 1 of the present invention in the specific implementation, adds timer in camera kernel-driven, and backstage is opened a camera and obtained current environment index value at regular intervals, realizes the index value under mobile phone automatic acquisition current environment; Timer is opening camera while, call backlight adjustment function.
By as described below for the method that index value imports kernel into:
Create a sys Archive sit to be used for accessing current index value, while timer opens camera at regular intervals, read current index value from index node;
Compared with prior art, advantage is in the present invention:
1, the present invention can reach the function of automatic adjusting screen backlight illumination, for user (indoor, outdoor etc.) under the environment of different illumination intensity uses mobile phone to provide easily, and reduces mobile phone cost, makes structural design simpler.
2, the present invention is without the need to increasing any hardware device, can be realized by software.
Accompanying drawing explanation
Fig. 1 is the flow chart of the inventive method.
Embodiment
Mobile phone camera can detect surround lighting in previews, the exposure row suitable according to varying environment configuration camera and gain parameter are to reach preview best results, this a series of parameter combinations generated according to varying environment just constitutes the exposure meter of webcam driver, and each the group parameter in exposure meter correspond to again specific index (exposure meter sequential value) value.
Generate on the basis of exposure meter at camera, we are used to index value, import the index value that camera under varying environment uses into kernel, in backlight adjustment function, index value is judged, and suitable backlight illumination is set according to different index values.
The present invention before embody rule, index value in the camera exposure meter first corresponding to varying environment brightness, formulate the bright dark degree of a set of difference and index value illuminometer one to one, then carry out following steps:
Obtain index value: in camera kernel-driven, add timer, every 6 seconds backstages are opened a camera and are obtained current environment index value.
Import index value into kernel: kernel directly cannot read camera index value, create a sys Archive sit, timer read current index value from sys Archive sit, thus kernel gets the index of current environment while within every 6 seconds, opening camera.
Suitable backlight illumination is set: call a backlight adjustment function while within every 6 seconds, timer triggers, and the judgement increased in kernel backlight adjustment function index value, if the brightness value of the index value obtained correspondence in illuminometer is identical with current phone brightness value, then function directly returns and does not process; If difference, upgrade backlight illumination.

Claims (4)

1. carried out a method for automatic adjusting screen brightness by mobile phone camera ambient light, it is characterized in that:
The method before application, index value in the camera exposure meter first corresponding to varying environment brightness, formulate the bright dark degree of a set of difference and index value illuminometer one to one, then carry out following steps:
1] the index value that camera obtains current environment is opened on backstage;
2] change current environment, repeat step 1], index value corresponding under obtaining varying environment;
3] import the camera index value obtained under varying environment into kernel, in backlight adjustment function, index value is judged, obtain the backlight brightness values corresponding to current index value according to the illuminometer generated, thus suitable backlight illumination is set to mobile phone.
2. the method being carried out automatic adjusting screen brightness by mobile phone camera ambient light according to claim 1, be is characterized in that:
Step 1 of the present invention] in the specific implementation, in camera kernel-driven, add timer, backstage is opened a camera and is obtained current environment index value at regular intervals, realizes the index value under mobile phone automatic acquisition current environment.
3. the method being carried out automatic adjusting screen brightness by mobile phone camera ambient light according to claim 1, be is characterized in that:
By as described below for the method that index value imports kernel into:
Create a sys Archive sit to be used for accessing current index value, while timer opens camera at regular intervals, read current index value from index node.
4. the method being carried out automatic adjusting screen brightness by mobile phone camera ambient light according to claim 1 or 2 or 3, be is characterized in that:
Described timer is opening camera while, call backlight adjustment function.
CN201410850192.5A 2014-12-30 2014-12-30 Method for automatically adjusting screen luminance by detecting environment light through mobile phone camera Pending CN104601808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410850192.5A CN104601808A (en) 2014-12-30 2014-12-30 Method for automatically adjusting screen luminance by detecting environment light through mobile phone camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410850192.5A CN104601808A (en) 2014-12-30 2014-12-30 Method for automatically adjusting screen luminance by detecting environment light through mobile phone camera

Publications (1)

Publication Number Publication Date
CN104601808A true CN104601808A (en) 2015-05-06

Family

ID=53127294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410850192.5A Pending CN104601808A (en) 2014-12-30 2014-12-30 Method for automatically adjusting screen luminance by detecting environment light through mobile phone camera

Country Status (1)

Country Link
CN (1) CN104601808A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851097A (en) * 2017-01-20 2017-06-13 深圳铂睿智恒科技有限公司 A kind of terminal device and its depth of field control method
CN107786743A (en) * 2017-10-27 2018-03-09 北京小米移动软件有限公司 Prevent the method and device of terminal false touch
CN110855827A (en) * 2019-09-27 2020-02-28 珠海格力电器股份有限公司 Brightness adjusting method and device, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1896807A (en) * 2005-07-11 2007-01-17 佛山市顺德区顺达电脑厂有限公司 Method for adjusting negative-light resource brightness automatically
CN101079238A (en) * 2006-05-22 2007-11-28 明基电通股份有限公司 Hand-held electronic device for automatically regulating backlight brightness and backlight brightness regulation method
CN101945179A (en) * 2010-09-26 2011-01-12 中兴通讯股份有限公司 Method and device for automatically adjusting backlight brightness of mobile terminal and mobile terminal
CN102457599A (en) * 2010-10-29 2012-05-16 上海三旗通信科技股份有限公司 Method for detecting light of current environment by mobile phone camera
CN103377621A (en) * 2012-04-18 2013-10-30 浩鑫股份有限公司 Backlight adjusting system and backlight adjusting method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1896807A (en) * 2005-07-11 2007-01-17 佛山市顺德区顺达电脑厂有限公司 Method for adjusting negative-light resource brightness automatically
CN101079238A (en) * 2006-05-22 2007-11-28 明基电通股份有限公司 Hand-held electronic device for automatically regulating backlight brightness and backlight brightness regulation method
CN101945179A (en) * 2010-09-26 2011-01-12 中兴通讯股份有限公司 Method and device for automatically adjusting backlight brightness of mobile terminal and mobile terminal
CN102457599A (en) * 2010-10-29 2012-05-16 上海三旗通信科技股份有限公司 Method for detecting light of current environment by mobile phone camera
CN103377621A (en) * 2012-04-18 2013-10-30 浩鑫股份有限公司 Backlight adjusting system and backlight adjusting method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106851097A (en) * 2017-01-20 2017-06-13 深圳铂睿智恒科技有限公司 A kind of terminal device and its depth of field control method
CN106851097B (en) * 2017-01-20 2019-07-16 深圳铂睿智恒科技有限公司 A kind of terminal device and its depth of field control method
CN107786743A (en) * 2017-10-27 2018-03-09 北京小米移动软件有限公司 Prevent the method and device of terminal false touch
US10750007B2 (en) 2017-10-27 2020-08-18 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for preventing terminal from being inadvertently touched
CN110855827A (en) * 2019-09-27 2020-02-28 珠海格力电器股份有限公司 Brightness adjusting method and device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN106104663B (en) The method of the display brightness of the display of electronic equipment and setting electronic equipment
US7777787B2 (en) Preventing flicker effects in video electronic devices
EP3301664A2 (en) Method and apparatus for adjusting screen brightness
CN104023145B (en) A kind of method and device automatically opening the automatic backlight adjustment of mobile terminal
CN105050246B (en) A kind of method and mobile terminal of mobile terminal regulation lamplight brightness
CN103533252A (en) Method and device for automatically switching day and night modes
CN103051804B (en) Intelligent photo taking method and system of mobile terminal
CN103957363A (en) Flash camera shooting method and camera shooting device
CN103929598A (en) Automatic exposure method and camera module detection method
CN104168371A (en) Method for adjusting backlight brightness of mobile terminal and mobile terminal
CN109151426A (en) A kind of white balance adjustment method, device, camera and medium
WO2013189062A1 (en) Color control method and communication apparatus
CN108111843B (en) Test method and test system for mobile optical filter camera module
CN102014207A (en) Communication terminal and visual telephone processing method
CN107295732A (en) One kind sensing lamp brightness adjusting method and device
CN102693709B (en) Method for regulating brightness of display device
CN102883100A (en) Device and method for automatically adjusting pickup parameter
CN103488026A (en) Method and system for regulating luminance of camera fill flash
CN111179878A (en) Brightness control method for display device of washing equipment
CN105895057B (en) A kind of backlight adjusting method, device and terminal device
CN104601808A (en) Method for automatically adjusting screen luminance by detecting environment light through mobile phone camera
CN101582992A (en) Digital photographic device and method for eliminating flicker
CN107134273A (en) Luminance compensation method, device and terminal
CN100485772C (en) Display device brightness control system and method
US20190349535A1 (en) Intelligent photographing method and apparatus, and intelligent terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150506