@Namespace(value="cv::dnn") @Properties(inherit=opencv_dnn.class) public class SegmentationModel extends Model
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SegmentationModel(BytePointer model) |
SegmentationModel(BytePointer model,
BytePointer config)
\brief Create segmentation model from network represented in one of the supported formats.
|
SegmentationModel(Net network)
\brief Create model from deep learning network.
|
SegmentationModel(Pointer p)
Pointer cast constructor.
|
SegmentationModel(String model) |
SegmentationModel(String model,
String config) |
Modifier and Type | Method and Description |
---|---|
void |
segment(GpuMat frame,
GpuMat mask) |
void |
segment(Mat frame,
Mat mask)
\brief Given the \p input frame, create input blob, run net
|
void |
segment(UMat frame,
UMat mask) |
position, predict, predict, predict, predict, predict, predict, predict, predict, predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB
addLayer, addLayer, addLayerToPrev, addLayerToPrev, connect, connect, connect, dump, dumpToFile, dumpToFile, empty, enableFusion, forward, forward, forward, forward, forward, forward, forward, forward, forward, forward, forward, forward, forward, forward, forward, forwardAndRetrieve, forwardAsync, forwardAsync, forwardAsync, getFLOPS, getFLOPS, getFLOPS, getFLOPS, getLayer, getLayerId, getLayerId, getLayerNames, getLayersCount, getLayersCount, getLayerShapes, getLayerShapes, getLayersShapes, getLayersShapes, getLayersShapes, getLayersShapes, getLayersShapes, getLayersShapes, getLayerTypes, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getParam, getParam, getPerfProfile, getPerfProfile, getPerfProfile, getUnconnectedOutLayers, getUnconnectedOutLayersNames, readFromModelOptimizer, readFromModelOptimizer, readFromModelOptimizer, readFromModelOptimizer, readFromModelOptimizer, readFromModelOptimizer, readFromModelOptimizer, setHalideScheduler, setHalideScheduler, setInput, setInput, setInput, setInput, setInput, setInput, setInput, setInput, setInput, setInputShape, setInputShape, setInputsNames, setParam, setPreferableBackend, setPreferableTarget
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public SegmentationModel(Pointer p)
Pointer.Pointer(Pointer)
.public SegmentationModel(@opencv_core.Str BytePointer model, @opencv_core.Str BytePointer config)
model
- [in] Binary file contains trained weights.config
- [in] Text file contains network configuration.public SegmentationModel(@opencv_core.Str BytePointer model)
public SegmentationModel(@opencv_core.Str String model, @opencv_core.Str String config)
public SegmentationModel(@opencv_core.Str String model)
Copyright © 2020. All rights reserved.