I need to resize images in real time using OpenCv.js
I learned that for this I need to use OpenCv with Web Worker and Web Assembly.
I have examined the example in the link below.
https://github.com/huningxin/opencv.js
I get a "Worker is not a constructor" error during worker use.
I thought this error could not get the file I gave due to browser blocking and I followed a path according to the solution below.
https://stackoverflow.com/a/6454685/7269316
But this did not bring a solution.
How should I proceed to solve this?