1. A method for detecting an object in a digital picture, comprising the steps of: 1 segmenting the image into a plurality of separate objects; for an object, (2 extracting a feature value for the object as a function of the pixels of the object; (3) selecting the object's neighboring area: (4) weighting the average difference between the feature value of the object and that of each of other objects in the neighboring area by using the size of each of other objects to get a weighted average feature difference of the object; (5) selecting an object from the plurality of objects according to their weighted average feature difference as the detected object.