Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erreur lors de la création du template pour probeImage #69

Open
kdiawara96 opened this issue Dec 10, 2024 · 0 comments
Open

Erreur lors de la création du template pour probeImage #69

kdiawara96 opened this issue Dec 10, 2024 · 0 comments

Comments

@kdiawara96
Copy link

Erreur lors de la création du template pour probeImage.

 java.lang.IllegalArgumentException: Unsupported image format [ImageIO = 'java.lang.UnsupportedOperationException: Image decoder is not available.', WSQ = 'java.lang.IllegalArgumentException: This is not a WSQ image.', Android = 'java.lang.NoClassDefFoundError: Failed resolution of: Lcom/machinezoo/noexception/Exceptions; -> java.lang.ClassNotFoundException: Didn't find class "com.machinezoo.noexception.Exceptions" on path: DexPathList[[zip file "/data/app/~~Ar2qCV_DK-z6YbvZ9j2OCA==/com.futronictech-ysDXwwqC4YxxZht6daeceQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~Ar2qCV_DK-z6YbvZ9j2OCA==/com.futronictech-ysDXwwqC4YxxZht6daeceQ==/lib/arm64, /data/app/~~Ar2qCV_DK-z6YbvZ9j2OCA==/com.futronictech-ysDXwwqC4YxxZht6daeceQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]]'].

code :
byte[] pngBytes = convertToPNG(probeImage);

  FingerprintTemplate probeTemplate = null;
        try {
       
            FingerprintImage fingerprintImage = new FingerprintImage(pngBytes);
            probeTemplate = new FingerprintTemplate(fingerprintImage);
      
        } catch (Exception e) {
      
            return false;
        }

method:

public static byte[] convertToPNG(byte[] rawBytes) throws IOException {
Bitmap bitmap = BitmapFactory.decodeByteArray(rawBytes, 0, rawBytes.length);
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 100, outputStream);
return outputStream.toByteArray();
}

please help me @robertvazan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant