Class KeypointsModel

java.lang.Object
org.opencv.dnn.Model
org.opencv.dnn.KeypointsModel

public class KeypointsModel
extends Model
This class represents high-level API for keypoints models KeypointsModel allows to set params for preprocessing input image. KeypointsModel creates net from file with trained weights and config, sets preprocessing input, runs forward pass and returns the x and y coordinates of each detected keypoint
  • Constructor Details

    • KeypointsModel

      protected KeypointsModel​(long addr)
    • KeypointsModel

      public KeypointsModel​(String model, String config)
      Create keypoints model from network represented in one of the supported formats. An order of model and config arguments does not matter.
      Parameters:
      model - Binary file contains trained weights.
      config - Text file contains network configuration.
    • KeypointsModel

      public KeypointsModel​(String model)
      Create keypoints model from network represented in one of the supported formats. An order of model and config arguments does not matter.
      Parameters:
      model - Binary file contains trained weights.
    • KeypointsModel

      public KeypointsModel​(Net network)
      Create model from deep learning network.
      Parameters:
      network - Net object.
  • Method Details