Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Perl intepreter crash when tyring to get the text from OCRed output

by priyaviswam (Sexton)
on Nov 17, 2011 at 11:10 UTC ( #938593=note: print w/ replies, xml ) Need Help??


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


Comment on Re^2: Perl intepreter crash when tyring to get the text from OCRed output
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://938593]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2014-10-30 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls