Skip to content

Hologram Detection

  • You can add an image for the hologram animation. If not set, the default image is used:
DocumentReader.Instance().customization().edit().setHologramAnimationImage(getDrawable(R.drawable.icon)).apply();
DocumentReader.Instance().customization().edit().setHologramAnimationImage(getDrawable(R.drawable.icon)).apply()
  • To change the scaling of the hologram animation image, use one of the ImageView.ScaleType members:
DocumentReader.Instance().customization().edit()
            .setHologramAnimationImageScaleType(ImageView.ScaleType.MATRIX)
            .setHologramAnimationImageMatrix(new Matrix())
            .apply();
DocumentReader.Instance().customization().edit()
        .setHologramAnimationImageScaleType(ImageView.ScaleType.MATRIX)
        .setHologramAnimationImageMatrix(Matrix())
        .apply()
  • Change the vertical position of the hologram animation image:
DocumentReader.Instance().customization().edit().setHologramAnimationPositionMultiplier(0.5f).apply();
DocumentReader.Instance().customization().edit().setHologramAnimationPositionMultiplier(0.5f).apply()

Next Steps