Method and device for switching between cameras, and terminal
AssigneeGuangdong Oppo Mobile Telecommunications Corp., Ltd.
InventorQuan Yuan
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a method and a device for switching between cameras and a terminal. When it is determined that a current zoom factor satisfies a first switching condition, a distance between a current object to be photographed and the camera and/or current illumination is obtained. It is determined whether the distance between the current object to be photographed and the camera and/or the current illumination satisfies a second switching condition. When the distance between the current object to be photographed and the camera and/or the current illumination satisfies the second switching condition, a switch is performed between the cameras.
Claims15
A method for switching between cameras, applied in a terminal having at least a first camera and a second camera, comprising:
- when the first camera is currently used and it is determined that a current zoom factor satisfies a first switching condition for switching the first camera to the second camera, obtaining current illumination via the first camera currently used;
- under a same illumination condition to that of the current illumination obtained by the first camera, calculating illumination sensed by the second camera based on an aperture size of the second camera, a shutter time of the second camera and a sensitivity parameter of the second camera;
- determining whether the illuminance sensed by the second camera is greater than illumination required by the second camera;
- and
- when the illuminance sensed by the second camera is greater than the illumination required by the second camera, switching from the first camera to the second camera.
A terminal, comprising:
- one or more of following components:
- a housing, at least a first camera and a second camera, a processor, a memory, a power circuit, and a communication component, wherein the cameras, the processor, the memory, the power circuit and the communication component are arranged in a space enclosed by the housing;
- the power circuit is configured to provide power for respective circuits or components of the terminal;
- the memory is configured to store executable program codes;
- the processor is configured to run a program corresponding to the executable program codes by reading the executable program codes stored in the memory, to perform following operations:
- when the first camera is currently used and it is determined that a current zoom factor satisfies a first switching condition for switching the first camera to the second camera, obtaining current illumination via the first camera currently used;
- under a same illumination condition to that of the current illumination obtained by the first camera, calculating illumination sensed by the second camera based on an aperture size of the second camera, a shutter time of the second camera and a sensitivity parameter of the second camera;
- determining whether the illuminance sensed by the second camera is greater than illumination required by the second camera;
- and
- when the illuminance sensed by the second camera is greater than the illumination required by the second camera, switching from the first camera to the second camera.
A non-transitory computer-readable storage medium having stored therein instructions that, when executed by a processor of a terminal, causes the terminal to perform a method for switching between cameras, the method comprising:
- when a first camera is currently used and it is determined that a current zoom factor satisfies a first switching condition for switching the first camera to the second camera, obtaining current illumination via the first camera currently used;
- under a same illumination condition to that of the current illumination obtained by the first camera, calculating illumination sensed by the second camera based on an aperture size of the second camera, a shutter time of the second camera and a sensitivity parameter of the second camera;
- determining whether the illuminance sensed by the second camera is greater than illumination required by the second camera;
- and
- when the illuminance sensed by the second camera is greater than the illumination required by the second camera, switching from the first camera to the second camera.
Dependencies are inferred from the claim text.