A large amount of seam detection for inhomogeneously textured fabrics makes those performing it fatigued, which leads to misjudgments by human vision, especially for the seam detection of patterned inhomogeneously textured fabrics. The traditional wavelet texture analysis is no longer applicable to fabrics with inhomogeneous textures and irregular patterns. In this paper, a novel mean weighting factor is proposed to obtain an optimized discriminant measure to detect the fabric seams. Firstly, the wavelet coefficients are extracted in individual decomposition levels. Then a mean weighting factor is calculated on the use of the difference of the coefficient values between two consecutive decomposition levels, and a better discriminant measure for seam detection is obtained. Lastly, a thresholding process is used to segment the seam information from the background. The experimental results show that the proposed approach effectively carries out the seam detection in the inhomogeneously textured fabric images.Keywords inhomogeneously textured fabrics, seam detection, wavelet transform, mean weighting factor, discriminant measureTo improve the quality of velvet fabrics, the cutting process is a necessary step to make the surface uniform. Figure 1 shows the cutting process of velvet fabrics. The thickness of the seam is over 3.5 mm, which is slightly larger than the distance between the driving roller and blade (about 2-3 mm). The blade at a high running speed (the speed is more than 1000 rpm) will be damaged by the fabric seams if they contact with each other. Then fabric defects will occur when the following fabrics are operated by the damaged blade. Besides, the blade in the cutting machine is fragile and expensive. The seam will not only lead to fabric disqualification, but also causes equipment loss. So the detection of velvet fabric seams plays a key role in the cutting process.Traditionally, manual inspectors control the blade going up and down to avoid fabric seams. This manual approach has drawbacks with regard to identifying seams in terms of accuracy, consistency and efficiency, as inspectors are subject to visual fatigue or brain delayed-response after a long period of working and thus seam misjudgments are often produced. To eliminate the human factors to increase product quality, an advanced system of setting a thickness sensor alongside the blade is used to detect the fabric seams in some factories. A set of control system makes the blade rise up when the seam goes through the thickness sensor. However, with the increase of velvet fabric thickness, this system has faced limitations on the induction of the change of the thickness. There are urgent industrial demands to investigate the machine vision technique 1,2 for seam detection.In fact, machine vision has been widely used for the fabric defect detection. 3-7 Various algorithms designed for fabric defect detection [8][9][10][11][12][13] have been developed to tackle the detection problem, such as the Fourier transform, 14,15 the Gabor filters 16,17 and...