Build with RF-DETR

Build an Assembly Verification App Free with RF-DETR

Check every part of an assembly is present and in place, from circuit boards to harnesses. Label images, train RF-DETR free, and deploy it as a workflow.

  • No credit card
  • No ML team required
  • Edge, on-prem or API
RF-DETRLive inference
Computer vision defect detection highlighting a missing screw on a metal enclosure, with an inset close-up of the empty hole.
Representative result. Assembly verification to meet product spec standards.

Build an Assembly Verification App with Roboflow’s Free RF-DETR

In short

An assembly verification app uses computer vision to check that every part of an assembly is present, in the right position and orientation, and installed in order, then passes, fails, or flags each unit for review; the template checks circuit boards for missing components, and you can train it on panels, wiring harnesses, fasteners, or connectors. The model to train for it is RF-DETR (opens in a new tab), Roboflow's open-source real-time detection model, and to catch problems you cannot list ahead of time, Roboflow also trains PatchCore and FoundAD anomaly detection models (opens in a new tab) on good assemblies only. With Roboflow you label your images, train RF-DETR for free, and deploy it as a workflow that returns an annotated image, a count of missing components, and a PASS or FAIL result.

How it works

The workflow behind the assembly verification app

Use this Assembly Verification with RF-DETR workflow: each image of a circuit board goes to an RF-DETR model that checks every component location, then through a confidence filter and into two tracks. One counts the missing components and turns the count into PASS or FAIL, the other draws boxes and labels, and both meet where the verdict is written onto the image. Every block is editable in the low-code builder, and the Roboflow Agent can build it from a description.

Assembly Verification with RF-DETR
Returns
  • output_image
  • inspection_result
  • missing_component_count
  • predictions

How to build an assembly verification app with RF-DETR

  1. Open the workflow and add your images

    Click "Use this free template" to copy the workflow into your Roboflow workspace. Upload images of your assembly from the station camera, including complete units and examples of each part that can go missing. The template checks circuit boards; for panels, wiring harnesses, or mechanical assemblies, upload those images and train on them. No images yet? Start from a public missing component dataset on Roboflow Universe (opens in a new tab).

  2. Label parts and train RF-DETR

    Use Auto Label (opens in a new tab) to box each part location, then review and correct the results, labeling each check as its own class, such as good part, missing, flipped, or misaligned. Train an RF-DETR model and select it in the detect_components block; it fine-tunes well on small custom datasets. To catch problems you cannot list ahead of time, mark images of good assemblies as Normal and train a PatchCore or FoundAD anomaly detection model as well.

  3. Tune the threshold and the pass/fail rule

    Add an Absolute Static Crop (opens in a new tab) block before detect_components so the model only looks at the fixture area, and set the threshold in filter_by_confidence so missing parts are caught without failing good units. Update the class list in count_missing_components to match your assembly, and change pass_fail_result to add a NEEDS REVIEW result for low-confidence or partly hidden parts, so the operator rescans or a reviewer decides.

  4. Check each step before the next one

    Run the workflow after each assembly step to confirm that step's parts are present before the next step covers them, and show the result and the next instruction on the station screen. For conditions a camera cannot see, such as fastener torque, pair the check with readings from your connected tools.

  5. Deploy and connect it to your line

    Deploy the workflow as a Serverless Cloud API (opens in a new tab), or on your own hardware such as an industrial PC through Inference (opens in a new tab). Read the unit's barcode, QR code, or serial label with the Barcode Detector (opens in a new tab), QR Code Detector (opens in a new tab), or OCR (opens in a new tab) blocks, log each run with the Vision Events (opens in a new tab) block, and send the result to your MES or reject station through a webhook (opens in a new tab), or through the industrial connectors available on Enterprise plans.

Roboflow MCP

Build it from your AI assistant with the Roboflow MCP

Connect the Roboflow MCP Server to Claude, Cursor, or any MCP-compatible assistant and build the whole assembly verification app in natural language, without leaving your editor.

Ask an assistant like Codex or ChatGPT to search Roboflow Universe for assembly and missing component datasets, upload and auto-label your station images, and train an RF-DETR model to check each part. It can then create and run the assembly verification workflow on test images and deploy it to your devices.

Paste it into your coding agent and it walks you through the rest. Setting up by hand? The server is https://mcp.roboflow.com/mcp.

Add to Claude (opens in a new tab)

