| CPC G06F 3/017 (2013.01) [G06F 3/005 (2013.01); G06F 3/011 (2013.01); G06F 3/0236 (2013.01); G06F 3/0304 (2013.01); G06F 3/0425 (2013.01); G06F 3/04815 (2013.01); G06F 3/0482 (2013.01); G06F 3/0484 (2013.01); G06F 3/04842 (2013.01); G06F 3/0485 (2013.01); G06F 3/0488 (2013.01); G06F 16/44 (2019.01); G06T 7/20 (2013.01); G06T 19/006 (2013.01); G06V 40/20 (2022.01); G06T 2207/30241 (2013.01); H04N 21/42204 (2013.01)] | 8 Claims |

|
1. A method for outputting one or more commands by detecting a movement of a hovering object, the method comprising:
capturing a plurality of images generated by the movement of the hovering object by an image capturing device;
calculating a motion trajectory according to the images by an image processor, wherein the motion trajectory includes a rotation, and the rotation is analyzed to generate a number of predetermined angle units; and
outputting the one or more commands according to the motion trajectory to control an action of an electronic device;
wherein the motion trajectory includes a vertical movement which is detected to trigger the action, wherein the triggered action includes pulling out a phonebook list to show the phonebook list on a screen;
wherein the step of calculating the motion trajectory according to the plurality of images comprises:
subtracting a position of gravity center of the hovering object in each of the images by a position of gravity center of the hovering object in a previous image so as to obtain a motion vector corresponding to each image; and
calculating the motion trajectory according to the motion vectors;
wherein the step of calculating the motion trajectory according to the motion vectors comprises:
generating object rotation information according to the motion vectors, wherein the object rotation information comprises one or more of a rotation plane normal vector, rotation angle, angular velocity, speed, rotation radius and trajectory length; and
outputting the command to execute a software application program of an electrical device according to the object rotation information;
wherein the step of outputting the command according to the object rotation information comprises:
outputting the command to control a rotation of one or more predetermined angle units according to the rotation plane normal vector and the rotation angle.
|