Skip to main content

AI-POWERED DOCS

What do you want to know?

Build a Recipe from Scratch

A recipe is one complete inspection: how the camera captures the image, what it checks, how it decides pass or fail, and what it tells the line.

The recipe editor is a seven-step wizard, and the order is deliberate. Each step builds on the one before it, and each has its own page:

StepWhat you decidePage
1. GoalWhat the recipe should check, in your own wordsSet a goal
2. ImagingHow the image is capturedStep 2: Imaging
3. TriggeringWhat makes the camera captureStep 3: Triggering
4. ToolsWhat gets checkedAlignment, then Inspection Tools
5. JudgmentHow tool results become pass or failStep 5: Judgment
6. OutputsWhat the line is toldStep 6: Outputs
7. VerifyReview and activateStep 7: Verify

Want to see all seven working together first? The kit tray example walks one real job from start to finish.

Imaging first, and mean it

Everything downstream is built on the image. If you change focus, exposure or lighting after training a tool, you must recapture your examples and retrain. Settle the image before you draw a single region.

Before you start​

  • The camera is mounted, wired and reachable. See Install the camera and Connect to the interface
  • The camera is in Setup mode, not Production
  • You have real parts to hand, including bad ones. You cannot train a tool to catch a defect you cannot show it

Create the recipe​

From All Recipes, click New recipe. Give it a name that will still mean something to someone else at 3 a.m. The camera assigns a PLC recipe ID automatically; you can change it on Step 6.

OV Spark All Recipes screen with the New recipe button

The camera then asks how you want to set it up:

New recipe dialog asking how to set it up: with Sparky, or yourself

  • Set it up with Sparky: describe the part and what should pass or fail, and Sparky plans the tools and walks you through each step. Start here if you are new to the camera
  • Set it up myself: start at Imaging and add tools on your own. You can still ask Sparky at any time

The steps run across the top, and a blocker chip in the header always shows what is still missing. On All Recipes, a recipe that is not finished shows an Incomplete badge with the number of blockers left, so you can see which recipes still need work without opening them.

Set a goal with Sparky​

Goal is the first step of every new recipe. You describe the inspection in plain language, for example make sure all 4 screws are present on the bracket, or pick one of the examples (check a part is present, count objects, find scratches, read text, scan a code, check a color).

Goal step: Sparky asks what the recipe should inspect and offers examples

Sparky picks the tool for the job and asks the one question that shapes the rest of the setup: does the part land in the same spot every time? If it moves, Sparky adds an aligner first. It then shows its plan, and nothing is built until you accept it with Looks right, set it up or ask it to Change the plan.

Sparky's plan for the recipe, waiting for confirmation

From there Sparky stays open beside the editor and guides you through each step in order, starting with a Smart Imaging sweep. The progress dots at the top of the panel show where you are in the seven steps. You can take over at any point: every step works the same with or without Sparky.

Sparky guiding the Imaging step from the side panel

Prefer to work without Sparky

Choose I'll set it up myself on the Goal step, or Set it up myself when you create the recipe, and the editor opens on Imaging.

Tools: the home of a recipe​

The Tools step is where a recipe lives. It lists every check the camera runs on each part, and it is where you will spend most of your time, both building the recipe and coming back to improve it.

OV Spark recipe editor Tools step, showing tools in run order with enable toggles and Configure

Click Add tool and pick from the catalog. Tools run in order, top to bottom. Each has an Enabled toggle, so you can park a tool without losing its training, and Configure to open its own setup.

  1. Add Alignment first, unless a fixture holds the part identically every cycle. Everything after it can then follow the part. See Alignment
  2. Then add your checks. Work from what you are checking, not from tool names. See Inspection Tools
  3. Train the AI tools. Classification, Count and Segmentation learn from labelled examples, on the camera, in seconds

Inside a tool, the arrow at the top left (or Return to recipe at the bottom) takes you straight back to this list.

Label from the image, never from the part in your hand

Label what the camera sees. If you mark an image as defective because you can see the flaw on the physical part but not in the image, you are teaching the model noise.

Validate before you trust it​

Do not go straight to production.

Run it with Live Preview and the I/O Live Monitor open, so you can watch the image, the verdict, and the output signal at once.

Prove the wiring separately

I/O Live Monitor has Force ON and Force OFF for each output. Fire your reject gate or stack light without running an inspection. If forcing works and the recipe does not, the problem is in the recipe, not the wiring.

When it is running​

  • Library holds every capture, filterable by capture number, PLC inspection ID, time, recipe, and judgment. Go here when someone asks why a specific part failed
  • HMI is the operator screen, and runs in Production mode

Improving a recipe​

When something slips through, or a good part fails:

  1. Find the capture in Library
  2. Add it to your training data with the correct label
  3. Retrain, then check the change in Live Preview before activating

Add examples of the failures you actually saw. Adding random extra images of parts the model already handles does not help.

Step 4 of 13
← PreviousTour the interface
Next →Step 2: Imaging