Method and device for capturing image and storage medium
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorsHeng Sun, Zhehong Lin
Life of this patent
Estimating the term…
Abstract
The present disclosure relates to a method and a device for capturing an image and a computer readable storage medium. In the method, a current motion parameter of the terminal and a current ambient light parameter are acquired, a current exposure parameter of the terminal is set based on the current motion parameter of the terminal and the current ambient light parameter, and the image is captured based on the set current exposure parameter of the terminal. The exposure parameter includes a shutter value, an aperture value and a sensitivity.
Claims20
A method for capturing an image that is applicable to a terminal, comprising:
- acquiring a current motion parameter of the terminal and a current ambient light parameter;
- setting a current exposure parameter of the terminal based on the current motion parameter of the terminal and the current ambient light parameter, wherein the current motion parameter indicates a motion state of the terminal, the current ambient light parameter indicates a current ambient light intensity, and the current exposure parameter comprises a shutter value, an aperture value and a sensitivity;
- acquiring an exposure parameter corresponding to the current ambient light parameter, the exposure parameter corresponding to the current ambient light parameter comprises a first shutter value, a first aperture value and a first sensitivity;
- and
- capturing the image based on the set current exposure parameter of the terminal;
- wherein setting the current exposure parameter of the terminal based on the current motion parameter of the terminal and the current ambient light parameter comprises:
- determining a numerical range in which the motion parameter is located, and determining a shutter difference value, an aperture difference value and a sensitivity difference value based on the numerical range;
- subtracting the shutter difference value from the first shutter value to obtain a second shutter value, subtracting the aperture difference value from the first aperture value to obtain a second aperture value and adding the sensitivity difference value to the first sensitivity to obtain a second sensitivity.
A device for capturing an image, comprising:
- a processor;
- and
- a memory configured to store instructions that are executable by the processor;
- wherein the processor is configured to perform:
- acquiring a current motion parameter of a terminal and a current ambient light parameter;
- setting a current exposure parameter of the terminal based on the current motion parameter of the terminal and the current ambient light parameter, wherein the current motion parameter indicates a motion state of the terminal, the current ambient light parameter indicates a current ambient light intensity, and the current exposure parameter comprises a shutter value, an aperture value and a sensitivity;
- acquiring an exposure parameter corresponding to the current ambient light parameter, the exposure parameter corresponding to the current ambient light parameter comprises a first shutter value, a first aperture value and a first sensitivity;
- and
- capturing the image based on the set current exposure parameter of the terminal;
- wherein the processor configured to perform setting the current exposure parameter of the terminal based on the current motion parameter of the terminal and the current ambient light parameter is further configured to perform:
- determining a numerical range in which the motion parameter is located, and determining a shutter difference value, an aperture difference value and a sensitivity difference value based on the numerical range;
- subtracting the shutter difference value from the first shutter value to obtain a second shutter value, subtracting the aperture difference value from the first aperture value to obtain a second aperture value and adding the sensitivity difference value to the first sensitivity to obtain a second sensitivity.
A non-transitory computer readable storage medium having stored therein instructions that, when executed by a processor, cause the processor to perform:
- acquiring a current motion parameter of a terminal and a current ambient light parameter;
- setting a current exposure parameter of the terminal based on the current motion parameter of the terminal and the current ambient light parameter, wherein the current motion parameter indicates a motion state of the terminal, the current ambient light parameter indicates a current ambient light intensity, and the current exposure parameter comprises a shutter value, an aperture value and a sensitivity;
- acquiring an exposure parameter corresponding to the current ambient light parameter, the exposure parameter corresponding to the current ambient light parameter comprises a first shutter value, a first aperture value and a first sensitivity;
- capturing an image based on the set current exposure parameter of the terminal;
- wherein the instructions causing the processor to perform setting the current exposure parameter of the terminal based on the current motion parameter of the terminal and the current ambient light parameter further cause the processor to perform;
- determining a numerical range in which the motion parameter is located, and determining a shutter difference value, an aperture difference value and a sensitivity difference value based on the numerical range;
- subtracting the shutter difference value from the first shutter value to obtain a second shutter value, subtracting the aperture difference value from the first aperture value to obtain a second aperture value and adding the sensitivity difference value to the first sensitivity to obtain a second sensitivity.
Dependencies are inferred from the claim text.