Control method and electronic device
AssigneeHuawei Technologies Co., Ltd.
InventorsHang Liu, Xiaohan Chen
Life of this patent
Estimating the term…
Abstract
An electronic device may learn a specific somatosensory action completed by a user, and also record a specific remote control key selected by the user, and then the electronic device may associate the action with the key. When recognizing that the user completes the action, the electronic device may simulate a control signal generated by the key, to control a game operation. Accordingly, the user can simply and quickly transform a conventional game into a somatosensory game. In this process, a game manufacturer does not need to perform additional customization work, and the user does not need to use an additional somatosensory device.
Claims20
A method, applied to an electronic device, wherein the method comprises:
- obtaining, by a camera, a first image comprising a first user action, wherein the first user action is a first version of the first user action;
- obtaining, by the camera, a second image comprising a second user action, wherein the second user action is a second version of the first user action;
- obtaining a first action template for recognizing somatosensory actions performed by a user;
- obtaining, by the camera, a third image comprising a third user action;
- determining whether the third image matches the first user action;
- displaying, when the third image does not match the first user action, a prompt window that requests input of a new second image or a new third image;
- associating a first key with the first action template;
- performing a first operation on the first key;
- generating, when the first operation is performed, a first key signal for controlling the electronic device to perform a first action;
- obtaining, by the camera, an image sequence comprising a user action;
- generating, when recognizing based on the first action template that the user action is a first somatosensory action, a second key signal;
- and
- performing, by controlling execution of a game application on the electronic device, the first action in response to the second key signal.
An electronic device, comprising:
- one or more memories configured to store computer instructions;
- and
- one or more processors coupled to the one or more memories and configured to execute the computer instructions to cause the electronic device to:
- obtain, by a camera, a first image comprising a first user action, wherein the first user action is a first version of the first user action;
- obtain, by the camera, a second image comprising a second user action, wherein the second user action is a second version of the first user action;
- obtain a first action template for recognizing somatosensory actions performed by a user;
- obtain, by the camera, a third image comprising a third user action;
- determine whether the third image matches the first user action;
- display, when the third image does not match the first user action, a prompt window that requests input of a new second image or a new third image;
- associate a first key with the first action template;
- perform a first operation on the first key;
- generate, when the first operation is performed, a first key signal for controlling the electronic device to perform a first action;
- obtain, by the camera, an image sequence comprising a user action;
- generate, when recognizing based on the first action template that the user action is a first somatosensory action, a second key signal;
- and
- perform, by controlling execution of a game application on the electronic device, the first action in response to the second key signal.
A non-transitory computer-readable storage medium comprising instructions, wherein when the instructions are executed on an electronic device, the instructions cause the electronic device to:
- obtain, by a camera, a first image comprising a first user action, wherein the first user action is a first version of the first user action;
- obtain, by the camera, a second image comprising a second user action, wherein the second user action is a second version of the first user action;
- obtain a first action template for recognizing somatosensory actions performed by a user;
- obtain, by the camera, a third image comprising a third user action;
- determine whether the third image matches the first user action;
- display, when the third image does not match the first user action, a prompt window that requests input of a new second image or a new third image;
- associate a first key with the first action template;
- perform a first operation on the first key;
- generate, when the first operation is performed, a first key signal for controlling the electronic device to perform a first action;
- obtain, by the camera, an image sequence comprising a user action;
- generate, when recognizing based on the first action template that the user action is a first somatosensory action, a second key signal;
- and
- perform, by controlling execution of a game application on the electronic device, the first action in response to the second key signal.
Dependencies are inferred from the claim text.