@Namespace(value="cv::dnn") @Properties(inherit=opencv_dnn.class) public class SegmentationModel extends Model
Model.ImplPointer.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) |
asNet, getImpl, getImplRef, getNetwork_, getPointer, position, predict, predict, predict, predict, predict, predict, predict, predict, predict, put, setInputCrop, setInputMean, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB, setPreferableBackend, setPreferableTargetaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic SegmentationModel(Pointer p)
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 © 2021. All rights reserved.