Text this: Method for the recovery of images in databases of Rice grains from visual content