regulaforensics / DocumentReader-iOS

iOS Framework for reading and validation of identification documents
58 stars 15 forks source link

memory issues on iphone 6 #36

Closed doston0000 closed 3 months ago

doston0000 commented 3 years ago

first photo after db init

Screen Shot 2021-04-01 at 12 34 32 PM

then after pressing show scanner

Screen Shot 2021-04-01 at 12 35 15 PM
vyakimchik commented 3 years ago

Hello,

Yes, it seems that it's due to insufficient memory. As this device has only 1GB of RAM and the app with full SDK and full database consumes approximately 400-500 MB, it may crash as other apps also consume some part of memory. What we can suggest is to use the custom database that will include only those documents of those countries you need. Also, you can use the Core type with the functionality you need. E.g. if you want to get data only from MRZs, it's enough for you to use the MRZ Core type, and the database isn't needed at all.

Could you please describe your use case so that we can suggest the Core type and the database that meet your needs?