Hi

I'm running ASSP 2.0.2.3.2.05 on Ubuntu 10.04 Server (also got the same
error with 2.0.1.3.2.01)
All modules installed successfully inc. imagemagick, perlmagick, leptonica
and tesseract
Libraries for image formats are also installed - so jpeg, png, rsvg,
jpeg2000 etc. are all supported in imagicmagick install
All tests for PDF::OCR and PDF::OCR2 completed successfully
Using ASSP_OCR-Plugin version 1.25 which is set to score

ASSP is running as Daemon using nobody:nogroup
/usr/local/assp has been chowned to nobody:nogroup and chmoded to 755
Even tried chmoding to 777 (especially assp/tmp folder)

When an email arrives with an image attachment (e.g. spam1.PNG), the
following is recorded in the mail log:
Jul-29-11 08:39:11 m1-25149-11584 [Worker_1] [Plugin] 192.168.2.6
<[email protected]> to: [email protected] ASSP_OCR::get_ocr(), imagemagick
convert problem? "/usr/bin/convert"
"/usr/local/assp/tmp/ocr_pl13119251519184spam1.PNG" -compress none
-colorspace rgb -contrast
"/usr/local/assp/tmp/.tesseract_x_temp_1311925151301.tif", -1
...
Jul-29-11 08:39:11 m1-25149-11584 [Worker_1] [Plugin] 192.168.2.6
<[email protected]> to: [email protected] ASSP_OCR: Plugin successful
called for runlevel 'complete mail'!

This suggests that ASSP can't execute the following command properly:
"/usr/bin/convert" "/usr/local/assp/tmp/ocr_pl13119251519184spam1.PNG"
-compress none -colorspace rgb -contrast
"/usr/local/assp/tmp/.tesseract_x_temp_1311925151301.tif"

So I manually copied the PNG file into the assp/tmp folder and executed the
above command as nobody and it works .

Next I commented out the lines for the following if statement (around line
311) in assp/Plugins/ASSP_OCR.pm, effectively bypassing the test to see if
convert is working:
if (system(@args) != 0) {

Now, when an email arrives with an image attachment, the following is
recorded in the mail log:
Jul-29-11 08:13:13 m1-23591-12396 [Worker_1] [Plugin] 192.168.2.6
<[email protected]> to: [email protected] ASSP_OCR: (att) file spam1.PNG
found in mime part 2
Jul-29-11 08:13:13 m1-23591-12396 [Worker_1] [Plugin] 192.168.2.6
<[email protected]> to: [email protected] ASSP_OCR: processing (att) file
spam1.PNG
Jul-29-11 08:13:14 m1-23591-12396 [Worker_1] [Plugin] 192.168.2.6
<[email protected]> to: [email protected] ASSP_OCR: Plugin successful
called for runlevel 'complete mail'!
Jul-29-11 08:13:14 m1-23591-12396 [Worker_1] [MessageOK] 192.168.2.6
<[email protected]> to: [email protected] message ok [test] ->
notspam/test--14.eml


So it looks like it's processing the image. Or is it?

Is this a bug in OCR plugin or something wrong in my setup?
Anybody else experienced anything similar?

Also, the plugin file mentions you need to have pdftk installed. I don't
have that but I do have xpdf.
If anyone has OCR working successfully, I'd love to hear from you, the
forums mention that you have to train tesseract and I'm not how to do this.

Thanks

Uther Mahmud
 



------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to