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 boolean
canProcess(java.lang.String extension)
Only PNGs can be proceeded.java.util.Vector<Node>
getDetectedNodes()
Returns the detected nodes afterOpenCVObjectDetectorGMAFPlugin.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.
-
Constructor Details
-
OpenCVObjectDetectorGMAFPlugin
public OpenCVObjectDetectorGMAFPlugin()
-
-
Method Details
-
canProcess
public boolean canProcess(java.lang.String extension)Only PNGs can be proceeded.- Specified by:
canProcess
in interfaceGMAF_Plugin
- Returns:
- true or false
-
getDetectedNodes
Returns the detected nodes afterOpenCVObjectDetectorGMAFPlugin.process
was called.- Specified by:
getDetectedNodes
in interfaceGMAF_Plugin
- Returns:
- a vector of MMFG nodes
-
isGeneralPlugin
public boolean isGeneralPlugin()Returns if this is a general plugin.- Specified by:
isGeneralPlugin
in interfaceGMAF_Plugin
- Returns:
- true, if it is a general plugin
-
process
Process the detection of OpenCV.- Specified by:
process
in 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:
providesRecoursiveData
in interfaceGMAF_Plugin
- Returns:
- true, if recursive data is available
-