As a hobby I'm trying to study a scene text detection method.
I wish to do something like the following:
struct pixel1
{
public int y1;
public int x1;
public Color color1;
};
List<pixel1> blob1 = new List<pixel1>();//I failed to create blob1 list with variables.
List<blob1> listofblob1 = new List<blob1>();//declair list of blob which I failed to do.
private void runMethod1()
{
//I want to use it like it shows in below.
foreach (var blob1 in listofblob1)
{
blob1.DistanceToClosestBlob=getDistanceToNextblob(blob1, listofblob1);
blob1.size=blob1.Count;
blob1.centerxy=getcenterXY(blob1);
if(blob1.center.x<0||blob1.center.y<0){return;}
}
}
Is it possible to do it?
> blob = new List
– Gauravsa Dec 17 '18 at 01:43>();