Color sorter was adopted two diferent CCD camera,black and withe 2048 pixel camara and 5000*3 pixel camera.black and white 2048 pixel CCD camera was uesd for sorting rice,and 5000*3 pixl camera was used for sorting a large range of materials such as nuts,seeds,grain,beans,wheat,dehydrated fruit and vegetable,plastic,metal and glass.