in reply to Re^3: Why the Create method keep failing using Office 2007 OCR API?
in thread Why the Create method keep failing using Office 2007 OCR API?
It outputs the expected result. But if I retain the OCR method like the original code did:$miDoc->Create('OCR-test-result.mdi'); my $OCRresult = $miDoc->{Images}->Item(0)->{Layout}{Text}; print $OCRresult;
Perl throws me the same error message: Use of uninitialized value $OCRresult in print$miDoc->Create('OCR-test.tif'); $miDoc->OCR(LangId =>'miLANG_ENGLISH'); my $OCRresult = $miDoc->{Images}->Item(0)->{Layout}{Text}; print $OCRresult;
So now it looks like there's also something wrong with this line:
What diagnostic method can I use to solve the problem. The following code gives me nothing:$miDoc->OCR(LangId =>'miLANG_ENGLISH');
Thanks again :)eval {$miDoc->OCR(LangId =>'miLANG_ENGLISH')}; warn $@ if $@;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Why the Create method keep failing using Office 2007 OCR API?
by Anonymous Monk on Mar 02, 2010 at 04:31 UTC | |
by ZJ.Mike.2009 (Scribe) on Mar 02, 2010 at 04:44 UTC |