You are here: Start » AVL.NET » AVL.DeepLearning_ClassifyObject
Performs whole image classification using a trained deep-learning model.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void DeepLearning_ClassifyObject ( ref AvlNet.DeepLearningConnectionState ioState, AvlNet.Image inImage, string inDeepModel, out AvlNet.ClassConfidence[] outConfidences, out string outClassName, out int outClassIndex, out float outScore, out AvlNet.Image diagRelevanceHeatmap )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
ioState | AvlNet.DeepLearningConnectionState | ||||
![]() | inImage | AvlNet.Image | Input image. | ||
![]() | inDeepModel | string | Trained model. | ||
![]() | outConfidences | AvlNet.ClassConfidence[] | Returns confidences for all classes. | ||
![]() | outClassName | string | Returns name of the class with highest confidence. | ||
![]() | outClassIndex | int | Returns the index of the class with highest confidence. | ||
![]() | outScore | float | Returns the value of the highest confidence. | ||
![]() | diagRelevanceHeatmap | AvlNet.Image | Returns heatmap indicating how strong specific parts of image influenced classification result. |
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
Error type | Description |
---|---|
DomainError | Empty ROI region in DeepLearning_ClassifyObject |
DomainError | Size of ROI differs from size of image in DeepLearning_ClassifyObject |
DomainError | Invalid DeepModel in DeepLearning_ClassifyObject. |
DomainError | Empty image in DeepLearning_ClassifyObject. |
IoError | Missing confidences. |
IoError | Received invalid number of heatmaps. |
See also
- DeepLearning_ClassifyObject(AvlNet.DeepLearningConnectionState, AvlNet.Image, string, AvlNet.ClassConfidence[], string, int, float)
- DeepLearning_ClassifyObject(AvlNet.DeepLearningConnectionState, AvlNet.Image, AvlNet.Region, string, AvlNet.ClassConfidence[], string, int, float)
- DeepLearning_ClassifyObject(AvlNet.DeepLearningConnectionState, AvlNet.Image, AvlNet.Region, string, AvlNet.ClassConfidence[], string, int, float, AvlNet.Image)
- Class Reference
- AVL Class