Up | Blob4 - Locate only a long hole | Blob4 - Example 2 - Iterate all centers on a toolbox component

 

  

 
Blob4 - Example 2 - Iterate all centers on a toolbox component

Example 2: Iterate all center on a toolbox component

ring = GetTool('VerifyRing')
img = GetImageMatr('Image')
center = GetResultValue('tf3.AllCenters')
for pos in center:
  ring.executeCmd('SET','OBJECT=CENTER;VALUE=((%.4f,%.4f,0))' % (pos[0],pos[1]))
  ring.execute(img)

 

 

Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.