The above line represents the following :
Ocr - ed image contain Image object. This Image object contains a Layout object and Layout object's Text property represents the text for that image.
It crashed at this line where the text property is not present in the Ocr-ed image. So I got an pop saying "Perl interpreter has stopped working"
And "Yes im using strict and warning"
Thanks