Methods and devices for detecting ambient light based on different states of flexible screen, and storage medium
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorChaoxi Chen
Life of this patent
Estimating the term…
Abstract
The present disclosure relates to a method and device for detecting ambient light, an electronic device and a storage medium. The electronic device includes: a first screen, the first screen being a foldable flexible screen; multiple light sensors, orientations of light sensing surfaces of the multiple light sensors being different; and at least one processor electronically connected with the first screen and the light sensors respectively and configured to select a target light sensor from the multiple light sensors according to a present state of the first screen and obtain target detection data representing present ambient brightness according to detection data of the target light sensor.
Claims15
An electronic device, comprising:
- a first screen comprising a foldable flexible screen;
- multiple light sensors having light sensing surfaces with different orientations;
- at least one processor, electronically connected respectively with the first screen and the light sensors and configured to select a target light sensor from the multiple light sensors according to a present state of the first screen and obtain target detection data representing present ambient brightness according to detection data of the target light sensory;
- a second screen, positioned on a back surface of the first screen;
- wherein the light sensing surface of at least one light sensor is on a same surface with the second screen, and the orientations of the light sensing surface of the at least one light sensor and a display surface of the second screen are identical;
- and
- an image-pickup component, positioned on a back surface of the first screen;
- wherein at least one light sensor is on a same surface with the image-pickup component, and the orientations of the light sensing surface of the light sensor and a lens of the image-pickup component are identical;
- wherein the image-pickup component and the second screen are on different surfaces in response to the first screen in a folded state;
- and the light sensor on the same surface with the image-pickup component and the light sensor on the same surface with the second screen are target light sensors;
- and
- wherein the image-pickup component and the second screen are on a same surface in response to the first screen in an unfolded state;
- and the light sensor on the same surface with the image-pickup component, the light sensor on the same surface with the second screen and the light sensor on a same surface with the first screen are target light sensors.
A method for detecting ambient light, applied to an electronic device, comprising:
- acquiring a present state of a first screen of the electronic device;
- selecting a target light sensor from multiple light sensors according to the present state of the first screen;
- and
- obtaining target detection data representing present ambient brightness according to detection data of the target light sensor,
- wherein selecting the target light sensor from the multiple light sensors according to the present state of the first screen comprises:
- determining, in response to the first screen in a folded state, a light sensor on a same surface with an image-pickup component positioned on a back surface of the first screen, and a light sensor on a same surface with a second screen positioned on a back surface of the first screen as the target light sensor, wherein the image-pickup component and the second screen are on different surfaces in response to the first screen in the folded state;
- and
- determining, in response to the first screen in an unfolded state, the light sensor on the same surface with the image-pickup component, the light sensor on the same surface with the second screen and the light sensor on a same surface with the first screen as the target light sensor, wherein the image-pickup component and the second screen are on a same surface in response to the first screen in the unfolded state.
A non-transitory computer-readable storage medium, in which computer-executable instructions are stored, the computer-executable instructions being executed by a processor to implement a method for detecting ambient light, applied to an electronic device, comprising:
- acquiring a present state of a first screen of the electronic device;
- selecting a target light sensor from multiple light sensors according to the present state of the first screen;
- and
- obtaining target detection data representing present ambient brightness according to detection data of the target light sensor,
- wherein selecting the target light sensor from the multiple light sensors according to the present state of the first screen comprises:
- determining, in response to the first screen in a folded state, a light sensor on a same surface with an image-pickup component positioned on a back surface of the first screen, and a light sensor on a same surface with a second screen positioned on a back surface of the first screen as the target light sensor, wherein the image-pickup component and the second screen are on different surfaces in response to the first screen in the folded state;
- and
- determining, in response to the first screen in an unfolded state, the light sensor on the same surface with the image-pickup component, the light sensor on the same surface with the second screen and the light sensor on a same surface with the first screen as the target light sensor, wherein the image-pickup component and the second screen are on a same surface in response to the first screen in the unfolded state.
Dependencies are inferred from the claim text.