Feature extraction was the basis of raisins grade detecting.Based on studying the way of polar moment of inertia,a new method of major and minor axis detecting by DDA was provided.The experimental results showed that the method could not only get the feature parameter rapidly,but also detect the location of major and minor axis,and it had rotational invariance.