<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<!-- Template generated by Exclaimer Signature Manager Exchange Edition on 02:58:39 Monday, 18 May 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">P.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
LI.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
DIV.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
TABLE.ImprintUniqueIDTable {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</style>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<p></p>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">That sounds fantastic, Allan.  Thank you.  I’d be interested in learning more about this solution.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Currently two different vendors are trying to figure out what happens to those files when they don’t make it to the doc storage.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> m. allan noah [mailto:kitno455@gmail.com]
<br>
<b>Sent:</b> Monday, May 18, 2015 2:15 PM<br>
<b>To:</b> Greg Kontos<br>
<b>Cc:</b> sane-devel@lists.alioth.debian.org<br>
<b>Subject:</b> Re: [sane-devel] How can I get a count of pages scanned by scanimage using batch mode?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Greg- I need to do some research to be sure, but I think we can get the page count out of the scanner. That would probably require you to call scanimage an extra time after each batch, and perhaps add a new
 option to reset the page counter with the start of each batch, if the scanner does not do that automatically.<o:p></o:p></p>
</div>
<p class="MsoNormal">allan<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"></p>
</div>
</div>
</div>
<br>
<br>
Greg Kontos<br>
LIMS Integration Specialist<br>
<br>
Innovative Diagnostic Laboratory<br>
8751 Park Central Drive, Suite 200<br>
Richmond, VA 23227<br>
Phone: (804) 261-3340 ext.1846<br>
Cell Phone: <br>
Fax: (804) 515-7291<br>
<a href="mailto:gkontos@myinnovativelab.com" title="Click to send email to Greg Kontos" target="" style="">gkontos@myinnovativelab.com</a><br>
<br>
Visit our website: <a href="http://www.myinnovativelab.com" title="" target="" style="">
www.myinnovativelab.com</a><br>
<br>
<a href="http://" target=""><img width="170" height="59" style="border: 0px Solid ; " src="cid:imagea09a3d.PNG@ff70595a.4b8db4d9"></a><br>
<br>
CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files or previous e-mail messages attached to it contain confidential and/or privileged information meant for the listed recipient(s) only. You may not distribute or share this correspondence
 without written authorization from the above author.<br>
<br>
If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is
 STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify me by reply e-mail and destroy the original transmission and its attachments without saving them in any manner.<br>
<br>
<div class="WordSection1">
<div>
<div>
<p class="MsoNormal">On Fri, May 15, 2015 at 11:35 AM, m. allan noah <<a href="mailto:kitno455@gmail.com" target="_blank">kitno455@gmail.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Then it sounds like your doc store should contain the images, just with the old filename, or missing the pdf tag? Can you search for them there?<o:p></o:p></p>
</div>
<p class="MsoNormal"><span class="hoenzb"><span style="color:#888888">allan</span></span><o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Fri, May 15, 2015 at 10:46 AM, Greg Kontos <<a href="mailto:gkontos@myinnovativelab.com" target="_blank">gkontos@myinnovativelab.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Hi Allan,
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">As far as I can tell, ABBYY passes the files through without successfully parsing them.  All the files
 that go through ABBYY end up in a processed folder.  The trouble is that ABBYY looks at the files for a barcode and doesn’t always find the barcode.  After processing, ABBYY renames (or adds some pdf metatag to) the files based on the barcode and passes it
 to a document management application.  It’s the point between ABBYY and our document management where we lose track, but it’s ABBYY that’s not finding the barcodes.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks,
<br>
Greg</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> m. allan noah [mailto:<a href="mailto:kitno455@gmail.com" target="_blank">kitno455@gmail.com</a>]
<br>
<b>Sent:</b> Friday, May 15, 2015 10:22 AM<br>
<b>To:</b> Greg Kontos<br>
<b>Cc:</b> <a href="mailto:sane-devel@lists.alioth.debian.org" target="_blank">sane-devel@lists.alioth.debian.org</a><br>
<b>Subject:</b> Re: [sane-devel] How can I get a count of pages scanned by scanimage using batch mode?</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt">Greg- Does ABBYY just eat the images it cannot process, or does it silently pass them thru without parsing them? It really seems like they should be able to tell you...<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">allan<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
Greg Kontos<br>
LIMS Integration Specialist<br>
<br>
Innovative Diagnostic Laboratory<br>
8751 Park Central Drive, Suite 200<br>
Richmond, VA 23227<br>
Phone: <a href="tel:%28804%29%20261-3340%20ext.1846" target="_blank">(804) 261-3340 ext.1846</a><br>
Cell Phone: <br>
Fax: <a href="tel:%28804%29%20515-7291" target="_blank">(804) 515-7291</a><br>
<a href="mailto:gkontos@myinnovativelab.com" target="_blank" title="Click to send email to Greg Kontos">gkontos@myinnovativelab.com</a><br>
<br>
Visit our website: <a href="http://www.myinnovativelab.com" target="_blank" title="">
www.myinnovativelab.com</a><br>
<br>
<img border="0" width="170" height="59" id="_x0000_i1025" src="cid:image002.png@01D0917B.203E67B0"><br>
<br>
CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files or previous e-mail messages attached to it contain confidential and/or privileged information meant for the listed recipient(s) only. You may not distribute or share this correspondence
 without written authorization from the above author.<br>
<br>
If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is
 STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify me by reply e-mail and destroy the original transmission and its attachments without saving them in any manner.<o:p></o:p></p>
</div>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">On Fri, May 15, 2015 at 9:34 AM, Greg Kontos <<a href="mailto:gkontos@myinnovativelab.com" target="_blank">gkontos@myinnovativelab.com</a>> wrote:<o:p></o:p></p>
</div>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello,
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">First off, thank you.  The sane project has been easy to use and install with boat loads of documentation and examples online.  The sane driver for our scanner lets us use these
 scanners more effectively than the available windows drivers.  <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I’d like to push a little further and count pages that do not get the number of pages scanned with the number of pages processed by our image processing software (ABBYY).  Unfortunately,
 we haven’t been able to find a hook in the image processing software that allows us to count un-processable images.  So, I’m hoping to leverage scanimage and scanb to count of the number of pages scanned and compare it to the number of pages successfully processed
 in order to ensure documents aren’t missed.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">A little about our setup.  We are using fujitsu fi-7160 scanners with the 1.0.25 sane backend.  I’m currently using scanbd to trigger the scanimage task.  The scanimage task is
 using the batch mode to use the adf functionality of the scanner.  The files created by scanimage are sent directly to ABBYY for processing. 
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Scanbd runs a script to trigger the scanimage task.  What I would like to do is to add something to this script which captures the number of pages scanned.  I would then add this
 number to a file and create a counter.  I’ve looked through the options available in scanimage –d –A as well as scanimage –d –help and I do not see anything that would accomplish this directly.  The scanner’s display lists the number of pages scanned, but
 I suppose the driver doesn’t access this information.  It looks I have two options available 1. parse the log files, or 2. drop the files into a triage folder where they can be counted before moving to processing.   I’d like to implement something that’s more
 stable than reading log files, and doesn’t involve the processing overhead of moving files multiple times. 
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thank you for any advice,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">G Kontos<o:p></o:p></p>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
Greg Kontos<br>
LIMS Integration Specialist<br>
<br>
Innovative Diagnostic Laboratory<br>
8751 Park Central Drive, Suite 200<br>
Richmond, VA 23227<br>
Phone: <a href="tel:%28804%29%20261-3340%20ext.1846" target="_blank">(804) 261-3340 ext.1846</a><br>
Cell Phone: <br>
Fax: <a href="tel:%28804%29%20515-7291" target="_blank">(804) 515-7291</a><br>
<a href="mailto:gkontos@myinnovativelab.com" target="_blank" title="Click to send email to Greg Kontos">gkontos@myinnovativelab.com</a><br>
<br>
Visit our website: <a href="http://www.myinnovativelab.com" target="_blank" title="">
www.myinnovativelab.com</a><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><img border="0" width="212" height="74" id="_x0000_i1026" src="cid:image003.png@01D0917B.203E67B0" alt="cid:image001.png@01D08EFC.107D8A30"><br>
<br>
CONFIDENTIALITY NOTICE: This e-mail transmission, and any documents, files or previous e-mail messages attached to it contain confidential and/or privileged information meant for the listed recipient(s) only. You may not distribute or share this correspondence
 without written authorization from the above author.<br>
<br>
If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is
 STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify me by reply e-mail and destroy the original transmission and its attachments without saving them in any manner.<br>
<br>
<o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><br>
--<br>
sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org" target="_blank">
sane-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel</a><br>
Unsubscribe: Send mail with subject "unsubscribe your_password"<br>
             to <a href="mailto:sane-devel-request@lists.alioth.debian.org" target="_blank">
sane-devel-request@lists.alioth.debian.org</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><br>
<br clear="all">
<br>
-- <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">"well, I stand up next to a mountain- and I chop it down with the edge of my hand"<o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <o:p></o:p></p>
<div>
<p class="MsoNormal">"well, I stand up next to a mountain- and I chop it down with the edge of my hand"<o:p></o:p></p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <o:p></o:p></p>
<div>
<p class="MsoNormal">"well, I stand up next to a mountain- and I chop it down with the edge of my hand"<o:p></o:p></p>
</div>
</div>
</div>
<br>
<br>
<p></p>
</body>
</html>