Method and device for controlling virtual image

The invention discloses a method and device for controlling a virtual image and belongs to the field of computers. The method includes the steps that a first facial image corresponding to a user is obtained through shooting the face of the user, the contour of the first facial image is identified, and key points included by the contour of the first facial image are marked; according to positions of key points included by the contour of a second facial image stored in advance and positions of key points included by the contour of the first facial image, displacement, relative to the key points included by the contour of the second facial image stored in advance, of the key points included by the contour of the first facial image is calculated; according to the displacement, relative to the key points included by the contour of the second facial image stored in advance, of the key points included by the contour of the first facial image, the virtual image of the user is controlled. The device comprises an identifying module, a calculating module and a control module. Instantaneity and operation convenience of the virtual image can be improved.