CoolFace
Apppublic

Monodara/steel-defect-detection

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
App README

![Python](https://www.python.org/) ![YOLO](https://github.com/ultralytics/ultralytics) ![Framework](https://streamlit.io/) ![Deployment](https://www.docker.com/)

An AI-driven prototype designed for automated surface quality assurance in the steel industry. This project utilizes a fine-tuned YOLOv11 model to identify and localize typical surface defects with high precision.


๐ŸŒŸ Key Features

  • โ€”Real-time Inference: Upload images for near-instantaneous defect detection.
  • โ€”Multi-class Recognition: Specifically trained to detect defects like Crazing, Inclusion, Patches, Pitted Surfaces, Rolled-in Scale, and Scratches.
  • โ€”Adjustable Sensitivity: Sidebar controls for Confidence Threshold to adapt to various industrial tolerance levels.
  • โ€”Robust Deployment: Optimized Docker environment with refined OpenCV dependencies for cloud-based CPU inference.

๐Ÿ“Š Methodology & Performance

  • โ€”Base Architecture: YOLOv11s (Small variant for optimal speed-accuracy trade-off).
  • โ€”Training Strategy: Iterative fine-tuning (v1 to v5) with focus on small-feature recall and textured background suppression.
  • โ€”Input Resolution: Optimized at 640px to balance CPU latency (~1s) and defect detection sensitivity.
  • โ€”Inference Engine: Seamless integration of PyTorch and Ultralytics.

๐Ÿ› ๏ธ Tech Stack

  • โ€”Algorithm: Ultralytics / PyTorch
  • โ€”Interface: Streamlit
  • โ€”Containerization: Docker
  • โ€”Processing: OpenCV-headless

๐Ÿ“– How to Use

  1. 1.Adjust the Confidence Threshold in the sidebar (Recommended: 0.35 - 0.50).
  2. 2.Upload a steel surface image (JPG/PNG).
  3. 3.The system will render a bounding box overlay and provide a Defect Inventory report below the result.