The app will crash when trying to read MRZ in portrait position
java.lang.IllegalArgumentException: y + height must be <= bitmap.height()
at android.graphics.Bitmap.createBitmap(Bitmap.java:916)
at android.graphics.Bitmap.createBitmap(Bitmap.java:873)
at org.idpass.smartscanner.lib.mrz.MRZAnalyzer.analyze(MRZAnalyzer.kt:100)
Expected Behaviour
It should not crash and scanning MRZ with Portrait orientation should work
Steps to Reproduce the Problem
Open SmartScanner App
Go back to the home page and try to open MRZ, it will crash automatically
Current Behaviour
The app will crash when trying to read MRZ in portrait position
Expected Behaviour
It should not crash and scanning MRZ with Portrait orientation should work
Steps to Reproduce the Problem
Context