Well i have a problem, i have an image in that image(given below) i have characters. I use extractblobsimage() method to segment out each character individually to the best of my knowledge it should work but in reality it is not working.I repeat i just want to segment out each character,for exapmle in the image below i want "N""K""8""0""5" individually seperated
- Code: Select all
BlobCounterBase bc = new BlobCounter();
bc.FilterBlobs = true;
bc.MinHeight = 5;
bc.MinWidth = 5;
bc.ProcessImage(image);
Blob[] blobs = bc.GetObjectsInformation();
MessageBox.Show(bc.ObjectsCount.ToString());
for(int i=0,n=blobs.Length;i<n;i++)
{
if (blobs.Length > 0)
{
bc.ExtractBlobsImage(image, blobs[i], true);
copy = blobs[i].Image.ToManagedImage();
copy.Save(i + "segmented character.jpg");
}
}
