You are here: Start » AVL.NET » AVL.DeepLearning_SegmentInstances

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
ioStateAvlNet.DeepLearningConnectionState
inImageAvlNet.ImageInput image.
inDeepModelstringTrained model.
outBoundingBoxesSystem.Collections.Generic.IList<AvlNet.Box>Bounding boxes of found objects.
outClassIdsSystem.Collections.Generic.IList<int>Ids of found objects classes.
outClassNamesSystem.Collections.Generic.IList<string>Names of found objects classes.
outScoresSystem.Collections.Generic.IList<float>Scores of found objects.
outMasksSystem.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

Function Overrides

See also