@Namespace(value="cv::dnn")
@NoOffset
public static class opencv_dnn.Net
extends org.bytedeco.javacpp.Pointer
| Constructor and Description |
|---|
Net()
Default constructor.
|
Net(long size)
Native array allocator.
|
Net(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addLayer(org.bytedeco.javacpp.BytePointer name,
org.bytedeco.javacpp.BytePointer type,
opencv_dnn.LayerParams params)
\brief Adds new layer to the net.
|
int |
addLayer(String name,
String type,
opencv_dnn.LayerParams params) |
int |
addLayerToPrev(org.bytedeco.javacpp.BytePointer name,
org.bytedeco.javacpp.BytePointer type,
opencv_dnn.LayerParams params)
\brief Adds new layer and connects its first input to the first output of previously added layer.
|
int |
addLayerToPrev(String name,
String type,
opencv_dnn.LayerParams params) |
void |
connect(org.bytedeco.javacpp.BytePointer outPin,
org.bytedeco.javacpp.BytePointer inpPin)
\brief Connects output of the first layer to input of the second layer.
|
void |
connect(int outLayerId,
int outNum,
int inpLayerId,
int inpNum)
\brief Connects #\p outNum output of the first layer to #\p inNum input of the second layer.
|
void |
connect(String outPin,
String inpPin) |
void |
deleteLayer(opencv_dnn.DictValue layer)
\brief Delete layer for the network (not implemented yet)
|
boolean |
empty()
Returns true if there are no layers in the network.
|
void |
enableFusion(boolean fusion)
\brief Enables or disables layer fusion in the network.
|
opencv_core.Mat |
forward() |
opencv_core.Mat |
forward(org.bytedeco.javacpp.BytePointer outputName)
\brief Runs forward pass to compute output of layer with name \p outputName.
|
void |
forward(opencv_core.GpuMatVector outputBlobs) |
void |
forward(opencv_core.GpuMatVector outputBlobs,
org.bytedeco.javacpp.BytePointer outputName) |
void |
forward(opencv_core.GpuMatVector outputBlobs,
opencv_core.StringVector outBlobNames) |
void |
forward(opencv_core.GpuMatVector outputBlobs,
String outputName) |
void |
forward(opencv_core.MatVector outputBlobs) |
void |
forward(opencv_core.MatVector outputBlobs,
org.bytedeco.javacpp.BytePointer outputName)
\brief Runs forward pass to compute output of layer with name \p outputName.
|
void |
forward(opencv_core.MatVector outputBlobs,
opencv_core.StringVector outBlobNames)
\brief Runs forward pass to compute outputs of layers listed in \p outBlobNames.
|
void |
forward(opencv_core.MatVector outputBlobs,
String outputName) |
void |
forward(opencv_core.UMatVector outputBlobs) |
void |
forward(opencv_core.UMatVector outputBlobs,
org.bytedeco.javacpp.BytePointer outputName) |
void |
forward(opencv_core.UMatVector outputBlobs,
opencv_core.StringVector outBlobNames) |
void |
forward(opencv_core.UMatVector outputBlobs,
String outputName) |
opencv_core.Mat |
forward(String outputName) |
void |
forwardAndRetrieve(opencv_core.MatVectorVector outputBlobs,
opencv_core.StringVector outBlobNames)
\brief Runs forward pass to compute outputs of layers listed in \p outBlobNames.
|
long |
getFLOPS(int layerId,
org.bytedeco.javacpp.IntPointer netInputShape)
\overload
|
long |
getFLOPS(int layerId,
opencv_dnn.MatShapeVector netInputShapes)
\overload
|
long |
getFLOPS(org.bytedeco.javacpp.IntPointer netInputShape)
\overload
|
long |
getFLOPS(opencv_dnn.MatShapeVector netInputShapes)
\brief Computes FLOP for whole loaded model with specified input shapes.
|
opencv_dnn.Layer |
getLayer(opencv_dnn.DictValue layerId)
\brief Returns pointer to layer with specified id or name which the network use.
|
int |
getLayerId(org.bytedeco.javacpp.BytePointer layer)
\brief Converts string name of the layer to the integer identifier.
|
int |
getLayerId(String layer) |
opencv_core.StringVector |
getLayerNames() |
int |
getLayersCount(org.bytedeco.javacpp.BytePointer layerType)
\brief Returns count of layers of specified type.
|
int |
getLayersCount(String layerType) |
void |
getLayerShapes(org.bytedeco.javacpp.IntPointer netInputShape,
int layerId,
opencv_dnn.MatShapeVector inLayerShapes,
opencv_dnn.MatShapeVector outLayerShapes)
\brief Returns input and output shapes for layer with specified
id in loaded model; preliminary inferencing isn't necessary.
|
void |
getLayerShapes(opencv_dnn.MatShapeVector netInputShapes,
int layerId,
opencv_dnn.MatShapeVector inLayerShapes,
opencv_dnn.MatShapeVector outLayerShapes)
\overload
|
void |
getLayersShapes(org.bytedeco.javacpp.IntPointer netInputShape,
int[] layersIds,
opencv_dnn.MatShapeVectorVector inLayersShapes,
opencv_dnn.MatShapeVectorVector outLayersShapes) |
void |
getLayersShapes(org.bytedeco.javacpp.IntPointer netInputShape,
IntBuffer layersIds,
opencv_dnn.MatShapeVectorVector inLayersShapes,
opencv_dnn.MatShapeVectorVector outLayersShapes) |
void |
getLayersShapes(org.bytedeco.javacpp.IntPointer netInputShape,
org.bytedeco.javacpp.IntPointer layersIds,
opencv_dnn.MatShapeVectorVector inLayersShapes,
opencv_dnn.MatShapeVectorVector outLayersShapes)
\overload
|
void |
getLayersShapes(opencv_dnn.MatShapeVector netInputShapes,
int[] layersIds,
opencv_dnn.MatShapeVectorVector inLayersShapes,
opencv_dnn.MatShapeVectorVector outLayersShapes) |
void |
getLayersShapes(opencv_dnn.MatShapeVector netInputShapes,
IntBuffer layersIds,
opencv_dnn.MatShapeVectorVector inLayersShapes,
opencv_dnn.MatShapeVectorVector outLayersShapes) |
void |
getLayersShapes(opencv_dnn.MatShapeVector netInputShapes,
org.bytedeco.javacpp.IntPointer layersIds,
opencv_dnn.MatShapeVectorVector inLayersShapes,
opencv_dnn.MatShapeVectorVector outLayersShapes)
\brief Returns input and output shapes for all layers in loaded model;
preliminary inferencing isn't necessary.
|
void |
getLayerTypes(opencv_core.StringVector layersTypes)
\brief Returns list of types for layer used in model.
|
void |
getMemoryConsumption(int layerId,
org.bytedeco.javacpp.IntPointer netInputShape,
org.bytedeco.javacpp.SizeTPointer weights,
org.bytedeco.javacpp.SizeTPointer blobs)
\overload
|
void |
getMemoryConsumption(int layerId,
opencv_dnn.MatShapeVector netInputShapes,
org.bytedeco.javacpp.SizeTPointer weights,
org.bytedeco.javacpp.SizeTPointer blobs)
\overload
|
void |
getMemoryConsumption(org.bytedeco.javacpp.IntPointer netInputShape,
int[] layerIds,
org.bytedeco.javacpp.SizeTPointer weights,
org.bytedeco.javacpp.SizeTPointer blobs) |
void |
getMemoryConsumption(org.bytedeco.javacpp.IntPointer netInputShape,
IntBuffer layerIds,
org.bytedeco.javacpp.SizeTPointer weights,
org.bytedeco.javacpp.SizeTPointer blobs) |
void |
getMemoryConsumption(org.bytedeco.javacpp.IntPointer netInputShape,
org.bytedeco.javacpp.IntPointer layerIds,
org.bytedeco.javacpp.SizeTPointer weights,
org.bytedeco.javacpp.SizeTPointer blobs)
\overload
|
void |
getMemoryConsumption(org.bytedeco.javacpp.IntPointer netInputShape,
org.bytedeco.javacpp.SizeTPointer weights,
org.bytedeco.javacpp.SizeTPointer blobs)
\overload
|
void |
getMemoryConsumption(opencv_dnn.MatShapeVector netInputShapes,
int[] layerIds,
org.bytedeco.javacpp.SizeTPointer weights,
org.bytedeco.javacpp.SizeTPointer blobs) |
void |
getMemoryConsumption(opencv_dnn.MatShapeVector netInputShapes,
IntBuffer layerIds,
org.bytedeco.javacpp.SizeTPointer weights,
org.bytedeco.javacpp.SizeTPointer blobs) |
void |
getMemoryConsumption(opencv_dnn.MatShapeVector netInputShapes,
org.bytedeco.javacpp.IntPointer layerIds,
org.bytedeco.javacpp.SizeTPointer weights,
org.bytedeco.javacpp.SizeTPointer blobs)
\brief Computes bytes number which are required to store
all weights and intermediate blobs for each layer.
|
void |
getMemoryConsumption(opencv_dnn.MatShapeVector netInputShapes,
org.bytedeco.javacpp.SizeTPointer weights,
org.bytedeco.javacpp.SizeTPointer blobs)
\brief Computes bytes number which are required to store
all weights and intermediate blobs for model.
|
opencv_core.Mat |
getParam(opencv_dnn.DictValue layer) |
opencv_core.Mat |
getParam(opencv_dnn.DictValue layer,
int numParam)
\brief Returns parameter blob of the layer.
|
long |
getPerfProfile(double[] timings) |
long |
getPerfProfile(DoubleBuffer timings) |
long |
getPerfProfile(org.bytedeco.javacpp.DoublePointer timings)
\brief Returns overall time for inference and timings (in ticks) for layers.
|
org.bytedeco.javacpp.IntPointer |
getUnconnectedOutLayers()
\brief Returns indexes of layers with unconnected outputs.
|
opencv_dnn.Net |
position(long position) |
static opencv_dnn.Net |
readFromModelOptimizer(org.bytedeco.javacpp.BytePointer xml,
org.bytedeco.javacpp.BytePointer bin)
\brief Create a network from Intel's Model Optimizer intermediate representation.
|
static opencv_dnn.Net |
readFromModelOptimizer(String xml,
String bin) |
void |
setHalideScheduler(org.bytedeco.javacpp.BytePointer scheduler)
\brief Compile Halide layers.
|
void |
setHalideScheduler(String scheduler) |
void |
setInput(opencv_core.GpuMat blob) |
void |
setInput(opencv_core.GpuMat blob,
org.bytedeco.javacpp.BytePointer name,
double scalefactor,
opencv_core.Scalar mean) |
void |
setInput(opencv_core.GpuMat blob,
String name,
double scalefactor,
opencv_core.Scalar mean) |
void |
setInput(opencv_core.Mat blob) |
void |
setInput(opencv_core.Mat blob,
org.bytedeco.javacpp.BytePointer name,
double scalefactor,
opencv_core.Scalar mean)
\brief Sets the new input value for the network
|
void |
setInput(opencv_core.Mat blob,
String name,
double scalefactor,
opencv_core.Scalar mean) |
void |
setInput(opencv_core.UMat blob) |
void |
setInput(opencv_core.UMat blob,
org.bytedeco.javacpp.BytePointer name,
double scalefactor,
opencv_core.Scalar mean) |
void |
setInput(opencv_core.UMat blob,
String name,
double scalefactor,
opencv_core.Scalar mean) |
void |
setInputsNames(opencv_core.StringVector inputBlobNames)
\brief Sets outputs names of the network input pseudo layer.
|
void |
setParam(opencv_dnn.DictValue layer,
int numParam,
opencv_core.Mat blob)
\brief Sets the new value for the learned param of the layer.
|
void |
setPreferableBackend(int backendId)
\brief Ask network to use specific computation backend where it supported.
|
void |
setPreferableTarget(int targetId)
\brief Ask network to make computations on specific target device.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic Net(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public Net(long size)
Pointer.position(long).public Net()
public opencv_dnn.Net position(long position)
position in class org.bytedeco.javacpp.Pointer@ByVal public static opencv_dnn.Net readFromModelOptimizer(@opencv_core.Str org.bytedeco.javacpp.BytePointer xml, @opencv_core.Str org.bytedeco.javacpp.BytePointer bin)
[in] - xml XML configuration file with network's topology.[in] - bin Binary file with trained weights.
Networks imported from Intel's Model Optimizer are launched in Intel's Inference Engine
backend.@ByVal public static opencv_dnn.Net readFromModelOptimizer(@opencv_core.Str String xml, @opencv_core.Str String bin)
@Cast(value="bool") public boolean empty()
public int addLayer(@opencv_core.Str org.bytedeco.javacpp.BytePointer name, @opencv_core.Str org.bytedeco.javacpp.BytePointer type, @ByRef opencv_dnn.LayerParams params)
name - unique name of the adding layer.type - typename of the adding layer (type must be registered in LayerRegister).params - parameters which will be used to initialize the creating layer.public int addLayer(@opencv_core.Str String name, @opencv_core.Str String type, @ByRef opencv_dnn.LayerParams params)
public int addLayerToPrev(@opencv_core.Str org.bytedeco.javacpp.BytePointer name, @opencv_core.Str org.bytedeco.javacpp.BytePointer type, @ByRef opencv_dnn.LayerParams params)
addLayer()public int addLayerToPrev(@opencv_core.Str String name, @opencv_core.Str String type, @ByRef opencv_dnn.LayerParams params)
public int getLayerId(@opencv_core.Str org.bytedeco.javacpp.BytePointer layer)
public int getLayerId(@opencv_core.Str String layer)
@ByVal public opencv_core.StringVector getLayerNames()
@opencv_core.Ptr public opencv_dnn.Layer getLayer(@ByVal @Cast(value="cv::dnn::Net::LayerId*") opencv_dnn.DictValue layerId)
public void deleteLayer(@ByVal @Cast(value="cv::dnn::Net::LayerId*")
opencv_dnn.DictValue layer)
public void connect(@opencv_core.Str org.bytedeco.javacpp.BytePointer outPin, @opencv_core.Str org.bytedeco.javacpp.BytePointer inpPin)
outPin - descriptor of the first layer output.inpPin - descriptor of the second layer input.
Descriptors have the following template <layer_name>[.input_number]:
- the first part of the template layer_name is sting name of the added layer.
If this part is empty then the network input pseudo layer will be used;
- the second optional part of the template input_number
is either number of the layer input, either label one.
If this part is omitted then the first layer input will be used.setNetInputs(), Layer::inputNameToIndex(), Layer::outputNameToIndex()public void connect(@opencv_core.Str String outPin, @opencv_core.Str String inpPin)
public void connect(int outLayerId,
int outNum,
int inpLayerId,
int inpNum)
outLayerId - identifier of the first layeroutNum - number of the first layer outputinpLayerId - identifier of the second layerinpNum - number of the second layer inputpublic void setInputsNames(@Const @ByRef
opencv_core.StringVector inputBlobNames)
@ByVal public opencv_core.Mat forward(@opencv_core.Str org.bytedeco.javacpp.BytePointer outputName)
outputName - name for layer which output is needed to get@ByVal public opencv_core.Mat forward()
@ByVal public opencv_core.Mat forward(@opencv_core.Str String outputName)
public void forward(@ByVal
opencv_core.MatVector outputBlobs,
@opencv_core.Str
org.bytedeco.javacpp.BytePointer outputName)
outputBlobs - contains all output blobs for specified layer.outputName - name for layer which output is needed to get
\details If \p outputName is empty, runs forward pass for the whole network.public void forward(@ByVal
opencv_core.MatVector outputBlobs)
public void forward(@ByVal
opencv_core.UMatVector outputBlobs,
@opencv_core.Str
String outputName)
public void forward(@ByVal
opencv_core.UMatVector outputBlobs)
public void forward(@ByVal
opencv_core.GpuMatVector outputBlobs,
@opencv_core.Str
org.bytedeco.javacpp.BytePointer outputName)
public void forward(@ByVal
opencv_core.GpuMatVector outputBlobs)
public void forward(@ByVal
opencv_core.MatVector outputBlobs,
@opencv_core.Str
String outputName)
public void forward(@ByVal
opencv_core.UMatVector outputBlobs,
@opencv_core.Str
org.bytedeco.javacpp.BytePointer outputName)
public void forward(@ByVal
opencv_core.GpuMatVector outputBlobs,
@opencv_core.Str
String outputName)
public void forward(@ByVal
opencv_core.MatVector outputBlobs,
@Const @ByRef
opencv_core.StringVector outBlobNames)
outputBlobs - contains blobs for first outputs of specified layers.outBlobNames - names for layers which outputs are needed to getpublic void forward(@ByVal
opencv_core.UMatVector outputBlobs,
@Const @ByRef
opencv_core.StringVector outBlobNames)
public void forward(@ByVal
opencv_core.GpuMatVector outputBlobs,
@Const @ByRef
opencv_core.StringVector outBlobNames)
@Name(value="forward")
public void forwardAndRetrieve(@ByRef
opencv_core.MatVectorVector outputBlobs,
@Const @ByRef
opencv_core.StringVector outBlobNames)
outputBlobs - contains all output blobs for each layer specified in \p outBlobNames.outBlobNames - names for layers which outputs are needed to getpublic void setHalideScheduler(@opencv_core.Str org.bytedeco.javacpp.BytePointer scheduler)
[in] - scheduler Path to YAML file with scheduling directives.Schedule layers that support Halide backend. Then compile them for
specific target. For layers that not represented in scheduling file
or if no manual scheduling used at all, automatic scheduling will be applied.public void setHalideScheduler(@opencv_core.Str String scheduler)
public void setPreferableBackend(int backendId)
[in] - backendId backend identifier.If OpenCV is compiled with Intel's Inference Engine library, DNN_BACKEND_DEFAULT
means DNN_BACKEND_INFERENCE_ENGINE. Otherwise it equals to DNN_BACKEND_OPENCV.public void setPreferableTarget(int targetId)
[in] - targetId target identifier.List of supported combinations backend / target:
| | DNN_BACKEND_OPENCV | DNN_BACKEND_INFERENCE_ENGINE | DNN_BACKEND_HALIDE |
|------------------------|--------------------|------------------------------|--------------------|
| DNN_TARGET_CPU | + | + | + |
| DNN_TARGET_OPENCL | + | + | + |
| DNN_TARGET_OPENCL_FP16 | + | + | |
| DNN_TARGET_MYRIAD | | + | |public void setInput(@ByVal
opencv_core.Mat blob,
@opencv_core.Str
org.bytedeco.javacpp.BytePointer name,
double scalefactor,
@Const @ByRef(nullValue="cv::Scalar()")
opencv_core.Scalar mean)
blob - A new blob. Should have CV_32F or CV_8U depth.name - A name of input layer.scalefactor - An optional normalization scale.mean - An optional mean subtraction values.to know format of the descriptor.
If scale or mean values are specified, a final input blob is computed
as:
\f[input(n,c,h,w) = scalefactor \times (blob(n,c,h,w) - mean_c)\f]public void setInput(@ByVal
opencv_core.Mat blob)
public void setInput(@ByVal
opencv_core.Mat blob,
@opencv_core.Str
String name,
double scalefactor,
@Const @ByRef(nullValue="cv::Scalar()")
opencv_core.Scalar mean)
public void setInput(@ByVal
opencv_core.UMat blob,
@opencv_core.Str
String name,
double scalefactor,
@Const @ByRef(nullValue="cv::Scalar()")
opencv_core.Scalar mean)
public void setInput(@ByVal
opencv_core.UMat blob)
public void setInput(@ByVal
opencv_core.UMat blob,
@opencv_core.Str
org.bytedeco.javacpp.BytePointer name,
double scalefactor,
@Const @ByRef(nullValue="cv::Scalar()")
opencv_core.Scalar mean)
public void setInput(@ByVal
opencv_core.GpuMat blob,
@opencv_core.Str
org.bytedeco.javacpp.BytePointer name,
double scalefactor,
@Const @ByRef(nullValue="cv::Scalar()")
opencv_core.Scalar mean)
public void setInput(@ByVal
opencv_core.GpuMat blob)
public void setInput(@ByVal
opencv_core.GpuMat blob,
@opencv_core.Str
String name,
double scalefactor,
@Const @ByRef(nullValue="cv::Scalar()")
opencv_core.Scalar mean)
public void setParam(@ByVal @Cast(value="cv::dnn::Net::LayerId*")
opencv_dnn.DictValue layer,
int numParam,
@Const @ByRef
opencv_core.Mat blob)
layer - name or id of the layer.numParam - index of the layer parameter in the Layer::blobs array.blob - the new value.\note If shape of the new blob differs from the previous shape,
then the following forward pass may fail.@ByVal public opencv_core.Mat getParam(@ByVal @Cast(value="cv::dnn::Net::LayerId*") opencv_dnn.DictValue layer, int numParam)
layer - name or id of the layer.numParam - index of the layer parameter in the Layer::blobs array.Layer::blobs@ByVal public opencv_core.Mat getParam(@ByVal @Cast(value="cv::dnn::Net::LayerId*") opencv_dnn.DictValue layer)
@StdVector public org.bytedeco.javacpp.IntPointer getUnconnectedOutLayers()
public void getLayersShapes(@Const @ByRef
opencv_dnn.MatShapeVector netInputShapes,
@StdVector
org.bytedeco.javacpp.IntPointer layersIds,
@ByRef
opencv_dnn.MatShapeVectorVector inLayersShapes,
@ByRef
opencv_dnn.MatShapeVectorVector outLayersShapes)
netInputShapes - shapes for all input blobs in net input layer.layersIds - output parameter for layer IDs.inLayersShapes - output parameter for input layers shapes;
order is the same as in layersIdsoutLayersShapes - output parameter for output layers shapes;
order is the same as in layersIdspublic void getLayersShapes(@Const @ByRef
opencv_dnn.MatShapeVector netInputShapes,
@StdVector
IntBuffer layersIds,
@ByRef
opencv_dnn.MatShapeVectorVector inLayersShapes,
@ByRef
opencv_dnn.MatShapeVectorVector outLayersShapes)
public void getLayersShapes(@Const @ByRef
opencv_dnn.MatShapeVector netInputShapes,
@StdVector
int[] layersIds,
@ByRef
opencv_dnn.MatShapeVectorVector inLayersShapes,
@ByRef
opencv_dnn.MatShapeVectorVector outLayersShapes)
public void getLayersShapes(@Const @StdVector @ByRef
org.bytedeco.javacpp.IntPointer netInputShape,
@StdVector
org.bytedeco.javacpp.IntPointer layersIds,
@ByRef
opencv_dnn.MatShapeVectorVector inLayersShapes,
@ByRef
opencv_dnn.MatShapeVectorVector outLayersShapes)
public void getLayersShapes(@Const @StdVector @ByRef
org.bytedeco.javacpp.IntPointer netInputShape,
@StdVector
IntBuffer layersIds,
@ByRef
opencv_dnn.MatShapeVectorVector inLayersShapes,
@ByRef
opencv_dnn.MatShapeVectorVector outLayersShapes)
public void getLayersShapes(@Const @StdVector @ByRef
org.bytedeco.javacpp.IntPointer netInputShape,
@StdVector
int[] layersIds,
@ByRef
opencv_dnn.MatShapeVectorVector inLayersShapes,
@ByRef
opencv_dnn.MatShapeVectorVector outLayersShapes)
public void getLayerShapes(@Const @StdVector @ByRef
org.bytedeco.javacpp.IntPointer netInputShape,
int layerId,
@ByRef
opencv_dnn.MatShapeVector inLayerShapes,
@ByRef
opencv_dnn.MatShapeVector outLayerShapes)
netInputShape - shape input blob in net input layer.layerId - id for layer.inLayerShapes - output parameter for input layers shapes;
order is the same as in layersIdsoutLayerShapes - output parameter for output layers shapes;
order is the same as in layersIdspublic void getLayerShapes(@Const @ByRef
opencv_dnn.MatShapeVector netInputShapes,
int layerId,
@ByRef
opencv_dnn.MatShapeVector inLayerShapes,
@ByRef
opencv_dnn.MatShapeVector outLayerShapes)
@Cast(value="int64")
public long getFLOPS(@Const @ByRef
opencv_dnn.MatShapeVector netInputShapes)
netInputShapes - vector of shapes for all net inputs.@Cast(value="int64")
public long getFLOPS(@Const @StdVector @ByRef
org.bytedeco.javacpp.IntPointer netInputShape)
@Cast(value="int64")
public long getFLOPS(int layerId,
@Const @ByRef
opencv_dnn.MatShapeVector netInputShapes)
@Cast(value="int64")
public long getFLOPS(int layerId,
@Const @StdVector @ByRef
org.bytedeco.javacpp.IntPointer netInputShape)
public void getLayerTypes(@ByRef
opencv_core.StringVector layersTypes)
layersTypes - output parameter for returning types.public int getLayersCount(@opencv_core.Str org.bytedeco.javacpp.BytePointer layerType)
layerType - type.public int getLayersCount(@opencv_core.Str String layerType)
public void getMemoryConsumption(@Const @ByRef
opencv_dnn.MatShapeVector netInputShapes,
@Cast(value="size_t*") @ByRef
org.bytedeco.javacpp.SizeTPointer weights,
@Cast(value="size_t*") @ByRef
org.bytedeco.javacpp.SizeTPointer blobs)
netInputShapes - vector of shapes for all net inputs.weights - output parameter to store resulting bytes for weights.blobs - output parameter to store resulting bytes for intermediate blobs.public void getMemoryConsumption(@Const @StdVector @ByRef
org.bytedeco.javacpp.IntPointer netInputShape,
@Cast(value="size_t*") @ByRef
org.bytedeco.javacpp.SizeTPointer weights,
@Cast(value="size_t*") @ByRef
org.bytedeco.javacpp.SizeTPointer blobs)
public void getMemoryConsumption(int layerId,
@Const @ByRef
opencv_dnn.MatShapeVector netInputShapes,
@Cast(value="size_t*") @ByRef
org.bytedeco.javacpp.SizeTPointer weights,
@Cast(value="size_t*") @ByRef
org.bytedeco.javacpp.SizeTPointer blobs)
public void getMemoryConsumption(int layerId,
@Const @StdVector @ByRef
org.bytedeco.javacpp.IntPointer netInputShape,
@Cast(value="size_t*") @ByRef
org.bytedeco.javacpp.SizeTPointer weights,
@Cast(value="size_t*") @ByRef
org.bytedeco.javacpp.SizeTPointer blobs)
public void getMemoryConsumption(@Const @ByRef
opencv_dnn.MatShapeVector netInputShapes,
@StdVector
org.bytedeco.javacpp.IntPointer layerIds,
@Cast(value="size_t*") @StdVector
org.bytedeco.javacpp.SizeTPointer weights,
@Cast(value="size_t*") @StdVector
org.bytedeco.javacpp.SizeTPointer blobs)
netInputShapes - vector of shapes for all net inputs.layerIds - output vector to save layer IDs.weights - output parameter to store resulting bytes for weights.blobs - output parameter to store resulting bytes for intermediate blobs.public void getMemoryConsumption(@Const @ByRef
opencv_dnn.MatShapeVector netInputShapes,
@StdVector
IntBuffer layerIds,
@Cast(value="size_t*") @StdVector
org.bytedeco.javacpp.SizeTPointer weights,
@Cast(value="size_t*") @StdVector
org.bytedeco.javacpp.SizeTPointer blobs)
public void getMemoryConsumption(@Const @ByRef
opencv_dnn.MatShapeVector netInputShapes,
@StdVector
int[] layerIds,
@Cast(value="size_t*") @StdVector
org.bytedeco.javacpp.SizeTPointer weights,
@Cast(value="size_t*") @StdVector
org.bytedeco.javacpp.SizeTPointer blobs)
public void getMemoryConsumption(@Const @StdVector @ByRef
org.bytedeco.javacpp.IntPointer netInputShape,
@StdVector
org.bytedeco.javacpp.IntPointer layerIds,
@Cast(value="size_t*") @StdVector
org.bytedeco.javacpp.SizeTPointer weights,
@Cast(value="size_t*") @StdVector
org.bytedeco.javacpp.SizeTPointer blobs)
public void getMemoryConsumption(@Const @StdVector @ByRef
org.bytedeco.javacpp.IntPointer netInputShape,
@StdVector
IntBuffer layerIds,
@Cast(value="size_t*") @StdVector
org.bytedeco.javacpp.SizeTPointer weights,
@Cast(value="size_t*") @StdVector
org.bytedeco.javacpp.SizeTPointer blobs)
public void getMemoryConsumption(@Const @StdVector @ByRef
org.bytedeco.javacpp.IntPointer netInputShape,
@StdVector
int[] layerIds,
@Cast(value="size_t*") @StdVector
org.bytedeco.javacpp.SizeTPointer weights,
@Cast(value="size_t*") @StdVector
org.bytedeco.javacpp.SizeTPointer blobs)
public void enableFusion(@Cast(value="bool")
boolean fusion)
fusion - true to enable the fusion, false to disable. The fusion is enabled by default.@Cast(value="int64")
public long getPerfProfile(@StdVector
org.bytedeco.javacpp.DoublePointer timings)
timings - vector for tick timings for all layers.@Cast(value="int64")
public long getPerfProfile(@StdVector
DoubleBuffer timings)
@Cast(value="int64")
public long getPerfProfile(@StdVector
double[] timings)
Copyright © 2018. All rights reserved.