15
Chapter 1 Blob Tool Beginner Synopsis This chapter will guide you through how to setup a VPM program to inspect for missing ball bearings (File Camera Images). The software tools used will be the Blob Tool, Pass/Fail Tool, and Discrete Output Tool. The Blob Tool will count the number of bearing by using blob analysis. The Pass/Fail Tool will “get” the results from the Blob Tool and then follow the pass/fail branch accordingly. The Discrete Output Tools will then be placed in the pass/fail paths to potentially signal an outside

Chapter 1 Blob Tool Beginner

  • Upload
    gyan

  • View
    48

  • Download
    0

Embed Size (px)

DESCRIPTION

Chapter 1 Blob Tool Beginner. Synopsis. - PowerPoint PPT Presentation

Citation preview

Page 1: Chapter 1 Blob Tool Beginner

Chapter 1

Blob Tool Beginner

Synopsis

This chapter will guide you through how to setup a VPM program to inspect for missing ball bearings (File Camera Images).  The software tools used will be the Blob Tool, Pass/Fail Tool, and Discrete Output Tool.  The Blob Tool will count the number of bearing by using blob analysis.  The Pass/Fail Tool will “get” the results from the Blob Tool

and then follow the pass/fail branch accordingly.  The Discrete Output Tools will then be placed in the pass/fail paths to potentially signal an

outside device (alarm, reject mechanism, etc)

Page 2: Chapter 1 Blob Tool Beginner

1-Launch VPM

2-Connect to the emulator or live camera (Refer to chapter 1--A)

3-Load the bearing images into the File Camera (Refer to chapter 1--B) The file names are 01_bearing_fail.png, 02_bearing_fail.png, etc.

4-Click on the orange IMPACT icon.

Page 3: Chapter 1 Blob Tool Beginner

1-Click on Create New Vision Program. Notice the icon that is orange.

2-Click New Program.

Page 4: Chapter 1 Blob Tool Beginner

1-Name the program bearing.vp

Page 5: Chapter 1 Blob Tool Beginner

1-Open the Flaw Detection tool drawer by clicking on it.

2-Drag and drop the Blob tool into the program tree

Page 6: Chapter 1 Blob Tool Beginner

1-Click 2. ROI

(ROI = Region Of Interest)

2-Place ROI as shown in image

2-Chose Autothreshold Contrasting Bright Pixels

Resize ROI

Move ROI Rotate ROI

Page 7: Chapter 1 Blob Tool Beginner

1-Click on a ball bearing

2-Notice how it shows the actual area of the ball bearing

3-Click the Area check box

4-Set the filter parameters from 240 to 260

5-Enter 8 and 8 here

Page 8: Chapter 1 Blob Tool Beginner

1-Drag and drop a Pass Fail tool into the program tree

Page 9: Chapter 1 Blob Tool Beginner

1-Drag a Discrete Output tool and drop it on top of the word “Pass.” This will place the tool in the pass branch.

The Discrete Output tool is an open collector TTL logic switch.

Page 10: Chapter 1 Blob Tool Beginner

1-Setup the tool like this. This indicates discrete output 1 will turn on and discrete output 2 will turn off when the tool is run.

2-Add a Discrete Output tool to the fail branch and set it up to turn on output 2 and off output 1.

Page 11: Chapter 1 Blob Tool Beginner

1-Click the Trigger button to snap through all of the images.

Page 12: Chapter 1 Blob Tool Beginner

Camera triggered by outside input

Image is acquired

Task is executed – logic flow begins

Blob tool runs and counts the number of ball bearings

Pass Fail tool runs and “gets” the Pass/Fail result of the Blob tool and directs the logic flow down the pass or fail branch.

Logic follows pass branch

If pass If fail

Discrete Output tool runs (output 1 turns on, output )

Discrete Output tool runs (output 2 turns on)

Logic follows fail branch

Overview

Page 13: Chapter 1 Blob Tool Beginner

HISTOGRAMS

Page 14: Chapter 1 Blob Tool Beginner

HISTOGRAMS

Select Fixed Thresholding

Page 15: Chapter 1 Blob Tool Beginner

HISTOGRAMS

Adjust

Highlight ROI

Click Histogram