Measure blade geometry and centroid movement within structured grids using computer vision so that the mechanical performance of wind turbine blades can be assessed without manual measurement.
blade_cg_data.xlsx,blade_cg_comparison.xlsx, andblade_cg_comparison.jpgstore the measurement records and visual comparisons.- The
images_v2/folder is referenced in the notebook but not included here because the raw imagery is proprietary. Provide your own high-resolution blade photos following the filename patternimages_v2/<index>.jpgfor the notebook to run. - Supporting auxiliary exports live under
cg_visuals/andcg_visuals_v2/for reference, but they are not replayed automatically.
- Resize the imported image set to a consistent scale (default 10% of original resolution).
- Calibrate the metric conversion by clicking two points whose real-world distance is known and computing millimeters per pixel.
- Apply HSV masking to isolate blade edges and run contour detection to estimate blade outlines.
- Compute centroids per contour, export coordinates to Excel (
openpyxl), and log the results along with scale-adjusted measurements.
- The notebook writes centroid coordinates (X, Y) and summary statistics back to Excel while logging any missing segments.
- Metric comparisons between blades and the generated comparison image help visualize alignment over time.
- Python 3.9+
- OpenCV (
opencv-python) - NumPy
- pandas
- openpyxl
- Install dependencies via
pip install -r requirements.txt. - Populate
images_v2/with.jpgblade photos that match the notebook’s naming pattern. - Run
Centroid.ipynbinteractively in a Jupyter environment, clicking the required calibration points when prompted. - Check
blade_cg_data.xlsxfor exported centroid records and use the included comparison sheet for quick verification.
- Automate the calibration step by reading a ruler present in the image rather than manual clicks.
- Add edge-case handling for partial blade occlusion in the frame.
- Export results directly into a SQLite or CSV log for versioning.