1. A method for outputting a command by detecting a movement of an object, the method comprising: capturing a plurality of images generated by the movement of the object at different timings by an image capturing device; calculating a motion trajectory according to the images; and outputting the command according to the motion trajectory.