The document presents a system that automates the grading and quality testing of food grains using image processing and neural networks. This system aims to replace tedious manual inspections, which can be affected by human errors due to various physical and mental conditions, by analyzing grain images based on morphological and color features. The results show that the system achieves 100% accuracy in identifying grain types and grades, with 80-90% accuracy in assessing grain quality.