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_TARGET_CPU |
static int |
DNN_TARGET_MYRIAD |
static int |
DNN_TARGET_OPENCL |
static int |
DNN_TARGET_OPENCL_FP16 |
Constructor and Description |
---|
Dnn() |
Modifier and Type | Method and Description |
---|---|
static Mat |
blobFromImage(Mat image) |
static Mat |
blobFromImage(Mat image,
double scalefactor,
Size size,
Scalar mean,
boolean swapRB,
boolean crop) |
static Mat |
blobFromImages(java.util.List<Mat> images) |
static Mat |
blobFromImages(java.util.List<Mat> images,
double scalefactor,
Size size,
Scalar mean,
boolean swapRB,
boolean crop) |
static void |
imagesFromBlob(Mat blob_,
java.util.List<Mat> images_) |
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,
int top_k) |
static Net |
readNet(java.lang.String model) |
static Net |
readNet(java.lang.String model,
java.lang.String config,
java.lang.String framework) |
static Net |
readNetFromCaffe(java.lang.String prototxt) |
static Net |
readNetFromCaffe(java.lang.String prototxt,
java.lang.String caffeModel) |
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 |
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 |
readTorchBlob(java.lang.String filename) |
static Mat |
readTorchBlob(java.lang.String filename,
boolean isBinary) |
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) |
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_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 Mat blobFromImage(Mat image, 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, boolean crop)
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 model, java.lang.String config, java.lang.String framework)
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 readNetFromTensorflow(java.lang.String model, java.lang.String config)
public static Net readNetFromTensorflow(java.lang.String model)
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)
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)
Generated on Wed Jul 4 2018 14:01:58 UTC / OpenCV 3.4.2