A method of collecting ambient light, applied to a terminal provided with an ambient light sensor at a first area in a display screen of the terminal, the method comprising: determining a target image frame, wherein the target image frame is an image frame to be displayed, adjacent to a collection time point, wherein the collection time point is a time point provided in a display interval between two adjacent image frames, at which the ambient light sensor collects ambient light, and the target image frame comprises the adjacent frame to be displayed before the collection time point; decreasing display brightness of pixel points in a second area of the target image frame to a target value, wherein the target value is determined according to at least one of the following steps: acquiring the current time of the day from the operating system of the terminal and determining the target value based on a pre-stored correspondence relationship between time of the day and target values; calculating an overall average color value of the target image frame as a hue type, and determining a relatively lower value as the target for a dark hue type or determining a relatively higher value as the target value for a light hue type; invoking a task stack in the operating system to determine a display type of a front-end user interface according to the task stack, and determining the target value based on a pre-stored correspondence relationship between the display type and target values, wherein the display type comprises at least one of a user interface, a video frame, or an electronic document; wherein the first area is a sub-area of the second area; and displaying the target image frame according to the target value, and controlling the ambient light sensor to collect the ambient light at the collection time point. determining a target image frame, wherein the target image frame is an image frame to be displayed, adjacent to a collection time point, wherein the collection time point is a time point provided in a display interval between two adjacent image frames, at which the ambient light sensor collects ambient light, and the target image frame comprises the adjacent frame to be displayed before the collection time point; decreasing display brightness of pixel points in a second area of the target image frame to a target value, wherein the target value is determined according to at least one of the following steps: acquiring the current time of the day from the operating system of the terminal and determining the target value based on a pre-stored correspondence relationship between time of the day and target values; calculating an overall average color value of the target image frame as a hue type, and determining a relatively lower value as the target for a dark hue type or determining a relatively higher value as the target value for a light hue type; invoking a task stack in the operating system to determine a display type of a front-end user interface according to the task stack, and determining the target value based on a pre-stored correspondence relationship between the display type and target values, wherein the display type comprises at least one of a user interface, a video frame, or an electronic document; acquiring the current time of the day from the operating system of the terminal and determining the target value based on a pre-stored correspondence relationship between time of the day and target values; calculating an overall average color value of the target image frame as a hue type, and determining a relatively lower value as the target for a dark hue type or determining a relatively higher value as the target value for a light hue type; invoking a task stack in the operating system to determine a display type of a front-end user interface according to the task stack, and determining the target value based on a pre-stored correspondence relationship between the display type and target values, wherein the display type comprises at least one of a user interface, a video frame, or an electronic document; wherein the first area is a sub-area of the second area; and displaying the target image frame according to the target value, and controlling the ambient light sensor to collect the ambient light at the collection time point.