Ask Your Question

cv.imwrite is not a fuction error

asked 2019-07-12 18:07:48 -0500

MaggPI gravatar image

updated 2019-07-13 11:31:02 -0500

My version of opencv I am using w/require statement is from open cv web site.

My problem is that it doesn't seem to support imwrite statements (or at least I can't find imwrite when it's searched)

The result is I can't execute a basic imwrite statement in OpenCV.js?

Succh as cv.imwrite('testimg.png', mat);

provides the basic javascript error below:

Uncaught TypeError: cv.imwrite is not a function at HTMLImageElement.img_input.onload (index.2.html:76)

So I just want to confirm that '' does not include imwrite, imdecode, etc


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-07-30 17:21:45 -0500

Hellcho gravatar image

Up to my knowledge you can see the functions included in opencv.js here:

As you can see imwrite isn't included, if you know how to save an image stores in a cv.Mat to a JPEG file I'll be grateful

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-07-12 18:07:48 -0500

Seen: 881 times

Last updated: Jul 13 '19