Class NativeClassifier
java.lang.Object
com.xpdustry.nohorny.natives.NativeClassifier
- All Implemented Interfaces:
AutoCloseable
A ViT image classifier running an ONNX model with OpenCV. Not thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionfloat[]classify(BufferedImage image) Returns the softmax probabilities of each label, in the order of the model outputs.voidclose()static NativeClassifier
-
Method Details
-
create
-
classify
Returns the softmax probabilities of each label, in the order of the model outputs. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-