package com.kofax.android.abc.image_classification; import android.graphics.Bitmap; import java.util.Vector; /* loaded from: classes3.dex */ public class ImageClassifier { private long m_ImageClassifierPtr; private boolean m_owner; public static native String nativeGetVersion(); public static native boolean nativeStaticInitializer(); public native void nativeClassify(int i, int i2, int i3, int i4, long j, int i5); public native void nativeClassify(Bitmap bitmap, int i); public native void nativeClassify(String str, int i); public native void nativeConfigure(String str); public native long nativeCreate(); public native void nativeDispose(); public native Vector nativeGetClassificationResults(); public native void nativeLoadModel(String str); static { if (!nativeStaticInitializer()) { throw new RuntimeException("com.kofax.android.abc.image_classification: Static initializer failed."); } System.loadLibrary("b2681f"); } public ImageClassifier() { this.m_ImageClassifierPtr = nativeCreate(); this.m_owner = true; } public ImageClassifier(long j) { this.m_ImageClassifierPtr = j; this.m_owner = false; } public void dispose() { if (this.m_owner) { nativeDispose(); } this.m_ImageClassifierPtr = 0L; this.m_owner = false; } protected void finalize() throws Throwable { dispose(); } public static String getVersion() { return nativeGetVersion(); } public void loadConfigurationFile(String str) { nativeConfigure(str); } public void loadModel(String str) { nativeLoadModel(str); } public void classify(String str, int i) { nativeClassify(str, i); } public void classify(int i, int i2, int i3, int i4, long j, int i5) { nativeClassify(i, i2, i3, i4, j, i5); } public void classify(Bitmap bitmap, int i) { nativeClassify(bitmap, i); } public Vector getClassificationResults() { return nativeGetClassificationResults(); } public long getPtr() { return this.m_ImageClassifierPtr; } }