By using computer image processing and analysis, a system to detect both we
ave patterns and yarn color designs is developed in this study. The image o
f a woven fabric is captured by a Hitachi color CCD camera and converted in
to digital data by a Targa+32 board. Two images-transmitted and reflected-a
re used to detect weave patterns. From the transmitted images, warp and wef
t cross points and the sizes of the yarns are determined by analyzing gray
value changes in both horizontal and vertical directions. Then the warp and
weft crossed states are determined by analyzing the normalized aspect rati
o of an ellipse-shaped image at crossed points of the fabric. Furthermore,
from reflected images, the total number of yarn colors and their arrangemen
ts in the fabric are determined. An HSV color model differentiates or group
s similar yarn colors. Consequently, the system allows the weave pattern, e
ither colored or solid, and the color design of a fabric to be correctly re
cognized.