How to increase TOTAL_MEMORY for OpenCV JS?
I am using *opencv.js *. After some time working (about 1 min) it crashes and in the browser console, I see the following.
Uncaught abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 2147221504, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 "). Build with -s ASSERTIONS=1 for more info.
How can I increase TOTAL_MEMORY or set ALLOW_MEMORY_GROWTH = 1 for Opencv JS
I built opencv.js as it's described here
Hello,
I am getting this error after building opencvjs and runs code well for 1 to 2 minutes, but throws OOM abort after 1 or 2 minutes.
Please help me on this issue.
https://answers.opencv.org/question/2...