Journal of Embedded Systems, Security and Intelligent Systems
Vol 6, No 4 (2025): Desember 2025

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 (Unknown)
Indasari, Sri Suci (Unknown)
Janna, Nurhikmayana (Unknown)
Hilmi, Andi Afdhal (Unknown)



Article Info

Publish Date
11 Nov 2025

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).

Copyrights © 2025






Journal Info

Abbrev

JESSI

Publisher

Subject

Computer Science & IT

Description

The Journal of Embedded System Security and Intelligent System (JESSI), ISSN/e-ISSN 2745-925X/2722-273X covers all topics of technology in the field of embedded system, computer and network security, and intelligence system as well as innovative and productive ideas related to emerging technology ...