Main Article Content
Abstract
Edge detection is a crucial process in digital image processing, particularly in automated visual inspection systems for packaging quality control. Cardboard packaging used in traditional food products often experiences deformation due to mechanical stress or poor distribution, thus requiring a reliable damage detection method. This study aims to compare the performance of five classical edge detection algorithms, Canny, Sobel, Prewitt, Roberts, and Laplacian of Gaussian (LoG), in identifying contours and structural deformations in product packaging images. Data were obtained through the acquisition of five cardboard images using a high-resolution smartphone camera. The processing steps include image conversion to grayscale, application of the edge detection algorithm, and quantitative evaluation of the results. The evaluation was conducted using three main metrics: Peak Signal-to-Noise Ratio (PSNR), Mean Squared Error (MSE), and processing time. The results show that the Sobel algorithm provides the best performance, with the highest PSNR and lowest MSE values consistently, despite having the longest processing time. In contrast, the Canny algorithm shows the highest efficiency in speed, but with low detection quality. Prewitt and LoG yielded relatively balanced intermediate results between accuracy and efficiency, while Roberts performed moderately across all aspects. These findings indicate that algorithm selection should be tailored to system requirements. Sobel is more appropriate for applications that prioritise accuracy, while Canny is recommended for real-time systems. This study provides an initial basis for the development of lightweight visual inspection systems in the traditional food industry and the MSME sector
Keywords
Article Details