Open the Roboflow listing, select Connect, then sign in to Roboflow. Available on desktop, web and mobile.

Run these commands in your terminal, then sign in to Roboflow. Claude Code CLI has no documented browser install link.

Add to Cursor (opens in a new tab)

Opens the Roboflow plugin listing. Sign in if prompted and confirm the install on Cursor to add MCP and skills.

Add to ChatGPT (opens in a new tab)

Opens the Roboflow plugin listing. Install the plugin and sign in to Roboflow when prompted to connect your account.

Add to Codex (opens in a new tab)

Opens the Roboflow plugin listing shared by ChatGPT and Codex. Install the plugin and sign in to Roboflow when prompted to connect your account.

Then run /mcp auth roboflow in Gemini CLI to sign in. Gemini CLI has no documented browser install link.

What your assembly verification app can do

Trained on your images, an RF-DETR model handles the specific, hard-to-catch cases that matter on your line:

  • Spot a missing capacitor, resistor, or diode on a crowded board
  • Tell an empty component location apart from a good part
  • Check parts are in the right position and orientation
  • Confirm fasteners and connectors are in place
  • Name which component is missing, not just that something is wrong
  • Check every location on every unit, not a sample
  • Catch missing parts before the unit moves to the next station
  • Adapt to new assemblies by labeling a few examples
Roboflow agent · free to start

Want to customize your assembly verification app?

Describe the assembly verification app you want in plain English: your product, the parts that must be present, and what should happen when one is missing. The Roboflow Agent finds the data, trains an RF-DETR model, and assembles the workflow for you.

Open source

Roboflow’s RF-DETR is open source, Apache-2.0, and free to use

RF-DETR is an open-source, Apache-2.0 licensed real-time object detection model developed by Roboflow. The rfdetr Python package and most RF-DETR models are free to use, including in commercial products, and you can train and run everything on your own hardware. No account or lock-in required.

  • Apache-2.0 and free

    The rfdetr package, Nano to Large detection, every segmentation size and Keypoint are Apache-2.0 licensed and free to use, including commercially.

  • Install and train locally

    pip install rfdetr on Python 3.10+. Fine-tune on your own data in a few lines and run it entirely on your machine.

  • State of the art on COCO

    RF-DETR is a real-time detector that is SOTA on COCO. RF-DETR-Large reaches 56.5 AP at 6.8 ms on an NVIDIA T4, and uses a DINOv2 backbone.

  • Deploy anywhere

    Export to ONNX or TensorRT and run on GPU, CPU, or NVIDIA Jetson at the edge, or serve it through the Roboflow hosted API.

RF-DETR licence by model size
ModelsLicence
Detection: Nano, Small, Medium, LargeApache-2.0
Segmentation: every size, Nano to 2XLargeApache-2.0
Keypoint (preview)Apache-2.0
Detection: Atto, Femto, Pico, XL, 2XL (rfdetr[plus])PML 1.0: commercial use included on Roboflow; commercial self-hosting needs the Enterprise add-on

RF-DETR vs. other free detectors

An assembly verification app has to check many small, closely packed parts on every unit at line speed, so the model needs to be both accurate and fast. Here is how RF-DETR, fine-tuned on your own assembly images, compares for real-time inspection.

RF-DETR vs. other free detectors
ModelTasksBest forLicense
RF-DETRDetection, segmentation (keypoints in preview)Real-time detection you fine-tune on your own data, one model across tasksApache-2.0 (Nano to Large, all segmentation); PML 1.0 (Atto, Femto, Pico, XL, 2XL)
D-FINEDetectionPrecision localization when you do not need to fine-tuneApache-2.0
YOLODetection, segmentation, poseFast CNN-based detection with a large ecosystemAGPL-3.0 (commercial license required for closed-source use)
GroundingDINOOpen-vocabulary detectionFinding objects by text prompt with no training, not real-timeApache-2.0
SAM 2 / SAM 3SegmentationPixel-precise masks; SAM 3 adds text-prompted segmentationApache-2.0 (SAM 2), SAM License (SAM 3)
Florence-2Vision-languageReading, captioning, and OCR on imagesMIT

The takeaway for this app: RF-DETR runs in real time, so it can check every unit as it passes. It fine-tunes well on small custom datasets and is open source, so you can train on your own assemblies and run the model wherever you need it.

Build your assembly verification app free today

Label, train, and deploy your assembly verification app in one place.