Skip to content

v5.0

Compare
Choose a tag to compare
@tbehera tbehera released this 16 Mar 21:16
· 22 commits to master since this release

Acuant Android Mobile SDK version 5.0

  • Added glare to the ImageMetrics parameter:

      if(imageMetrics!=null && imageMetrics.get("HAS_GLARE")!=null) { 
      	boolean hasGlare = Boolean.parseBoolean(imageMetrics.get("HAS_GLARE").toString()); 
      } 
      if(imageMetrics!=null && imageMetrics.get("GLARE_GRADE")!=null) 
      float glareGrade = Float.parseFloat(imageMetrics.get("GLARE_GRADE").toString()); 
      }  
    

In general, a glare grade of 1 means no glare and 0 means there is a high chance of having a glare in the captured image. A glare grade 0.88f and above means there is no glare.

The following methods use ImageMetrics:

  • onCardCroppingFinish

  • onCancelCapture

  • onBarcodeTimeOut