Android API

The XNOR library lets you run input through machine learning models, receiving predictions. Any application wishing to use this functionality must go through a few steps:

  1. Load a Model with Model.loadBuiltIn

  2. Create an Input with one of its static methods (e.g. Input.jpegImage, Input.rgbImage)

  3. Evaluate the model on the input with Model.evaluate

  4. Extract the results with one of the methods on EvaluationResult

  5. Call AutoCloseable.close() on objects when you are finished with them

See also: