public class Dnn
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DNN_BACKEND_DEFAULT |
static int |
DNN_BACKEND_HALIDE |
static int |
DNN_BACKEND_INFERENCE_ENGINE |
static int |
DNN_BACKEND_OPENCV |
static int |
DNN_BACKEND_VKCOM |
static int |
DNN_TARGET_CPU |
static int |
DNN_TARGET_MYRIAD |
static int |
DNN_TARGET_OPENCL |
static int |
DNN_TARGET_OPENCL_FP16 |
static int |
DNN_TARGET_VULKAN |
Constructor and Description |
---|
Dnn() |
Modifier and Type | Method and Description |
---|---|
static Mat |
blobFromImage(Mat image) |
static Mat |
blobFromImage(Mat image,
double scalefactor) |
static Mat |
blobFromImage(Mat image,
double scalefactor,
Size size) |
static Mat |
blobFromImage(Mat image,
double scalefactor,
Size size,
Scalar mean) |
static Mat |
blobFromImage(Mat image,
double scalefactor,
Size size,
Scalar mean,
boolean swapRB) |
static Mat |
blobFromImage(Mat image,
double scalefactor,
Size size,
Scalar mean,
boolean swapRB,
boolean crop) |
static Mat |
blobFromImage(Mat image,
double scalefactor,
Size size,
Scalar mean,
boolean swapRB,
boolean crop,
int ddepth) |
static Mat |
blobFromImages(java.util.List<Mat> images) |
static Mat |
blobFromImages(java.util.List<Mat> images,
double scalefactor) |
static Mat |
blobFromImages(java.util.List<Mat> images,
double scalefactor,
Size size) |
static Mat |
blobFromImages(java.util.List<Mat> images,
double scalefactor,
Size size,
Scalar mean) |
static Mat |
blobFromImages(java.util.List<Mat> images,
double scalefactor,
Size size,
Scalar mean,
boolean swapRB) |
static Mat |
blobFromImages(java.util.List<Mat> images,
double scalefactor,
Size size,
Scalar mean,
boolean swapRB,
boolean crop) |
static Mat |
blobFromImages(java.util.List<Mat> images,
double scalefactor,
Size size,
Scalar mean,
boolean swapRB,
boolean crop,
int ddepth) |
static void |
imagesFromBlob(Mat blob_,
java.util.List<Mat> images_) |
static void |
NMSBoxes(MatOfRect2d bboxes,
MatOfFloat scores,
float score_threshold,
float nms_threshold,
MatOfInt indices) |
static void |
NMSBoxes(MatOfRect2d bboxes,
MatOfFloat scores,
float score_threshold,
float nms_threshold,
MatOfInt indices,
float eta) |
static void |
NMSBoxes(MatOfRect2d bboxes,
MatOfFloat scores,
float score_threshold,
float nms_threshold,
MatOfInt indices,
float eta,
int top_k) |
static void |
NMSBoxes(MatOfRect bboxes,
MatOfFloat scores,
float score_threshold,
float nms_threshold,
MatOfInt indices) |
static void |
NMSBoxes(MatOfRect bboxes,
MatOfFloat scores,
float score_threshold,
float nms_threshold,
MatOfInt indices,
float eta) |
static void |
NMSBoxes(MatOfRect bboxes,
MatOfFloat scores,
float score_threshold,
float nms_threshold,
MatOfInt indices,
float eta,
int top_k) |
static void |
NMSBoxesRotated(MatOfRotatedRect bboxes,
MatOfFloat scores,
float score_threshold,
float nms_threshold,
MatOfInt indices) |
static void |
NMSBoxesRotated(MatOfRotatedRect bboxes,
MatOfFloat scores,
float score_threshold,
float nms_threshold,
MatOfInt indices,
float eta) |
static void |
NMSBoxesRotated(MatOfRotatedRect bboxes,
MatOfFloat scores,
float score_threshold,
float nms_threshold,
MatOfInt indices,
float eta,
int top_k) |
static Net |
readNet(java.lang.String model) |
static Net |
readNet(java.lang.String framework,
MatOfByte bufferModel) |
static Net |
readNet(java.lang.String framework,
MatOfByte bufferModel,
MatOfByte bufferConfig) |
static Net |
readNet(java.lang.String model,
java.lang.String config) |
static Net |
readNet(java.lang.String model,
java.lang.String config,
java.lang.String framework) |
static Net |
readNetFromCaffe(MatOfByte bufferProto) |
static Net |
readNetFromCaffe(MatOfByte bufferProto,
MatOfByte bufferModel) |
static Net |
readNetFromCaffe(java.lang.String prototxt) |
static Net |
readNetFromCaffe(java.lang.String prototxt,
java.lang.String caffeModel) |
static Net |
readNetFromDarknet(MatOfByte bufferCfg) |
static Net |
readNetFromDarknet(MatOfByte bufferCfg,
MatOfByte bufferModel) |
static Net |
readNetFromDarknet(java.lang.String cfgFile) |
static Net |
readNetFromDarknet(java.lang.String cfgFile,
java.lang.String darknetModel) |
static Net |
readNetFromModelOptimizer(java.lang.String xml,
java.lang.String bin) |
static Net |
readNetFromONNX(java.lang.String onnxFile) |
static Net |
readNetFromTensorflow(MatOfByte bufferModel) |
static Net |
readNetFromTensorflow(MatOfByte bufferModel,
MatOfByte bufferConfig) |
static Net |
readNetFromTensorflow(java.lang.String model) |
static Net |
readNetFromTensorflow(java.lang.String model,
java.lang.String config) |
static Net |
readNetFromTorch(java.lang.String model) |
static Net |
readNetFromTorch(java.lang.String model,
boolean isBinary) |
static Mat |
readTensorFromONNX(java.lang.String path) |
static Mat |
readTorchBlob(java.lang.String filename) |
static Mat |
readTorchBlob(java.lang.String filename,
boolean isBinary) |
static void |
resetMyriadDevice() |
static void |
shrinkCaffeModel(java.lang.String src,
java.lang.String dst) |
static void |
shrinkCaffeModel(java.lang.String src,
java.lang.String dst,
java.util.List<java.lang.String> layersTypes) |
static void |
writeTextGraph(java.lang.String model,
java.lang.String output) |
public static final int DNN_BACKEND_DEFAULT
public static final int DNN_BACKEND_HALIDE
public static final int DNN_BACKEND_INFERENCE_ENGINE
public static final int DNN_BACKEND_OPENCV
public static final int DNN_BACKEND_VKCOM
public static final int DNN_TARGET_CPU
public static final int DNN_TARGET_OPENCL
public static final int DNN_TARGET_OPENCL_FP16
public static final int DNN_TARGET_MYRIAD
public static final int DNN_TARGET_VULKAN
public static Mat blobFromImage(Mat image, double scalefactor, Size size, Scalar mean, boolean swapRB, boolean crop, int ddepth)
public static Mat blobFromImage(Mat image, double scalefactor, Size size, Scalar mean, boolean swapRB, boolean crop)
public static Mat blobFromImage(Mat image, double scalefactor, Size size, Scalar mean, boolean swapRB)
public static Mat blobFromImage(Mat image, double scalefactor, Size size, Scalar mean)
public static Mat blobFromImages(java.util.List<Mat> images, double scalefactor, Size size, Scalar mean, boolean swapRB, boolean crop, int ddepth)
public static Mat blobFromImages(java.util.List<Mat> images, double scalefactor, Size size, Scalar mean, boolean swapRB, boolean crop)
public static Mat blobFromImages(java.util.List<Mat> images, double scalefactor, Size size, Scalar mean, boolean swapRB)
public static Mat blobFromImages(java.util.List<Mat> images, double scalefactor, Size size, Scalar mean)
public static Mat blobFromImages(java.util.List<Mat> images, double scalefactor, Size size)
public static Mat readTensorFromONNX(java.lang.String path)
public static Mat readTorchBlob(java.lang.String filename, boolean isBinary)
public static Mat readTorchBlob(java.lang.String filename)
public static Net readNet(java.lang.String framework, MatOfByte bufferModel, MatOfByte bufferConfig)
public static Net readNet(java.lang.String model, java.lang.String config, java.lang.String framework)
public static Net readNet(java.lang.String model, java.lang.String config)
public static Net readNet(java.lang.String model)
public static Net readNetFromCaffe(java.lang.String prototxt, java.lang.String caffeModel)
public static Net readNetFromCaffe(java.lang.String prototxt)
public static Net readNetFromDarknet(java.lang.String cfgFile, java.lang.String darknetModel)
public static Net readNetFromDarknet(java.lang.String cfgFile)
public static Net readNetFromModelOptimizer(java.lang.String xml, java.lang.String bin)
public static Net readNetFromONNX(java.lang.String onnxFile)
public static Net readNetFromTensorflow(java.lang.String model, java.lang.String config)
public static Net readNetFromTensorflow(java.lang.String model)
public static Net readNetFromTensorflow(MatOfByte bufferModel, MatOfByte bufferConfig)
public static Net readNetFromTorch(java.lang.String model, boolean isBinary)
public static Net readNetFromTorch(java.lang.String model)
public static void NMSBoxes(MatOfRect bboxes, MatOfFloat scores, float score_threshold, float nms_threshold, MatOfInt indices, float eta, int top_k)
public static void NMSBoxes(MatOfRect bboxes, MatOfFloat scores, float score_threshold, float nms_threshold, MatOfInt indices, float eta)
public static void NMSBoxes(MatOfRect bboxes, MatOfFloat scores, float score_threshold, float nms_threshold, MatOfInt indices)
public static void NMSBoxes(MatOfRect2d bboxes, MatOfFloat scores, float score_threshold, float nms_threshold, MatOfInt indices, float eta, int top_k)
public static void NMSBoxes(MatOfRect2d bboxes, MatOfFloat scores, float score_threshold, float nms_threshold, MatOfInt indices, float eta)
public static void NMSBoxes(MatOfRect2d bboxes, MatOfFloat scores, float score_threshold, float nms_threshold, MatOfInt indices)
public static void NMSBoxesRotated(MatOfRotatedRect bboxes, MatOfFloat scores, float score_threshold, float nms_threshold, MatOfInt indices, float eta, int top_k)
public static void NMSBoxesRotated(MatOfRotatedRect bboxes, MatOfFloat scores, float score_threshold, float nms_threshold, MatOfInt indices, float eta)
public static void NMSBoxesRotated(MatOfRotatedRect bboxes, MatOfFloat scores, float score_threshold, float nms_threshold, MatOfInt indices)
public static void resetMyriadDevice()
public static void shrinkCaffeModel(java.lang.String src, java.lang.String dst, java.util.List<java.lang.String> layersTypes)
public static void shrinkCaffeModel(java.lang.String src, java.lang.String dst)
public static void writeTextGraph(java.lang.String model, java.lang.String output)
Generated on Sun Nov 18 2018 11:54:12 UTC / OpenCV 4.0.0