http://www.perlmonks.org?node_id=938593


in reply to Re: Perl intepreter crash when tyring to get the text from OCRed output
in thread Perl intepreter crash when tyring to get the text from OCRed output

HI, How do you know it crashes there? After performaing the OCR() at line
$miDoc->OCR(9,1,1);
We get the result from the following line :
my $OCRResult = $miDoc->{Images}->Item(0)->{Layout}{Text};
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