better calcs for character detection recall
save the groups segmentation into file (dirty implementation)