An integral graph algorithm-based fabric flaw detection method is disclosed. An integral graph algorithm is used for rapidly extracting statistical characteristics of gradient energy, and the statistical characteristics of gradient energy are used for flaw detection; image learning operation on a flawless template is performed, statistics are run on characteristic distribution of the gradient energy, distribution peak values are extracted, threshold parameters are calculated in a self-adaptive manner and used for distinguishing subsequent flaws, gradient energy of a window where each pixel point of an image to be detected is positioned can be calculated via the integral graph algorithm, whether a current pixel point is a defect point can be determined based on the threshold parameters, and whether the current image is a flawed fabric can be determined after statistics are run on a total quantity of flaw points of the whole image. According to the method disclosed in the invention, based on principles of accelerated operation of integral graphs, the characteristic distribution of the gradient energy of the fabric image can be rapidly extracted, real time detection of fabric flaws can be realized, the peak values of the distribution are calculated, the self-adaptive threshold parameters for flaw determination are obtained, and accurate segmentation of fabric flaws can be realized. Via the method, real-time property and high accuracy can be ensured.