This paper presents a novel approach of visual inspection for texture surface defects. It is based on the measure of texture energy acquired by a kind if high performance 2D detection mask, which is learned by genetic algorithms. Experimental results of texture defect inspection on textile images are presented to illustrate the merit and feasibility of the proposed method.<br /