OCR Relationship

Help us to improve OpenKM! Be part of the Open Source Community.
Forum rules
Please, before asking something see the documentation wiki or use the forum search function.
alkadeem
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Fri Mar 18, 2016 3:27 am

OCR Relationship

Post by alkadeem » Tue Mar 22, 2016 8:19 pm

Hello guys
How can I create relation between the documents where I search for specific name or number show me all the documents have the same ,,
Thank you

jllort
Moderator
Moderator
Posts: 9108
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: OCR Relationship

Post by jllort » Thu Mar 24, 2016 10:29 am

If you have relevant information in your documents, you should extract it and set into metadata ( are several ways for doing it, OCR is one ). When you have it on metadata files then you can do this kind of queries. If you show me some screenshot of your documents and sections you are using for searching I can try to give you some ideas for getting it ( hope we are talking about structured documents or something where we can work with patterns for retrieving information).

alkadeem
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Fri Mar 18, 2016 3:27 am

Re: OCR Relationship

Post by alkadeem » Thu Mar 24, 2016 10:19 pm

Hello Friend,,
Thank you for you answer ,,
actually ,, I am trying to capture value from OCR template automatically , how can I do this?
I mean , I capture just first scanned document after that OCR does it automatically ...
Thank you

alkadeem
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Fri Mar 18, 2016 3:27 am

Re: OCR Relationship

Post by alkadeem » Thu Mar 24, 2016 10:27 pm

Hello Friend
I am working on trial professional version ....
I can not create metadata ..
How can create it because it does not give me permission ...
please help me...
Thank you

alkadeem
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Fri Mar 18, 2016 3:27 am

OCR Template

Post by alkadeem » Fri Mar 25, 2016 7:06 am

hello
when I press check in OCR template show me this error ..
please help me to fix it.
thank you...


Type Exception report

Code: Select all

message IOException: Unsupported OCR engine: 

description The server encountered an internal error that prevented it from fulfilling this request.

exception 
com.openkm.ocr.template.d: IOException: Unsupported OCR engine: 
	com.openkm.ocr.template.f.a(Unknown Source)
	com.openkm.servlet.admin.OCRTemplateServlet.k(Unknown Source)
	com.openkm.servlet.admin.OCRTemplateServlet.doGet(Unknown Source)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
	org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
	org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
	org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)



root cause 
java.io.IOException: Unsupported OCR engine: 
	com.openkm.plugin.extractor.OCRTextExtractor.extractText(Unknown Source)
	com.openkm.ocr.template.f.a(Unknown Source)
	com.openkm.servlet.admin.OCRTemplateServlet.k(Unknown Source)
	com.openkm.servlet.admin.OCRTemplateServlet.doGet(Unknown Source)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
	org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
	org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
	org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.61 logs.

jllort
Moderator
Moderator
Posts: 9108
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: OCR Relationship

Post by jllort » Fri Mar 25, 2016 4:54 pm


alkadeem
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Fri Mar 18, 2016 3:27 am

Re: OCR Relationship

Post by alkadeem » Sat Mar 26, 2016 11:49 pm

How can I configure this file on windows ?
How can I work on Tesseract GUI on windows ?
because I try to connect Tesseract with openkm ..
please help me
thank you

alkadeem
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Fri Mar 18, 2016 3:27 am

Re: OCR Relationship

Post by alkadeem » Sun Mar 27, 2016 3:03 am

I already configure it..
system.ocr = C:\Program Files (x86)\Tesseract-OCR\tesseract ${fileIn} ${fileOut} -l esp..
but still I have the same problem also how connect Tesseract OCR to openkm
Thank you

jllort
Moderator
Moderator
Posts: 9108
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: OCR Relationship

Post by jllort » Sun Mar 27, 2016 9:08 am

Should be tesseract.exe rather than tesseract

alkadeem
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Fri Mar 18, 2016 3:27 am

Re: OCR Relationship

Post by alkadeem » Mon Mar 28, 2016 4:27 am

Hello Friend ..
Thank you for reply ..
I change that "system.ocr = C:\Program Files (x86)\Tesseract-OCR\tesseract.exe ${fileIn} ${fileOut} -l esp",I use tesseract.exe instead of tesseract
.. but I still have the same error..
I work on trial professional on windows 10.. if you have different answer please support me .
Thank you

jllort
Moderator
Moderator
Posts: 9108
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: OCR Relationship

Post by jllort » Wed Mar 30, 2016 10:17 am

1-Go to Administration -> Tools -> Plugin
2-filter by TextExtractor
3-ensure:
CuneiformTextExtractor is disabled
Tesseract2TextExtractor is disabled
Tesseract3TextExtractor is disabled
OCRTextExtractor is enabled

alkadeem
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Fri Mar 18, 2016 3:27 am

Re: OCR Relationship

Post by alkadeem » Thu Mar 31, 2016 9:38 am

unfortunately does not work too..
my friend , I work in USA , I need to do some train on openKM before start on my project ..
could you connect with me and check my computer ,, maybe I have some problem in my software..
thank you

jllort
Moderator
Moderator
Posts: 9108
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: OCR Relationship

Post by jllort » Fri Apr 01, 2016 10:19 pm

If you're trying to configure professional trial and you have some throuble on it, you should inquire at sales & team guys for it. It's in their hand decide what doing ( http://www.openkm.com/en/contact.html ).

Sure you are doing some mistake and some parameter or similar is not well configured. Which trial version did you installed ?

alkadeem
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: Fri Mar 18, 2016 3:27 am

Re: OCR Relationship

Post by alkadeem » Fri Apr 01, 2016 10:59 pm

This version openkm-6.4.22-windows-installer ,,,
could you try to help me to fix the mistakes ,,,
please then I will contact to sale department ..
Thank you

jllort
Moderator
Moderator
Posts: 9108
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: OCR Relationship

Post by jllort » Sun Apr 03, 2016 4:01 pm

Take a look into system.ocr will be only a single white space between each parameter
If this is not the problem, then we should take a look on it. Could be something related with your Windows 10. If you have another server for checking I suggest try it. We have still not checked on Windows 10, should going right like other Windows Os versions, but sometimes with Microsoft you get unexpected surprises.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest