How to convert pixel values in real worl unit with Visionscape
Take an image of the calibration object (object with a known distance value)
in the following example, the top caliper is open at 50mm and we will calibrate Visionscate with it. We will also explain how to output the real world value of the second caliper placed below
Build a Visionscape program to read pixel distance of the known distance in the real world.
Step 3.1 Click Calibration button located on the right side on Visionscape
Step 3.2 From calibration window,
select "Quick Calibration"
select "Camera 1"
Than click "Next >>" button
Step 3.3 Enter values
Type pixels distance value from Step 2
Type the known real world value of the distance
Click "Update Calibration" button
Than click "Next >>" button
Finally click "Finished" button
Click the globe/world button to switch display from pixels to calibrate values or vice versa
Step 4.1 add "VarAssign Step"
Step 4.2 enter expresion to convert in real world unit
expression = WORLD(<value from previous tool>)
The output of this tool become the converted values in real world unit