Class SegmentationModel
- Namespace
- OpenCvSharp.Dnn
- Assembly
- OpenCvSharp.dll
This class represents high-level API for segmentation models. SegmentationModel allows to set params for preprocessing input image. SegmentationModel creates net from file with trained weights and config, sets preprocessing input, runs forward pass and returns the class prediction for each pixel.
public class SegmentationModel : Model, IDisposable
- Inheritance
-
SegmentationModel
- Implements
- Inherited Members
Constructors
- SegmentationModel(Net)
Create model from deep learning network.
- SegmentationModel(string, string?)
Create segmentation model from network represented in one of the supported formats. An order of @p model and @p config arguments does not matter.
Methods
- Segment(InputArray, OutputArray)
Given the @p input frame, create input blob, run net.