![]() Point your mouse at this pin, and notice that both the link to the data ( OutputImage) and the value's tag ( vproimage) are displayed along with the cropped image preview you defined earlier in Step 5. Notice that a new output pin has appeared on the InspectImage task block. Click the Task tab to switch back to the Task window, and click to re-run the task sequence, since you modified CogImageConvertTool.Again, a black-and-white preview ( CogImage8Grey) of the partial image should display, as in the previous step. Verify that OutputImage contains the right-side of the Jell-O box by pointing your mouse at the OutputImage label. Under, a new element named OutputImage is then created. Notice the black-and-white preview image, CogImage8Grey, that is displayed.Ĭlick and then and drag the CogImageConvertTool1's OutputImage element to the element. Select CogImageConvertTool1 > OutputImage. In the Task.InspectImage window, draw a connector between CogImageConvertTool1's OutputImage element and the element to indicate that this partial image is the output that you want the InspectImage block to produce as output.In this case, repeat the procedure above to set the region, ensuring the region borders are within the image frame. Tip: If the label Task.InspectImage is red, you may have an invalid region selected (for example, the region may be defined outside the image borders). Run Task.InspectImage by clicking the ( Run) button.Once you re-sized the CogRectangle, close the CogImageConvertTool1 dialog box.You may have to increase the size of the CogImageConvertTool1 dialog box to do this. Select and re-size the blue CogRectangle in the image until it overlays the entire right-side of the frame containing the Jell-O box. Then, select CogRectangle from the Region Shape drop down box (2). This opens the CogImageConvertTool1 window. To do so, first click the Task.InspectImage window, and then double-click CogImageConversionTool1. Now, let's isolate a particular region of the Jell-O box. As such, the image displayed in the VisionPro QuickBuild tool as is the same image acquired by the Acquire block in the task. This connection mirrors the connection between the Acquire block and the InspectImage block in the Task window of Cognex Designer. Note that in the Task.InspectImage window, the > Image and CogImageConvertTool1 > InputImage entries are connected with an arrow. If it has not been acquired, select the Task window and Run All tasks. in the right-pane preview area of the Task.InspectImage window, as shown below. Verify that an image has been acquired.The tab associated with this instance is labeled Task.InspectImage. An instance of VisionPro Quick Build opens in the Sequence Editor. In the Task window, double-click the InspectImage tool block.We'll use CogImageConvertTool to isolate a specific part of the Jell-O box image for further processing by CogBlobTool, configured later in this tutorial.ĭefine the image area that you want to inspect by configuring the InspectImage tool block as described below: Let's start by configuring the VisionPro tool block InspectImage, which runs CogImageConvertTool. For example, in the window below, the task block Acquire executes before the task block InspectImage because, in left-to-right sequence, the Acquire block has been placed first. The task blocks execute left-to-right across the grid of the Task window, which acts as a graphical time-line.You can also assign Tags to those links. Tags enable your data to be referenced in Cognex Designer applications. ![]() These connectors pass links to data between task blocks. When using a project template as a basis (such as the Single Camera project used in this tutorial), connector lines are drawn by default between the Acquire and InspectImage and ImageRecorder blocks.From acquiring the image (hereafter called "acquisition") through processing and output, each block represents a task that performs a discrete function. The Task window graphically describes how your vision application processes images and data. Task blocks that depict processing within a common single-camera vision application.When you create a Single Camera project, a Task window opens in the Sequence Editor area of Cognex Designer, prepopulated various project elements as shown below. However, before doing this, take time to become familiar with the landscape in which your task blocks exist: the Task window. Now that you have configured a simulated camera as the device from which to obtain your images, let's refine the inspection scope with VisionPro's CogImageConvertTool. Define a Region for Inspection with CogImageConvertTool
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |