node-opencv
node-opencv copied to clipboard
Convert byte array into Image object in node.js
I have byte array of image taken from S3 and now I want to convert it into image object using opencv in node.js as I did in Golang. the code I used to for conversion in image object in Golang .
decodedImage:=opencv.DecodeImageMem(data) //data is byte array.
So, my question is how to use this DecodeImageMem in node.js to convert data array into image object. or tell me some other function of opencv that you have given in wrapper to do that task.