Integrate with OCR Server using web service

Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
storm8
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Wed Mar 30, 2016 9:46 am

Integrate with OCR Server using web service

Post by storm8 » Wed Mar 30, 2016 9:55 am

dear all,
i want to integrate OpenKM with Enterprise OCR server, the OCR server will installed in stand alone server and the only way to integrate will be throw web service. i saw in application configuration that can be integrate throw invoke the command it self. but i didn't find any information about integrating using web service.so i want to know is there is any one who integrate with OCR using web service ??

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

Re: Integrate with OCR Server using web service

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

Your OpenKM server will be on linux or on windows ?

storm8
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Wed Mar 30, 2016 9:46 am

Re: Integrate with OCR Server using web service

Post by storm8 » Sun Apr 03, 2016 3:42 pm

my OpenKM Server was installed in Linux Server, Ubuntu server

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

Re: Integrate with OCR Server using web service

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

You should download portable dev environement ( we suggest install in VM with 2 cores and 4GB ram ) https://sourceforge.net/projects/openkmportabledev/

Then you must create a class like Tesseract3TextExtractor.java ( https://sourceforge.net/p/openkm/code/H ... actor.java ) and modify the method private String doOcr(File pdfImg) into the class PdfTextExtractor ( you will find it here https://sourceforge.net/p/openkm/code/H ... actor.java ).

Hope this information will be useful to you.

storm8
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: Wed Mar 30, 2016 9:46 am

Re: Integrate with OCR Server using web service

Post by storm8 » Sun Apr 03, 2016 9:25 pm

thank u, i will follow your advise and share the result with u

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

Re: Integrate with OCR Server using web service

Post by jllort » Mon Apr 04, 2016 9:04 pm

OK, If you success on it we can integrate in the OpenKM source code. Follow the steps I related before and you should get it. Take in mind that there's a crontab which processes the batch queue of pending document to be indexed. I will be useful for testing.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest