TechStark / opencv-js

OpenCV JavaScript version for node.js or browser
Apache License 2.0
353 stars 31 forks source link

delete() does not exist on type Mat. Necessary in this version? #40

Closed keckelt closed 8 months ago

keckelt commented 8 months ago

Hi, Thanks for creating this version!

I have been using the opencv.js file from OpenCV in JS projects previously and now using your library in a TypeScript project.

I have always been calling .delete() on Mat instances before, as they do in tutorials on the OpenCV page. Is this necessary for this library as well?

I'm asking because tsc and VS Code are showing an error that: Property 'delete' does not exist on type 'Mat'.ts(2339)

ttt43ttt commented 8 months ago

@keckelt Thanks for pointing this out. This has been fixed in v4.8.0-release.9