Interface ObjectRecogniser
- All Superinterfaces:
Initializable
- All Known Implementing Classes:
TensorflowImageRecParser,TensorflowRESTCaptioner,TensorflowRESTRecogniser,TensorflowRESTVideoRecogniser
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
This is a contract for object recognisers used by
ObjectRecognitionParser- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.The mimes supported by this recogniservoidinitialize(Map<String, Param> params) Deprecated.This is the hook for configuring the recogniserbooleanDeprecated.Is this service availableList<? extends RecognisedObject> recognise(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) Deprecated.Recognise the objects in the streamMethods inherited from interface org.apache.tika.config.Initializable
checkInitialization
-
Method Details
-
getSupportedMimes
Deprecated.The mimes supported by this recogniser- Returns:
- set of mediatypes
-
isAvailable
boolean isAvailable()Deprecated.Is this service available- Returns:
truewhen the service is available,falseotherwise
-
initialize
Deprecated.This is the hook for configuring the recogniser- Specified by:
initializein interfaceInitializable- Parameters:
params- configuration instance in the form of context- Throws:
TikaConfigException- when there is an issue with configuration
-
recognise
List<? extends RecognisedObject> recognise(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException Deprecated.Recognise the objects in the stream- 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
-