CPC G06F 3/017 (2013.01) [G06V 40/28 (2022.01)] | 15 Claims |
1. A method for gesture control, comprising:
setting a sampling mode corresponding to a gesture control function of an electronic device to a first frame-rate mode or setting a display resolution of the electronic device to a first resolution mode, and setting a first indication field for a captured gesture image to an initialization state;
determining whether the first indication field of the gesture image is in the initialization state;
setting the first indication field according to a control action in a currently collected gesture image, on condition that the first indication field is in the initialization state, wherein the control action is a gesture action A1 of a user, the gesture action A1 is represented by at least one gesture detection result that represents a gesture of the user determined according to the gesture image, and an action timing of the control action is prior to an action time of a gesture action B1;
setting a second indication field according to the gesture action B1 in the currently collected gesture image, on condition that the first indication field is not in the initialization state, wherein the gesture action B1 is represented by at least two gesture detection results according to the gesture image; and
determining a target operation instruction according to the first indication field and the second indication field, executing the target operation instruction, resetting the second indication field, and returning to determining whether the first indication field is in the initialization state, when the gesture action B1 and the control action meet an association relationship.
|