Closed PedroBarcha closed 6 years ago
I am having trouble scripting this command as well to run on a directory of files. The console log stays open and the System.exit(0) does not end the program until I manually close the window. Once I manually close the window, the system exits as expected. But I can't figure out how to prevent that window from opening in the first place. Many apologies if this is an obvious java question and thanks so much for this wonderful utility! Charlie
The command I am running:
java -cp ./ocrevaluation.jar eu.digitisation.Main -gt ./input/unlv/bus.3A/0/8550_001.3A.txt -ocr ./output/unlv/bus.3A/0/8550_001.3A_tesseract.txt -o ./output/unlv/bus.3A/0/8550_001.3A_ocrevaluation.html -ip -ic -id -c
When I run it with " &" at the end, my script continues but I still get a window for each invocation of the command.
My java version is:
$ java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
Thanks so much! Charlie
UPDATE: I think if you run it with a headless option -Djava.awt.headless=true
, the program exits immediately:
java -Djava.awt.headless=true -cp ./ocrevaluation.jar eu.digitisation.Main -gt ./input/unlv/bus.3A/0/8550_001.3A.txt -ocr ./output/unlv/bus.3A/0/8550_001.3A_tesseract.txt -o ./output/unlv/bus.3A/0/8550_001.3A_ocrevaluation.html -ip -ic -id -c
With luck this will solve the issue!
Hi there! First of all congratulations for the software, it's the best one I've found around! So, I've written a script that is supposed to run ocrevalUAtion on several hocr/groundtruth sets. However I've been facing a problem that is the fact that my script stops after the first set is evaluated, because ocrevalUAtion's process doesn't terminate after it's done. Is there some way to solve this situation? Thanks in advance!