I am working on a project that uses the OpenCV library, it uses Emgu.CV.Image as the image captured from the camera.
I am trying to move the code into a Microsoft Azure Worker Role to handle the image processing in the cloud.
I have a line of code in my current solution
//Get the current frame from capture device
_currentFrame = _grabber.QueryFrame().Resize(320, 240, Emgu.CV.CvEnum.INTER.CV_INTER_CUBIC);
This line of code grabs the current frame from the camera and returns an Image of the type > Emgu.CV.Image
As I am moving this code to the cloud, I won't be able to access a camera device to grab a frame.
So I want to pass to the cloud a .Net Image or Byte Array converted from a base64 image string at the point my code expects an Emgu.CV.Image image from the current frame.
The challenge I have is my code wants to work with Emgu.CV.Image but I only have now .Net Image, Byte Array or base64 image string. I need to convert that to Emgu.CV.Image and I am not quite sure how to go about it.
Can anyone nudge me in the right direction please.