Grading of whole-dried longan by considering size, shape, and defect is an important process for exported product quality control. In this research, computer vision software for size, shape, and defect inspection based on image analysis technique was developed. The software calculated a diameter of longan using four images acquired from different angles of view. The diameter obtained from the software was comparable to surface area equivalent diameter with RMSE = 0.65 mm, MRE = 1.68% and MAE = 0