Skip to content

Commit

Permalink
added v11.4.12
Browse files Browse the repository at this point in the history
  • Loading branch information
sMaltsevAcuant committed Apr 26, 2021
1 parent 9bf43bb commit d293ce6
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 16 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Acuant Android SDK v11.4.11
**March 2021**
# Acuant Android SDK v11.4.12
**April 2021**

See [https://github.com/Acuant/AndroidSDKV11/releases](https://github.com/Acuant/AndroidSDKV11/releases) for release notes.

Expand Down Expand Up @@ -189,18 +189,18 @@ The SDK includes the following modules:
- Add the following dependencies

implementation 'com.acuant:acuantcommon:11.4.11'
implementation 'com.acuant:acuantcamera:11.4.11'
implementation 'com.acuant:acuantimagepreparation:11.4.11'
implementation 'com.acuant:acuantdocumentprocessing:11.4.11'
implementation 'com.acuant:acuantechipreader:11.4.11'
implementation 'com.acuant:acuantfacematch:11.4.11'
implementation 'com.acuant:acuanthgliveness:11.4.11'
implementation ('com.acuant:acuantipliveness:11.4.11'){
implementation 'com.acuant:acuantcommon:11.4.12'
implementation 'com.acuant:acuantcamera:11.4.12'
implementation 'com.acuant:acuantimagepreparation:11.4.12'
implementation 'com.acuant:acuantdocumentprocessing:11.4.12'
implementation 'com.acuant:acuantechipreader:11.4.12'
implementation 'com.acuant:acuantfacematch:11.4.12'
implementation 'com.acuant:acuanthgliveness:11.4.12'
implementation ('com.acuant:acuantipliveness:11.4.12'){
transitive = true
}
implementation 'com.acuant:acuantfacecapture:11.4.11'
implementation 'com.acuant:acuantpassiveliveness:11.4.11'
implementation 'com.acuant:acuantfacecapture:11.4.12'
implementation 'com.acuant:acuantpassiveliveness:11.4.12'

- Acuant also relies on Google Play services dependencies, which are pre-installed on almost all Android devices.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,10 @@ abstract class AcuantBaseCameraFragment : Fragment() {
scaledHeight = rotatedPreviewHeight
}

pointXOffset = (rotatedPreviewWidth - scaledWidth)/2
pointYOffset = (rotatedPreviewHeight - scaledHeight)/2
val tmpWidth = (rotatedPreviewWidth - scaledWidth)/2
pointXOffset = if (tmpWidth > 0) tmpWidth else pointXOffset
val tmpHeight = (rotatedPreviewHeight - scaledHeight)/2
pointYOffset = if (tmpHeight > 0) tmpHeight else pointYOffset

// We fit the aspect ratio of TextureView to the size of preview we picked.
if (resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.graphics.Color
import android.graphics.Point
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.support.v4.app.ActivityCompat
import android.view.View
import android.widget.ImageView
Expand All @@ -29,7 +30,7 @@ class AcuantMrzCameraFragment : AcuantBaseCameraFragment(), ActivityCompat.OnReq
*/
private val mrzParser = MrzParser()
private var tries = 0
private var handler: Handler? = Handler()
private var handler: Handler? = Handler(Looper.getMainLooper())
private var mrzResult : MrzResult? = null
private var capturing = false
private var allowCapture = false
Expand Down Expand Up @@ -146,6 +147,16 @@ class AcuantMrzCameraFragment : AcuantBaseCameraFragment(), ActivityCompat.OnReq
super.onPause()
}


override fun onResume() {
handler = Handler(Looper.getMainLooper())
if (capturing) {
capturing = false
this.isCapturing = false
}
super.onResume()
}

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
detectors = listOf(AcuantOcrDetector(activity!!.applicationContext, this))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import android.content.res.Configuration.ORIENTATION_LANDSCAPE
import android.content.res.Configuration.ORIENTATION_PORTRAIT
import android.graphics.drawable.Drawable
import android.os.Handler
import android.os.Looper
import android.support.v4.app.ActivityCompat
import android.support.v7.app.AlertDialog
import android.support.v7.app.AppCompatActivity
Expand Down Expand Up @@ -79,7 +80,7 @@ class MrzCaptureActivity : AppCompatActivity(), MrzCameraSource.PictureCallback,
private var oldPoints : Array<Point>? = null
private val mrzParser = MrzParser()
private var tries = 0
private val handler = Handler()
private val handler = Handler(Looper.getMainLooper())
private var mrzResult : MrzResult? = null
private var capturing = false
private var allowCapture = false
Expand Down Expand Up @@ -348,6 +349,8 @@ class MrzCaptureActivity : AppCompatActivity(), MrzCameraSource.PictureCallback,
override fun onResume() {
super.onResume()

capturing = false

if (mOrientationEventListener.canDetectOrientation()) {
mOrientationEventListener.enable()
}
Expand Down
Binary file modified acuantdocumentprocessing/acuantdocumentprocessing.aar
Binary file not shown.
Binary file modified acuantechipreader/acuantechipreader.aar
Binary file not shown.
Binary file modified acuantimagepreparation/acuantimagepreparation.aar
Binary file not shown.

0 comments on commit d293ce6

Please sign in to comment.