VCreateObject メソッド
解説
カレントプロジェクトでビジョンオブジェクトを作成します。
書式
Sub VCreateObject (Sequence As String, ObjectName As String, ObjectType As SpelVisionObjectTypes)
パラメーター
- Sequence
カレントプロジェクトでビジョンシーケンス名を示す文字列式 - ObjectName
シーケンスで作成するオブジェクト名を示す文字列式 - ObjectType
ビジョンオブジェクト型を示す数値 (下に示す定数も使用可)
| オブジェクト型 | 定数 | 値 |
|---|---|---|
| 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);