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.IInputArrayCode
{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
}
Former memberPosted Jul 27, 2015, 5:18 AM EDT