This page is being translated by your browser

Translation can break parts of Roboflow. If something stops working, turn translation off and reload the page.

Detection · Manufacturing & QC

Glass defect detection: Datasets & Models

Automated visual inspection of glass products to detect cracks, chips, scratches, and bubbles on production lines. Uses object detection to flag defective units before they reach packaging or shipping.

Glass defect detection example
1M+
developers
16k
organizations
50B
inferences

Glass defect detection

Glass defect detection applies object detection to images captured by inline cameras over conveyors or at inspection stations, identifying flawed units before they move to packaging or shipping. It locates and draws bounding boxes around defects including cracks, chips, scratches, and trapped air bubbles on sheets, bottles, containers, and panels.

Try it out

Powered by general detection model

Run on custom image

Drop an image here or click to upload

Detecting classes:

Why automate glass defect detection

Manual inspection of glass is slow, inconsistent, and hard to scale across high-throughput production lines, and human inspectors fatigue when scanning for subtle scratches or hairline cracks under bright lighting. In manufacturing and QC environments, a missed defect can lead to costly downstream rework, customer returns, or safety issues with tempered and structural glass. Automating glass defect detection with a vision model gives you consistent, repeatable inspection at line speed and creates an audit trail of every flagged unit. It also lets you catch defect trends early and correct upstream process problems before they generate large batches of scrap.

Key benefits

An object detection model like RF-DETR pinpoints and classifies each defect, so you can act on defect type and location rather than a simple pass/fail signal. It integrates with existing inline cameras and PLC-driven reject mechanisms, and scales across multiple lines and facilities without adding inspection headcount. Continuous data capture also builds a labeled dataset that improves model accuracy over time and supports root-cause analysis of recurring defects.

How to use it

  1. Upload an image: Drop any photo into the widget above to try glass defect detection for free, right on this page.
  2. Preview instant results: The model detects crack, chip, scratch, bubble, glass panel within seconds and returns an annotated image with structured predictions, so you can immediately see how well it works. Adjust the detection classes and re-run until the results fit your scenario.
  3. Like what you see?: With a free Roboflow account, you can deploy this workflow with the Serverless Cloud API, customize it in your workspace, or train RF-DETR on your own images for production accuracy.
  4. Get started for free: No code or training data required to begin: upload, review the results, and make it part of your stack in a single click.
Recommended model

Recommended model for glass defect detection

RF-DETR is state of the art for real-time object detection, instance segmentation, and keypoint detection, with higher accuracy and lower latency than comparable models, and it's Apache 2.0 licensed. When you're ready to build a production model for glass defect detection, fine-tune it on your own labeled images, then deploy to a Serverless Cloud API endpoint.

Train your own model
Roboflow Agent

Not sure where to start?

Describe your Glass Defect Detection project to Roboflow Agent.

Agent