A computer-implemented method for hand detection and tracking, the method comprising: performing a hand detection in each image frame of a video; performing location tracking on a detected hand to obtain a tracking result when the hand is detected in an image frame, wherein the tracking result comprises coordinates of a positioning block used to identify a hand location in each image frame; and adjusting the positioning block to a size determined during hand training; verifying whether the tracking result is valid by sending the adjusted positioning block to a classifier, to determine whether the positioning block is a hand, wherein the tracking result is valid if the positioning block is a hand, otherwise, the tracking result is invalid; and in response to determining that the tracking result is valid, tracking the hand in a next frame or, if the tracking result is invalid, performing localized hand detection in the current frame based on the tracking result, wherein the performing localized hand detection comprises: determining a center of the positioning block, and defining a plurality of neighborhood blocks by using a specified step and a specified block size; adjusting each of the plurality of neighborhood blocks to the size determined during hand training; and separately sending the adjusted plurality of neighborhood blocks to the classifier, to determine a quantity of neighborhood blocks that are hands in the plurality of neighborhood blocks. performing a hand detection in each image frame of a video; performing location tracking on a detected hand to obtain a tracking result when the hand is detected in an image frame, wherein the tracking result comprises coordinates of a positioning block used to identify a hand location in each image frame; and adjusting the positioning block to a size determined during hand training; verifying whether the tracking result is valid by sending the adjusted positioning block to a classifier, to determine whether the positioning block is a hand, wherein the tracking result is valid if the positioning block is a hand, otherwise, the tracking result is invalid; and in response to determining that the tracking result is valid, tracking the hand in a next frame or, if the tracking result is invalid, performing localized hand detection in the current frame based on the tracking result, wherein the performing localized hand detection comprises: determining a center of the positioning block, and defining a plurality of neighborhood blocks by using a specified step and a specified block size; adjusting each of the plurality of neighborhood blocks to the size determined during hand training; and separately sending the adjusted plurality of neighborhood blocks to the classifier, to determine a quantity of neighborhood blocks that are hands in the plurality of neighborhood blocks. determining a center of the positioning block, and defining a plurality of neighborhood blocks by using a specified step and a specified block size; adjusting each of the plurality of neighborhood blocks to the size determined during hand training; and separately sending the adjusted plurality of neighborhood blocks to the classifier, to determine a quantity of neighborhood blocks that are hands in the plurality of neighborhood blocks.