In the progress of draft automatic inputting in computerized embroidery punching system,color clustering is a suitable method.It includes two ways,K—averag-ing iteration and combination.In contrast to traditional edge detection,these two ways are more effective.They have been applied to the image preprocessing system for computer—controlled embroidery.