ROKH
← All recipes

Camera that counts defective items on the line

parts checkedwith an AI agent

What you get

Mark a few hundred photos of good and bad items, train a small detector, and a camera over the conveyor counts defects per hour and saves a picture of each.

Why this combination

A labelling tool and a counting library from computer-vision teams make visual inspection reachable for a bakery or sorting line, not just car plants.

Parts

label-studio GitHubMark up photos and texts to teach or check a model.licence: Apache-2.028,769 starslast update: November 26, 2026
supervision GitHubCounts objects crossing a line or zone in video.licence: MIT51,730 starslast update: November 26, 2026

What was checked

On November 26, 2026 a script checked all 2 parts: each exists, is not archived, was updated within the last 12 months and has a known licence. The parts were chosen so their inputs and outputs fit together.

Nobody has yet run this exact combination end to end on real data. Build it on a copy of your data first; the prompt below asks your AI agent to tell you plainly what does not work.

Limits, honestly

Needs a few hundred labelled photos and stable lighting; treat counts as a trend, not a final quality decision. Pick a model with a licence that allows your use.

How to start

It runs on your own computer. Copy the prompt into an AI agent (Claude Code or similar); it installs the parts, joins them, and runs a test with sample data before your real files.

Prompt for your AI agent

Build this for me: Camera that counts defective items on the line.
What I want to get: Mark a few hundred photos of good and bad items, train a small detector, and a camera over the conveyor counts defects per hour and saves a picture of each.

Use these open projects and data:
- label-studio: https://github.com/HumanSignal/label-studio (Apache-2.0)
- supervision: https://github.com/roboflow/supervision (MIT)

Why this combination: A labelling tool and a counting library from computer-vision teams make visual inspection reachable for a bakery or sorting line, not just car plants.
Known limits: Needs a few hundred labelled photos and stable lighting; treat counts as a trend, not a final quality decision. Pick a model with a licence that allows your use.

Run it on my computer. Tell me first what you will install and where.
Explain each step in plain words for someone who does not program.
Do not ask me for passwords or keys and do not use administrator rights.
Before installing anything, check that each project is still maintained and its licence allows my use. Do not add other agent skills, MCP servers or plugins without showing me their code first.
When it works, tell me how to open it again. If something does not work, say so plainly.

Fits

Manufacturing and workshopsFarm and agricultureGrocery and food shop