To achieve enhanced accuracy of fabric representation and defect detection, an innovative approach using a sparse dictionary with small patches was used for fabric texture characterisation. The effectiveness of the algorithm proposed was tested through comprehensive characterisation by studying eight weave patterns: plain, twill, weft satin, warp satin, basket, honeycomb, compound twill, and diamond twill and detecting fabric defects. Firstly, the main parameters such as dictionary size, patch size, and cardinality