This site is driven by two keys, like the machine it came from. Reading: j and k scroll, d and u move half a page, gg goes to the top, G to the bottom, H and L switch windows, ? opens the help. Space is the Neovim leader and handles content: Space then h home, r research, p projects, g gear, a about, / tags, or Space then a digit to jump to that window. Home is the tmux prefix and handles windows: Home then c opens a terminal, Home then & closes a window, Home then space goes to the next one. While focus is on the keyboard, h j k l move between keys and Enter opens one.

ResearchR AboutA Gear — G for gear — keyboard, terminal, editor, homelab.G
    ProjectsP Tags — / as in vim: search./
    ×
    Menu

    Dirty Ceramic Floor Detection

    This project aims to distinguish between **clean** and **dirty** ceramic floor conditions using digital image processing techniques.

    This project aims to distinguish between clean and dirty ceramic floor conditions using digital image processing techniques. The approach is based on pixel intensity analysis and texture variation, without involving machine learning.

    Requirements

    ComponentVersion
    Python3.8 or newer
    OpenCVlatest
    NumPylatest
    Matplotliblatest

    All dependencies can be installed via requirements.txt.

    Project Structure

    .
    ├── deteksi_lantai_kotor.py
    ├── requirements.txt
    ├── lantai.jpg
    └── docs/
        └── sequence-diagram.png

    System Flow

    In short, the system works through five stages:

    1. Reading the ceramic floor image.
    2. Converting the image to grayscale and reducing noise.
    3. Extracting statistical features in the form of mean and standard deviation.
    4. Comparing the standard deviation value against a threshold.
    5. Determining the floor condition: clean or dirty.

    Decision-Making Basis

    The classification decision relies on the standard deviation value of pixel intensity:

    σ=1Ni=1N(xiμ)2\sigma = \sqrt{\frac{1}{N}\sum_{i=1}^{N}(x_i - \mu)^2}

    The higher the σ\sigma, the greater the texture variation on the surface — which generally indicates the presence of dirt or stains.

    How to Run

    pip install -r requirements.txt
    python deteksi_lantai_kotor.py

    Make sure the image file (lantai.jpg) is located at the path specified in the code.

    Output

    The program produces two types of output:

    • Visual: the original image, preprocessing results, and detection results.
    • Terminal: the mean value, standard deviation, and the system’s final decision.

    Notes

    • The system works optimally under relatively stable lighting conditions.
    • The threshold value can be adjusted based on testing results in different environments.
    id en
    rss gh in