Welcome to the MicroQuant documentation. This guide is intended for developers and contributors to understand the underlying architecture and how to extend the project.
The project is split into separate modules to ensure high maintainability:
All "magic numbers" and thresholds are stored here. If the detection is too sensitive or not sensitive enough, developers should adjust CANNY_SIGMA or MIN_PEAK_DISTANCE in this file.
This module handles the core computer vision pipeline:
cut(): Uses Circular Hough Transform to find the largest circle (the plate) and masks outside noise.recognize(): Uses local peak detection to count dots.
Handles the Matplotlib logic to draw dots and text on images. It is decoupled from the algorithm, allowing for future web or GUI integrations.
- Docstrings: Every function must follow the Google style docstring format.
- Typing: Use Python type hints for better IDE support.
- Classes: Logic should be encapsulated in classes where it makes sense for state management.
- Adding a new filter: Add a method to
ColonyDetectorclass indetector.py. - Changing Visualization: Modify
ColonyRendererinrenderer.py.
- Integration of Deep Learning (YOLO/U-Net) for dense colony clusters.
- Development of a FastAPI-based web interface.