Text this: Artificial Intelligence in Recognition and Classification of Astrophysical and Medical Images