You are here: Start » AVL.NET » AVL.DeepLearning_SegmentInstances
Performs instance segmentation using a trained deep-learning model.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void DeepLearning_SegmentInstances ( AvlNet.DeepLearningConnectionState ioState, AvlNet.Image inImage, string inDeepModel, IList<AvlNet.Box> outBoundingBoxes, IList<int> outClassIds, IList<string> outClassNames, IList<float> outScores, IList<AvlNet.Region> outMasks )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
ioState | AvlNet.DeepLearningConnectionState | ||||
inImage | AvlNet.Image | Input image. | |||
inDeepModel | string | Trained model. | |||
outBoundingBoxes | System.Collections.Generic.IList<AvlNet.Box> | Bounding boxes of found objects. | |||
outClassIds | System.Collections.Generic.IList<int> | Ids of found objects classes. | |||
outClassNames | System.Collections.Generic.IList<string> | Names of found objects classes. | |||
outScores | System.Collections.Generic.IList<float> | Scores of found objects. | |||
outMasks | System.Collections.Generic.IList<AvlNet.Region> | Masks of found objects. |
Remarks
- Model provided on inDeepModel input will be loaded to service automatically on first usage of Deep Learning filters.
- Service automatically releases and loads model into its memory. It may result in releasing model previously loaded using DeepLearning_LoadModel filter.
- These filters only communicates with service and cannot be use for parallel computation.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty image in DeepLearning_SegmentInstances. |
DomainError | Empty ROI region in DeepLearning_SegmentInstances |
DomainError | Invalid DeepModel in DeepLearning_SegmentInstances. |
DomainError | Size of ROI differs from size of image in DeepLearning_SegmentInstances |
IoError | Inconsistent service response |
IoError | Invalid service response - missing bounding box |
IoError | Invalid service response - missing class id |
IoError | Invalid service response - missing class name |
IoError | Invalid service response - missing score |