opencv4nodejs-express-websockets
opencv4nodejs-express-websockets copied to clipboard
segmentation fault (const image = cv.imencode('. jpg', frame).toString('base64'))
Hi I met an error
Segmentation fault (core dumped)
npm ERR! code ELIFECYCLE
npm ERR! errno 139
npm ERR! [email protected] start: `node app.js`
npm ERR! Exit status 139
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-01-14T03_35_55_624Z-debug.log
I've debugged and confirmed that videoCap.read () worked fine, const image = cv.imencode('. jpg', frame).toString('base64'); I noticed an error here.
My node version is v12.14.1 and npm version is 6.13.6.
help me plz..