This document discusses an image processing approach for detecting defects in fruits using OpenCV. It begins with an introduction to the importance of fruit production in India and the need for automation in the agriculture industry. It then discusses how previous manual quality inspection methods are inefficient. The proposed system uses computer vision and image processing techniques like OpenCV to analyze fruit images and detect defects by examining characteristics like color, texture and size. It describes the image preprocessing, thresholding, noise removal and edge detection steps. The system is able to successfully identify normal and defective fruits in images to classify quality. This provides an improved quality inspection method that is objective, consistent and can be applied to various agricultural products.