This document proposes and evaluates a classification system for automatically classifying apples based on images using a nearest neighbor classifier. The system divides apple images into windows, extracts statistical features from each window, eliminates unnecessary windows, and classifies the apple as defected or non-defected based on the features. It aims to discriminate stem ends and calyxes, which are natural parts of apples, from defects. The results show the proposed window-based approach is effective and more efficient than existing techniques at classifying apples and distinguishing stem ends/calyxes from defects.