Top Description Methods
javax.visrec.ml.classification

public Interface ImageClassifier<IMAGE_CLASS>

extends Classifier<IMAGE_CLASS, Map<String, Float>>
Known Direct Subinterfaces
javax.visrec.ml.classification.NeuralNetImageClassifier
Type Parameters
<IMAGE_CLASS>
type of input objects to classify (eg. User, Product, Transaction, Image, etc.)
Imports
java.io.InputStream, java.nio.file.Path, java.util.Map

Classifier interface specialized in image classification
Since
1.0

Method Summary

Modifier and TypeMethod and Description
public Map<String, Float>

Returns:

Map with key as classification label and with value as accuracy percentage of likelihood
classify
(Path
Path to use as input
input
)

Redeclares javax.visrec.ml.classification.Classifier.classify.

Classify the input and get a map of classification results as output
public Map<String, Float>

Returns:

Map with key as classification label and with value as accuracy percentage of likelihood
classify
(InputStream
InputStream to use as input
input
)

Redeclares javax.visrec.ml.classification.Classifier.classify.

Classify the input and get a map of classification results as output

Method Detail

classifyback to summary
public Map<String, Float> classify(Path input) throws ClassificationException

Redeclares javax.visrec.ml.classification.Classifier.classify.

Classify the input and get a map of classification results as output

Parameters
input:Path

Path to use as input

Returns:Map<String, Float>

Map with key as classification label and with value as accuracy percentage of likelihood

Exceptions
ClassificationException:
if the file couldn't be found or classified
classifyback to summary
public Map<String, Float> classify(InputStream input) throws ClassificationException

Redeclares javax.visrec.ml.classification.Classifier.classify.

Classify the input and get a map of classification results as output

Parameters
input:InputStream

InputStream to use as input

Returns:Map<String, Float>

Map with key as classification label and with value as accuracy percentage of likelihood

Exceptions
ClassificationException:
if input couldn't be classified