Base64 to source 8-bit single-channel image 'OpenCV.js'
I am trying to implement adaptive treshholding on my client device.
I am using Ionic 2 and here I need to use a base64 string. When I try to optimalise my image using adaptive treshholding using Opencv.js the method requires a source 8-bit single-channel image.
Can anyone provide me with information on how to convert the base64 string to a source 8-bit singe-channel image and back again ?
opencv.js takes it's images from a canvas, so, if you're able to upload your base64 encoded image there, you've won. (i don't think, you need to convert it)