Struct opencv::dnn::SegmentationModel [−][src]
pub struct SegmentationModel { /* fields omitted */ }
Expand description
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.
Implementations
Create segmentation model from network represented in one of the supported formats. An order of @p model and @p config arguments does not matter.
Parameters
- model: Binary file contains trained weights.
- config: Text file contains network configuration.
C++ default parameters
- config: “”
Trait Implementations
Performs the conversion.
Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
Given the @p input frame, create input blob, run net Read more