CN106128414B - Control method, control device and electronic device - Google Patents

Control method, control device and electronic device Download PDF

Info

Publication number
CN106128414B
CN106128414B CN201610506513.9A CN201610506513A CN106128414B CN 106128414 B CN106128414 B CN 106128414B CN 201610506513 A CN201610506513 A CN 201610506513A CN 106128414 B CN106128414 B CN 106128414B
Authority
CN
China
Prior art keywords
brightness
environment image
average brightness
electronic device
camera module
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
CN201610506513.9A
Other languages
Chinese (zh)
Other versions
CN106128414A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610506513.9A priority Critical patent/CN106128414B/en
Publication of CN106128414A publication Critical patent/CN106128414A/en
Application granted granted Critical
Publication of CN106128414B publication Critical patent/CN106128414B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a kind of control methods, for controlling the brightness of display screen of electronic device, electronic device includes first camera module and second camera module not ipsilateral positioned at electronic device, control method includes: that the first camera module of control is taken pictures to obtain first environment image, and the second camera module of control is taken pictures to obtain second environment image;The first average brightness of environment is calculated according to first environment image, and the second average brightness of environment is calculated according to second environment image;Compare the first average brightness and the second average brightness;Brightness of display screen is adjusted according to the greater in the first average brightness and the second average brightness.In this way, obtaining ambient image from different angles and multiple ambient brightness being calculated, by comparing more reasonable, the objective ambient brightness of acquisition, and the brightness of display screen that ambient brightness is adjusted accordingly facilitates eyeshield because being consistent with ambient brightness.The invention also discloses a kind of control device and electronic devices.

Description

