CN104780320B - Ambient light detection method and electronic device - Google Patents
Ambient light detection method and electronic device Download PDFInfo
- Publication number
- CN104780320B CN104780320B CN201410018285.1A CN201410018285A CN104780320B CN 104780320 B CN104780320 B CN 104780320B CN 201410018285 A CN201410018285 A CN 201410018285A CN 104780320 B CN104780320 B CN 104780320B
- Authority
- CN
- China
- Prior art keywords
- light sensor
- electronic device
- data
- light
- adjusting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 13
- 238000000034 method Methods 0.000 claims abstract description 24
- 238000012935 Averaging Methods 0.000 claims description 14
- 230000000694 effects Effects 0.000 abstract description 8
- 238000005375 photometry Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000011514 reflex Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
- Liquid Crystal Display Device Control (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
- Studio Devices (AREA)
Abstract
The invention discloses an ambient light detection method and electronic equipment, and belongs to the field of photometry. The method is applied to electronic equipment, a first light sensor and a second light sensor are placed in the electronic equipment, and the method comprises the following steps: acquiring first data acquired by a first light sensor and second data acquired by a second light sensor; determining the light state of the current environment of the electronic equipment according to the first data and the second data; and adjusting the image input parameters or the image output parameters of the electronic equipment according to the light state. First light sensor and second light sensor have been placed in the electronic equipment, and include: the device comprises an acquisition module, a determination module and an adjustment module. The invention has simple structure, easy realization, reduced cost, improved shooting quality and display effect, and more flexible and wide application.
Description
Technical Field
The present invention relates to the field of light measurement, and in particular, to an ambient light detection method and an electronic device.
Background
The current camera integrated in handheld terminal such as cell-phone, panel computer often can meet when shooing because lack the accurate judgement to the ambient light, and cause the problem that the photo is too bright or too dark. At present, high-end professional cameras such as digital single lens reflex cameras are equipped with a multi-point light measuring device, and surrounding environment light can be accurately judged through an RGB (three primary colors of color) sensor array, so that the shooting quality of photos is guaranteed.
However, in a high-end professional camera, since a photometric optical path is required to be the same as a shooting optical path, the structure is complicated, the size of the camera is difficult to be reduced, and the camera is expensive and difficult to be widely used.
Disclosure of Invention
In view of the above, the present invention provides an ambient light detection method and an electronic device to reduce the shooting cost and improve the shooting quality. The technical scheme is as follows:
in a first aspect, an ambient light detection method is provided, which is applied to an electronic device, where a first light sensor and a second light sensor are disposed in the electronic device, and the method includes:
acquiring first data acquired by the first light sensor and second data acquired by the second light sensor;
determining the light state of the current environment of the electronic equipment according to the first data and the second data;
and adjusting image input parameters or image output parameters of the electronic equipment according to the light state.
Wherein, the electronic device further includes an image acquisition unit, and then the adjusting the image input parameters of the electronic device according to the light state includes:
and adjusting the shooting parameters of the image acquisition unit according to the light state.
Wherein, the electronic device further includes a display unit, and the adjusting the image output parameter of the electronic device according to the light state includes:
and adjusting the display parameters of the display unit according to the light state.
Wherein the first light sensor and the second light sensor are located on different faces of the electronic device.
The first light sensor and the second light sensor are positioned on two opposite surfaces of the electronic equipment.
Wherein the method further comprises:
and controlling the difference between the moment of adjusting the shooting parameters of the image acquisition unit and the moment of acquiring the first data and the second data not to exceed a set duration.
Wherein, the first data that the said first light sensor of acquisition gathered, and the second data that the second light sensor gathered, include:
in a first appointed time, acquiring data acquired by the first light sensor and data acquired by the second light sensor according to appointed times;
and averaging the acquired data collected by the first light sensor to obtain the first data, and averaging the acquired data collected by the second light sensor to obtain the second data.
In a second aspect, an electronic device is provided, in which a first light sensor and a second light sensor are disposed, and the electronic device includes:
the acquisition module is used for acquiring first data acquired by the first light sensor and second data acquired by the second light sensor;
the determining module is used for determining the light state of the current environment of the electronic equipment according to the first data and the second data;
and the adjusting module is used for adjusting the image input parameters or the image output parameters of the electronic equipment according to the light state.
Wherein, the electronic equipment still includes the image acquisition unit, then the adjustment module includes:
and the input parameter adjusting unit is used for adjusting the shooting parameters of the image acquisition unit according to the light state.
Wherein, the electronic device further comprises a display unit, and then the adjusting module comprises:
and the output parameter adjusting unit is used for adjusting the display parameters of the display unit according to the light state.
Wherein the electronic device further comprises:
and the synchronization module is used for controlling the difference between the moment of adjusting the shooting parameters by the input parameter adjusting unit and the moment of acquiring the first data and the second data by the acquisition module not to exceed a set duration.
Wherein the acquisition module comprises:
the acquisition unit is used for acquiring the data acquired by the first light sensor and the data acquired by the second light sensor according to the appointed times within the appointed first time period;
and the calculating unit is used for averaging the data acquired by the first light sensor acquired by the acquiring unit to obtain the first data, and averaging the data acquired by the second light sensor acquired by the acquiring unit to obtain the second data.
Wherein the first light sensor and the second light sensor are located on different faces of the electronic device.
The first light sensor and the second light sensor are positioned on two opposite surfaces of the electronic equipment.
The electronic equipment is handheld equipment.
The technical scheme provided by the invention has the beneficial effects that: acquiring first data acquired by the first light sensor and second data acquired by the second light sensor; determining the light state of the current environment of the electronic equipment according to the first data and the second data; the image input parameters or the image output parameters of the electronic equipment are adjusted according to the light state, the structure is simple, the realization is easy, the price of the light sensor is low, the cost is reduced, the shooting quality is improved when the image input parameters are adjusted based on the light state of the current environment, the display effect is improved when the image output parameters are adjusted based on the light state of the current environment, and the application is more flexible and wide.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of an ambient light detection method provided in embodiment 1 of the present invention;
fig. 2 is a flowchart of an ambient light detection method provided in embodiment 2 of the present invention;
fig. 3 is a schematic diagram of an electronic device provided in embodiment 2 of the present invention, in which two light sensors are disposed;
fig. 4 is a flowchart of an ambient light detection method provided in embodiment 3 of the present invention;
fig. 5 is a schematic diagram of an electronic device provided in embodiment 3 of the present invention, in which four light sensors are disposed;
fig. 6 is a structural diagram of an electronic device provided in embodiment 4 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Example 1
Referring to fig. 1, the present embodiment provides an ambient light detection method applied to an electronic device, in which a first light sensor and a second light sensor are disposed, the method including:
101: acquiring first data acquired by a first light sensor and second data acquired by a second light sensor;
102: determining the light state of the current environment of the electronic equipment according to the first data and the second data;
103: and adjusting image input parameters or image output parameters of the electronic equipment according to the light state.
In this embodiment, the light sensors can sense ambient light conditions, the number of the light sensors is at least two, the light sensors are located on different surfaces of the electronic device, and at least one light sensor is arranged on the same surface as a camera of the electronic device. More precisely, being located on different faces of the electronic device means that the light ray sensors are located inside the electronic device, respectively detecting light rays coming from different faces of the electronic device. The different faces of the electronic device refer to the outer surface of the electronic device. Preferably on opposite sides of the electronic device. For example, there are two light sensors, one of which is placed on the front side of the electronic device and the other of which is placed on the back side of the electronic device. For another example, there are four light sensors, one of which is placed on the front side of the electronic device, the other is placed on the back side of the electronic device, and two of which are placed on the left and right sides of the electronic device, respectively.
In this embodiment, further, a difference between a height of the first light sensor or the second light sensor and a height of a lens of the electronic device does not exceed a preset threshold.
In this embodiment, the electronic device further includes an image acquisition unit, and the adjusting the image input parameter of the electronic device according to the light state includes:
and adjusting the shooting parameters of the image acquisition unit according to the light state.
In this embodiment, the electronic device further includes a display unit, and the adjusting the image output parameter of the electronic device according to the light state includes:
and adjusting the display parameters of the display unit according to the light state.
In this embodiment, the method further includes:
and controlling the difference between the moment of adjusting the shooting parameters of the image acquisition unit and the moment of acquiring the first data and the second data not to exceed a set duration.
In this embodiment, the acquiring first data collected by the first light sensor and second data collected by the second light sensor includes:
in a first appointed time, acquiring data acquired by the first light sensor and data acquired by the second light sensor according to appointed times;
and averaging the acquired data collected by the first light sensor to obtain the first data, and averaging the acquired data collected by the second light sensor to obtain the second data.
In the method provided by this embodiment, first data acquired by the first light sensor and second data acquired by the second light sensor are acquired; determining the light state of the current environment of the electronic equipment according to the first data and the second data; the image input parameters or the image output parameters of the electronic equipment are adjusted according to the light state, the structure is simple, the realization is easy, the price of the light sensor is low, the cost is reduced, the shooting quality is improved when the image input parameters are adjusted based on the light state of the current environment, the display effect is improved when the image output parameters are adjusted based on the light state of the current environment, and the application is more flexible and wide.
Example 2
Referring to fig. 2, the present embodiment provides an ambient light detection method, which is applied to an electronic device, where a first light sensor and a second light sensor are placed in the electronic device, the electronic device further includes an image acquisition unit and a display unit, and the method includes:
201: acquiring first data acquired by the first light sensor and second data acquired by the second light sensor;
202: determining the light state of the current environment of the electronic equipment according to the first data and the second data;
203: and adjusting the shooting parameters of the image acquisition unit according to the light state, or adjusting the display parameters of the display unit according to the light state.
In this embodiment, one of the first light sensor and the second light sensor may be disposed on a front side of the electronic device, and the other may be disposed on a back side of the electronic device, where determining the light state of the current environment of the electronic device according to the first data and the second data may include:
comparing the data of the light sensor placed on the front side of the electronic equipment with the data of the light sensor placed on the back side of the electronic equipment, and if the data of the light sensor placed on the front side of the electronic equipment is larger than the data of the light sensor placed on the back side of the electronic equipment and exceeds a preset threshold value, determining that the light state of the current environment is a direct light; and if the data of the light sensor arranged on the front side of the electronic equipment is smaller than the data of the light sensor arranged on the back side of the electronic equipment, determining that the light state of the current environment is backlight. Accordingly, the image input parameter or the image output parameter of the electronic device may be adjusted according to the front light or the back light.
In this embodiment, the electronic device includes but is not limited to: cell phones, tablet computers, and the like.
In this embodiment, the shooting parameters include, but are not limited to: exposure related parameters, a photometric method, white balance setting, and the like. Under different light states, the numerical values corresponding to the shooting parameters are different, so that the shooting parameters can be set according to the light state of the current environment, the shooting parameters are suitable for the current scene, and the shooting quality is ensured. Additionally, the display parameters include, but are not limited to: display brightness, etc. Under different light states, the display parameters are different, so that the display parameters can be set according to the light state of the current environment, the display parameters are suitable for the current scene, and the display effect is ensured. For example, if the light intensity of the current environment is weak, the display parameters may be adjusted to be weak, and if the light intensity of the current environment is strong, the display parameters may be adjusted to be bright.
In this embodiment, the height of the light sensor disposed in the electronic device may be any height, and preferably, the difference between the height of the light sensor and the height of the lens of the electronic device does not exceed a preset threshold, in this case, the light sensor and the lens of the electronic device may be considered to be at the same height, so that the surrounding light condition may be more accurately distinguished. The preset threshold may be set according to needs, and this embodiment is not particularly limited to this.
Referring to fig. 3, a schematic diagram of two light sensors disposed in an electronic device is shown. One Light Sensor (LS) is on the front side of the electronic device as shown in the left drawing, and the other Light Sensor (LS) is on the back side of the electronic device as shown in the right drawing, and the heights of the two Light sensors are the same as the height of the lens.
In this embodiment, the number of the light sensors may be at least four, and one of the light sensors is disposed on the front side of the electronic device, another one of the light sensors is disposed on the back side of the electronic device, and the other two of the light sensors are disposed on the left side and the right side of the electronic device respectively. Through setting up four at least light sensor, can guarantee to have more accurate judgement to the light condition in the space of 360 degrees to can improve and shoot the quality.
In this embodiment, further, the method further includes:
and controlling the difference between the moment of adjusting the shooting parameters of the image acquisition unit and the moment of acquiring the first data and the second data not to exceed a set duration. In particular, the control may be implemented using a synchronous clock control signal, which will not be described in greater detail herein.
In this embodiment, the acquiring first data collected by the first light sensor and second data collected by the second light sensor may include:
in a first appointed time, acquiring data acquired by the first light sensor and data acquired by the second light sensor according to appointed times;
and averaging the acquired data collected by the first light sensor to obtain the first data, and averaging the acquired data collected by the second light sensor to obtain the second data.
In the method provided by this embodiment, first data acquired by the first light sensor and second data acquired by the second light sensor are acquired; determining the light state of the current environment of the electronic equipment according to the first data and the second data; the image input parameters or the image output parameters of the electronic equipment are adjusted according to the light state, the structure is simple, the realization is easy, the price of the light sensor is low, the cost is reduced, the shooting quality is improved when the image input parameters are adjusted based on the light state of the current environment, the display effect is improved when the image output parameters are adjusted based on the light state of the current environment, and the application is more flexible and wide.
Example 3
Referring to fig. 4, the present embodiment provides an ambient light detection method, which is applied to an electronic device, where a first light sensor and a second light sensor are disposed in the electronic device, the electronic device further includes an image capturing unit, and the method includes:
401: acquiring first data acquired by the first light sensor and second data acquired by the second light sensor;
402: determining the light state of the current environment of the electronic equipment according to the first data and the second data;
403: and adjusting the shooting parameters of the image acquisition unit according to the light state, and controlling the difference between the time for adjusting the shooting parameters and the time for acquiring the first data and the second data not to exceed a set time length.
Specifically, the shooting parameters of the image acquisition unit are adjusted according to the light state, whether the current shooting parameters are suitable for the determined light state or not can be judged, and if not, the current shooting parameters are adjusted. The determination of whether the current shooting parameter is suitable for the light state may be implemented in various ways, such as determining whether the average brightness of the face reaches a predetermined value, and the like, and if so, the face is considered to be suitable for the determined scene, otherwise, the face is not suitable for the determined scene, which is not specifically limited in this embodiment.
In this embodiment, the electronic device includes but is not limited to: cell phones, tablet computers, and the like.
In this embodiment, the shooting parameters include, but are not limited to: exposure related parameters, a photometric method, white balance setting, and the like. Under different light states, the numerical values corresponding to the shooting parameters are different, so that the shooting parameters can be set according to the light state of the current environment, the shooting parameters are suitable for the current scene, and the shooting quality is ensured. Additionally, the display parameters include, but are not limited to: display brightness, etc. Under different light states, the display parameters are different, so that the display parameters can be set according to the light state of the current environment, the display parameters are suitable for the current scene, and the display effect is ensured. For example, if the light intensity of the current environment is weak, the display parameters may be adjusted to be weaker, and if the light intensity of the current environment is strong, the display parameters may be adjusted to be brighter.
In this embodiment, one of the first light sensor and the second light sensor may be disposed on a front side of the electronic device, and the other may be disposed on a back side of the electronic device, where determining the light state of the current environment of the electronic device according to the first data and the second data may include:
comparing the data of the light sensor placed on the front side of the electronic equipment with the data of the light sensor placed on the back side of the electronic equipment, and if the data of the light sensor placed on the front side of the electronic equipment is larger than the data of the light sensor placed on the back side of the electronic equipment and exceeds a preset threshold value, determining that the light state of the current environment is a direct light; and if the data of the light sensor arranged on the front side of the electronic equipment is smaller than the data of the light sensor arranged on the back side of the electronic equipment, determining that the light state of the current environment is backlight. Accordingly, the image input parameter or the image output parameter of the electronic device may be adjusted according to the front light or the back light.
In this embodiment, the number of the light sensors may be at least four, and one of the light sensors is disposed on the front side of the electronic device, another one of the light sensors is disposed on the back side of the electronic device, and the other two of the light sensors are disposed on the left side and the right side of the electronic device respectively. Through setting up four at least light sensor, can guarantee to have more accurate judgement to the light condition in the space of 360 degrees to improve and shoot the quality.
In this embodiment, the height of the light sensor disposed in the electronic device may be any height, and preferably, the difference between the height of the light sensor and the height of the lens of the electronic device does not exceed a preset threshold, in this case, the light sensor and the lens of the electronic device may be considered to be at the same height, so that the surrounding light condition may be more accurately distinguished. The preset threshold may be set according to needs, and this embodiment is not particularly limited to this.
Referring to fig. 5, a schematic diagram of four light sensors disposed in an electronic device is shown. One of the light sensors is arranged on the front side of the electronic device, as shown in the left figure, the other is arranged on the back side of the electronic device, as shown in the middle figure, and the other light sensor is arranged on the left side of the electronic device, as shown in the right figure, and the other light sensor is not shown in the figure. The heights of the four light ray sensors are all the same as the height of a lens of the electronic equipment.
In the method provided by this embodiment, first data acquired by the first light sensor and second data acquired by the second light sensor are acquired; determining the light state of the current environment of the electronic equipment according to the first data and the second data; the image input parameters or the image output parameters of the electronic equipment are adjusted according to the light state, the structure is simple, the realization is easy, the price of the light sensor is low, the cost is reduced, the shooting quality is improved when the image input parameters are adjusted based on the light state of the current environment, the display effect is improved when the image output parameters are adjusted based on the light state of the current environment, and the application is more flexible and wide.
Example 4
Referring to fig. 6, the present embodiment provides an electronic device, in which a first light sensor LS1 and a second light sensor LS2 are disposed, and the electronic device includes:
an obtaining module 601, configured to obtain first data collected by the first light sensor and second data collected by the second light sensor;
a determining module 602, configured to determine a light status of a current environment of the electronic device according to the first data and the second data;
the adjusting module 603 is configured to adjust an image input parameter or an image output parameter of the electronic device according to the light state.
Wherein, the electronic equipment still includes the image acquisition unit, then the adjustment module includes:
and the input parameter adjusting unit is used for adjusting the shooting parameters of the image acquisition unit according to the light state.
Wherein, the electronic device further comprises a display unit, and then the adjusting module comprises:
and the output parameter adjusting unit is used for adjusting the display parameters of the display unit according to the light state.
Wherein, electronic equipment still includes the image acquisition unit, electronic equipment still includes:
and the synchronization module is used for controlling the difference between the time when the image acquisition unit acquires the image and the time when the acquisition module acquires the first data and the second data not to exceed the set duration.
Wherein the acquisition module comprises:
the acquisition unit is used for acquiring the data acquired by the first light sensor and the data acquired by the second light sensor according to the appointed times within the appointed first time period;
and the calculating unit is used for averaging the data acquired by the first light sensor acquired by the acquiring unit to obtain the first data, and averaging the data acquired by the second light sensor acquired by the acquiring unit to obtain the second data.
In this embodiment, the first light sensor and the second light sensor are located on different surfaces of the electronic device. Preferably, the first light sensor and the second light sensor are located on two opposite faces of the electronic device. For example, one of which is placed on the front side of the electronic device and the other on the back side of the electronic device.
Preferably, the number of the light sensors is at least four, one of the light sensors is arranged on the front side of the electronic device, the other light sensor is arranged on the back side of the electronic device, and the other light sensor is arranged on the left side and the right side of the electronic device respectively. Through setting up four at least light sensor, can guarantee to have more accurate judgement to the light condition in the space of 360 degrees to improve and shoot the quality.
In this embodiment, the difference between the height of the light sensor and the height of the lens of the electronic device does not exceed a preset threshold, so that the ambient light conditions can be more accurately identified. The preset threshold may be set according to needs, and this embodiment is not particularly limited to this.
In this embodiment, the electronic device is a handheld device, and includes but is not limited to: a mobile phone or a tablet computer, etc., which is not limited in this embodiment.
The above-mentioned device provided in this embodiment may perform the method provided in any of the above-mentioned method embodiments, and the detailed process is described in the method embodiments, which is not described herein again.
In the device provided by this embodiment, first data acquired by the first light sensor and second data acquired by the second light sensor are acquired; determining the light state of the current environment of the electronic equipment according to the first data and the second data; the image input parameters or the image output parameters of the electronic equipment are adjusted according to the light state, the structure is simple, the realization is easy, the price of the light sensor is low, the cost is reduced, the shooting quality is improved when the image input parameters are adjusted based on the light state of the current environment, the display effect is improved when the image output parameters are adjusted based on the light state of the current environment, and the application is more flexible and wide.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (9)
1. An ambient light detection method is applied to an electronic device, a first light sensor and a second light sensor are placed in the electronic device, and the difference between the heights of the first light sensor and the second light sensor and the height of a lens of the electronic device does not exceed a preset threshold value, and the method comprises the following steps:
acquiring first data acquired by the first light sensor and second data acquired by the second light sensor;
determining the light state of the current environment of the electronic equipment according to the first data and the second data;
adjusting image input parameters of the electronic equipment according to the light state;
wherein, the electronic device further includes an image acquisition unit, and then the adjusting the image input parameters of the electronic device according to the light state includes:
judging whether the current shooting parameters of the image acquisition unit are suitable for the determined light state, if not, continuously adjusting the shooting parameters of the image acquisition unit;
wherein the method further comprises: controlling the difference between the moment of adjusting the shooting parameters of the image acquisition unit and the moment of acquiring the first data and the second data not to exceed a set duration;
wherein, the obtaining of the first data collected by the first light sensor and the second data collected by the second light sensor includes:
in a first appointed time, acquiring data acquired by the first light sensor and data acquired by the second light sensor according to appointed times;
and averaging the acquired data collected by the first light sensor to obtain the first data, and averaging the acquired data collected by the second light sensor to obtain the second data.
2. The method of claim 1, wherein the electronic device further comprises a display unit, the method further comprising:
and adjusting the display parameters of the display unit according to the light state.
3. The method of claim 1, wherein the first light sensor and the second light sensor are located on different faces of the electronic device.
4. The method of claim 3, wherein the first light sensor and the second light sensor are located on opposing faces of the electronic device.
5. An electronic device, wherein a first light sensor and a second light sensor are disposed in the electronic device, a difference between a height of the first light sensor and a height of the second light sensor and a height of a lens of the electronic device does not exceed a preset threshold, and the electronic device comprises:
the acquisition module is used for acquiring first data acquired by the first light sensor and second data acquired by the second light sensor;
the determining module is used for determining the light state of the current environment of the electronic equipment according to the first data and the second data;
the adjusting module is used for adjusting the image input parameters of the electronic equipment according to the light state;
wherein, the electronic equipment still includes the image acquisition unit, then the adjustment module includes:
the input parameter adjusting unit is used for judging whether the current shooting parameters of the image acquisition unit are suitable for the determined light state or not, and if not, continuously adjusting the shooting parameters of the image acquisition unit;
wherein the electronic device further comprises: the synchronization module is used for controlling the difference between the moment of adjusting the shooting parameters by the input parameter adjusting unit and the moment of acquiring the first data and the second data by the acquisition module not to exceed a set duration;
wherein the acquisition module comprises: the acquisition unit is used for acquiring the data acquired by the first light sensor and the data acquired by the second light sensor according to the appointed times within the appointed first time period;
and the calculating unit is used for averaging the data acquired by the first light sensor acquired by the acquiring unit to obtain the first data, and averaging the data acquired by the second light sensor acquired by the acquiring unit to obtain the second data.
6. The electronic device of claim 5, wherein the electronic device further comprises a display unit, and the adjusting module comprises:
and the output parameter adjusting unit is used for adjusting the display parameters of the display unit according to the light state.
7. The electronic device of claim 5, wherein the first light sensor and the second light sensor are located on different faces of the electronic device.
8. The electronic device of claim 7, wherein the first light sensor and the second light sensor are located on two opposing sides of the electronic device.
9. The electronic device of any of claims 5-8, wherein the electronic device is a handheld device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410018285.1A CN104780320B (en) | 2014-01-15 | 2014-01-15 | Ambient light detection method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410018285.1A CN104780320B (en) | 2014-01-15 | 2014-01-15 | Ambient light detection method and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104780320A CN104780320A (en) | 2015-07-15 |
CN104780320B true CN104780320B (en) | 2020-02-21 |
Family
ID=53621536
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410018285.1A Active CN104780320B (en) | 2014-01-15 | 2014-01-15 | Ambient light detection method and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104780320B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105812622A (en) * | 2014-12-30 | 2016-07-27 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105204052B (en) * | 2015-09-07 | 2017-10-24 | 广东欧珀移动通信有限公司 | The station-keeping mode switching method and user terminal of a kind of user terminal |
CN108269552B (en) * | 2015-12-29 | 2020-05-05 | Oppo广东移动通信有限公司 | Method for adjusting screen brightness, mobile terminal and medium product |
CN105516514A (en) * | 2016-01-28 | 2016-04-20 | 广东欧珀移动通信有限公司 | Method and device for adjusting terminal brightness |
CN106375678A (en) * | 2016-11-10 | 2017-02-01 | 北京小米移动软件有限公司 | Method, device and system for adjusting shooting parameters |
CN112134972A (en) * | 2019-06-25 | 2020-12-25 | Oppo广东移动通信有限公司 | Control method of electronic equipment and electronic equipment |
CN111107199B (en) * | 2019-12-25 | 2021-05-07 | 惠州Tcl移动通信有限公司 | Illumination value reporting method and device, storage medium and mobile terminal |
CN111901459A (en) * | 2020-07-27 | 2020-11-06 | 北京小米移动软件有限公司 | Color temperature adjusting method, device, terminal and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101506864A (en) * | 2006-08-25 | 2009-08-12 | 摩托罗拉公司 | Multiple light sensors and algorithms for luminance control of mobile display devices |
CN103019560A (en) * | 2012-11-29 | 2013-04-03 | 中兴通讯股份有限公司 | Method and device for controlling interface of mobile terminal and mobile terminal |
CN103050089A (en) * | 2011-10-12 | 2013-04-17 | 富泰华工业(深圳)有限公司 | Electronic device and method for adjusting brightness of display screen thereof |
CN103327148A (en) * | 2013-06-28 | 2013-09-25 | 惠州Tcl移动通信有限公司 | Screen backlight brightness adjusting implementation method based on mobile terminal and mobile terminal |
CN103401970A (en) * | 2013-07-23 | 2013-11-20 | 广东欧珀移动通信有限公司 | Method and system for adjusting display screen backlight and mobile terminal |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009057527A1 (en) * | 2007-11-01 | 2009-05-07 | Nec Corporation | Luminance control method and display |
JP2010160272A (en) * | 2009-01-07 | 2010-07-22 | Canon Inc | Display control device and control method thereof |
CN101661734A (en) * | 2009-09-09 | 2010-03-03 | 深圳市融创天下科技发展有限公司 | Method and system for regulating screen display of camera terminal |
CN102647449B (en) * | 2012-03-20 | 2016-01-27 | 西安联客信息技术有限公司 | Based on the intelligent photographic method of cloud service, device and mobile terminal |
CN103024279A (en) * | 2012-12-27 | 2013-04-03 | 上海华勤通讯技术有限公司 | Camera brightness regulating device and implementation method thereof |
-
2014
- 2014-01-15 CN CN201410018285.1A patent/CN104780320B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101506864A (en) * | 2006-08-25 | 2009-08-12 | 摩托罗拉公司 | Multiple light sensors and algorithms for luminance control of mobile display devices |
CN103050089A (en) * | 2011-10-12 | 2013-04-17 | 富泰华工业(深圳)有限公司 | Electronic device and method for adjusting brightness of display screen thereof |
CN103019560A (en) * | 2012-11-29 | 2013-04-03 | 中兴通讯股份有限公司 | Method and device for controlling interface of mobile terminal and mobile terminal |
CN103327148A (en) * | 2013-06-28 | 2013-09-25 | 惠州Tcl移动通信有限公司 | Screen backlight brightness adjusting implementation method based on mobile terminal and mobile terminal |
CN103401970A (en) * | 2013-07-23 | 2013-11-20 | 广东欧珀移动通信有限公司 | Method and system for adjusting display screen backlight and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN104780320A (en) | 2015-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104780320B (en) | Ambient light detection method and electronic device | |
CA2969482C (en) | Method and apparatus for multiple technology depth map acquisition and fusion | |
US10878539B2 (en) | Image-processing method, apparatus and device | |
US9638791B2 (en) | Methods and apparatus for performing exposure estimation using a time-of-flight sensor | |
CN105554413B (en) | A kind of screen light filling photographic method, device and mobile terminal | |
US10805508B2 (en) | Image processing method, and device | |
EP3694203A1 (en) | Method and device for obtaining exposure compensation value of high-dynamic-range image | |
US9277144B2 (en) | System and method for estimating an ambient light condition using an image sensor and field-of-view compensation | |
US20160005362A1 (en) | Determination Of Optical Condition And Adjustment Of Display | |
US11297259B2 (en) | Finder apparatus, imaging apparatus, and method of controlling finder apparatus | |
US9185300B2 (en) | Photographing apparatus for scene catergory determination and method for controlling thereof | |
CN102404495B (en) | Method for adjusting shooting parameters of digital camera | |
CN107426471A (en) | Camera module and electronic installation | |
CN105611185A (en) | Image generation method, device and terminal equipment | |
US20140063288A1 (en) | Imaging apparatus, electronic device and method providing exposure compensation | |
US9875423B2 (en) | Image pickup apparatus that calculates light amount change characteristic, electronic apparatus, and method of calculating light amount change characteristic | |
CN103929598A (en) | Automatic exposure method and camera module detection method | |
CN110708463B (en) | Focusing method, device, storage medium and electronic device | |
CN106210532A (en) | One is taken pictures processing method and terminal unit | |
US9800792B2 (en) | Image pickup apparatus capable of determining light amount change characteristic, method of determining light amount change characteristic, and storage medium | |
US11290657B2 (en) | Finder apparatus, imaging apparatus, and method of controlling finder apparatus | |
JP2011085699A (en) | Display device | |
US20200036882A1 (en) | Faster automatic exposure control system | |
CN108156434B (en) | Image processing method and apparatus, computer-readable storage medium and computer device | |
CN104965376B (en) | The adjusting method and system of a kind of terminal camera flash lamp |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |