i set {build_js.py} {opencv_js.config.py} as follows:
{build_js.py}
“-DWITH_JPEG=ON”,
“-DWITH_WEBP=ON”,
“-DBUILD_opencv_imgcodecs=ON”,
{opencv_js.config.py}
imgcodecs = {‘’: [‘imdecode’, ‘imencode’]}
white_list = makeWhiteList([imgproc, calib3d, imgcodecs])
but The opencv.js I packaged not have imgcodecs,
so what problem is,
berak
April 11, 2023, 8:01am
2
that’s on purpose. if you’re using it from the webbrowser, use a canvas to decode images
berak
April 12, 2023, 7:08am
4
see e.g. discussion here:
opened 04:34PM - 12 Jun 20 UTC
feature
category: javascript (js)
Please enable cv.imencode and cv.imdecode in opencv.js while supporting PNG, JPE… G and WEBP.
thank you very much。。。。。。。