Patent ID: 11869145
Assignee: BEIJING SOURCE TECHNOLOGY CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 19:
20. A non-transitory computer readable storage medium storing a plurality of programs for execution by an electronic apparatus having one or more processors, wherein the plurality of programs, when executed by the one or more processors, cause the electronic apparatus to perform acts comprising:
identifying a 3D model of an input device, wherein the input device comprises a keyboard and a mouse;
acquiring an image of the input device captured by a camera in a virtual reality (VR) system;
identifying at least one feature identifier of the input device in the image;
calculating target information in the VR system corresponding to the at least one feature identifier; and
projecting, according to the target information, the 3D model into a VR scene constructed by the VR system such that the input device and the VR scene interact with each other,
wherein the target information comprises a position and an attitude, and wherein calculating the target information in the VR system corresponding to the at least one feature identifier comprises:
in response to determining that an amount of the at least one feature identifier is a first amount, acquiring images of a feature identifier captured simultaneously by at least two cameras at different angles and determining the attitude of the feature identifier based on the images of the feature identifier at the different angles; or
in response to determining that the amount of the at least one feature identifier is a second amount, determining a roll angle and a pitch angle of a polygon formed by at least three non-conllinear feature identifiers based on a position of each feature identifier in the polygon and determining a yaw angle of the polygon according to an orientation of the polygon and a position relationship between the polygon and the 3D model, wherein the roll angle, the pitch angle and the yaw angle constitute the attitude of the polygon.