Control method, control device and electronic device
Technical field
The present invention relates to shooting technology, in particular to a kind of control method, control device and electronic device.
Background technique
The electronic devices such as existing mobile phone are general only to sense ambient brightness from one direction, such as from one where display screen Side, further according to ambient brightness automatic adjustment screen intensity to protect eyes.However, being influenced to easily lead to environment by mobile phone orientation Brightness measurement is inaccurate, for example, light generally irradiates from up to down, therefore, the ambient brightness measured when mobile phone flat pendulum is upward is most Greatly, and flat pendulum it is downward when while lying down using mobile phone (such as user) ambient brightness screen intensity that is minimum, therefore adjusting for measuring Be not suitable for current environment to use, eyes may be damaged.
Summary of the invention
Embodiments of the present invention aim to solve at least one of the technical problems existing in the prior art.For this purpose, of the invention Embodiment need to provide a kind of control method, control device and electronic device.
The present invention provides a kind of control methods, for controlling the brightness of display screen of electronic device, the electronic device packet The first camera module and the second camera module are included, first camera module and second camera module are located at electronics dress That sets is not ipsilateral;The control method includes:
Rate-determining steps control first camera module and take pictures to obtain first environment image, and control described second is taken the photograph As mould group is taken pictures to obtain second environment image;
Step is calculated, the first average brightness of environment is calculated according to the first environment image, and according to second ring Second average brightness of border image calculating environment;
Compare first average brightness and second average brightness;
The brightness of display screen is adjusted according to the greater in first average brightness and second average brightness.
The control method of embodiment of the present invention obtains ambient image from different angles and that multiple environment are calculated is bright Degree, by comparing obtaining more reasonable, objective ambient brightness, and the brightness of display screen adjusted according to the ambient brightness because with environment Brightness is consistent and facilitates eyeshield.Further, since the first camera module and the second camera module are all camera module, first is average The acquisition process and calculation method of brightness and the second average brightness are also similar, therefore the first average brightness and the second average brightness have Preferable comparativity.It can solve the problems, such as that the prior art is certain.
In some embodiments, the control method includes:
It is inputted according to user and triggers the rate-determining steps.
In some embodiments, the first camera module setting is identical as the display screen on said electronic device Side, second camera module setting side opposite with the display screen on said electronic device.
In some embodiments, the electronic device further includes aspect sensor, and the aspect sensor is for sensing The direction of the display screen;The control method includes:
Calculate the display screen towards amplitude of variation;And
Judge described whether be greater than predetermined amplitude towards amplitude of variation and trigger the rate-determining steps when being judged as YES.
In some embodiments, the first environment image and second environment image are rgb format;The brightness calculation Step includes:
HSL format is converted by the first environment image and the second environment image;
The average value of the brightness value of each pixel in the first environment image is calculated to obtain first average brightness, And the average value of the brightness value of each pixel in the second environment image is calculated to obtain second average brightness.
In some embodiments, the first environment image includes continuous multiple frames, and the second environment image includes connecting Continuous multiframe, the intensity calculating step include:
The first average brightness value of first environment image described in every frame is calculated, and calculates second environment image described in every frame Second average brightness value;And
Calculate the average value of first average brightness value and as first average brightness, and to calculate described second flat The average value of equal brightness value and as second average brightness.
The present invention also provides a kind of control devices, for controlling the brightness of display screen of electronic device, the electronic device Including the first camera module and the second camera module, first camera module and second camera module are located at the electronics Device it is not ipsilateral;The control device includes:
Control module is taken pictures for controlling first camera module to obtain first environment image, and control described the Two camera modules are taken pictures to obtain second environment image;
Computing module, for calculating the first average brightness of environment according to the first environment image, and according to described the Second average brightness of two ambient images calculating environment;
Comparison module is used for first average brightness and second average brightness;And
Adjustment module, for according to the biggish adjusting in first average brightness and second average brightness Brightness of display screen.
In some embodiments, the control device includes:
Input module triggers the control module for inputting according to user.
In some embodiments, the first camera module setting is identical as the display screen on said electronic device Side, second camera module setting side opposite with the display screen on said electronic device.
In some embodiments, the electronic device further includes aspect sensor, and the aspect sensor is for sensing The direction of the display screen;The control device includes:
Magnitude computation module, for calculate the display screen towards amplitude of variation;
Amplitude judgment module, for judging described whether be greater than predetermined amplitude and the touching when being judged as YES towards amplitude of variation Send out control module described.
In some embodiments, the first environment image and second environment image are rgb format;The brightness calculation Module includes:
Submodule is converted, for converting HSL format for the first environment image and the second environment image;
First computational submodule, for calculating the average value of the brightness value of each pixel in the first environment image to obtain Into first average brightness, and the calculating second environment image, the average value of the brightness value of each pixel is described to obtain Second average brightness.
In some embodiments, the first environment image includes continuous multiple frames, and the second environment image includes connecting Continuous multiframe, the brightness calculation module include:
Second computational submodule, for calculating the first average brightness value of first environment image described in every frame, and based on Calculate the second average brightness value of second environment image described in every frame;And
Third computational submodule, for calculating the average value of first average brightness value and being averaged as described first bright Degree, and average value for calculating second average brightness value and as second average brightness.
In some embodiments, the electronic device includes mobile phone or tablet computer.
The present invention also provides a kind of electronic devices comprising the first camera module, the second camera module and above-mentioned embodiment party Control device described in formula.
The additional aspect and advantage of embodiments of the present invention will be set forth in part in the description, partially will be from following Description in become obvious, or the practice of embodiment through the invention is recognized.
Detailed description of the invention
The above-mentioned and/or additional aspect and advantage of embodiments of the present invention are from combination following accompanying drawings to embodiment It will be apparent and be readily appreciated that in description, in which:
Fig. 1 is the flow diagram of the control method of certain embodiments of the present invention.
Fig. 2 is the electronic device of certain embodiments of the present invention and the functional block diagram of control device.
Fig. 3 is the schematic illustration of the control method of certain embodiments of the present invention.
Fig. 4 is the flow diagram of the control method of certain embodiments of the present invention.
Fig. 5 is the electronic device of certain embodiments of the present invention and the functional block diagram of control device.
Fig. 6 is the flow diagram of the control method of certain embodiments of the present invention.
Fig. 7 is the electronic device of certain embodiments of the present invention and the functional block diagram of control device.
Fig. 8 is the schematic illustration of the control method of certain embodiments of the present invention.
Fig. 9 is the flow diagram of the control method of certain embodiments of the present invention.
Figure 10 is the electronic device of certain embodiments of the present invention and the functional block diagram of control device.
Figure 11 is the flow diagram of the control method of certain embodiments of the present invention.
Figure 12 is the electronic device of certain embodiments of the present invention and the functional block diagram of control device.
Figure 13 is the schematic illustration of the control method of certain embodiments of the present invention.
Figure 14 is the schematic diagram in kind of the electronic device of certain embodiments of the present invention.
Specific embodiment
Embodiments of the present invention are described below in detail, the example of embodiment is shown in the accompanying drawings, wherein identical or class As label indicate same or similar element or element with the same or similar functions from beginning to end.Below with reference to attached The embodiment of figure description is exemplary, and can only be used to explain embodiments of the present invention, and should not be understood as to the present invention Embodiment limitation.
Fig. 1-3 is please referred to, the control method of embodiment of the present invention can be used for controlling the brightness of display screen of electronic device, Electronic device may include the first camera module and the second camera module, and the first camera module and the second camera module are located at electronics dress That sets is not ipsilateral;Control method can include:
S01, the first camera module 170 of control is taken pictures to obtain first environment image, and the second camera module 180 of control is clapped According to obtain second environment image;
S02 calculates the first average brightness of environment according to first environment image, and calculates environment according to second environment image The second average brightness;
S03 compares the first average brightness and the second average brightness;And
S04 adjusts 130 brightness of display screen according to the greater in the first average brightness and the second average brightness.
Referring to Fig. 2, the control method of embodiment of the present invention can be real by the control device 110 of embodiment of the present invention It is existing.Control device 110 may include control module 111, computing module 112, comparison module 113, adjustment module 114, can successively divide It not can be used for realizing S01, S02, S03, S04 in control method.
The control method of embodiment of the present invention can be known as to intelligent regulatory function.Figure 14 is please referred to, the present invention is real The control device 110 for applying mode can should can be used for the electronic device 100 of embodiment of the present invention.In some embodiments, electric Sub-device 100 may include mobile phone or tablet computer.Electronic device 100 may include light sensor 150, display screen 130, first take the photograph As mould group 170 and the second camera module 180.
The electronic devices such as existing mobile phone 100 are general only to sense ambient brightness from one direction, such as where display screen 130 Side be arranged light sensor 150, ambient brightness is sensed, further according to ambient brightness automatic adjustment screen intensity to protect Eyeshield eyeball.However, it is inaccurate to be influenced to easily lead to ambient brightness measurement by mobile phone orientation, for example, light generally from up to down according to It penetrates, therefore, the ambient brightness that measures when mobile phone flat pendulum is upward is maximum, and when flat pendulum is downward (such as user lies down using mobile phone When) ambient brightness that measures is minimum, therefore the screen intensity adjusted is not suitable for current environment and uses, and may damage eyes.
In the control method of embodiment of the present invention, electronic device 100 has the first camera module 170 simultaneously and second takes the photograph As mould group 180, and they are located at the not ipsilateral of electronic device 100, such as the first camera module 170 is located at positive (display screen 130 The one side at place), and the second camera module 180 is located at the back side or side.It is clapped by the two camera modules of electronic device 100 It takes the photograph to obtain ambient image, i.e. first environment image and second environment image respectively, then it is calculated to obtain first respectively Average brightness and the second average brightness.Since the second camera module 180 and the first camera module 170 are located at not ipsilateral, second is taken the photograph It shines as the corresponding average brightness of mould group 180 and the corresponding ambient brightness of the first camera module 170 respectively represent different directions Light intensity.
Then ambient brightness and average brightness are compared, and select that wherein brighter value as foundation to adjust 130 brightness of display screen.Such as using the value as 130 brightness of display screen or by the value plus or minus a predetermined luminance difference, Or multiplied by a pre-determined factor as 130 brightness of display screen.
It is appreciated that using to the brightness value of light sensing as adjusting 130 brightness of display screen according to more reasonable.Because of people The size of the pupil of eye is the overall brightness in the visual field according to people rather than the shadow region of backlight.And the brightness in the visual field compared with Gao Shi, the myosis of people, if will lead at this time using the brightness value that backlight senses as the foundation for adjusting 130 brightness of display screen For the pupil reduced, 130 too dark brightness of display screen, to keep user experience bad.
The control method of embodiment of the present invention obtains ambient image from different angles and that multiple environment are calculated is bright Degree, by comparing obtaining more reasonable, objective ambient brightness, and 130 brightness of display screen adjusted according to the ambient brightness because with Ambient brightness is consistent and facilitates eyeshield.Further, since the first camera module 170 and the second camera module 180 are all camera shooting mould Group, the acquisition process and calculation method of the first average brightness and the second average brightness are also similar, therefore the first average brightness and Two average brightness have preferable comparativity.
Referring to Fig. 3, and in embodiment of the present invention, the first camera module 170 and the second camera module 180 are respectively never With angle acquisition luminance information and respectively obtain ambient brightness and average brightness the two amounts.Which value of the two amounts is higher, Which just can more reflect that the true brightness of environment is horizontal, thus can as the foundation for adjusting 130 brightness of display screen, thus Promote user experience.Such as in Fig. 3, the second camera module 180 is to light side, the backlight side of the first camera module 170, therefore with The average brightness that second camera module 180 obtains is the foundation for adjusting 130 brightness of display screen.
In some embodiments, the setting of the first camera module 170 is identical with display screen 130 on electronic device 100 Side opposite with display screen 130 on electronic device 100 is arranged in side, the second camera module 180.
In this way, can just make the second camera module 180 to light in the first 170 backlight of camera module;Or it is taken the photograph second When as 180 backlight of mould group, 150 first camera module 170 of light sensor is to light, from without light sensor 150 the One camera module 170 and the second camera module 180 simultaneously backlight the case where, keep sensing result more objective.Under normal circumstances, hand Front camera is located at side identical with display screen 130, i.e. the first camera module 170 on machine or tablet computer, and be located at Second camera module 180 of the opposite side of display screen 130 is rear camera.
Fig. 4-5 is please referred to, in some embodiments, control method can comprise the following steps that
S05 inputs triggering S01 according to user.
S05 can realize that is, input module 1151 can be used for defeated according to user by the input module 1151 of certain embodiments Enter trigger control module 111.
For example, user is not in due course in the brightness for feeling display screen 130, it can click and represent intelligence to adjust display screen 130 bright The virtual key of degree, so that S01 is triggered, to carry out each step of the control method of embodiment of the present invention, thus realization pair The intelligence of 130 brightness of display screen is adjusted.In this way, can preferably meet the use demand of user.
Fig. 6-8 is please referred to, in some embodiments, electronic device 100 may also include aspect sensor, aspect sensor It can be used for sensing the direction of display screen 130;Control method can include:
S06, calculate display screen 130 towards amplitude of variation;
S07 judges whether to be greater than predetermined amplitude towards amplitude of variation and triggers S01 when being judged as YES.
In some embodiments, control device 110 may include magnitude computation module 116 and amplitude judgment module 117, divide It not can be used for realizing S06 and S07.That is, magnitude computation module 116 can be used for calculating the direction variation width of display screen 130 Degree, amplitude judgment module 117 can be used for judging whether being greater than towards amplitude of variation predetermined amplitude and trigger control when being judged as YES Molding block 111.
Fig. 8 is please referred to, the light biography that can be used for sensing ambient brightness is installed extensively in the electronic devices such as mobile phone 100 Sensor 150, and it is generally seated in the side where display screen 130.Display screen 130 is according to light sensor 150 in general Ambient brightness automatic adjustment 130 brightness of display screen sensed.
Cause light sensor 150 towards changing when the modes of emplacement of electronic device 100 changes, such as electronics Device 100 by lay flat switch to place vertically and (be picked up from desktop) or light sensor 150 with electronic device 100 overturning °, by facing forward Switch to backwards.When the light sensor 150 of electronic device 100 is towards when changing, light situation is it can also happen that become Change.For example, script light sensor 150 is towards light source, after electronic device 100 is overturn, 150 backlight of light sensor is led Cause cannot detect true, objective ambient brightness.
Therefore, in the display screen 130 of electronic device 100 towards when changing, i.e. the direction of light sensor 150 occurs When variation, it can trigger each step of the control method of embodiment of the present invention, that is, trigger first and second camera module 180 and take pictures And it selects higher as the foundation for adjusting 130 brightness of display screen in ambient brightness and average brightness.In this way, can with a definite target in view Two camera modules are triggered, to keep control more intelligent and energy saving.
Optimally, it can determine whether size of the light sensor 150 towards amplitude of variation.Gyroscope in electronic device 100 or The sensing devices such as gravity sensor can realize the sensing to 100 rotational steps of electronic device, convert sensing result to and light Towards the angle change value of normal in the same direction, which can be used as towards amplitude of variation sensor 150.In this embodiment party In formula, for example, settable when angle change value is greater than 45 °, i.e. trigger control method.
In some embodiments, electronic device 100 may include the light sensor 150 that can be used for obtaining ambient brightness, Electronic device 100 may also include aspect sensor, and aspect sensor can be used for the direction of light sensing sensor 150;Controlling party Method can comprise the following steps that
Judge whether the direction of light sensor 150 is downward;And
Light sensor 150 towards it is downward when trigger S01.
Figure 11 is please referred to, under normal circumstances, the top (such as outdoor sun, indoor lamp) positioned at space of light source, If therefore light sensor 150 is towards downward, the probability of backlight is larger, and the ambient brightness detected in the case of backlight is inadequate Objective, therefore trigger to carry out the intelligent regulatory function of the control method of embodiment of the present invention, by display screen 130 Suitable value is transferred in brightness.
Figure 13 is please referred to, general light sensor 150 is located at the same side with display screen 130, if therefore light level Device 150 and display screen 130 are downward, it may be possible to which user watches Mobile phone screen in the state of reclining, lying low or looking up at, at this time also preferably The intelligent regulatory function of the control method of embodiment of the present invention is triggered to protect eyes of user.Optimally, it can detect light to pass The direction and the angle of vertical line vector vertically downward of sensor 150 all think direction when angle is less than certain value (such as 45 °) It is downward, such as the angle in Figure 13 is 20 °, less than 45 °, is considered being oriented downwards.In this way, more meeting user uses electronics Actual conditions when device 100 promote user experience.
In some embodiments, electronic device 100 may include the light sensor 150 that can be used for obtaining ambient brightness, Electronic device 100 may also include aspect sensor and global positioning system, and aspect sensor can be used for light sensing sensor 150 Direction;Control method can comprise the following steps that
Judge whether the direction of light sensor 150 is downward;
Judged whether it is in the case where the direction of light sensor 150 is downward according to the system time of electronic device 100 Daytime;
Fine day is judged whether it is according to local weather information for daytime;
Then judged whether outdoors according to global positioning system for fine day;
S01 is triggered in the case where outdoors.
In the present embodiment, the triggering of S01 needs more conditions.If the direction of light sensor 150 is downwards, also not It is enough to illustrate 150 backlight of light sensor.The condition of 150 backlight of light sensor may also include that daytime, fine day, and be open air, These three conditions are indispensable, if such as daytime, fine day just indoors will not backlight;If fine day and outdoors, but time It is also just not necessarily backlight at night.Therefore these conditions of comprehensive detection, to obtain more accurately judging, to make brightness tune Section is more intelligent, more energy efficient, is conducive to promote user experience.
Wherein, daytime can determine whether according to system time, may also be combined with system data and longitude and latitude etc., such as the Northern Hemisphere Temperate zone somewhere, summer with regard to long, may still belong to daytime at 7 points in evening, and to winter, it just can be considered at 5 points in afternoon into evening It is upper.It can judge whether weather is fine day according to the weather information of networking.It can be judged whether according to global positioning system (GPS) Open air, such as street, square etc. belong to outdoor, and office building, unit building etc. belong to interior, so as to carry out rough judgement.
In some embodiments, electronic device 100 may include the light sensor 150 that can be used for obtaining ambient brightness, Electronic device 100 may also include aspect sensor and global positioning system, and aspect sensor can be used for light sensing sensor 150 Direction;Control method can comprise the following steps that
Judge whether the direction of light sensor 150 is downward;
Judged whether it is in the case where the direction of light sensor 150 is downward according to the system time of electronic device 100 At night;
Then judged whether indoors according to global positioning system for evening;
S01 is triggered in for indoor situation.
In present embodiment, under the premise of light sensor 150 is directed downwardly, the condition of judgement is also needed can include: at night, It is indoor.It is appreciated that at night and indoors, generally have lamp as light source, and if light sensor 150 is downward, easy backlight.Therefore The two conditions of comprehensive detection, to keep brightness regulation more intelligent, more energy efficient, are conducive to be promoted to obtain more accurately judging User experience.
In some embodiments, electronic device 100 may include the light sensor 150 that can be used for obtaining ambient brightness, Control method can comprise the following steps that
Calculate the fall of ambient brightness;And
Judge whether fall is greater than predetermined amplitude;
S01 is triggered in the case where fall is greater than predetermined amplitude.
That is, if when the unexpected sharp fall of the ambient brightness that detects of light sensor 150, it may be possible to due to The placement of electronic device 100 is changed, and backlight etc. is resulted in, and triggers intelligent regulative mode at this time.In this way, adjusting can be promoted Intelligence degree, promoted user experience.
Fig. 9-10 is please referred to, in some embodiments, ambient image is rgb format;S02 can include:
First environment image and second environment image are converted HSL format by S0201;And
S0202 calculates the average value of the brightness value of each pixel in first environment image to obtain the first average brightness, and The average value of the brightness value of each pixel in second environment image is calculated to obtain the second average brightness.
S0201, S0202 can calculate son by the conversion submodule 1121 of the control device 110 of certain embodiments and first Module 1122 is realized.That is, conversion submodule 1121 can be used for converting ambient image to HSL format.First calculates son Module 1122 can be used for calculating the average value of the brightness value of each pixel in first environment image to obtain the first average brightness, and It can be used for calculating the average value of the brightness value of each pixel in second environment image to obtain the second average brightness.
HSL is a kind of color standard of industry, is by logical to three form and aspect (H), saturation degree (S), lightness (L) colors The variation in road and their mutual superpositions are to obtain miscellaneous color.The unprocessed form of general environment image is GRB format is translated into HSL format, to conveniently obtain the brightness value of each pixel, i.e. lightness (L).And then facilitate calculating the One average brightness and the second average brightness.
Figure 11-12 is please referred to, in some embodiments, first environment image may include continuous multiple frames, second environment figure As may include continuous multiple frames, intensity calculating step can include:
S0203, calculates the first average brightness value of every frame first environment image, and calculates the of every frame second environment image Two average brightness values;
S0204 calculates the average value of the first average brightness value and as the first average brightness, and the second average brightness of calculating The average value of value and as the second average brightness.
S0201, S0202 can be by the second computational submodules 1123 and third meter of the control device 110 of certain embodiments Operator module 1124 is realized.That is, the second computational submodule 1123 can be used for calculating the first of every frame first environment image Average brightness value, and can be used for calculating the second average brightness value of every frame second environment image.Third computational submodule 1124 can For calculating the average value of the first average brightness value and as the first average brightness, and it can be used for calculating the second average brightness value Average value and as the second average brightness.
Due to shoot single image, it is possible to because fortuitous event causes the brightness of image untrue objective, for example, finger or Other articles have accidentally blocked camera module, or since shake leads to image fault etc..Therefore can shoot multi-frame images, ask The average value of the average brightness value of every frame image is as average brightness.Further, it can be screened in multiple image, such as The too high or too low image of Trimmed mean brightness value (is likely to be caused by above-mentioned fortuitous event), then is calculated and put down with remaining image Equal brightness.
Fig. 2 is please referred to, the present invention also provides a kind of electronic devices 100, it may include the first camera module 170, second Camera module 180 and the control device of above embodiment 110.
Other parts undeployed, see pair of embodiment of above in the electronic device 100 of embodiment of the present invention The corresponding part of burnt control device 110 and imaging control apparatus 110, is no longer developed in details herein.
In the description of embodiments of the present invention, it is to be understood that term " center ", " longitudinal direction ", " transverse direction ", " length Degree ", " width ", " thickness ", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", The orientation or positional relationship of the instructions such as "outside", " clockwise ", " counterclockwise " is to be based on the orientation or positional relationship shown in the drawings, only It is embodiments of the present invention and simplified description for ease of description, rather than the device or element of indication or suggestion meaning are necessary It with specific orientation, is constructed and operated in a specific orientation, therefore should not be understood as the limitation to embodiments of the present invention. In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance or imply Indicate the quantity of indicated technical characteristic." first " is defined as a result, the feature of " second " can be expressed or impliedly wrap Include one or more feature.In the description of embodiments of the present invention, the meaning of " plurality " is two or two More than, unless otherwise specifically defined.
In the description of embodiments of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one Connect to body;It can be mechanical connection, be also possible to be electrically connected or can mutually communicate;It can be directly connected, can also lead to It crosses intermediary to be indirectly connected, can be the connection inside two elements or the interaction relationship of two elements.For ability For the those of ordinary skill in domain, can understand as the case may be above-mentioned term in embodiments of the present invention specifically contain Justice.
In embodiments of the present invention unless specifically defined or limited otherwise, fisrt feature second feature it "upper" or "lower" may include that the first and second features directly contact, may include the first and second features be not directly to connect yet It touches but by the other characterisation contact between them.Moreover, fisrt feature second feature " on ", " top " and " on Face " includes fisrt feature right above second feature and oblique upper, or to be merely representative of first feature horizontal height special higher than second Sign.Fisrt feature under the second feature " below ", " below " and " below " include fisrt feature right above second feature and tiltedly on Side, or first feature horizontal height is merely representative of less than second feature.
Following disclosure provides many different embodiments or example is used to realize embodiments of the present invention not Same structure.In order to simplify the disclosure of embodiments of the present invention, hereinafter the component of specific examples and setting are described.When So, they are merely examples, and is not intended to limit the present invention.In addition, embodiments of the present invention can be in different examples Repeat reference numerals and/or reference letter in son, this repetition are for purposes of simplicity and clarity, itself not indicate to be begged for By the relationship between various embodiments and/or setting.In addition, the various specific techniques that embodiments of the present invention provide With the example of material, but those of ordinary skill in the art may be aware that the application of other techniques and/or other materials make With.
In the description of this specification, reference term " embodiment ", " some embodiments ", " schematically implementation The description of mode ", " example ", specific examples or " some examples " etc. means the tool described in conjunction with the embodiment or example Body characteristics, structure, material or feature are contained at least one embodiment or example of the invention.In the present specification, Schematic expression of the above terms are not necessarily referring to identical embodiment or example.Moreover, the specific features of description, knot Structure, material or feature can be combined in any suitable manner in any one or more embodiments or example.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of embodiments of the present invention can be with hardware, software, firmware or their combination come real It is existing.In the above-described embodiment, multiple steps or method can be with storages in memory and by suitable instruction execution system The software or firmware of execution is realized.For example, if realized with hardware, in another embodiment, ability can be used Any one of following technology or their combination well known to domain is realized: being had for realizing logic function to data-signal The discrete logic of logic gates, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in various embodiments of the present invention can integrate in a processor It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (14)

