VCreateObject方法
描述
在目前專案中建立視覺物件。
語法
Sub VCreateObject (Sequence As String, ObjectName As String, ObjectType As SpelVisionObjectTypes)
參數
- Sequence
包含目前專案中視覺序列之名稱的字串運算式。 - ObjectName
包含要在Sequence序列中建立之物件名稱的字串運算式。 - ObjectType
指定視覺物件類型的SpelVisionObjectTypes。(以下所示的常數也可使用)
| 物件類型 | 常數 | 數值 |
|---|---|---|
| Correlation | Correlation | 1 |
| Blob | Blob | 2 |
| Edge | Edge | 3 |
| Polar | Polar | 4 |
| Line | Line | 5 |
| Point | Point | 6 |
| Frame | Frame | 7 |
| ImageOp | ImageOp | 8 |
| Ocr | Ocr | 9 |
| CodeReader | CodeReader | 10 |
| Geometric | Geometric | 11 |
| Color Match | ColorMatch | 14 |
| Line Finder | LineFinder | 15 |
| Arc Finder | ArcFinder | 16 |
| Defect Finder | DefectFinder | 17 |
| Line Inspector | LineInspector | 18 |
| Arc Inspector | ArcInspector | 19 |
| Box Finder | BoxFinder | 20 |
| Corner Finder | CornerFinder | 21 |
| Contour | Contour | 22 |
| Text | Text | 23 |
| Decision | Decision | 26 |
| Coordinates | Coordinates | 27 |
另請參閱
VCreateSequence方法, VDeleteObject方法, VDeleteSequence方法
VCreateObject範例
VB 例:
m_spel.VCreateObject("myseq", "myblob", SpelVisionObjectTypes.Blob)
C# 例:
m_spel.VCreateObject("myseq", "myblob", SpelVisionObjectTypes.Blob);