Skip to content

Application for object detection of microfibers in sludge samples extracted from residual water treatment plants.

License

Notifications You must be signed in to change notification settings

femartip/Detection_Microfibers_APP

Repository files navigation

Micro Fiber Detection in Sludge

Project Description

This project contains an application that is designed to detect micro fibers in sludge.

Structure:

  • Utils -
  • images - Containes all images used in the app
  • models - Torchscript file for bothe CA and Glass models
  • modules - code file
  • test_data - Contains sample images extracted from glass filter.
  • themes - app stylesheet
  • widgets -
  • main.py - main file of app
  • main.ui - ui file for qtdesigner

Table of Contents

  1. Installation
  2. Usage
  3. Features
  4. Contributing
  5. License

Installation

Source Code

Prerequisites

  • Python 3
  • OpenCV
  • PySide6
  • PyQt6
  • pyinstaller (for creating the executable file)
  • torch
  • torchvision
  • numpy
  • skimage

For running the application form the source code, after installing the prerequisits, 'main.py' file should be executed.

Windows

Access the following link to download the application:

https://mega.nz/file/4LFWFQrS#KUGnmFZsK1YgOl-IElC9jyrTNJPspCHw9VCDHTGcAuM

After downloading the application, extract the files and run the executable file. Note that Windows Defender may block the application from running. To run the application, click on "More info" and then "Run anyway".

Usage

image image image

Features

✔️ Implemented features:

  • Windows build
  • Carbonated active filter model for detecion
  • Glass fiber filter model for detection
  • Image processing
  • Progress bar for image processing
  • Overlay bounding box on detected fibers
  • Total fiber count
  • Fiber count per image
  • Fiber length measurement at defined scale
  • Fiber approximated color. Implemented with K-means clustering (Previous version used an approximation based on HSL color space.)
  • Export table data to csv
  • Export image with bounding box

❌ Features to be implemented:

  • Linux build
  • Mac build
  • Home page explanation of app
  • Export images at original resolution
  • Make segmentation and bounding box toggleable

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

License

MIT License

Copyright (c) 2024 Felix Marti Perez

About

Application for object detection of microfibers in sludge samples extracted from residual water treatment plants.

Topics

Resources

License

Stars

Watchers

Forks

Packages