Package de.swa.fuh.opencv
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 booleancanProcess(java.lang.String extension)Only PNGs can be proceeded.java.util.Vector<Node>getDetectedNodes()Returns the detected nodes afterOpenCVObjectDetectorGMAFPlugin.processwas called.booleanisGeneralPlugin()Returns if this is a general plugin.voidprocess(java.net.URL url, java.io.File f, byte[] bytes, MMFG fv)Process the detection of OpenCV.booleanprovidesRecoursiveData()The module generates bounding boxes so it can used recursively.
-
Constructor Details
-
OpenCVObjectDetectorGMAFPlugin
public OpenCVObjectDetectorGMAFPlugin()
-
-
Method Details
-
canProcess
public boolean canProcess(java.lang.String extension)Only PNGs can be proceeded.- Specified by:
canProcessin interfaceGMAF_Plugin- Returns:
- true or false
-
getDetectedNodes
Returns the detected nodes afterOpenCVObjectDetectorGMAFPlugin.processwas called.- Specified by:
getDetectedNodesin interfaceGMAF_Plugin- Returns:
- a vector of MMFG nodes
-
isGeneralPlugin
public boolean isGeneralPlugin()Returns if this is a general plugin.- Specified by:
isGeneralPluginin interfaceGMAF_Plugin- Returns:
- true, if it is a general plugin
-
process
Process the detection of OpenCV.- Specified by:
processin interfaceGMAF_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:
providesRecoursiveDatain interfaceGMAF_Plugin- Returns:
- true, if recursive data is available
-