public class SegmentationModel extends Model
| Constructor and Description |
|---|
SegmentationModel(Net network)
Create model from deep learning network.
|
SegmentationModel(java.lang.String model)
Create segmentation model from network represented in one of the supported formats.
|
SegmentationModel(java.lang.String model,
java.lang.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) |
void |
segment(Mat frame,
Mat mask)
Given the
input frame, create input blob, run net |
predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRBconnect, dump, dumpToFile, empty, enableFusion, forward, forward, forward, forward, forward, getFLOPS, getFLOPS, getFLOPS, getFLOPS, getLayer, getLayerId, getLayerNames, getLayersCount, getLayerTypes, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getNativeObjAddr, getParam, getParam, getPerfProfile, getUnconnectedOutLayers, getUnconnectedOutLayersNames, readFromModelOptimizer, readFromModelOptimizer, setHalideScheduler, setInput, setInput, setInput, setInput, setInputShape, setInputsNames, setParam, setPreferableBackend, setPreferableTargetpublic SegmentationModel(Net network)
network - Net object.public SegmentationModel(java.lang.String model)
model and config arguments does not matter.model - Binary file contains trained weights.public SegmentationModel(java.lang.String model,
java.lang.String config)
model and config arguments does not matter.model - Binary file contains trained weights.config - Text file contains network configuration.public static SegmentationModel __fromPtr__(long addr)
Generated on 2020-04-03 16:05:20 / OpenCV 4.3.0