public class Net
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
nativeObj |
Modifier | Constructor and Description |
---|---|
|
Net() |
protected |
Net(long addr) |
Modifier and Type | Method and Description |
---|---|
static Net |
__fromPtr__(long addr) |
void |
connect(java.lang.String outPin,
java.lang.String inpPin) |
boolean |
empty() |
void |
enableFusion(boolean fusion) |
protected void |
finalize() |
Mat |
forward() |
void |
forward(java.util.List<Mat> outputBlobs) |
void |
forward(java.util.List<Mat> outputBlobs,
java.util.List<java.lang.String> outBlobNames) |
void |
forward(java.util.List<Mat> outputBlobs,
java.lang.String outputName) |
Mat |
forward(java.lang.String outputName) |
long |
getFLOPS(int layerId,
java.util.List<MatOfInt> netInputShapes) |
long |
getFLOPS(int layerId,
MatOfInt netInputShape) |
long |
getFLOPS(java.util.List<MatOfInt> netInputShapes) |
long |
getFLOPS(MatOfInt netInputShape) |
Layer |
getLayer(DictValue layerId) |
int |
getLayerId(java.lang.String layer) |
java.util.List<java.lang.String> |
getLayerNames() |
int |
getLayersCount(java.lang.String layerType) |
void |
getLayerTypes(java.util.List<java.lang.String> layersTypes) |
void |
getMemoryConsumption(int layerId,
java.util.List<MatOfInt> netInputShapes,
long[] weights,
long[] blobs) |
void |
getMemoryConsumption(int layerId,
MatOfInt netInputShape,
long[] weights,
long[] blobs) |
void |
getMemoryConsumption(MatOfInt netInputShape,
long[] weights,
long[] blobs) |
long |
getNativeObjAddr() |
Mat |
getParam(DictValue layer) |
Mat |
getParam(DictValue layer,
int numParam) |
long |
getPerfProfile(MatOfDouble timings) |
MatOfInt |
getUnconnectedOutLayers() |
java.util.List<java.lang.String> |
getUnconnectedOutLayersNames() |
static Net |
readFromModelOptimizer(java.lang.String xml,
java.lang.String bin) |
void |
setHalideScheduler(java.lang.String scheduler) |
void |
setInput(Mat blob) |
void |
setInput(Mat blob,
java.lang.String name) |
void |
setInput(Mat blob,
java.lang.String name,
double scalefactor) |
void |
setInput(Mat blob,
java.lang.String name,
double scalefactor,
Scalar mean) |
void |
setInputsNames(java.util.List<java.lang.String> inputBlobNames) |
void |
setParam(DictValue layer,
int numParam,
Mat blob) |
void |
setPreferableBackend(int backendId) |
void |
setPreferableTarget(int targetId) |
public long getNativeObjAddr()
public static Net __fromPtr__(long addr)
public Mat forward(java.lang.String outputName)
public Mat forward()
public static Net readFromModelOptimizer(java.lang.String xml, java.lang.String bin)
public boolean empty()
public int getLayerId(java.lang.String layer)
public int getLayersCount(java.lang.String layerType)
public long getFLOPS(MatOfInt netInputShape)
public long getFLOPS(int layerId, MatOfInt netInputShape)
public long getFLOPS(int layerId, java.util.List<MatOfInt> netInputShapes)
public long getFLOPS(java.util.List<MatOfInt> netInputShapes)
public long getPerfProfile(MatOfDouble timings)
public java.util.List<java.lang.String> getLayerNames()
public java.util.List<java.lang.String> getUnconnectedOutLayersNames()
public MatOfInt getUnconnectedOutLayers()
public void connect(java.lang.String outPin, java.lang.String inpPin)
public void enableFusion(boolean fusion)
public void forward(java.util.List<Mat> outputBlobs, java.lang.String outputName)
public void forward(java.util.List<Mat> outputBlobs)
public void forward(java.util.List<Mat> outputBlobs, java.util.List<java.lang.String> outBlobNames)
public void getLayerTypes(java.util.List<java.lang.String> layersTypes)
public void getMemoryConsumption(MatOfInt netInputShape, long[] weights, long[] blobs)
public void getMemoryConsumption(int layerId, MatOfInt netInputShape, long[] weights, long[] blobs)
public void getMemoryConsumption(int layerId, java.util.List<MatOfInt> netInputShapes, long[] weights, long[] blobs)
public void setHalideScheduler(java.lang.String scheduler)
public void setInput(Mat blob, java.lang.String name, double scalefactor)
public void setInput(Mat blob, java.lang.String name)
public void setInput(Mat blob)
public void setInputsNames(java.util.List<java.lang.String> inputBlobNames)
public void setPreferableBackend(int backendId)
public void setPreferableTarget(int targetId)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Generated on Sun Apr 7 2019 01:18:56 UTC / OpenCV 3.4.6