Photography method, electronic device, and storage medium
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorXingsheng Lin
Life of this patent
Estimating the term…
Abstract
A photography method, includes: receiving an instruction of launching to collect images; establishing an AR anchor in an image viewfinder of the electronic device, the AR anchor corresponding to a position of a photographed object in a virtual three-dimensional space; generating a moving shot track in the image viewfinder based on a current position of the camera module and the AR anchor, the moving shot track representing a desired moving route of the camera module in the virtual three-dimensional space; and performing image collection on the photographed object based on the moving shot track.
Claims16
A photography method, applicable to an electronic device provided with a camera module thereon, comprising:
- receiving an instruction of launching to collect images;
- establishing an augmented reality (AR) anchor in an image viewfinder of the electronic device, the AR anchor corresponding to a position of a photographed object in a virtual three-dimensional space;
- generating a moving shot track in the image viewfinder based on a current position of the camera module and the AR anchor, the moving shot track representing a desired moving route of the camera module in the virtual three-dimensional space;
- and
- performing image collection on the photographed object based on the moving shot track,
- wherein generating the moving shot track in the image viewfinder based on the current position of the camera module and the AR anchor comprises:
- obtaining a target template from a preset template library, the target template comprising a target shape of the moving shot track, and a relative position between a reference point and the moving shot track;
- and
- generating the moving shot track which passes through the current position and is matched with the target shape in a case that the AR anchor coincides with the reference point,
- wherein obtaining the target template from the preset template library comprises:
- displaying templates in the preset template library, the templates comprising at least one of:
- a dolly zoom in template, a dolly zoom out template, a pan & tilt template, a truck template, a lift template, a drop template, and a surround template;
- and
- obtaining a template corresponding to a trigger operation as the target template in a case that the trigger operation for selecting the template is detected.
An electronic device, comprising:
- a camera;
- a processor;
- and
- a memory, configured to store a computer program executable by the processor,
- wherein the processor is configured to execute the computer program in the memory to:
- receive an instruction of launching to collect images;
- establish an augmented reality (AR) anchor in an image viewfinder of the electronic device, the AR anchor corresponding to a position of a photographed object in a virtual three-dimensional space;
- generate a moving shot track in the image viewfinder based on a current position of the camera module and the AR anchor, the moving shot track representing a desired moving route of the camera module in the virtual three-dimensional space;
- and
- perform image collection on the photographed object based on the moving shot track,
- wherein the processor is further configured to execute the computer program in the memory to:
- obtain a target template from a preset template library, the target template comprising a target shape of the moving shot track, and a relative position between a reference point and the moving shot track;
- and
- generate the moving shot track which passes through the current position and is matched with the target shape in a case that the AR anchor coincides with the reference point,
- wherein the processor is further configured to execute the computer program in the memory to:
- display templates in the preset template library, the templates comprising at least one of:
- a dolly zoom in template, a dolly zoom out template, a pan & tilt template, a truck template, a lift template, a drop template, and a surround template;
- and
- obtain a template corresponding to a trigger operation as the target template in a case that the trigger operation for selecting the template is detected.
A non-transitory computer-readable storage medium having stored therein instructions that, when executed by a processor, causes the processor to perform a photography method, the method being applicable to an electronic device provided with a camera module thereon, and comprising:
- receiving an instruction of launching to collect images;
- establishing an augmented reality AR anchor in an image viewfinder of the electronic device, the AR anchor corresponding to a position of a photographed object in a virtual three-dimensional space;
- generating a moving shot track in the image viewfinder based on a current position of the camera module and the AR anchor, the moving shot track representing a desired moving route of the camera module in the virtual three-dimensional space;
- and
- performing image collection on the photographed object based on the moving shot track,
- wherein generating the moving shot track in the image viewfinder based on the current position of the camera module and the AR anchor comprises:
- obtaining a target template from a preset template library, the target template comprising a target shape of the moving shot track, and a relative position between a reference point and the moving shot track;
- and
- generating the moving shot track which passes through the current position and is matched with the target shape in a case that the AR anchor coincides with the reference point,
- wherein obtaining the target template from the preset template library comprises:
- displaying templates in the preset template library, the templates comprising at least one of:
- a dolly zoom in template, a dolly zoom out template, a pan & tilt template, a truck template, a lift template, a drop template, and a surround template;
- and
- obtaining a template corresponding to a trigger operation as the target template in a case that the trigger operation for selecting the template is detected.
Dependencies are inferred from the claim text.