主权项 |
1. A method for augmenting a video feed displayed on a mobile device comprising one or more processors, the method comprising performing by the mobile device:
receiving a live video feed taken by a camera that is communicably coupled to at least one processor of the mobile device, the live video feed including a target object; receiving a graphic corresponding to the target object, the graphic having boundaries; determining a magnitude and a direction of a lateral offset vector of the mobile device, the lateral offset vector being a measurement of the distance from the center of the target object to the mobile device in a direction parallel to the plane of the target object; determining, based on the magnitude of the lateral offset vector, a shift magnitude; determining, based on the direction of the lateral offset vector, a shift direction, wherein the shift direction is opposite the direction of the lateral offset vector; determining a display position, wherein the display position is a position on the graphic, and wherein the display position is separated from a center point on the graphic by the shift magnitude in the shift direction; determining a portion of the graphic to be displayed, wherein the portion is located at the display position, wherein the portion has an edge that asymptotically approaches a boundary of the graphic as the absolute value of the lateral offset vector increases; and displaying the portion of the graphic over at least a portion of the target object. |