This work is licensed under a Creative Commons Attribution 4.0 International License.
References
- Avci, I. (2022). Threshold Values of Different Classical Edge Detection Algorithms. Traitement Du Signal, 39(5), 1775–1780. https://doi.org/10.18280/ts.390536
- Bin, L., & Samiei Yeganeh, M. (2012). Comparison for Image Edge Detection Algorithms. IOSR Journal of Computer Engineering (IOSRJCE), 2(6), 1–04. www.iosrjournals.org
- Cheng, D., Gao, X., Mao, Y., Xiao, B., You, P., Gai, J., Zhu, M., Kang, J., Zhao, F., & Mao, N. (2023). Brain tumor feature extraction and edge enhancement algorithm based on U-Net network. Heliyon, 9(11). https://doi.org/10.1016/j.heliyon.2023.e22536
- G, O. E., C, A. D., & N, O. J. (2025). Exploring the Effectiveness of Sobel, Canny, and Prewitt Edge Detection Algorithms. World Journal of Advanced Engineering Technology and Sciences, 15(01), 1722–1730.
- Guo, L., & Wu, S. (2023). FPGA Implementation of a Real-Time Edge Detection System Based on an Improved Canny Algorithm. Applied Sciences (Switzerland), 13(2). https://doi.org/10.3390/app13020870
- Hidayat, N. R. P., & Kartowisastro, I. H. (2024). Comparison of Edge Detection Methods Using Road Images. International Journal of Engineering Trends and Technology, 72(10), 64–72. https://doi.org/10.14445/22315381/IJETT-V72I10P107
- Idris, B., Abdullah, L. N., Halim, A. A., Taufik, M., Selimun, A., & Malaysia, P. (2022). Comparison of Edge Detection Algorithms for Texture Analysis on Copy-Move Forgery Detection Images. IJACSA) International Journal of Advanced Computer Science and Applications, 13(10), 152–160. www.ijacsa.thesai.org
- Ighoyota Ben, A., Nicholas.O., O., & Charles O., O. (2017). Optimum Fuzzy based Image Edge Detection Algorithm. International Journal of Image, Graphics and Signal Processing, 9(4), 44–55. https://doi.org/10.5815/ijigsp.2017.04.06
- Jose, A., Dixon K, D. M., Joseph, N., George E, S., & Anjitha V, M. (2014). Performance Study of Edge Detection Operators. International Conference on Embedded Systems - (ICES), 7–11.
- Juneja, M., & Sandhu, P. S. (2009). Performance Evaluation of Edge Detection Techniques for Images in Spatial Domain. International Journal of Computer Theory and Engineering, 1(5), 614–621.
- Kalbasi, M., & Nikmehr, H. (2020). Noise-Robust, Reconfigurable Canny Edge Detection and its Hardware Realization. IEEE Access, 8, 39934–39945. https://doi.org/10.1109/ACCESS.2020.2976860
- Karate, M., Bakane, P., Sangekar, V., & Khobragade, U. (2024). A Review on Recent Advances of Packaging in Food Industry. International Journal of Horticulture, Agriculture and Food Science (IJHAF), 8(2), 18–25. https://doi.org/10.22161/ijhaf.8.2
- Kasthuri, M. (2022). Performance Analysis of Gradient Based Image Edge Detection. International Journal of Health Sciences, 6, 12851–12857. https://doi.org/10.53730/ijhs.v6ns1.8205
- Li, Y., Huang, N., Liu, K., Chen, H., Wang, Z., & Yu, J. (2021). A Modified HOG Algorithm based on the Prewitt Operator. Proceedings of the 2021 International Conference on Bioinformatics and Intelligent Computing, BIC 2021, 257–261. https://doi.org/10.1145/3448748.3448789
- Mathur, S., & Sandeep Gupta, M. (2024). An Enhanced Edge Detection Using Laplacian Gaussian Filtering Method from Different Denoising Images. Original Research Paper International Journal of Intelligent Systems and Applications in Engineering IJISAE, 2024(18s), 313–323. www.ijisae.org
- Nandhini, M., Faridha Banu, D., Madhumitha, D., Shivanandham, R. S., Srisanjana, K., & Roshaan, J. S. (2025). Evaluating Edge Detection Algorithms for Robust Image Processing and FPGA Implementation. Proceedings of 5th International Conference on Trends in Material Science and Inventive Materials, ICTMIM 2025, 1588–1595. https://doi.org/10.1109/ICTMIM65579.2025.10988244
- Poobathy, D., & Chezian, R. M. (2014). Edge Detection Operators: Peak Signal to Noise Ratio Based Comparison. International Journal of Image, Graphics and Signal Processing, 6(10), 55–61. https://doi.org/10.5815/ijigsp.2014.10.07
- Rahman, A. Y., & Zakaria, Z. (2024). A Novel Hybrid Canny, Sobel, Robert, and Prewitt Algorithm for Enhanced Schematic Edge Detection in Power Distribution Networks. 2024 IEEE Sustainable Power and Energy Conference, ISPEC 2024, 265–273. https://doi.org/10.1109/iSPEC59716.2024.10892535
- Saxena, S., Singh, Y., Agarwal, B., & Poonia, R. C. (2022). Comparative analysis between different edge detection techniques on mammogram images using PSNR and MSE. Journal of Information and Optimization Sciences, 43(2), 347–356. https://doi.org/10.1080/02522667.2021.2000168
- Setiawan, A., Triyanto, W. A., Setiawan, A., Warsito, B., & Wibowo, A. (2022). Underwater Shrimp Digital Image Segmentation Using Edge Detection Method on Fog Network. Proceedings - 2022 2nd International Conference on Information Technology and Education, ICIT and E 2022, 81–86. https://doi.org/10.1109/ICITE54466.2022.9759876
- Shaikh, M. J., & Hyder, M. (2023). Green Packaging as a Positive Catalyst for Green Environment: Implementation in Emerging Markets around the Globe. Pakistan Journal of Humanities and Social Sciences, 11(1), 655–669. https://doi.org/10.52131/pjhss.2023.1101.0382
- Song, B., Wang, Y., & Lou, L. P. (2023). SSD-Based Carton Packaging Quality Defect Detection System for the Logistics Supply Chain. Ecological Chemistry and Engineering S, 30(1), 117–123. https://doi.org/10.2478/eces-2023-0011
- Vemuru, K. V. (2022). Implementation of the Canny Edge Detector Using a Spiking Neural Network. Future Internet, 14(12). https://doi.org/10.3390/fi14120371
- Widodo, C. E., Adi, K., Gernowo, R., & Setiawan, A. (2023). Pleural Effusion Measurement Method on Thoracic Image of Dengue Fever Patient Using Image Processing Technique. Mathematical Modelling of Engineering Problems, 10(4), 1467–1472. https://doi.org/10.18280/mmep.100443
- yahya, sara, elsanary, hameda, Hassan, M., & ali, abdelmgeid. (2024). An Improved Edge Detection Method for Image Analysis in Diverse Domains. Aswan Science and Technology Bulletin, 0(0), 1–19. https://doi.org/10.21608/astb.2024.310816.1004
- Zhou, W., Yu, W., & Yang, H. (2022). Research on Part Edge Detection Algorithm Based on Deep Learning. 2022 5th International Conference on Robotics, Control and Automation Engineering, RCAE 2022, 280–285. https://doi.org/10.1109/RCAE56054.2022.9996046
- Zhu, M., Yu, L., Wang, Z., Ke, Z., & Zhi, C. (2023). Review: A Survey on Objective Evaluation of Image Sharpness. In Applied Sciences (Switzerland) (Vol. 13, Issue 4). MDPI. https://doi.org/10.3390/app13042652
References
Avci, I. (2022). Threshold Values of Different Classical Edge Detection Algorithms. Traitement Du Signal, 39(5), 1775–1780. https://doi.org/10.18280/ts.390536
Bin, L., & Samiei Yeganeh, M. (2012). Comparison for Image Edge Detection Algorithms. IOSR Journal of Computer Engineering (IOSRJCE), 2(6), 1–04. www.iosrjournals.org
Cheng, D., Gao, X., Mao, Y., Xiao, B., You, P., Gai, J., Zhu, M., Kang, J., Zhao, F., & Mao, N. (2023). Brain tumor feature extraction and edge enhancement algorithm based on U-Net network. Heliyon, 9(11). https://doi.org/10.1016/j.heliyon.2023.e22536
G, O. E., C, A. D., & N, O. J. (2025). Exploring the Effectiveness of Sobel, Canny, and Prewitt Edge Detection Algorithms. World Journal of Advanced Engineering Technology and Sciences, 15(01), 1722–1730.
Guo, L., & Wu, S. (2023). FPGA Implementation of a Real-Time Edge Detection System Based on an Improved Canny Algorithm. Applied Sciences (Switzerland), 13(2). https://doi.org/10.3390/app13020870
Hidayat, N. R. P., & Kartowisastro, I. H. (2024). Comparison of Edge Detection Methods Using Road Images. International Journal of Engineering Trends and Technology, 72(10), 64–72. https://doi.org/10.14445/22315381/IJETT-V72I10P107
Idris, B., Abdullah, L. N., Halim, A. A., Taufik, M., Selimun, A., & Malaysia, P. (2022). Comparison of Edge Detection Algorithms for Texture Analysis on Copy-Move Forgery Detection Images. IJACSA) International Journal of Advanced Computer Science and Applications, 13(10), 152–160. www.ijacsa.thesai.org
Ighoyota Ben, A., Nicholas.O., O., & Charles O., O. (2017). Optimum Fuzzy based Image Edge Detection Algorithm. International Journal of Image, Graphics and Signal Processing, 9(4), 44–55. https://doi.org/10.5815/ijigsp.2017.04.06
Jose, A., Dixon K, D. M., Joseph, N., George E, S., & Anjitha V, M. (2014). Performance Study of Edge Detection Operators. International Conference on Embedded Systems - (ICES), 7–11.
Juneja, M., & Sandhu, P. S. (2009). Performance Evaluation of Edge Detection Techniques for Images in Spatial Domain. International Journal of Computer Theory and Engineering, 1(5), 614–621.
Kalbasi, M., & Nikmehr, H. (2020). Noise-Robust, Reconfigurable Canny Edge Detection and its Hardware Realization. IEEE Access, 8, 39934–39945. https://doi.org/10.1109/ACCESS.2020.2976860
Karate, M., Bakane, P., Sangekar, V., & Khobragade, U. (2024). A Review on Recent Advances of Packaging in Food Industry. International Journal of Horticulture, Agriculture and Food Science (IJHAF), 8(2), 18–25. https://doi.org/10.22161/ijhaf.8.2
Kasthuri, M. (2022). Performance Analysis of Gradient Based Image Edge Detection. International Journal of Health Sciences, 6, 12851–12857. https://doi.org/10.53730/ijhs.v6ns1.8205
Li, Y., Huang, N., Liu, K., Chen, H., Wang, Z., & Yu, J. (2021). A Modified HOG Algorithm based on the Prewitt Operator. Proceedings of the 2021 International Conference on Bioinformatics and Intelligent Computing, BIC 2021, 257–261. https://doi.org/10.1145/3448748.3448789
Mathur, S., & Sandeep Gupta, M. (2024). An Enhanced Edge Detection Using Laplacian Gaussian Filtering Method from Different Denoising Images. Original Research Paper International Journal of Intelligent Systems and Applications in Engineering IJISAE, 2024(18s), 313–323. www.ijisae.org
Nandhini, M., Faridha Banu, D., Madhumitha, D., Shivanandham, R. S., Srisanjana, K., & Roshaan, J. S. (2025). Evaluating Edge Detection Algorithms for Robust Image Processing and FPGA Implementation. Proceedings of 5th International Conference on Trends in Material Science and Inventive Materials, ICTMIM 2025, 1588–1595. https://doi.org/10.1109/ICTMIM65579.2025.10988244
Poobathy, D., & Chezian, R. M. (2014). Edge Detection Operators: Peak Signal to Noise Ratio Based Comparison. International Journal of Image, Graphics and Signal Processing, 6(10), 55–61. https://doi.org/10.5815/ijigsp.2014.10.07
Rahman, A. Y., & Zakaria, Z. (2024). A Novel Hybrid Canny, Sobel, Robert, and Prewitt Algorithm for Enhanced Schematic Edge Detection in Power Distribution Networks. 2024 IEEE Sustainable Power and Energy Conference, ISPEC 2024, 265–273. https://doi.org/10.1109/iSPEC59716.2024.10892535
Saxena, S., Singh, Y., Agarwal, B., & Poonia, R. C. (2022). Comparative analysis between different edge detection techniques on mammogram images using PSNR and MSE. Journal of Information and Optimization Sciences, 43(2), 347–356. https://doi.org/10.1080/02522667.2021.2000168
Setiawan, A., Triyanto, W. A., Setiawan, A., Warsito, B., & Wibowo, A. (2022). Underwater Shrimp Digital Image Segmentation Using Edge Detection Method on Fog Network. Proceedings - 2022 2nd International Conference on Information Technology and Education, ICIT and E 2022, 81–86. https://doi.org/10.1109/ICITE54466.2022.9759876
Shaikh, M. J., & Hyder, M. (2023). Green Packaging as a Positive Catalyst for Green Environment: Implementation in Emerging Markets around the Globe. Pakistan Journal of Humanities and Social Sciences, 11(1), 655–669. https://doi.org/10.52131/pjhss.2023.1101.0382
Song, B., Wang, Y., & Lou, L. P. (2023). SSD-Based Carton Packaging Quality Defect Detection System for the Logistics Supply Chain. Ecological Chemistry and Engineering S, 30(1), 117–123. https://doi.org/10.2478/eces-2023-0011
Vemuru, K. V. (2022). Implementation of the Canny Edge Detector Using a Spiking Neural Network. Future Internet, 14(12). https://doi.org/10.3390/fi14120371
Widodo, C. E., Adi, K., Gernowo, R., & Setiawan, A. (2023). Pleural Effusion Measurement Method on Thoracic Image of Dengue Fever Patient Using Image Processing Technique. Mathematical Modelling of Engineering Problems, 10(4), 1467–1472. https://doi.org/10.18280/mmep.100443
yahya, sara, elsanary, hameda, Hassan, M., & ali, abdelmgeid. (2024). An Improved Edge Detection Method for Image Analysis in Diverse Domains. Aswan Science and Technology Bulletin, 0(0), 1–19. https://doi.org/10.21608/astb.2024.310816.1004
Zhou, W., Yu, W., & Yang, H. (2022). Research on Part Edge Detection Algorithm Based on Deep Learning. 2022 5th International Conference on Robotics, Control and Automation Engineering, RCAE 2022, 280–285. https://doi.org/10.1109/RCAE56054.2022.9996046
Zhu, M., Yu, L., Wang, Z., Ke, Z., & Zhi, C. (2023). Review: A Survey on Objective Evaluation of Image Sharpness. In Applied Sciences (Switzerland) (Vol. 13, Issue 4). MDPI. https://doi.org/10.3390/app13042652