Menu

TemplateBuilder.java (BufferedImage not available in android)

Mark B
2019-08-13
2019-09-19
  • Mark B

    Mark B - 2019-08-13

    Hi what should I do to these codes? BufferedImage is not available in android

     
  • Robert Važan

    Robert Važan - 2019-08-13

    This code was designed to fall back to other image decoders when ImageIO is not available, but now that I am looking at BufferedImage in method signature, I am worried that it will throw during class loading already. What exception are you getting?

    Anyway, since Sanselan depends on ImageIO, WSQ would be the only supported format even if the class loading succeeded. In order to make this work on Android with PNG/JPEG, you will need to implement decodeViaAndroidBitmap and add it to the list of image decoders.

     
  • Mark B

    Mark B - 2019-08-13

    Do you have a decoder of android bitmap?

     
  • Robert Važan

    Robert Važan - 2019-08-13

    No. Not yet.

     
  • Mark B

    Mark B - 2019-08-13

    I will use DigitalPersona 4500, should it work if I just comment out the two decoder who's having error?

     
  • Robert Važan

    Robert Važan - 2019-08-13

    If you just comment out the two non-Android decoders, SourceAFIS will only support WSQ images and ANSI/ISO templates.

     
  • Mark B

    Mark B - 2019-08-13

    I can already scan the fingerprint and store them as byte[] or bitmap. Do you have a solution in mind so that I can apply your algorithm and existing code to work in Android? I just dont get it why its not working, the parameter of FingerprintTemplate is bitmap I wonder why its not being process in Android.

     
  • Robert Važan

    Robert Važan - 2019-09-19

    FYI, SourceAFIS 3.6.0 runs on Android API level 24+.

     

Log in to post a comment.