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