Class OpenCVObjectDetectorGMAFPlugin

java.lang.Object
de.swa.fuh.opencv.OpenCVObjectDetectorGMAFPlugin
All Implemented Interfaces:
GMAF_Plugin

public class OpenCVObjectDetectorGMAFPlugin
extends java.lang.Object
implements GMAF_Plugin
The Plugin class to make OpenCV compatible with GMAF.
Author:
Tobias Lukoschek
  • Constructor Summary

    Constructors 
    Constructor Description
    OpenCVObjectDetectorGMAFPlugin()  
  • Method Summary

    Modifier and Type Method Description
    boolean canProcess​(java.lang.String extension)
    Only PNGs can be proceeded.
    java.util.Vector<Node> getDetectedNodes()
    Returns the detected nodes after OpenCVObjectDetectorGMAFPlugin.process was called.
    boolean isGeneralPlugin()
    Returns if this is a general plugin.
    void process​(java.net.URL url, java.io.File f, byte[] bytes, MMFG fv)
    Process the detection of OpenCV.
    boolean providesRecoursiveData()
    The module generates bounding boxes so it can used recursively.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • canProcess

      public boolean canProcess​(java.lang.String extension)
      Only PNGs can be proceeded.
      Specified by:
      canProcess in interface GMAF_Plugin
      Returns:
      true or false
    • getDetectedNodes

      public java.util.Vector<Node> getDetectedNodes()
      Returns the detected nodes after OpenCVObjectDetectorGMAFPlugin.process was called.
      Specified by:
      getDetectedNodes in interface GMAF_Plugin
      Returns:
      a vector of MMFG nodes
    • isGeneralPlugin

      public boolean isGeneralPlugin()
      Returns if this is a general plugin.
      Specified by:
      isGeneralPlugin in interface GMAF_Plugin
      Returns:
      true, if it is a general plugin
    • process

      public void process​(java.net.URL url, java.io.File f, byte[] bytes, MMFG fv)
      Process the detection of OpenCV.
      Specified by:
      process in interface GMAF_Plugin
      Parameters:
      url - url of the image.
      f - the image file.
      bytes - the image loaded in bytes [].
      fv - The MMFG used to get the parent node.
    • providesRecoursiveData

      public boolean providesRecoursiveData()
      The module generates bounding boxes so it can used recursively.
      Specified by:
      providesRecoursiveData in interface GMAF_Plugin
      Returns:
      true, if recursive data is available