|
Download composite-defect-detector/README.md from randomnameplease/DefectDetection: direct link, hf CLI and curl.
- Browser
- Download file 4.95 kB
-
https://huggingface.co/randomnameplease/DefectDetection/resolve/bbb083f4e4130af04e257cdde2dee2208973e4f5/composite-defect-detector/README.md
- Command line
-
hf download hf://randomnameplease/DefectDetection@bbb083f4e4130af04e257cdde2dee2208973e4f5/composite-defect-detector/README.md
-
curl -L -o README.md https://huggingface.co/randomnameplease/DefectDetection/resolve/bbb083f4e4130af04e257cdde2dee2208973e4f5/composite-defect-detector/README.md
4.95 kB
π¬ CompositeDefect AI - NDT Analysis System
A comprehensive machine learning-based web application for detecting and analyzing defects in composite materials using various Non-Destructive Testing (NDT) methods.
π― Features
Supported NDT Methods
- Visual Testing (VT) - Surface defect detection
- Ultrasonic Testing (UT) - Internal defect detection using sound waves
- Magnetic Particle Testing (MPT) - Surface and near-surface defects
- Radiographic Testing (RT) - X-ray based internal inspection
- Liquid Penetrant Testing (LPT) - Surface-breaking defects
- Eddy Current Testing (ECT) - Conductive material inspection
- Thermal/Infrared Testing (IRT) - Heat-based defect detection
- Microwave NDT - Dielectric material inspection
- Vibration Analysis - Structural integrity assessment
Composite Materials Supported
- Carbon Fibre Reinforced Polymer (CFRP)
- Glass Fibre Reinforced Polymer (GFRP)
- Aramid Fibre Reinforced Polymer (AFRP)
- Hybrid Composites
Detectable Defect Types
- Delamination - Layer separation in composites
- Cracks - Structural fractures
- Voids - Air pockets and porosity
- Fibre Misalignment - Incorrect fibre orientation
- Resin Rich Areas - Excess resin concentration
- Resin Starved Areas - Insufficient resin coverage
π Getting Started
Prerequisites
- Python 3.8 or higher
- pip package manager
Installation
- Clone or download the project:
cd composite-defect-detector
- Install required dependencies:
pip install -r requirements.txt
- Run the Streamlit application:
streamlit run app.py
- Open your browser and navigate to:
http://localhost:8501
π Usage Guide
1. Configure Analysis Parameters
- Select the NDT Method used for inspection
- Choose the Material Type being analyzed
- Adjust Detection Sensitivity (0.1 - 1.0)
- Set Confidence Threshold (0.5 - 0.95)
- Select which Defect Types to detect
2. Upload NDT Images
- Click "Browse files" to upload your NDT inspection images
- Supported formats: JPG, JPEG, PNG, TIFF, BMP
- Preview the uploaded image before analysis
3. Run AI Analysis
- Click "Start AI Analysis" button
- The system will preprocess the image based on NDT method
- ML model will detect and classify defects
- Results will be displayed in real-time
4. Review Results
- Detection Results Tab: View detected defects with bounding boxes
- Detailed Analysis Tab: See charts, statistics, and recommendations
- History Tab: Access previous analyses
5. Export Reports
- Download annotated images (PNG)
- Export defect data (CSV)
- Generate comprehensive JSON reports
π¨ Color Scheme
The application uses a modern dark theme with:
- Primary Background: Black (#0a0a0a)
- Secondary Background: Dark Grey (#141414, #1e1e1e)
- Text: White (#ffffff) and Light Grey (#b0b0b0)
- Accent Colors:
- Blue (#3b82f6) - Primary actions
- Purple (#8b5cf6) - Secondary accents
- Cyan (#06b6d4) - Highlights
π§ Technical Details
ML Model Architecture
- Image preprocessing based on NDT method type
- Simulated deep learning defect detection
- Multi-class classification for defect types
- Confidence scoring and severity assessment
Key Libraries
- Streamlit - Web application framework
- OpenCV - Image processing
- Pillow - Image manipulation
- NumPy - Numerical computations
- Plotly - Interactive visualizations
- scikit-learn - Machine learning utilities
- TensorFlow/Keras - Deep learning framework
π Analysis Outputs
Metrics Provided
- Total defect count
- Defect type distribution
- Severity classification (Low/Medium/High/Critical)
- Confidence scores
- Defect area measurements (mmΒ²)
- Position coordinates
Visualizations
- Pie chart: Defect type distribution
- Bar chart: Severity distribution
- Histogram: Confidence score distribution
- Annotated images with bounding boxes
Reports
- Test information summary
- Defect recommendations
- Exportable CSV, JSON, and image formats
β οΈ Severity Levels
- Critical (Red) - Immediate action required
- High (Orange) - Attention required, schedule maintenance
- Medium (Yellow) - Monitor and plan repair
- Low (Green) - Acceptable, continue monitoring
π Safety Notes
This tool is designed to assist NDT professionals and engineers. Always:
- Verify AI results with manual inspection
- Follow industry standards for defect acceptance
- Consult certified NDT professionals for critical decisions
- Use as a supplementary tool, not a replacement for expert judgment
π License
This project is for educational and research purposes.
π€ Contributing
Contributions are welcome! Please feel free to submit issues and enhancement requests.
Developed with β€οΈ for the NDT and Composites Community