Patent ID: 11879750
Assignee: SNAP INC.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 10:
11. A device, comprising:
a housing;
a screen;
a first camera included in the housing, the first camera being located on a first side of the housing;
a second camera included in the housing, the second camera being located on a second side of the housing opposite the first side of the housing, the screen being located on the second side of the housing; and
a processor, included in the housing, configured to perform operations comprising:
receiving one or more first images including an object, acquired by the first camera while the device is in a first position and the first side of the housing is facing the object;
receiving one or more first reference images acquired by the second camera while the device is in the first position;
after the receiving of the one or more first images and the one or more first reference images, displaying on the screen:
an image that is rotated in order to cause a user to rotate the device; and
an indication of an extent of matching between the one or more first reference images and a current image acquired by the second camera, the indication comprising a numerical score that indicates the extent of matching;

receiving one or more second images including the object acquired by the first camera while the device is in a second position;
receiving one or more second reference images acquired by the second camera while the device is in the second position;
determining an extent of relative rotation between the one or more first and second reference images based on a comparison of the one or more first reference images to the one or more second reference images;
determining, based on the extent of relative rotation, information on a displacement of at least one camera of the device between the first and second positions; and
calculating a distance from the device to the object, based on the one or more first and second images including the object and the determined information on the displacement of the at least one camera.