public class DL4JVGG16Net extends Object implements ObjectRecogniser
| Modifier and Type | Field and Description |
|---|---|
static Set<MediaType> |
SUPPORTED_MIMES |
| Constructor and Description |
|---|
DL4JVGG16Net() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkInitialization(InitializableProblemHandler problemHandler) |
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<RecognisedObject> |
recognise(InputStream stream,
ContentHandler handler,
Metadata metadata,
ParseContext context)
Recognise the objects in the stream
|
public Set<MediaType> getSupportedMimes()
ObjectRecognisergetSupportedMimes in interface ObjectRecogniserpublic boolean isAvailable()
ObjectRecogniserisAvailable in interface ObjectRecognisertrue when the service is available, false otherwisepublic void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
checkInitialization in interface InitializableproblemHandler - if there is a problem and no
custom initializableProblemHandler has been configured
via Initializable parameters,
this is called to respond.TikaConfigExceptionpublic void initialize(Map<String,Param> params) throws TikaConfigException
ObjectRecogniserinitialize in interface Initializableinitialize in interface ObjectRecogniserparams - configuration instance in the form of contextTikaConfigException - when there is an issue with configurationpublic List<RecognisedObject> recognise(InputStream stream, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException
ObjectRecogniserrecognise in interface ObjectRecogniserstream - content streamhandler - tika's content handlermetadata - metadata instancecontext - parser contextRecognisedObjectsIOException - when an I/O error occursSAXException - when an issue with XML occursTikaException - any generic errorCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.