Memory Management in Opencv.js

asked 2019-12-09 15:14:19 -0500

I'm using opencv.js in a static web page, no back end. Unfortunately, I keep crashing due to memory running out. It looks like opencv.js is the culprit and I was hoping someone might know if there is a way to prevent opencv memory leaks in the javascript version. I already call _mat_.delete() on every matrix when I'm done with it and clear out the canvas I'm displaying on when I'm done, but after several runs (6-8) I still run out of memory. What I'd like to know is if there is anything I'm missing or if opencv.js is just to heavy in development at the moment to be reliable for my use case?

edit retag flag offensive close merge delete