This work aimed to integrate the near-infrared spectrophotometer, image process, and mechatronics techniques and develop an on-line nondestructive photoelectric grading machine for fruits. This system was applicable to grade and label pear fruits with below 3-cm rinds. The grading capacity was 90 grains per minute and the coefficients of determination between the real and predicted quality was 0.84. This new grading machine was versatile. The price of commercialized model of this system was estimated one eightieth of imported sale price.