Couldn't use kalman filter in opencvjs

Hi, I am trying to implement kalman filter using opencvjs.
let kalmanFilter = new cv.kalmanFilter(4, 2, 0, cv.CV_32F);

All the opencvjs code before kalman filter initialization works. but the code after it is not working. Even a simple console log is not showing up in the console.

Please let me know how to handle this.

there is no kalman filter in the opencv js api

Hi berak, Thanks for the reply. Is there any other way possible to use kalman filter in opencvjs?

you can try to add it to the whitelist & rebuild opencv.js

Can you explain how to do that?

see readme

Hi berak, I have already built opencv.js. please let me know how to add kalman filter to it.