I have images with 6 letters, and I want to move it to 6 images by 1 letter. I used this function:
public static List<UnmanagedImage> ApplyBlobExtractor (UnmanagedImage unmanaged)
{
BlobCounter blobCounter = new BlobCounter ();
blobCounter.ObjectsOrder = ObjectsOrder.XY;
blobCounter.ProcessImage (unmanaged);
Blob[] blobs = blobCounter.GetObjects (unmanaged, false);
List<UnmanagedImage> unmanagedList = new List<UnmanagedImage> (blobs.Length);
foreach (Blob blob in blobs)
unmanagedList.Add (blob.Image);
return unmanagedList;
}
The problem is that sometimes letters touch each other, and this makes the function recognize two letters as one. Is there a way to improve my function or create a better one?
This is an example image that gives the wrong result:

The function gives me 2 images instead of 6.
Image 1: 
Image 2: 
kadzu source
share