Skip to content

Interface problem?

Raysefo

Asked Jul 26, 2015, 9:51 PM EDT1 answer
Share
LinkedInX
Hello guys,
 
It's been quite a while since I wrote my  code so now I am in trouble to manage to run the code for this function below. I am trying to do some image processing and then try to OCR it via tesseract. But the problem is I couldn't find out how to run the code below.
 
Here is the method I would like to call:
 
But I couldn't manage to set the parameters successfully:
Code
IInputArray src, 	IOutputArray dst,
Code
Here is what I tried to do:
Code
Emgu.CV.IInputArray[] iarr;
Code
Emgu.CV.IOutputArray[] oarr;
Code
foreach (var image in images.OrderBy(key  => key.Value.Position.X ))          {
Code
iarr = new Emgu.CV.IInputArray[1];
Code
iarr.SetValue(image.Value.img, 0);                                            oarr = new Emgu.CV.IOutputArray[1];
Code
arr.SetValue(image.Value.img, 0);
Code
CvInvoke.CopyMakeBorder(iarr[0], oarr[0], 12, 12, 12, 12, Emgu.CV.CvEnum.BorderType.Default);
VB.NET
It gives error when I try to set a value because it is an Interface. So I decided to implement a class using this interface but couldn't go much further. Any help would be great.
Code
 public class CMB : Emgu.CV.IInputArray
Code
{
Code
public InputArray[] arr;
Code
public InputArray GetInputArray()
Code
{
Code
return arr[0];
Code
}
Code
public void SetInputArray(Dictionary<int, ImageProperty> img)
Code
{
Code
}
Code
}

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi, If your problem has still not being resolved you can also post your query at C Developer Forum & the experts here will resolve your query in a very short span of time.
    0