public interface ObjectRecogniser extends Initializable
ObjectRecognitionParser
TensorflowImageRecParser
Modifier and Type | Method and Description |
---|---|
java.util.Set<MediaType> |
getSupportedMimes()
The mimes supported by this recogniser
|
void |
initialize(java.util.Map<java.lang.String,Param> params)
This is the hook for configuring the recogniser
|
boolean |
isAvailable()
Is this service available
|
java.util.List<? extends RecognisedObject> |
recognise(java.io.InputStream stream,
org.xml.sax.ContentHandler handler,
Metadata metadata,
ParseContext context)
Recognise the objects in the stream
|
checkInitialization
java.util.Set<MediaType> getSupportedMimes()
boolean isAvailable()
true
when the service is available, false
otherwisevoid initialize(java.util.Map<java.lang.String,Param> params) throws TikaConfigException
initialize
in interface Initializable
params
- configuration instance in the form of contextTikaConfigException
- when there is an issue with configurationjava.util.List<? extends RecognisedObject> recognise(java.io.InputStream stream, org.xml.sax.ContentHandler handler, Metadata metadata, ParseContext context) throws java.io.IOException, org.xml.sax.SAXException, TikaException
stream
- content streamhandler
- tika's content handlermetadata
- metadata instancecontext
- parser contextRecognisedObject
sjava.io.IOException
- when an I/O error occursorg.xml.sax.SAXException
- when an issue with XML occursTikaException
- any generic errorCopyright © 2010 - 2020 Adobe. All Rights Reserved