MicroFiberDetect is a desktop application powered by deep learning (Mask R‑CNN) that detects microfibres in microscope images, estimates their length via skeletonization, and derives dominant colour using clustering. Built for environmental researchers and lab practitioners.
This project contains an application designed to detect microfibres in sludge. It uses a fine‑tuned Mask R‑CNN for instance segmentation, k‑means clustering in HSL space for colour estimation, and skeletonized masks for length measurement.
Utils/
images/ # Contains all images used in the app
models/ # TorchScript files for both CA and Glass models
modules/ # Core code modules
test_data/ # Sample images extracted from glass filter
themes/ # App stylesheet
widgets/ # Reusable UI widgets
main.py # App entrypoint
main.ui # Qt Designer UI file
Note: ensure model files are present in models/.
Download the packaged app:
Windows Defender may warn you. Click More info → Run anyway.
Learn about the datasets (Glass & CA), model training, colour extraction, and length estimation in the accompanying paper.
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
MIT License
Copyright (c) 2024 Felix Marti Perez
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.