regulaforensics / DocumentReader-Android

Android Framework for reading and validation of identification documents
64 stars 26 forks source link

bitmap problem #14

Closed kadnikovea closed 5 years ago

kadnikovea commented 5 years ago

Good day,

I'm trying to use regula with androidX for scanning image from gallery.

Can't use this method val bmp = getBitmap(selectedImage, 1920, 1080)

Instead I use val imageUri = data.data val btm = getBitmap(activity?.contentResolver, imageUri) DocumentReader.Instance().recognizeImage(btm, completion)

Field "documentReaderResults.textResults" is always null

Can you provide proper method for my case or point on any possible problems? Thanks in advance

kadnikovea commented 5 years ago

forgot to specify scenario