Class OpenCVModelObjectClassifier

All Implemented Interfaces:
ObjectClassifier<BufferedImage>, UriResource

public class OpenCVModelObjectClassifier extends AbstractObjectClassifier<BufferedImage> implements UriResource
Initial implementation of a patch-based ObjectClassifier using an OpenCV-compatible DNN.

Warning! This implementation may change in the future.

Author:
Pete Bankhead
  • Constructor Details

    • OpenCVModelObjectClassifier

      public OpenCVModelObjectClassifier(PathObjectFilter filter, OpenCVDnn model, List<PathClass> pathClasses, int width, int height, double requestedPixelSize)
      Constructor.
      Parameters:
      filter - filter to select compatible options
      model - wrapper for the DNN model, including optional preprocessing
      pathClasses - ordered list of classifications, corresponding to the predicted labels
      width - patch width, in pixels, at the classification size
      height - patch height, in pixels, at the classification side
      requestedPixelSize - requested pixel size, in calibrated units, used to calculate the downsample value
  • Method Details