Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 14 of 47

Bulletin 2803 VIM Vision Input Module User Manual: 8 - Image Acquisition and Brightness Compensation, pages 119 to 126

Pages 119 to 126 of 404, from Bulletin 2803 VIM Vision Input Module User Manual

The original document is the PDF (26 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Allen-Bradley 2803-VIM2

Page 119

Chapter

Chapter Objectives

8

Image Acquisition and Brightness Compensation

The objective of this chapter is to show how to use the Image menu icons to set up the VIM2 module’s brightness compensation and other image acquisition capabilities. This chapter also decribes using the Registration menu icons to automatically adjust threshold image settings. Note: Before attempting to set the image acquisition parameters described in this chapter, you should first set up the workstage to establish the lighting and workpiece positioning during inspection, and establish the camera focus and F-stop setting. For information on the staging for VIM2 vision inspections, see Chapter 4.

Image Acquisition and Brightness Compensation

Using the Image and Registration the following parameters:

menu icons, you can set

Brightness Compensation: Set up the VIM2 module’s brightness compensation capability to account for lighting brightness variations. First select from two modes - mode 1 (same frame compensation) or mode 2 (next frame compensation). Then place the brightness probe on the monitor screen, and set an acceptance range for the brightness probe. Strobe Enable: Set the VIM2 module to utilize the strobe light during setup and/or run mode. Threshold Images: Set the threshold value for the threshold images you intend to use during inspection. Halted Image: Set the VIM2 module to utilize a halted or “live” video image during setup. Brightness Registration: Automatically adjust the threshold image settings to a new nominal brightness level.

Accessing the Image Menu Your Action Pick the Setup icon on the Main menu to access the Setup menu. Setup Menu

To begin to set up the image acquisition and brightness parameters, first access the Image menu as described below. Comments If the Main menu is displayed, access the Setup menu by picking the Setup icon (the “open padlock”). If the Setup menu is already displayed (as shown below), skip this step.

Page 120

Chapter 8-2

8

Image Acquisition and Brightness Compensation

Accessing the hage Men 4.4 (continued)

Your Action Pick the Image icon on the Setup menu to access the Image Menu.

Comments Picking the Image icon causes the Image menu to appear. Notice that a small rectangular window also appears on the screen; this is the brightness probe.

I

- image Icon

Here are brief descriptions of the Image menu icons:

-b q q ml

Image Acquisition -Pick this icon to select the image acquisition mode to be ,used by the VIM2 module during setup. This icon, when picked, toggles between two modes image acquisition, and halt image.

Strobe -Pick this icon to enable or disable the strobe capability of the VIM2 module. This icon, when picked, toggles between enabled or disabled (disabled is indicated by diagonal slash across the icon).

IF;31 d El I\1

Probe Move - Pick this icon to access the Probe Move menu. Use the Probe Moue menu to position the brightness probe on the monitor image.

El la L ml

Mode Select-Pick this icon to select the brightness compensation mode. This icon, when picked, toggles between mode 1 (same frame compensation) and mode 2 (next frame compensation).

HI

Acceptance Range - Pick this icon to access the Acceptance Range menu. Use the ,4cceptance Range menu to set the upper and lower limits for the brightness probe, and to read the current probe result, and probe statistics. Threshold -Pick this icon to access the Threshold menu. Use the Threshold menu to set the threshold level for any or all of the four threshold images.

Page 121

Chapter

Brightness Compensation

8 image Acquisition and Brightness Compensation 8-3

The VIM2 module has a brightness compensation capability which allows the VIM2 module to automatically adjust for changes in lighting intensity from inspection to inspection. What does brightness compensation do? Each time the VIM2 module conducts an inspection, it analyzes the threshold images with the vision tools which have been configured. The composition of these threshold images can change if the lighting intensity changes - that is, if lighting becomes dimmer, more black pixels may appear in the images; if the lighting becomes brighter, more white pixels may appear in the images. If this happens, the measurement accuracy of line gages and windows can be affected; this can cause mistaken reject or accept decisions. When you use brightness compensation, if a change in lighting brightness occurs in the workstage area (for example, a light bulb fails), the VIM2 module automatically adjusts threshold levels to account for the change, so that the threshold images are relatively unaffected. The result is that VIM2 measurements are relatively unaffected. How do you set up brightness compensation? During setup, you place the brightness probe - a special type of window - in the video image. This brightness probe measures the average level of brightness in a small area of the gray-level image from the camera. During setup, the brightness probe learns the nominal brightness level in the image; the range for measurement values is a scale from 0 (completely dark) to 255 (very bright). During VIM2 operation, the probe detects the brightness level for each inspection, and compares this to the nominal level. Then, if any change in lighting is detected, the threshold levels of the threshold images are changed also. When setting up the brightness probe, you also set an acceptance range for brightness. If the measured brightness value is beyond this preset range, an image acqzksition error occurs. This allows you to limit the amount of acceptable lightning variation, and help distinguish between inspection failures due to bad parts, and those due to bad lighting. Which threshold images are affected by brightness compensation? Any or all of the threshold images can be set to use the brightness compensation capability; you enubEe or disable brightness compensation for each threshold image using the Anchor/Flout icon on the Threshold menu. Is brightness compensation the same for strobe lighting and non-strobe lighting? No, there are two different brightness compensation modes -

Page 122

Chapter 8-4

Brightness Cornpensa tion (continued)

8

Image Acquisition and Brightness Compensation mode 1, for strobe or non-strobe lighting (sane frame compensation), and mode 2, for non-strobe lighting only (next frame compensation). You select the mode using the Compensation Mode icon. When do you set up brightness compensation? Set up brightness compensation after you have set up the workstage, and have a.workpiece in position (see Chapter 4), so that the workpiece features to be inspected are shown clearly in the field of view (and on the monitor).

Selecting the Compensation Mode

When setting up brightness compensation for your application, you must select the compensation mode. You can choose one of two modes - mode 1, (same frame compensation), or mode 2 (next frame compensation). You select the mode using the Compensation Mode icon on the Image menu. When compensation mode 1 is selected, the brightness compensation is applied to the same image (the same frame) used to detect the lighting brightness. Thus it is ideal for strobe-lit inspections, although it can also be used in nonstobe lighting applications. When using compensation mode 2, the brightness compensation is applied to the subsequent acquired image (the next frame). This mode is more suited to non-strobe light sources; do not use mode 2 when using strobe lighting. Note: If you select mode 1, you can only place the brightness probe in the top 40 rows of the monitor image. And, you cannot place any part of a line gage or window in the top 48 rows of the monitor image. Comments

Your Action Pick the Compensation Mode icon on the Image menu to set the Compensation Mode.

The Compensation Mode icon is the icon third from the left on the Image menu. The Compensation Mode icon, when picked, toggles between mode 1 and mode 2.

Image Menu

&I*

Compensation Mode Icon

Note: The VIM2 module does not allow you to select mode 1 if the brightness probe is placed somewhere below the top 40 rows of the monitor image, or if any window or line gage is positioned in the top 48 rows of the image.

Page 123

Chapter f/acing the Brightness Probe

8

Image Acquisition and Brightness Compensation 8-5

In order to use a brightness probe for lighting brightness compensation, you must place that brightness probe in a suitable position in the monitor image. Generally speaking, you should place the probe so that it window covers a referencepatch in the video image. What is a “reference patch?” A reference patch is an area of consistent color and shading which you should place in the camera field of view when you are setting up the workstage, if you intend to use brightness compensation. The reference patch is necessary to assure that any detected change in brightness is due to variations in the lighting, and not due to changes of shading of objects in the workstage. When the brightness probe is used, any change in brightness from inspection to inspection is detected by the probe as a change in lighting. The purpose of the reference patch is to supply an area in the monitor image whose shading will not change from inspection to inspection, so that the brightness probe detects only a brightness change which is due to change in lighting intensity. An example procedure in this section illustrates the placement of the brightness probe over a reference patch. How do you position the reference patch? The position of the reference patch should be fixed in the workstage area in relation to the camera, so that it appears in the same place in each inspection image. Also, the reference patch should be placed so the position of the workpiece will not obstruct the camera’s view of the reference patch during inspection. This helps assure that the brightness probe readings will remain effective. Note: If you are using brightness compensation mode 1, you must position the reference patch so that it appears in the top 40 rows of the monitor image. What shade should the reference patch be? The appropriate shade of the reference patch will depend on the brightness of the lighting in the workplace. The shade of the reference patch should be such that, when the brightness probe is placed over it, a midrange reading results (the overall brightness range is 0 to 255; midrange would be approximately 70-180). This allows brightness compensation in either direction (for brighter or darker brightness changes). Note: When using backlighting, it may be necessary to place a patch of somewhat transparent, yet shaded material over part of the backlit area to obtain a midrange reading.

Page 124

Chapter 8-6

P/acing the Brightness Probe (continued)

8 image Acquisition and Brightness Compensation

To place the brightness probe you need to use the Probe Moue menu (Note: You cannot adjust size or shape of the probe). Pick the Probe Moue icon to access the Probe Moue menu, as described below: Comments

Your Action Pick the Probe Move icon to access the Probe Move menu.

The Probe Moue icon is the fourth icon from the left on the Image menu (indicated by the four directional arrows).

\

J(

Probe Move Icon

Probe Move Menu

OK, ~el9B+B+B

UP

\ Down

\ Left

Right

The Probe Moue menu includes four directional arrow icons. To moue the probe into the desired position, pick the appropriate arrow icon(s), in one of two ways: l

Pick the arrow icon to move the probe one pixel in the direction indicated by the icon.

l

Pick and hold the light pen down against the arrow icon to cause continuous imouement in the indicated direction (ifyoupick a n arrow icon and it fZashes, this indicates that the window is at a boundary - such as the screen edge -and cannot be moved further in that direction). Note: Depending on the brightness compensation mode you have selected, placement of the probe may be restricted - if you have selected mode lcsame fr-ame compensation), you can only place the probe in the top 40 rows (or about the top 17%) of the video image.

Page 125

Chapter

Placing the Brightness Probe (continued)

8 lmage Acquisition and Brightness Compensation 8-7

Example Probe Move This demonstration places the brightness probe over the reference patch on the monitor image.

Note: For example purposes, these procedures refer to the target pattern included with this manual. See Chapters 5 and 6 to set up the VIM2 module, peripheral equipment, and target pattern. In order to locate the reference patch in the monitor image, you may first need to briefly change the video display mode, so the monitor displays the analog image, instead of the threshold image. Your Action Pick the upper half of the monitor screen twice. 0 bserve and remember the reference patch position.

Comments Picking the screen twice with the light pen displays the analog image (the probe is not displayed on screen). The reference patch is the light gray rectangle in the upper half of the analog image (see illustration below).

Reference Patch

Analog image of tarlget pattern

-

Pick the upper half of the monitor screen once. Reference patch location

Threshold image 2 (example image) -

Picking the screen once redisplays the threshold image, the Probe Moue menu, and the brightness probe.

- Original position of probe

Page 126

Chapter 8-8

Placing the Brightness Probe

8

Image Acquisition and Brightness Compensation

Example Probe Move fcontinued)

(continued)

Pick the left arrow until the probe is placed over the referencepatch.

Picking the left arrow .moves the probe to the left.

la

Original position of probe

/

Probe moved left to center of reference patch position on threshold image 2 (example image).

Pick the OK icon.

Reference patch location

Once the brightness probe has been placed, you can return to the Image menu using the OK icon.

Probe Move Menu

Acceptance Range /con Image Menu

Pick the Acceptance Range icon to access th.e Acceptance Range menu.

The current measured result of the brightness probe is listed as the middle number of the three numbers on the right side of the Acceptance Range menu.

Acceptance Range Menu Current probe result

0 bserve the probe result.

”

Ideally, the probe result should be a midrange reading (the range is O-255, midrange is approximately 70-180). Note: If the reading is not in midrange during setup, you may have to adjust either or both the workstage lighting or the F-stop setting of the lens (see Chapter 4). Or, if the lighting and Fstop setting are satisfactory, you can change the reference patch to a different shade to get a midrange reading.