Build with RF-DETR

Build a Package Damage Detection App Free with RF-DETR

Catch crushed, dented, and torn boxes on the conveyor, at the dock, or from a phone photo. 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 interface showing three cardboard packages on a conveyor belt, with digital bounding boxes identifying two as intact and one crushed package as damaged.
Representative result. Damaged cardboard box package detection.

Build a Package Damage Detection App with Roboflow’s Free RF-DETR

In short

A package damage detection app uses computer vision to inspect boxes on a conveyor, at a dock, or in phone photos taken from several sides, and flag the ones that are crushed, dented, torn, punctured, or open at the seams, so damage is caught before a package ships or a delivery is accepted. The model to train for it is RF-DETR (opens in a new tab), Roboflow's open-source real-time detection model; start with damaged versus intact and add damage types as you collect labeled examples. 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 damaged boxes, and a PASS or FAIL result you can turn into damage detected, no visible damage detected, or needs review.

How it works

The workflow behind the package damage detection app

Use this Package Damage Detection with RF-DETR workflow: each image goes to an RF-DETR model that finds every box and labels it damaged or intact, then through a per-class confidence filter and into two tracks. One counts the damaged boxes 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.

Package Damage Detection with RF-DETR
Returns
  • output_image
  • inspection_result
  • damaged_count
  • predictions

How to build a package damage detection 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 from the cameras over your conveyor or dock, or phone photos of each package from several sides at receiving or delivery, including intact boxes and every kind of damage you see. No images yet? Start from the package damage datasets on Roboflow Universe (opens in a new tab).

  2. Label damage and train RF-DETR

    Before labeling, write a short guide with examples of acceptable wear versus damage that needs action, since people disagree on borderline boxes. Use Auto Label (opens in a new tab) to box each package as damaged or intact, including tricky intact boxes with heavy tape, printed graphics, and old labels; once you have enough examples, add classes like tear, puncture, crushed corner, and open seam, and box the damaged area itself so reviewers see exactly what was found. Train an RF-DETR model and select it in the detect_packages block; it fine-tunes well on small custom datasets.

  3. Tune the thresholds and the pass/fail rule

    Set the thresholds in filter_by_confidence for damaged and intact boxes. Change pass_fail_result to return damage detected, no visible damage detected, or needs review, and add severity rules, for example pass scuffs, send minor dents to review, and send tears, punctures, and open seams to a re-tape or re-box lane. For phone photos, add a Camera Focus (opens in a new tab) block to score sharpness and ask for a retake when a photo is blurry.

  4. Test it on packages it has not seen

    Test the model on new packages from your own operation, keeping all photos of the same package in one split so results are not inflated. Measure missed damage, false alarms on intact boxes, and how many packages go to review, then pilot with people reviewing flagged boxes before you automate any decision.

  5. Deploy and connect it to your operation

    Deploy the workflow as a Serverless Cloud API (opens in a new tab), or on your own hardware next to the line through Inference (opens in a new tab) to keep sorter divert decisions fast, or call it from a phone or web app; the Roboflow iOS SDK (opens in a new tab) also runs RF-DETR on the iPhone itself. Add a Barcode Detector (opens in a new tab) block to read the shipping label so each result is tied to its tracking number, save the photos, prediction, reviewer decision, and timestamp as the inspection record, and add corrected images back to your Roboflow dataset to retrain.

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 package damage detection app in natural language, without leaving your editor.

Ask an assistant like Codex or ChatGPT to search Roboflow Universe for package damage datasets, upload and auto-label your conveyor or dock images, and train an RF-DETR model on damaged and intact box classes. It can then create and run the package damage detection 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 package damage detection app can do

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

  • Spot crushed corners and dented sides at belt speed
  • Catch torn flaps and split tape seams before contents spill
  • Tell real damage apart from scuffs, tape, and shipping labels
  • Inspect boxes of every size, touching or close together on the belt
  • Combine every side of a package into one result
  • Send actionable damage to a re-tape or re-box lane
  • Keep detecting as lighting changes at dock doors
  • Check every box at receiving before a delivery is signed for
Roboflow agent · free to start

Want to customize your package damage detection app?

Describe the package damage detection app you want in plain English: where your cameras are, the damage you need to catch, and what should happen to a damaged box. 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

A package damage detection app has to inspect every box on a moving belt and spot damage that is often small next to the box itself, so the model needs to be both accurate and fast. Here is how RF-DETR, fine-tuned on your own parcel 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 keeps up with packages moving down a conveyor. It fine-tunes well on small custom datasets and is open source, so you can train on your own boxes and damage types and run the model wherever your cameras are.

Build your package damage detection app free today

Label, train, and deploy your package damage detection app in one place.