The increasing demand for high-quality dragon fruit in the European market requires efficient quality assessment methods. This study explores a non-destructive image analysis approach for classifying ripe dragon fruits based on fruit ripeness and weight. A low-cost system equipped with visible and ultraviolet lighting was employed to capture images of 60 ripe dragon fruits over a storage period, extracting parameters such as visible and ultraviolet perimeter, maximum and minimum diameter and area, and RGB color coordinates. In a first step, the main characterization magnitudes were confirmed. A ripening index was calculated based on soluble solid content and acidity. Then, a cluster analysis was used to segregate the fruits into three quality characteristics based on the ripening index and weight. In a second step, a step-by-step discriminant analysis was conducted to classify the fruits into the three quality categories (based on the laboratory measured weight, soluble solid content and total acidity) using the non-destructive magnitudes extracted from the image analysis. The proposed classification system achieved an accuracy of nearly 85 \% of well classified dragon fruits, effectively segregating dragon fruits into the three established categories. urthermore, the established model could select the very high-quality dragon fruit (riper and larger fruits) with 93 \% of correctly dentified products.Compared to conventional destructive methods, this non-destructive approach offers a promising, cost-effective, and reliable solution for quality assessment. The findings highlight the potential for integrating smart technologies into fruit classification processes, during automatic harvest and postharvest operations, ultimately improving efficiency, reducing labor costs, and enhancing product consistency in the dragon fruit industry.