OpenCV Insufficient memory error


#1

I’ve built the last OpenALPR release for Android with Cmake.
When I exploit the libopenalprjni.so under x86, x86_64 or armeabi-v7a, I get the following error (with no further stacktrace or explanation) :

E/cv::error(): OpenCV(4.1.1) Error: Insufficient memory (Failed to allocate 280608000 bytes) in OutOfMemoryError, file /build/master_pack-android/opencv/modules/core/src/alloc.cpp, line 72

Is this a known issue ? Where should I investigate to fix this ?

I’m calling native_recognize with a 500x400 pixels JPG. I have the following conf : conf file