XG-X TechTip Scaling
XG-X TechTip Scaling
X-Direction Measurement:
Start with X-direction scale factor by placing your object of known length in the camera field of
view. For the most accurate scaling:
- ensure your known dimension is lined up as horizontal as possible in relation to the field
of view
- have your known dimension span more than half of the field of view. The shorter the
known dimension the higher the chance there is for compounding error.
Next, go to the flowchart and add an Edge Width tool to give the known dimension in pixel
units. The tool can be added by right clicking on the flowchart > Add > Vision Tools > Edge
Width. You can either register the image or work with the captured image when setting this up.
Go to the Inspect Region setting, and then set your inspection region to get the X direction
measurement you would like to use. Once set, verify that your green edge detection lines fall
2
Machine Vision Technology Keyence Corp. of America XG-X Series Tech Tip
For Reference Only
where your known dimension is. If they are a little off you can either adjust the inspection
region, or you can go into the Condition tab to adjust the edge detection settings. In the
example below, we are taking the 4” measurement from the 3” line to the 7” line. Notice how
the green lines fall directly on those marks.
When the Edge Width tool is set, use the unit result window under the image display to get the
pixel value measurement. In this example, the distance from the two tick marks is 1744.301
pixels. To get the scale coefficient for the X-direction, divide the real dimension by the pixel
dimension (4in/1744.301pix = 0.002293 in/pix). To set the scale factor in the XG-X, go to
Options > Camera Settings > Scaling, then input the value.
Pixel Dimension
3
Machine Vision Technology Keyence Corp. of America XG-X Series Tech Tip
For Reference Only
*Note: The scale factor coefficients above were calculated based off an example setup, your
calculated coefficients may vary depending on installation, camera resolution, etc.
4
Machine Vision Technology Keyence Corp. of America XG-X Series Tech Tip
For Reference Only
5
Machine Vision Technology Keyence Corp. of America XG-X Series Tech Tip
For Reference Only
Resources
Online Support Software Software Activation Firmware Updates
Manual Downloads Technical Guides CAD Files
6
Machine Vision Technology Keyence Corp. of America XG-X Series Tech Tip