Patent ID: 9692961
Date: 2017-06-27
CPC Classifications: H04N

Claim:
1. An electronic device comprising: a processor; a camera configured to capture images from a first side of the electronic device; a display screen configured to display a virtual image; and a non-transitory computer readable medium; wherein, the non-transitory computer readable medium stores one or more preset rotational values, with each rotational value associated with a preset directional value range; and wherein, the non-transitory computer readable medium stores instructions for the processor to: activate the camera to capture an image on the first side of the electronic device; analyze the captured image to identify one or more facial images in the captured image; identify one of the one or more facial images in the captured image as a primary facial image; calculate a directional value of the primary facial image in the captured image; establish a virtual coordinate system: where an origin of the virtual coordinate system is a center of a mouth of the primary facial image; an X axis of the virtual coordinate system is parallel with and in a same direction with an X axis of a window coordinate system; and a Y axis of the virtual coordinate system is parallel with and in an opposite direction with a Y axis of the window coordinate system; map a position between two eyes of the primary facial image into the virtual coordinate system to be a target point; form a straight line between the target point and the origin and determine an angle between the straight line and the X axis of the virtual coordinate system; determine the directional value of the primary facial image to be the angle between the straight line and the X axis of the virtual coordinate system; and rotate the virtual image displayed on the display screen based on the preset rotational value associated with the preset directional value range in which the calculated directional value of the primary facial image falls.