Package org.apache.tika.dl.imagerec
Class DL4JVGG16Net
- java.lang.Object
 - 
- org.apache.tika.dl.imagerec.DL4JVGG16Net
 
 
- 
- All Implemented Interfaces:
 Initializable,ObjectRecogniser
public class DL4JVGG16Net extends Object implements ObjectRecogniser
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static Set<MediaType>SUPPORTED_MIMES 
- 
Constructor Summary
Constructors Constructor Description DL4JVGG16Net() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckInitialization(InitializableProblemHandler problemHandler)Set<MediaType>getSupportedMimes()The mimes supported by this recogniservoidinitialize(Map<String,Param> params)This is the hook for configuring the recogniserbooleanisAvailable()Is this service availableList<RecognisedObject>recognise(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context)Recognise the objects in the stream 
 - 
 
- 
- 
Method Detail
- 
getSupportedMimes
public Set<MediaType> getSupportedMimes()
Description copied from interface:ObjectRecogniserThe mimes supported by this recogniser- Specified by:
 getSupportedMimesin interfaceObjectRecogniser- Returns:
 - set of mediatypes
 
 
- 
isAvailable
public boolean isAvailable()
Description copied from interface:ObjectRecogniserIs this service available- Specified by:
 isAvailablein interfaceObjectRecogniser- Returns:
 truewhen the service is available,falseotherwise
 
- 
checkInitialization
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
- Specified by:
 checkInitializationin interfaceInitializable- Parameters:
 problemHandler- if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.- Throws:
 TikaConfigException
 
- 
initialize
public void initialize(Map<String,Param> params) throws TikaConfigException
Description copied from interface:ObjectRecogniserThis is the hook for configuring the recogniser- Specified by:
 initializein interfaceInitializable- Specified by:
 initializein interfaceObjectRecogniser- Parameters:
 params- configuration instance in the form of context- Throws:
 TikaConfigException- when there is an issue with configuration
 
- 
recognise
public List<RecognisedObject> recognise(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException
Description copied from interface:ObjectRecogniserRecognise the objects in the stream- Specified by:
 recognisein interfaceObjectRecogniser- Parameters:
 stream- content streamhandler- tika's content handlermetadata- metadata instancecontext- parser context- Returns:
 - List of 
RecognisedObjects - Throws:
 IOException- when an I/O error occursSAXException- when an issue with XML occursTikaException- any generic error
 
 - 
 
 -