Control Fan Speed based on temperature and humidity
-
Without visualization plots
python usage.py
-
With visualization plots
- Install numpy and matplotlib
pip install numpy matplotlib
- Usage:
python usage_viz.py
- Install numpy and matplotlib
- Install opencv-contrib
pip install opencv-contrib-python
- Usage
python main.py <image_path> <threshold: [0-100] Default: 25>
- Example Usage
python main.py pictures/pic1.jpg 18
- utils/line.py
- Point Dataclass
- Line Class:
Modeled using y = mx + c
Handled vertical line edge-case - Intersection calculation functions for both lines and line-segements
- utils/polygon.py
- Polygon Class
- combinePolygons function
Targeted just for trapezoids, triangles and their portions whose one side sits on X-axis
- utils/centroid.py
- Area calculation funtion of polygon
- Centroid calculation function of polygon