参考点位置 X/Y 函数和移动参考点

<< 点击显示目录 >>

主页  mappVision帮助助手 > 机器视觉帮助 > mapp Vision  > 用例 > 匹配 - 自学和后续对象搜索
 >

参考点位置 X/Y 函数和移动参考点

需要输入匹配模型。匹配 "模型兴趣区域 "的几何中心将作为标准参考位置返回。

操作步骤

读出所需参考位置的坐标值。

refxy_01

在模型和新的示教过程中定义新的参考位置。参考位置的标记移动到输入的位置。

refxy_02

如果使用 TestExecute 主动执行 VF,可以看到 PositionX/Y 结果始终位于刚刚定义的新参考位置。

refxy_03

该函数不会使用已设置的参考位置 X/Y 值移动结果,而是直接更改位置。如果 ReferencePositionX/Y 的默认值为-1,那么 PositionX/Y 就是匹配 "教学兴趣区域 "的几何中心。如果设置了 ReferencePositionX/Y,模型将始终以该位置的值返回。

无需为新位置设置偏移量,只需定义新位置即可。

新位置和方向的所有计算均在函数本身中进行。


Teach-in of a Matching model is required. The geometric center of the Matching "Model ROI" is returned as the standard reference position.

Procedure

Read out the coordinate values of the desired reference position.

refxy_01

Define the new reference position in the model and new teach-in process. The marking of the reference position moves to the entered position.

refxy_02

If the VF is actively executed with TestExecute, it can be seen that the PositionX/Y results are always at the new reference position just defined.

refxy_03

The function does not move the result with the set ReferencePositionX/Y values; it changes the position directly instead. If ReferencePositionX/Y default to values -1, then PositionX/Y is the geometric center of the Matching "Teaching ROI". If ReferencePositionX/Y is set, the model always returns with the values of this position.

It is not necessary to set the offset for a new position; a new position is simply defined.

All calculations for the new position and orientation take place in the function itself.