cancel
Showing results for 
Search instead for 
Did you mean: 

Scanner open-source integration

ciccio17
Champ in-the-making
Champ in-the-making
Hello,

is there any open-source (not Kofax or eCopy) solution for integration with scanner?

Thank you for info.

Regards
26 REPLIES 26

aman79
Champ in-the-making
Champ in-the-making
Thanks for your reply, it is converting tiff file to pdf file but not transferring any contents, i can see pdf file after putting a tiff file into a space but with 0 bytes, here is my ocr-transformers-context.xml file

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
  
   <bean id="transformer.Ocr.Tiff2Pdf" class="org.alfresco.repo.content.transform.ProxyContentTransformer" parent="baseContentTransformer">
           <property name="worker">
                <ref bean="transformer.worker.Ocr.Tiff2Pdf" />
           </property>
       </bean>
       <!– Define RuntimeExecutableContentTransformerWorker –>
       <bean id="transformer.worker.Ocr.Tiff2Pdf" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker" >
          <property name="mimetypeService">
             <ref bean="mimetypeService" />
          </property>
         <property name="explicitTransformations">
             <list>          
                <bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" >
                   <property name="sourceMimetype"><value>image/tiff</value></property>
                   <property name="targetMimetype"><value>application/pdf</value></property>
                </bean>
             </list>
          </property>
      <property name="checkCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandMap">
                <map>
                    <entry key=".*">
                        <value>ocr.exe –about</value>
                    </entry>
                </map>
            </property>
            <property name="errorCodes">
               <value>1,2</value>
            </property>
         </bean>
      </property>
      <property name="transformCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandMap">
                <map>
                    <entry key="Windows.*">
                        <value>ocr.exe –replace –language fr –pdf –output-file "${target}" "${source}"</value>
                    </entry>
                </map>
            </property>
            <property name="errorCodes">
               <value>1,2</value>
            </property>
         </bean>
      </property>
     
   </bean>

   <bean id="transformer.Ocr.Tiff2Rtf" class="org.alfresco.repo.content.transform.ProxyContentTransformer" parent="baseContentTransformer">
<property name="worker">
                <ref bean="transformer.worker.Ocr.Tiff2Rtf" />
           </property>
       </bean>
       <!– Define RuntimeExecutableContentTransformerWorker –>
       <bean id="transformer.worker.Ocr.Tiff2Rtf" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker" >
          <property name="mimetypeService">
             <ref bean="mimetypeService" />
          </property>
         <property name="explicitTransformations">
             <list>          
                <bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" >
                   <property name="sourceMimetype"><value>image/tiff</value></property>
                   <property name="targetMimetype"><value>application/Rtf</value></property>
                </bean>
             </list>
          </property>
      <property name="checkCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandMap">
                <map>
                    <entry key=".*">
                        <value>ocr.exe –about</value>
                    </entry>
                </map>
            </property>
            <property name="errorCodes">
               <value>1,2</value>
            </property>
         </bean>
      </property>
      <property name="transformCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandMap">
                <map>
                    <entry key="Windows.*">
                        <value>ocr.exe –replace –language fr –rtf –output-file "${target}" "${source}"</value>
                    </entry>
                </map>
            </property>
            <property name="errorCodes">
               <value>1,2</value>
            </property>
         </bean>
      </property>
     
   </bean>

   <bean id="transformer.Ocr.Tiff2Txt" class="org.alfresco.repo.content.transform.ProxyContentTransformer" parent="baseContentTransformer">
<property name="worker">
                <ref bean="transformer.worker.Ocr.Tiff2Txt" />
           </property>
       </bean>
       <!– Define RuntimeExecutableContentTransformerWorker –>
       <bean id="transformer.worker.Ocr.Tiff2Txt" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker" >
          <property name="mimetypeService">
             <ref bean="mimetypeService" />
          </property>
         <property name="explicitTransformations">
             <list>          
                <bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" >
                   <property name="sourceMimetype"><value>image/tiff</value></property>
                   <property name="targetMimetype"><value>text/plain</value></property>
                </bean>
             </list>
          </property>
      <property name="checkCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandMap">
                <map>
                    <entry key=".*">
                        <value>ocr.exe –about</value>
                    </entry>
                </map>
            </property>
            <property name="errorCodes">
               <value>1,2</value>
            </property>
         </bean>
      </property>
      <property name="transformCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandMap">
                <map>
                    <entry key="Windows.*">
                        <value>ocr.exe –replace –language fr –ascii –output-file "${target}" "${source}"</value>
                    </entry>
                </map>
            </property>
            <property name="errorCodes">
               <value>1,2</value>
            </property>
         </bean>
      </property>
     
   </bean>

   <bean id="transformer.Pdf2Tiff" class="org.alfresco.repo.content.transform.ProxyContentTransformer" parent="baseContentTransformer">
<property name="worker">
                <ref bean="transformer.worker.Ocr.Pdf2Tiff" />
           </property>
       </bean>
       <!– Define RuntimeExecutableContentTransformerWorker –>
       <bean id="transformer.worker.Ocr.Pdf2Tiff" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker" >
          <property name="mimetypeService">
             <ref bean="mimetypeService" />
          </property>
         <property name="explicitTransformations">
             <list>          
                <bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" >
                   <property name="sourceMimetype"><value>application/pdf</value></property>
                   <property name="targetMimetype"><value>image/tiff</value></property>
                </bean>
             </list>
          </property>
      <property name="checkCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandMap">
                <map>
                    <entry key=".*">
                        <value>ocr.exe –about</value>
                    </entry>
                </map>
            </property>
            <property name="errorCodes">
               <value>1,2</value>
            </property>
         </bean>
      </property>
      <property name="transformCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandMap">
                <map>
                    <entry key="Windows.*">
                        <value>ocr.exe –replace –tiff –output-file "${target}" "${source}"</value>
                    </entry>
                </map>
            </property>
            <property name="errorCodes">
               <value>1,2</value>
            </property>
         </bean>
      </property>
     
   </bean>
   
</beans>

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
is your ocr.exe in classpat?

aman79
Champ in-the-making
Champ in-the-making
thanks for your reply, can you please tell how to do this.

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
instead ocr.exe put your path to it for instance
d:/blatest/ocr.exe

aman79
Champ in-the-making
Champ in-the-making
Ocr is working fine in xp but not on windows 2003 server

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
Should work , have you installed properly. 
run cmd and try it your self to se if it works.

jasonjolley
Champ in-the-making
Champ in-the-making
Ephesoft has an open source scanning solution that looks interesting. Check out http://www.ephesoft.com/.