1. a kind of control method, for controlling the brightness of display screen of electronic device, which is characterized in that the electronic device includes the One camera module and the second camera module, first camera module and second camera module are located at the electronic device It is not ipsilateral;The control method includes:
Rate-determining steps control first camera module and take pictures to obtain first environment image, and control the second camera shooting mould Group is taken pictures to obtain second environment image;
Step is calculated, the first average brightness of environment is calculated according to the first environment image, and according to the second environment figure The second average brightness as calculating environment;
Compare first average brightness and second average brightness;
The brightness of display screen is adjusted according to the greater in first average brightness and second average brightness;
The electronic device further includes the light sensor, aspect sensor and global positioning system for obtaining ambient brightness, The aspect sensor is used to sense the direction of the light sensor;The control method comprising steps of
Judge whether the direction of the light sensor is downward;
Judge whether it is late according to the system time of the electronic device in the case where the direction of the light sensor is downward On;
Then judged whether indoors according to the global positioning system for evening;
In for indoor situation, the rate-determining steps are triggered.
2. control method as described in claim 1, which is characterized in that the control method includes:
In for indoor situation, is inputted according to user and trigger the rate-determining steps.
3. control method as described in claim 1, which is characterized in that first camera module is arranged in the electronic device Upper side identical with the display screen, the second camera module setting are opposite with the display screen on said electronic device Side.
4. control method as claimed in claim 3, which is characterized in that the aspect sensor is also used to sense the display screen Direction;The control method includes:
Calculate the display screen towards amplitude of variation;And
Judge described whether be greater than predetermined amplitude towards amplitude of variation and trigger the rate-determining steps when being judged as YES.
5. control method as described in claim 1, which is characterized in that the first environment image and second environment image are Rgb format;The calculating step includes:
HSL format is converted by the first environment image and the second environment image;
The average value of the brightness value of each pixel in the first environment image is calculated to obtain first average brightness, and meter The average value of the brightness value of each pixel in the second environment image is calculated to obtain second average brightness.
6. control method as described in claim 1, which is characterized in that the first environment image includes continuous multiple frames, described Second environment image includes continuous multiple frames, and the calculating step includes:
The first average brightness value of first environment image described in every frame is calculated, and calculates second of second environment image described in every frame Average brightness value;And
Calculate the average value of first average brightness value and as first average brightness, and to calculate described second average bright The average value of angle value and as second average brightness.
7. a kind of control device, for controlling the brightness of display screen of electronic device, which is characterized in that the electronic device includes the One camera module and the second camera module, first camera module and second camera module are located at the electronic device It is not ipsilateral;The control device includes:
Control module is taken pictures for controlling first camera module to obtain first environment image, and control described second is taken the photograph As mould group is taken pictures to obtain second environment image;
Computing module, for the first average brightness according to first environment image calculating environment, and according to second ring Second average brightness of border image calculating environment;
Comparison module is used for first average brightness and second average brightness;And
Adjustment module, for according to the biggish adjusting display in first average brightness and second average brightness Shield brightness;
The electronic device further includes the light sensor, aspect sensor and global positioning system for obtaining ambient brightness, The aspect sensor is used to sense the direction of the light sensor;The control device is used for:
Judge whether the direction of the light sensor is downward;
Judge whether it is late according to the system time of the electronic device in the case where the direction of the light sensor is downward On;
Then judged whether indoors according to the global positioning system for evening;
In for indoor situation, the control module is triggered.
8. control device as claimed in claim 7, which is characterized in that the control device includes:
Input module, for being inputted according to user and triggering the control module in for indoor situation.
9. control device as claimed in claim 7, which is characterized in that first camera module is arranged in the electronic device Upper side identical with the display screen, the second camera module setting are opposite with the display screen on said electronic device Side.
10. control device as claimed in claim 9, which is characterized in that the aspect sensor is also used to sense the display The direction of screen;The control device includes:
Magnitude computation module, for calculate the display screen towards amplitude of variation;
Whether amplitude judgment module is greater than predetermined amplitude towards amplitude of variation for judging described and triggers institute when being judged as YES State control module.
11. control device as claimed in claim 7, which is characterized in that the first environment image and second environment image are Rgb format;The computing module includes:
Submodule is converted, for converting HSL format for the first environment image and the second environment image;
First computational submodule, for calculating the average value of the brightness value of each pixel in the first environment image to obtain The first average brightness is stated, and calculates the average value of the brightness value of each pixel in the second environment image to obtain described second Average brightness.
12. control device as claimed in claim 7, which is characterized in that the first environment image includes continuous multiple frames, described Second environment image includes continuous multiple frames, and the computing module includes:
Second computational submodule, it is every for calculating the first average brightness value of first environment image described in every frame, and for calculating Second average brightness value of second environment image described in frame;And
Third computational submodule, for calculating the average value of first average brightness value and as first average brightness, And average value for calculating second average brightness value and as second average brightness.
13. control device as claimed in claim 7, which is characterized in that the electronic device includes mobile phone or tablet computer.
14. a kind of electronic device, which is characterized in that including the first camera module, the second camera module and such as claim 7-13 Control device described in any one.
CN201610506513.9A 2016-06-28 2016-06-28 Control method, control device and electronic device Expired - Fee Related CN106128414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610506513.9A CN106128414B (en) 2016-06-28 2016-06-28 Control method, control device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610506513.9A CN106128414B (en) 2016-06-28 2016-06-28 Control method, control device and electronic device

