A target tracking device applied to tracking a target by a camera, said device comprising: a target tracking module, configured to acquire an image collected by a camera and determine a moving target according to the collected image to finally determine an effective moving target; wherein the collected image includes a first frame, a second frame, and a third frame, the target tracking module further configured to subtract the third frame from the first frame to obtain a difference image img1, to subtract the third frame from the second frame to obtain a difference image img2, and to superimpose the difference image img1 and difference image img2 to obtain a moving image of the moving target; configured to represent a point not equal to 0 in the moving image as a movement element, configured to find all connected movement elements which form a suspected movement target; and configured to calculate a movement intensity of all suspected movement targets, the movement intensity of the suspected movement target being the number of movement elements divided by a rectangular area of the suspected movement target, in a case where the movement intensity of the suspected movement target is less than a threshold of movement intensity, configured to filter and disregard the suspected movement target which is less than the threshold of movement intensity, so as to determine the effective moving target; a movement module, configured to connect with the target tracking module and configured to calculate parameter information of current movement of the effective moving target and to determine whether the camera needs to be rotated to track the effective moving target according to the parameter information; a comprehensive analysis module, configured to connect with the movement module and the target tracking module, configured to refresh the parameter information after the camera rotates, and to notify the target tracking module to continue tracking the target; wherein the movement module comprises: a calculating module, configured to calculate parameter information of current movement of the effective moving target; a second storage module, configured to connect with the calculation module, configured to store the parameter information; and a determination module, configured to connect with the second storage module and configured to determine whether the camera needs to be rotated according to the parameter information stored in the second storage module. a target tracking module, configured to acquire an image collected by a camera and determine a moving target according to the collected image to finally determine an effective moving target; wherein the collected image includes a first frame, a second frame, and a third frame, the target tracking module further configured to subtract the third frame from the first frame to obtain a difference image img1, to subtract the third frame from the second frame to obtain a difference image img2, and to superimpose the difference image img1 and difference image img2 to obtain a moving image of the moving target; configured to represent a point not equal to 0 in the moving image as a movement element, configured to find all connected movement elements which form a suspected movement target; and configured to calculate a movement intensity of all suspected movement targets, the movement intensity of the suspected movement target being the number of movement elements divided by a rectangular area of the suspected movement target, in a case where the movement intensity of the suspected movement target is less than a threshold of movement intensity, configured to filter and disregard the suspected movement target which is less than the threshold of movement intensity, so as to determine the effective moving target; a movement module, configured to connect with the target tracking module and configured to calculate parameter information of current movement of the effective moving target and to determine whether the camera needs to be rotated to track the effective moving target according to the parameter information; a comprehensive analysis module, configured to connect with the movement module and the target tracking module, configured to refresh the parameter information after the camera rotates, and to notify the target tracking module to continue tracking the target; wherein the movement module comprises: a calculating module, configured to calculate parameter information of current movement of the effective moving target; a second storage module, configured to connect with the calculation module, configured to store the parameter information; and a determination module, configured to connect with the second storage module and configured to determine whether the camera needs to be rotated according to the parameter information stored in the second storage module. a calculating module, configured to calculate parameter information of current movement of the effective moving target; a second storage module, configured to connect with the calculation module, configured to store the parameter information; and a determination module, configured to connect with the second storage module and configured to determine whether the camera needs to be rotated according to the parameter information stored in the second storage module.