I have fax working but since most people and services don't know how to Fax to Extensions, I installed tesseract to convert the Fax to Text. I really only need the First Page converted and will tell Faxers to make sure they put To: Name on the cover page. tesseract is converting the entire fax fine but its unnecessary and extra time to convert the entire fax. I searched and can't find anything on how to tell it just to do the first page. Does anyone have any ideas? I created a perl script I borrowed but I don't know PERL. I know PHP so can someone show me how to use REGEX in Perl to search the output.txt file for the to: name or TO: NAME or To: Name Then I want to do something like: Switch($to) { Case: "Roy" -> Email user at gmail.com Case: "Jeff" -> Email user at yahoo.com Default: Email admin at domain.com } -- Co-op Vacation Rentals www.coopvr.com 15218 Summit Ave Suite #300-354 Fontana, CA 92336 Phone/Fax (855) 760-COOP (2667)
I have fax working but since most people and services don't know how to Fax to Extensions, I installed tesseract to convert the Fax to Text. I really only need the First Page converted and will tell Faxers to make sure they put To: Name on the cover page. tesseract is converting the entire fax fine but its unnecessary and extra time to convert the entire fax. I searched and can't find anything on how to tell it just to do the first page. Does anyone have any ideas? I created a perl script I borrowed but I don't know PERL. I know PHP so can someone show me how to use REGEX in Perl to search the output.txt file for the to: name or TO: NAME or To: Name Then I want to do something like: Switch($to) { Case: "Roy" -> Email user at gmail.com Case: "Jeff" -> Email user at yahoo.com Default: Email admin at domain.com } -- Co-op Vacation Rentals www.coopvr.com 15218 Summit Ave Suite #300-354 Fontana, CA 92336 Phone/Fax (855) 760-COOP (2667)
Christopher Harrington
2012-Nov-06 20:00 UTC
[asterisk-users] Incoming Fax to Recipient using OCR
On Tue, Nov 6, 2012 at 1:50 PM, Roy Abshire <roy at coopvr.com> wrote:> I have fax working but since most people and services don't know how to > Fax to Extensions, > I installed tesseract to convert the Fax to Text. > > I really only need the First Page converted and will tell Faxers to make > sure they put To: Name on the cover page. > > tesseract is converting the entire fax fine but its unnecessary and extra > time to convert the entire fax. > > I searched and can't find anything on how to tell it just to do the first > page. Does anyone have any ideas?If you're passing a TIFF file to tesseract, you can pass it through imagemagick first to pop off the first "page". This really seems off-topic for Asterisk. -- -Chris Harrington ACSDi Office: 763.559.5800 Mobile Phone: 612.326.4248 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121106/8e5383ab/attachment.htm>