A method and system for analyzing an object is provided in the present invention. The system comprises: a background arranged behind an object, wherein the color of the background is allowed to be selected from a set of colors; a first unit for setting a given color for the background so that the given color is different from the color of the object; a second unit for taking a picture including the object and the background; and a third unit for detecting at least one feature relating to the object according to the picture taken by said second unit. In the system, the color of the background is allowed to be set so as to be different from the color of the object. In this way, it is easy to distinguish the object part from the background part in the taken picture. This results in stable recognition for different objects, especially objects of different colors.