Chapter 21 Vision Control (Option)
21-73
Example
VISSCREEN 1,0,1 'Instantaneously draws on drawing screen 0.
WINDMAKE R,1,512,480,0,2 'Sets window 1 to rectangle.
CAMIN 1 'Obtains a camera image from the storage memory.
BLOB 1,0,0,0,128 'Executes labeling.
IF VISSTATUS(0)=0.0 THEN '
IF VISSTATUS(1)<>0.0 THEN '
IF BLOBLABEL(100,100)<>-1 THEN
'
VISLOC 100,100,1 '
VISPRINT “Label number =”;BLOBLABEL(100,100)
'
END IF '
END IF '
END IF '
Comments to this Manuals