Understand the core concepts
Before you configure detection rules, get four things straight (classes, inference zone, detection zones and detection rules) and learn how the workstation decides, step by step, that a step is "done".
Where to configure
In the admin console, go to 工艺管理 (Craft) › SOP 管理 (SOP Drafts) and click 编辑 (Edit) on a draft row to open the SOP operation editor. Pick an operation on the left. Each operation has five tabs:
| Tab | What you configure |
|---|---|
| ① 基本信息 (Basic info) | Operation name, code, standard time; material staging areas (pick lights); work area for wrong-part checks |
| ② 资料 (Materials) | Teaching video, work instructions |
| ③ 模型与类别 (Model & classes) | Which things the AI must recognize in this operation (classes) |
| ④ ROI 区域 (ROI zone) | Inference zone, detection zones; per-piece mode (multiple workpieces) |
| ⑤ 步骤与检测规则 (Steps & detection rules) | The step list and the detection rule for each step |
You can open the detection type reference at any time
Click the ? (?) next to the "Operation steps" heading, in the upper-right corner, to open the detection type reference.
How classes, zones and rules relate
Classes: things the model recognizes, such as "pen cap", "screw" or "material box".
- Every "target class" and "reference object" in a detection rule is picked from the class table.
- If something is not in the class table, no rule can judge it.
- Hands are the exception: the workstation has built-in hand recognition, so you do not add "hand" to the class table.
Inference zone: tells the model which part of the frame to look at (drawn as a polygon).
- Draw it when parts are small or the station takes up only a small part of the frame. It improves recognition.
- If you change the inference zone, you must retrain.
Detection zones: the "zones" used in rules, such as "assembly position", "staging area A" or "work area".
- Changing a detection zone does not require retraining.
Detection rule: the condition that decides each step is "done".
- It is made of one detection type (or a combination of several) plus parameters.
How a step is judged complete
After the workstation starts production, every step goes through this sequence:
- Enter the step: once the previous step passes, the current step is highlighted and the timer starts.
- Frame-by-frame check: every frame is checked against this step's rule.
- Hold time: when the rule stays satisfied continuously for the "hold time", the step passes and the next step begins. If the condition breaks in between, the timer restarts. This prevents false passes from something that only flashes by.
- Timeout: if the step has not passed after the "timeout", a step timeout is reported. Leave it blank to disable the timeout.
- Piece count: all steps in one round pass = one piece completed and counted.
While running, the workstation also reports these situations:
- Skipped ahead: a later step was completed first;
- Skipped step;
- Wrong part;
- A part installed earlier was disturbed;
- Abnormal state: the negative class of an Exclusive state check;
- Workpiece inspection failed, and so on.
For how to configure each of these, see Understand what an operation needs and See all 23 types.
