How to use openCV in TypeScript

correct

the js version is a “mockup”, reading an image from a canvas, you cannot read / decode files from disk