Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://938593]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2017-02-20 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (293 votes). Check out past polls.