You have explained a pipeline of AI algorithms for text in images: 1) Text detection, 2) OCR, 3) named entity recognition (NER). There are reams of paper on these topics.
Extracting City and Country Name from Text
Introducing flashgeotext: extract city and country names from text
locationtagger -A Python Package for detecting location
A Comparison Between ...