org.opencv.dnn

## Class Dnn

- java.lang.Object
- - org.opencv.dnn.Dnn

-     public class Dnn
      extends java.lang.Object

- - ### Field Summary

    Fields
    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_TARGET_CPU`
    `static int` | `DNN_TARGET_OPENCL`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Dnn()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    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` | `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` | `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)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### DNN_BACKEND_DEFAULT

          public static final int DNN_BACKEND_DEFAULT

      See Also:
        Constant Field Values

    - #### DNN_BACKEND_HALIDE

          public static final int DNN_BACKEND_HALIDE

      See Also:
        Constant Field Values

    - #### DNN_BACKEND_INFERENCE_ENGINE

          public static final int DNN_BACKEND_INFERENCE_ENGINE

      See Also:
        Constant Field Values

    - #### DNN_TARGET_CPU

          public static final int DNN_TARGET_CPU

      See Also:
        Constant Field Values

    - #### DNN_TARGET_OPENCL

          public static final int DNN_TARGET_OPENCL

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### Dnn

          public Dnn()

  - ### Method Detail

    - #### blobFromImage

          public static Mat blobFromImage(Mat image,
                                          double scalefactor,
                                          Size size,
                                          Scalar mean,
                                          boolean swapRB,
                                          boolean crop)

    - #### blobFromImage

          public static Mat blobFromImage(Mat image)

    - #### blobFromImages

          public static Mat blobFromImages(java.util.List<Mat> images,
                                           double scalefactor,
                                           Size size,
                                           Scalar mean,
                                           boolean swapRB,
                                           boolean crop)

    - #### blobFromImages

          public static Mat blobFromImages(java.util.List<Mat> images)

    - #### readTorchBlob

          public static Mat readTorchBlob(java.lang.String filename,
                                          boolean isBinary)

    - #### readTorchBlob

          public static Mat readTorchBlob(java.lang.String filename)

    - #### readNetFromCaffe

          public static Net readNetFromCaffe(java.lang.String prototxt,
                                             java.lang.String caffeModel)

    - #### readNetFromCaffe

          public static Net readNetFromCaffe(java.lang.String prototxt)

    - #### readNetFromDarknet

          public static Net readNetFromDarknet(java.lang.String cfgFile,
                                               java.lang.String darknetModel)

    - #### readNetFromDarknet

          public static Net readNetFromDarknet(java.lang.String cfgFile)

    - #### readNetFromTensorflow

          public static Net readNetFromTensorflow(java.lang.String model,
                                                  java.lang.String config)

    - #### readNetFromTensorflow

          public static Net readNetFromTensorflow(java.lang.String model)

    - #### readNetFromTorch

          public static Net readNetFromTorch(java.lang.String model,
                                             boolean isBinary)

    - #### readNetFromTorch

          public static Net readNetFromTorch(java.lang.String model)

    - #### NMSBoxes

          public static void NMSBoxes(MatOfRect bboxes,
                                      MatOfFloat scores,
                                      float score_threshold,
                                      float nms_threshold,
                                      MatOfInt indices,
                                      float eta,
                                      int top_k)

    - #### NMSBoxes

          public static void NMSBoxes(MatOfRect bboxes,
                                      MatOfFloat scores,
                                      float score_threshold,
                                      float nms_threshold,
                                      MatOfInt indices)

    - #### imagesFromBlob

          public static void imagesFromBlob(Mat blob_,
                                            java.util.List<Mat> images_)

    - #### shrinkCaffeModel

          public static void shrinkCaffeModel(java.lang.String src,
                                              java.lang.String dst,
                                              java.util.List<java.lang.String> layersTypes)

    - #### shrinkCaffeModel

          public static void shrinkCaffeModel(java.lang.String src,
                                              java.lang.String dst)

Generated on Fri Feb 23 2018 13:10:16 UTC / OpenCV 3.4.1