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.

Segmentation · Manufacturing & QC

Contamination detection: Datasets & Models

Instance segmentation that identifies and outlines foreign particles, debris, and unwanted substances on products, surfaces, and production lines. Built for manufacturing quality control where pixel-level accuracy separates a defective unit from a clean one.

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

Contamination detection

This contamination detection workflow uses instance segmentation to locate and outline foreign material on products and surfaces, including dust, metal shavings, oil residue, hair, and plastic fragments moving through a production line. It accepts standard camera images or video frames and returns pixel-level masks for each contaminant, along with location and area measurements for quality control decisions.

Try it out

Powered by general detection model

Run on custom image

Drop an image here or click to upload

Detecting classes:

Why automate contamination detection

Manual contamination inspection in manufacturing and QC depends on human eyes at the end of a line, which fatigue, miss small particles, and produce inconsistent judgments between shifts and inspectors. Fine debris and residue are easy to overlook at line speed, and a single missed contaminant can trigger recalls, scrap, or customer rejections. Automating this with a segmentation model gives you consistent, repeatable detection that flags contaminants in real time and logs exactly where and how large each one is. That turns subjective visual checks into auditable data you can act on immediately.

Key benefits

A trained RF-DETR instance segmentation model catches contamination earlier and more consistently than periodic manual sampling, reducing scrap and downstream defects while creating a traceable record of every flagged unit. It runs on the cameras and edge hardware you likely already have on the line, and scales across multiple stations, product lines, or facilities without adding headcount. As you gather more images, you can retrain and improve accuracy for your specific products and contaminant types.

How to use it

  1. Upload an image: Drop any photo into the widget above to try contamination detection for free, right on this page.
  2. Preview instant results: The model detects metal shaving, dust particle, hair, oil residue, plastic fragment 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 (instance segmentation) 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 contamination 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 contamination 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 Contamination Detection project to Roboflow Agent.

Agent