跳转到内容
STAGING SERVER
DEVELOPMENT SERVER

vTools#

vTools 是使用 Workbench 创建图像处理设计的构建模块。

每个 vTool 都可以执行特定的任务,例如相机校准、图像格式转换或条形码读取等等。在 Workbench 中,添加所需的 vTools,按照您想要的顺序连接它们,然后将设计保存为配方文件 (.precipe)。最后,您可以将配方添加到您的应用程序中。

When configuring the vTools, you can quickly test any changes you make by loading an image and running the recipe. In a section of the Workbench called the pin data view, you can see the results at runtime. Adjust the settings and repeat this process until you're satisfied.

Integrating vTools Into Your Application#

To integrate the image processing design into your own application, use the pylon C++ Data Processing API, which offers a variety of simple functions for loading and executing recipes as well as for evaluating the results in your program code.

Changes made to the recipe settings in the pylon Viewer become effective when you load the recipe into your application again. You don't have to change or recompile the application code.

The pylon C++ Data Processing API provides a set of samples that demonstrate certain common use cases. Incorporated in the sample code are a number of demo vTools.

For more information, see the pylon C++ Data Processing Programmer's Guide available in the Help menu of the pylon Viewer or in the pylon installation directory (usually C:\Program Files\Basler\pylon\Development\Documentation\PylonCppDataProcessingSDK.chm).

可用的 vTools#

有些 vTools 是免费的,并且包含在 pylon Viewer 设置中。对于其他 vTools,您需要许可证。有关更多信息,请参阅 vToolvTool 许可

免费的 vTools#

可授权的 vTools#

Demo vTools#

For documentation of demo vTools, see the vTool Documentation pane included in the pylon Viewer.

  • Test Image Generator vTool
  • Stamp vTool

输入和输出引脚#

每个 vTool 都有输入和输出引脚,用于将数据输入到 vTools 并将数据传递到设计中的下一步。要连接 vTools,请单击输出引脚,并将连接拖动到另一个 vTool 的相同类型的输入引脚,即从 Camera vTool 的图像输出引脚拖动到 Barcode Reader vTool 的图像输入引脚。

输入和输出端子可以视为配方的输入/输出引脚。您可以使用输入端子将数据推送到 vTool 的输入引脚,且可以使用输出端子从 vTool 的输出引脚接收数据。

以下屏幕截图说明了如何连接 vTools 和端子:

连接 vTools

迷你地图#

如果您的配方包含大量 vTools,可能并非所有都可见,取决于 Workbench 窗格的大小。在这种情况下,您可以查看迷你地图,此地图显示可见区域外部的任何 vTools。

配置 vTools#

根据 vTool 的不同,您可以通过设置对话框或通过 Features - All 窗格中的 vTool 参数或同时使用这两者来配置它。有关更多详细信息,请参阅要配置的 vTool 主题。