1. A flicker detection apparatus, comprising: a memory that stores a plurality of instructions; a processor coupled to the memory; and the processor is configured to execute the instructions to calculate respectively differential vectors of row vectors of neighboring frames in a current frame and former n frames of video images according to mean value row vectors of the current frame and the former n frames of the video images, n being an integer greater than or equal to 1; calculate a first mean value of a sum of absolute values of dot products of the differential vectors of the row vectors of the neighboring frames in the current frame and the former n frames of the video images and all square waves of a first group of square waves having a first frequency, and with the first mean value as a first mean detection value of the current frame; calculate a second mean value of a sum of absolute values of dot products of the differential vectors of the row vectors of the neighboring frames in the current frame and the former n frames of the video images and all square waves of a second group of square waves having a second frequency, and with the second mean value as a second mean detection value of the current frame; and detect flickers of the current frame of the video images according to a maximum value of the first mean detection value and the second mean detection value and a sum of the first mean detection value and the second mean detection value.