Publications (2)

Publication Number Publication Date
CN106128414A CN106128414A (en) 2016-11-16
CN106128414B true CN106128414B (en) 2019-03-05

Family

ID=57467721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610506513.9A Expired - Fee Related CN106128414B (en) 2016-06-28 2016-06-28 Control method, control device and electronic device

Country Status (1)

Country Link
CN (1) CN106128414B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111028675A (en) * 2019-12-24 2020-04-17 维沃移动通信有限公司 Electronic equipment and control method for brightness of display screen of electronic equipment
CN112289279B (en) * 2020-11-05 2022-04-12 Oppo广东移动通信有限公司 Screen brightness adjusting method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327148A (en) * 2013-06-28 2013-09-25 惠州Tcl移动通信有限公司 Screen backlight brightness adjusting implementation method based on mobile terminal and mobile terminal
CN104700816A (en) * 2015-01-08 2015-06-10 小米科技有限责任公司 Method and device for setting screen brightness
CN105425905A (en) * 2015-10-30 2016-03-23 联想(北京)有限公司 Information processing method and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160005362A1 (en) * 2015-09-08 2016-01-07 Mediatek Inc. Determination Of Optical Condition And Adjustment Of Display

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327148A (en) * 2013-06-28 2013-09-25 惠州Tcl移动通信有限公司 Screen backlight brightness adjusting implementation method based on mobile terminal and mobile terminal
CN104700816A (en) * 2015-01-08 2015-06-10 小米科技有限责任公司 Method and device for setting screen brightness
CN105425905A (en) * 2015-10-30 2016-03-23 联想(北京)有限公司 Information processing method and electronic device

