Date:2022/08/22
Goal: Study、Practise
author: Gao Gao
address:shenzhen Cognex
structure(结构):
Application Development Guide
-Getting Started (本章节)
-Choosing an Application Development Pathway
-Creating a Vision Application: QuickBuild
-Creating a Vision Application: Using the Application Wizard
-Creating a Vision Application: Working with the Generated Application
-Migrating from COM to .NET
VisionPro Development Overview
VisionPro 开发综述
VisionPro provides an interactive development environment that you can use to assemble tools, configure acquisition and discrete Input/Output, and deploy robust, high-performance applications with full-featured operator interfaces.
VisionPro提供了一个交互式开发环境,您可以使用它来组装工具、配置采集和离散输入/输出,以及部署具有全功能操作员界面的强大、高性能的应用程序。
The key components of the development environment are listed below:
开发环境的关键组件如下所示:
-
QuickBuild is an interactive application builder that lets you define a job consisting of an image source, the image-processing and vision tools necessary to analyze each acquired image, and the results-analysis logic to determine the result of each inspection.QuickBuild 是一个交互式应用程序构建器,可让您定义由图像源、分析每个采集图像所需的图像处理和视觉工具以及确定每次检查结果的结果分析逻辑组成的作业。
A single QuickBuild application can consist of multiple jobs for production environments where more than one camera captures images of objects to be inspected either synchronously or asynchronously. You can run the jobs interactively, using either manual, triggered, or automatic operation.一个 QuickBuild 应用程序可以包含用于生产环境的多个作业,其中多个摄像头同步或异步捕获要检查的对象的图像。 您可以使用手动、触发或自动操作以交互方式运行作业。
- The Communications Explorer provides point-and-click browser access to Cognex discrete I/O hardware. You can link specific data items and results from a job with individual output lines. You can also configure system-level output such as a job-ready signal and a system heartbeat.Communications Explorer提供对I/O硬件点击式的访问,你可以连接一个特殊的项目然后输出结果到另外一个。
- Using the Application Wizard, you can quickly generate a complete application, including operator interface, that encapsulates the job, acquisition, and discrete I/O configuration you create using QuickBuild and the Communications Explorer. The Wizard-generated application includes an executable Windows program, fully commented VB.NET or C# source code, as well as the job and discrete I/O configuration data. Depending on the options you specify, the application can also provide full configuration control over the job internals at run time.使用应用程序向导,您可以快速生成完整的应用程序,包括操作员界面,该应用程序封装了使用QuickBuild和Communications Explorer创建的作业、采集和离散I/O配置。向导生成的应用程序包括可执行的Windows程序、完全注释的VB.NET或C#源代码,以及作业和离散I/O配置数据。根据您指定的选项,应用程序还可以在运行时提供对作业内部的完全配置控制。
The following figure provides an overview of the VisionPro development process:
下图概述了VisionPro开发过程:
(1)使用快速构建开发 >>>>>(2)带有应用程序向导的包>>>>>>(3)开发完整的应用程序
Advanced Development Capabilities
高级开发能力
In addition to using the Application Wizard to package your VisionPro application for deployment, you can also write your own custom application around the configured jobs, or you can create your entire application using C# or VB.NET directly with the underlying VisionPro components:
除了使用应用程序向导打包VisionPro应用程序以进行部署外,您还可以围绕配置的作业编写自己的自定义应用程序,或者您可以使用C#或VB.NET直接使用底层VisionPro组件创建整个应用程序:
- VisionPro Tools: Discrete functional areas within VisionPro, such as image acquisition from a camera, are encapsulated within a VisionPro tool. Each VisionPro tool makes use of a different combination of lower-level VisionPro objects to provide its specific functionality, but at the same time each VisionPro tool presents a unified tool interface. This unified interface makes it possible to build high-level environments for managing collections of VisionPro tools.
VisionPro工具:VisionPro中的离散功能区域(如从摄像机获取图像)封装在VisionPro的工具中。每个VisionPro工具都使用不同的低级VisionPro对象组合来提供其特定功能,但同时每个VisionPro工具都提供了统一的工具界面。此统一界面使您能够构建用于管理VisionPro工具集合的高级环境。
- VisionPro objects: These building block objects implement VisionPro's basic functionality: Acquiring images from cameras, frame grabbers, files, or other devices; displaying images in an application window; and performing image processing and image analysis.
VisionPro 对象:这些构建块对象实现了 VisionPro 的基本功能:从相机、图像采集卡、文件或其他设备获取图像; 在应用程序窗口中显示图像; 并进行图像处理和图像分析。
- User-Written Tools: You can easily write your own tools that implement custom functionality and include them with Cognex-supplied tools in an application. VisionPro exposes all of the information required to implement the unified tool interface.
用户编写的工具:您可以轻松编写自己的工具来实现自定义功能,并将它们与康耐视提供的工具一起包含在应用程序中。 VisionPro 公开了实现统一工具界面所需的所有信息。
- Tool Edit Controls: All VisionPro tools are supplied with an associated Tool Edit control. A tool edit control presents a graphical user interface that lets the user view and change all of the tool's (and its underlying low-level objects) properties.
工具编辑控件:所有 VisionPro 工具都配有相关的工具编辑控件。 工具编辑控件提供了一个图形用户界面,允许用户查看和更改所有工具(及其底层低级对象)的属性。