Hello,
I am getting this error from opencvjs and line number: 24 (we build the opencv.js as mentioned in Opencv document).
Could you please help to resolve this issue. Is there any way to catch this "OOM" and resume the execution smoother.
I used cv.calcOpticalFlowPyrLK(oldGray, frameGray, p0, p1, st, err, winSize, maxLevel, criteria); this code in my javascript, and handled this function insdie TRY and CATCH, but still getting OOM abort error as attached screenshot.
Below code runs well for 1 to 2 minutes and then start throwing OOM abort, so couldn't call any function inside opencvjs.
(For reference: https://github.com/opencv/opencv/issues/15500 )
Try{
//some code written here, executes for few mins and then getting this OOM abort error
cv.calcOpticalFlowPyrLK(oldGray, frameGray, p0, p1, st, err, winSize, maxLevel, criteria);
}catch (err) {
console.log("Handle error===",err);
}