Also Published As

Publication number Publication date
CN106128414A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
CN105957499B (en) Control method, control device and electronic device
CN106097953B (en) Control method and control device
CN108152996A (en) Intelligent glasses
CN108021161A (en) Ambient light intensity detection method, device, storage medium and electronic equipment
CN105959490B (en) Control method, control device and electronic device
CN107945766A (en) Display device
CN106203370B (en) A kind of test near and distance system based on computer vision technique
CN109257483B (en) Method for adjusting opening and closing angles of display screens and multi-screen terminal
CN107369404A (en) A kind of automobile display screen display effect regulating system
US20180262667A1 (en) Image capturing device and brightness adjusting method
CN106128414B (en) Control method, control device and electronic device
CN105895057B (en) A kind of backlight adjusting method, device and terminal device
CN106507018B (en) Control method, control device and electronic device
Ma et al. Automatic brightness control of the handheld device display with low illumination
CN105931614A (en) Control method, control device and electronic device
CN107957293A (en) Ambient light intensity detection method, device, storage medium and electronic equipment
CN104869319A (en) Image processing method and image processing device
CN106251827B (en) Control method and control device
CN106201414A (en) Control method, control device and electronic installation
CN107507601A (en) A kind of method and system of the camera supervised interface display effect of adjust automatically
CN105895055B (en) A kind of screen luminance adjustment method and regulating system, display device
CN108513080A (en) A kind of control method and device of light filling
CN109326250A (en) Electronic equipment, display screen adjusting method
CN114023284B (en) Education tablet personal computer system with eye protection display function
CN110556080A (en) Method, device, terminal and storage medium for adjusting backlight

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523859 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190305

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