Ask Your Question
0

cv.imwrite is not a fuction error

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

MaggPI gravatar image

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

My version of opencv I am using w/require statement is https://docs.opencv.org/3.4.1/opencv.js 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 'https://docs.opencv.org/3.4.1/opencv.js' does not include imwrite, imdecode, etc

Thx

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

Hellcho gravatar image

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

https://github.com/opencv/opencv/blob...

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

Stats

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

Seen: 1,657 times

Last updated: Jul 13 '19