Performance Comparison of Serial and Parallel Fruit Classification Using Pretrained Neural Networks
摘要
In an era characterized by the growing need for efficient image classification, this study investigates the performance of serial and parallel processing techniques for classifying fruit images as “Healthy” or “Rotten” using a pretrained ResNet18 neural network. The classification algorithm begins with preprocessing input images, which are then passed through the ResNet18 model for feature extraction and classification. The serial method processes images sequentially, while the parallel approach employs threading to simultaneously process image batches. A flowchart is presented to visually outline the workflow, including image loading, preprocessing, classification, and result aggregation. Detailed experiments compare the cumulative processing times of serial and parallel methods, demonstrating significant improvements in computational efficiency through parallelization. The results validate the proposed framework as a scalable and practical solution for large-scale, real-time image classification tasks, maintaining accuracy while reducing processing time.