Package de.swa.gmaf.plugin.googlevision
Class GoogleVisionBasePlugin
java.lang.Object
de.swa.gmaf.plugin.googlevision.GoogleVisionBasePlugin
- All Implemented Interfaces:
GMAF_Plugin
- Direct Known Subclasses:
DominantColorDetection
,FaceDetection
,ImageTextDetection
,LabelDetection
,LandmarkDetection
,LogoDetection
,MoodDetection
,ObjectDetection
public abstract class GoogleVisionBasePlugin extends java.lang.Object implements GMAF_Plugin
this class acts as a basis for the GoogleVision API and contains standard
methods for authentication, authorisation and API calls.
- Author:
- stefan_wagenpfeil
-
Constructor Summary
Constructors Constructor Description GoogleVisionBasePlugin()
-
Method Summary
Modifier and Type Method Description boolean
canProcess(java.lang.String extension)
this method returns, if the plugin is able to process files with a given extensionjava.util.Vector<Node>
getDetectedNodes()
this method is called by the GMAF to receive the results of this plugin and to fuse it into the MMFGboolean
isGeneralPlugin()
if this plugin contains overall metadata, e.g.void
process(java.net.URL url, java.io.File f, byte[] bytes, MMFG fv)
the process method processes a Multimedia asset into a Multimedia Feature Graphabstract boolean
providesRecoursiveData()
this method should indicate, if it returns recursive data, which are then re-processed within the GMAF framework
-
Constructor Details
-
GoogleVisionBasePlugin
public GoogleVisionBasePlugin()
-
-
Method Details
-
process
the process method processes a Multimedia asset into a Multimedia Feature Graph- Specified by:
process
in interfaceGMAF_Plugin
- Parameters:
url
- URL, where the asset to be processed is availablef
- File-pointer, if the asset can be accessed via FIle-IObytes
- byte-array containing an asset's contentfv
- MMFG, in which the detected features should be inserted
-
canProcess
public boolean canProcess(java.lang.String extension)Description copied from interface:GMAF_Plugin
this method returns, if the plugin is able to process files with a given extension- Specified by:
canProcess
in interfaceGMAF_Plugin
- Returns:
- true or false
-
getDetectedNodes
Description copied from interface:GMAF_Plugin
this method is called by the GMAF to receive the results of this plugin and to fuse it into the MMFG- Specified by:
getDetectedNodes
in interfaceGMAF_Plugin
- Returns:
- a vector of MMFG nodes
-
isGeneralPlugin
public boolean isGeneralPlugin()Description copied from interface:GMAF_Plugin
if this plugin contains overall metadata, e.g. EXIF data, this method should return true to indicate, that these general data have to be attached to the MMFG's root node- Specified by:
isGeneralPlugin
in interfaceGMAF_Plugin
- Returns:
- true, if it is a general plugin
-
providesRecoursiveData
public abstract boolean providesRecoursiveData()Description copied from interface:GMAF_Plugin
this method should indicate, if it returns recursive data, which are then re-processed within the GMAF framework- Specified by:
providesRecoursiveData
in interfaceGMAF_Plugin
- Returns:
- true, if recursive data is available
-