Results 1 to 20 of 32
- 04-18-2008, 09:36 AM #1
[SOLVED] How to Run an .exe using java
i am using omnipage OCR engine(which is used for OpticalCharacterRecogniazation)
I want to Run its .exe using java but the conditions are
1)It should run from command prompt only
2)The GUI should not popup when i use my code.
the input should be given through my command promptonly.
java OCRPROCESS 1.tif,2.tif...soon..
- 04-18-2008, 09:41 AM #2
Process process = Runtime.getRuntime().exec("notepad.exe");
- 04-18-2008, 09:59 AM #3
i know that how to run normal .exe using Runtime class.
Here is my actual requirement...
the input files will be places in one folder(normally .tif images)..i will give those to OCREngine(Omnipage)..it will processes and gives me the output in .txt or .csv fomat
Instead of maula processing (taking .tif image and giving it to OCR) my java code has to do this..but the main condition is nowhere i want to found the GUI of Omnipage.
- 04-18-2008, 12:13 PM #4
Can the OCR Engine actually take parameters in the first place?Did this post help you? Please me! :cool:
- 04-18-2008, 12:19 PM #5
- 04-18-2008, 12:19 PM #6
- 04-18-2008, 12:21 PM #7
If the OCR Engine isn't actually designed to take parameters then I dont think you will be able to do this Jazz.Did this post help you? Please me! :cool:
- 04-18-2008, 12:27 PM #8
- 04-18-2008, 12:31 PM #9
- 04-18-2008, 12:33 PM #10
- 04-18-2008, 12:34 PM #11
- 04-18-2008, 12:38 PM #12
Yeah as Jazz said in the first post, he is talking about the Optical Character Recogniazation engine.
I don't know anything about this but we should wait for him to reply before we go any further.
Like I say, if this program cant actually take parameters then he won't be able to do what he wants.
It sounds to me as if everything is set in the OCR GUI. Not the command line..Did this post help you? Please me! :cool:
- 04-18-2008, 12:54 PM #13
- 04-18-2008, 01:29 PM #14
Sorry for the dalay...
My Requirement is:
All the .tif are stored in a sharepoint when the client clicks it then our OCR engine invokes and start ocring.for this i need to write a java component.What i am thinking is if we go with .exe in our program it will be easy task for us.:confused:..???
In genaral words..write a java component to watch one folder(file pollar type) ..pick up one tif image send it to ocr ..process it ..give the result(.txt 0r .csv) to back to same folder bresides in sharepoint...
Last edited by jazz2k8; 04-18-2008 at 01:33 PM.
- 04-18-2008, 01:36 PM #15
It would be easy to locate the tif files in a directory and launch the .exe. BUT, if the OCR engine does not take parameters when launching the exe, then you will not be able to do this!Did this post help you? Please me! :cool:
- 04-18-2008, 01:41 PM #16
it will take files..because...in that folder watching job (workfolw) is there so we can go with that.
- 04-18-2008, 01:43 PM #17
So when .tif files are placed into the workflow folder, the OCR automatically starts?Did this post help you? Please me! :cool:
- 04-18-2008, 01:55 PM #18
The tif s are stored in a sharepoint folder.we need to start ocr.exe through our program and also need to give the tif folder path.then the engine should picks the tifs one after another note that it should run background(Reason the client doesnot knows what is the ocr engine we are using) and gives the text files as output.
- 04-19-2008, 08:08 PM #19Member
- Join Date
- Apr 2008
- Rep Power
I think you type System("cmd.exe");
- 05-06-2008, 12:32 PM #20