Intellesis segmentation models can be applied within the Open Application Development (OAD) environment. Methods to list, import, and execute semantic segmentation models trained with Intellesis Segmentation or on arivis Cloud are available and can be used as part of automated OAD workflows. To use semantic segmentation models, Docker Desktop and a corresponding segmentation container need to be installed and running.

Method/Command

Description

Zen.Processing.Segmentation.TrainableSegmentation
(Input, Model, Output Format)

Function to segment an image using a trained model.
The output result is an image.

  • Input

ZenImage - Defines the input image to be segmented.

  • Model

ModelName - Defines the name of the model.

  • Output Format:
    SegmentationFormat.MultiChannel
    SegmentationFormat.Labels

Function to segment an image using a trained model.
The output result is an array of images containing the segmented image and the confidence map.

Zen.Processing.Segmentation.TrainableSegmentationWithConfidenceMap

Addresses the Segmentation function including a confidence map.

  • Input

ZenImage - Defines the input image to be segmented.

  • Model

ModelName - Defines the name of the model.

  • Output Format:
    SegmentationFormat.MultiChannel
    SegmentationFormat.Labels

SegmentationFormat - Optional argument; Defines the desired output format, e.g. Multi-Channel or Labels

Zen.Processing.Segmentation.MinimumConfidence

Addresses the Minimum Confidence function.

  • Input

ZenImage - Defines the input image to be segmented.

  • Model

ZenImage - Confidence map containing the confidence values in %.

  • Threshold

Minimum Threshold – value in % - only pixel inside mask >= these values will be kept.

ZenIntellesis.Segmentation.GetAvailableFeatureSets()

Returns all available feature sets as an array of strings.

ZenIntellesis.Segmentation.GetAvailablePostProcessings()

Returns all available post-processing options as an array of strings.

ZenIntellesis.Segmentation.ImportModel (modelfile, allowOverwrite)

Imports a model file into the model repository and overwrites an existing one, if the option was set to True. Returns a ZenIntellesisModel.

  • modelfile

File path to modelfile to be imported.

  • allowOverwrite

Allows overwriting an existing model.

ZenIntellesis.Segmentation.ListAvailableSegmentationModels()

Lists all available segmentation models. Returns an array of ZenIntellesisModels.