Caused by: com.microblink.RecognizerNotInitializedException: The recognizer has not been initialized, make sure to call Recognizer.getInstance().initialize() first.
I think the sdk is not able to release camera instance after use, so next time when capture receipt is invoked again after going back I am getting this issue.
I can see this log repeating in logcat even when the activity is closed
I/CameraManagerGlobal: Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_OPEN for client com.samsung.adaptivebrightnessgo API Level 2
I/CameraManagerGlobal: Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_ACTIVE for client com.samsung.adaptivebrightnessgo API Level 2
I/CameraManagerGlobal: Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_IDLE for client com.samsung.adaptivebrightnessgo API Level 2
I/CameraManagerGlobal: Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.samsung.adaptivebrightnessgo API Level 2
You can reproduce it on your sample sdk as well just use the custom recognizer view.
I fix this error add this:
its called in initState
The documentation tells us about this: