How to get OpenCV (javascript edition) working on Internet Explorer 11?

asked 2018-12-04 20:25:18 -0500

I'm trying to get OpenCV javascript version working on IE11 for contour detection. My code works on every other modern browser, but I'm getting errors like:

TypeError: Object doesn't support this action

The line of code of the OpenCV library where I'm getting this error is:

var imgData=new ImageData(new Uint8ClampedArray(img.data),img.cols,img.rows);

So it seems IE11 doesn't support that syntax. I've been trying to find some polyfill to make it work, but no luck for now.

So anyone knows how to make this work on IE11, is it even possible or there is no way to do it?

Thanks.

edit retag flag offensive close merge delete