Hilmi, Andi Afdhal
Unknown Affiliation

Published : 1 Documents Claim Missing Document
Claim Missing Document
Check
Articles

Found 1 Documents
Search

Automatic Floor Stain Detection with Image Processing: A Practical Comparison of OpenCV and RGB Grayscale Conversion: Deteksi Noda Lantai Otomatis dengan Pemrosesan Citra: Komparasi Praktikal OpenCV dan Grayscale RGB Syaharuddin, Achmad Zulfajri; Indasari, Sri Suci; Janna, Nurhikmayana; Hilmi, Andi Afdhal
Journal of Embedded Systems, Security and Intelligent Systems Vol 6, No 4 (2025): Desember 2025
Publisher : Program Studi Teknik Komputer

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.59562/jessi.v6i4.9805

Abstract

This research develops an image processing-based floor stain detection system using grayscale conversion and binary thresholding. Two conversion approaches are compared: (i) a simple RGB grayscale formula and (ii) a built-in OpenCV function. The system uses a fixed intensity threshold of T=80 and classifies a floor as “dirty” if the detected area exceeds 20% of the image. Experiments are conducted on three floor types (plain, dark, patterned), five stain types (coffee, oil, ink, plastic, chalk), and two lighting conditions. Results show that the performance of both methods is very close with an average difference of ≈0.07% and a maximum of 0.6%; the simple formula is suitable for resource-limited devices, while OpenCV is more robust to color/lighting variations. The main contributions of this paper are (1) a practical comparison of two grayscale conversion pathways for cleanliness monitoring, (2) a simple decision rule based on the percentage of dirty area that aligns with cleanliness perception, and (3) an analysis of implementation implications for real-time systems in cleaning robots/IoT. Future directions include adaptive thresholding and morphology integration to improve reliability in dynamic environments. (Replace the current abstract paragraph containing T=80 and the 20% rule with the version above. The 20% policy reference is already explained in your manuscript).