Recognize text in rectangle