public interface ObjectRecogniser extends Initializable
ObjectRecognitionParser
TensorflowImageRecParser} for an example
Modifier and Type | Method and Description |
---|---|
Set<MediaType> |
getSupportedMimes()
The mimes supported by this recogniser
|
void |
initialize(Map<String,Param> params)
This is the hook for configuring the recogniser
|
boolean |
isAvailable()
Is this service available
|
List<? extends RecognisedObject> |
recognise(InputStream stream,
ContentHandler handler,
Metadata metadata,
ParseContext context)
Recognise the objects in the stream
|
checkInitialization
Set<MediaType> getSupportedMimes()
boolean isAvailable()
true
when the service is available, false
otherwisevoid initialize(Map<String,Param> params) throws TikaConfigException
initialize
in interface Initializable
params
- configuration instance in the form of contextTikaConfigException
- when there is an issue with configurationList<? extends RecognisedObject> recognise(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException
stream
- content streamhandler
- tika's content handlermetadata
- metadata instancecontext
- parser contextRecognisedObject
sIOException
- when an I/O error occursSAXException
- when an issue with XML occursTikaException
- any generic errorCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.