public class SegmentationModel extends Model
Modifier | Constructor and Description |
---|---|
protected |
SegmentationModel(long addr) |
|
SegmentationModel(Net network)
Create model from deep learning network.
|
|
SegmentationModel(String model)
Create segmentation model from network represented in one of the supported formats.
|
|
SegmentationModel(String model,
String config)
Create segmentation model from network represented in one of the supported formats.
|
Modifier and Type | Method and Description |
---|---|
static SegmentationModel |
__fromPtr__(long addr) |
protected void |
finalize() |
void |
segment(Mat frame,
Mat mask)
Given the
input frame, create input blob, run net |
enableWinograd, getNativeObjAddr, predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB, setPreferableBackend, setPreferableTarget
protected SegmentationModel(long addr)
public SegmentationModel(String model, String config)
model
and config
arguments does not matter.model
- Binary file contains trained weights.config
- Text file contains network configuration.public SegmentationModel(String model)
model
and config
arguments does not matter.model
- Binary file contains trained weights.public SegmentationModel(Net network)
network
- Net object.public static SegmentationModel __fromPtr__(long addr)
public void segment(Mat frame, Mat mask)
input
frame, create input blob, run netmask
- Allocated class prediction for each pixelframe
- automatically generatedCopyright © 2024. All rights reserved.