GithubHelp home page GithubHelp logo

nguyenq / jtessboxeditor Goto Github PK

View Code? Open in Web Editor NEW
208.0 208.0 42.0 857.59 MB

Box editor and trainer for Tesseract OCR

Java 41.61% Shell 7.35% Batchfile 0.01% PowerShell 0.68% HTML 50.17% Python 0.18%

jtessboxeditor's People

Contributors

nguyenq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jtessboxeditor's Issues

So hard to use...

This tool would be a lot easier to use if it had some keyboard handling for the box editor, for example:

Click a box
It goes red
I should be able to use the cursor keys to move it around (left and right change X, up and down change Y)
I should be able to press SHIFT+cursor key to make the box wider and narrower, taller and shorter (shift+left decreases W, shift + right increases W, shift + up decreases H, shift+down increases H)
I should be able to type a character while the box is highlighted, to set the Char column for the highlighted box, to that character

My feature requests are in bold.. :)

Perhaps even we could have drag-and-drop with the mouse to resize the boxes, mouse wheel zoom in and out.. Mayb it would be easier to implement large crosshairs and we click the top-left and then bottom-right points to reshape the box

Distribute a .jar file

Perhaps distribute a .jar file to make it easier to install.

I looked at jTessBoxEditor/issues/2.

I'm no java expert. I don't have netbeans. I installed ant.

I tried building using ant, but I'm getting errors.

neoneye@neoneye-VirtualBox:~/git/jTessBoxEditor$ ant
Buildfile: /home/neoneye/git/jTessBoxEditor/build.xml

-pre-init:

-init-private:

-init-user:

-init-project:

-init-macrodef-property:

-do-init:

-post-init:

-init-check:

-init-ap-cmdline-properties:

-init-macrodef-javac-with-processors:

-init-macrodef-javac-without-processors:

-init-macrodef-javac:

-init-macrodef-test-impl:

-init-macrodef-junit-init:

-init-macrodef-junit-single:

-init-test-properties:

-init-macrodef-junit-batch:

-init-macrodef-junit:

-init-macrodef-junit-impl:

-init-macrodef-testng:

-init-macrodef-testng-impl:

-init-macrodef-test:

-init-macrodef-junit-debug:

-init-macrodef-junit-debug-batch:

-init-macrodef-junit-debug-impl:

-init-macrodef-test-debug-junit:

-init-macrodef-testng-debug:

-init-macrodef-testng-debug-impl:

-init-macrodef-test-debug-testng:

-init-macrodef-test-debug:

-init-debug-args:

-init-macrodef-nbjpda:

-init-macrodef-debug:

-init-macrodef-java:

-init-presetdef-jar:

-init-ap-cmdline-supported:

-init-ap-cmdline:

init:

-deps-jar-init:

deps-jar:
    [mkdir] Created dir: /home/neoneye/git/jTessBoxEditor/build

-warn-already-built-jar:
[propertyfile] Updating property file: /home/neoneye/git/jTessBoxEditor/build/built-jar.properties

-check-automatic-build:

-clean-after-automatic-build:

-verify-automatic-build:

-pre-pre-compile:
    [mkdir] Created dir: /home/neoneye/git/jTessBoxEditor/build/classes

-pre-compile:

-copy-persistence-xml:

-compile-depend:

-do-compile:
    [mkdir] Created dir: /home/neoneye/git/jTessBoxEditor/build/empty
    [mkdir] Created dir: /home/neoneye/git/jTessBoxEditor/build/generated-sources/ap-source-output
    [javac] Compiling 36 source files to /home/neoneye/git/jTessBoxEditor/build/classes
     [copy] Copying 6 files to /home/neoneye/git/jTessBoxEditor/build/classes

-post-compile:
     [copy] Copying 1 file to /home/neoneye/git/jTessBoxEditor/build/classes

compile:

-pre-pre-compile-test:
    [mkdir] Created dir: /home/neoneye/git/jTessBoxEditor/build/test/classes

-pre-compile-test:

-compile-test-depend:

-do-compile-test:
    [javac] Compiling 1 source file to /home/neoneye/git/jTessBoxEditor/build/test/classes
    [javac] /home/neoneye/git/jTessBoxEditor/test/net/sourceforge/tessboxeditor/GuiWithTrainerTest.java:3: error: package org.junit does not exist
    [javac] import org.junit.After;
    [javac]                 ^
    [javac] /home/neoneye/git/jTessBoxEditor/test/net/sourceforge/tessboxeditor/GuiWithTrainerTest.java:4: error: package org.junit does not exist
    [javac] import org.junit.AfterClass;
    [javac]                 ^
    [javac] /home/neoneye/git/jTessBoxEditor/test/net/sourceforge/tessboxeditor/GuiWithTrainerTest.java:5: error: package org.junit does not exist
    [javac] import org.junit.Before;
    [javac]                 ^
    [javac] /home/neoneye/git/jTessBoxEditor/test/net/sourceforge/tessboxeditor/GuiWithTrainerTest.java:6: error: package org.junit does not exist
    [javac] import org.junit.BeforeClass;
    [javac]                 ^
    [javac] /home/neoneye/git/jTessBoxEditor/test/net/sourceforge/tessboxeditor/GuiWithTrainerTest.java:7: error: package org.junit does not exist
    [javac] import org.junit.Test;
    [javac]                 ^
    [javac] /home/neoneye/git/jTessBoxEditor/test/net/sourceforge/tessboxeditor/GuiWithTrainerTest.java:8: error: package org.junit does not exist
    [javac] import static org.junit.Assert.*;
    [javac]                        ^
    [javac] /home/neoneye/git/jTessBoxEditor/test/net/sourceforge/tessboxeditor/GuiWithTrainerTest.java:15: error: cannot find symbol
    [javac]     @BeforeClass
    [javac]      ^
    [javac]   symbol:   class BeforeClass
    [javac]   location: class GuiWithTrainerTest
    [javac] /home/neoneye/git/jTessBoxEditor/test/net/sourceforge/tessboxeditor/GuiWithTrainerTest.java:19: error: cannot find symbol
    [javac]     @AfterClass
    [javac]      ^
    [javac]   symbol:   class AfterClass
    [javac]   location: class GuiWithTrainerTest
    [javac] /home/neoneye/git/jTessBoxEditor/test/net/sourceforge/tessboxeditor/GuiWithTrainerTest.java:23: error: cannot find symbol
    [javac]     @Before
    [javac]      ^
    [javac]   symbol:   class Before
    [javac]   location: class GuiWithTrainerTest
    [javac] /home/neoneye/git/jTessBoxEditor/test/net/sourceforge/tessboxeditor/GuiWithTrainerTest.java:27: error: cannot find symbol
    [javac]     @After
    [javac]      ^
    [javac]   symbol:   class After
    [javac]   location: class GuiWithTrainerTest
    [javac] /home/neoneye/git/jTessBoxEditor/test/net/sourceforge/tessboxeditor/GuiWithTrainerTest.java:34: error: cannot find symbol
    [javac]     @Test
    [javac]      ^
    [javac]   symbol:   class Test
    [javac]   location: class GuiWithTrainerTest
    [javac] /home/neoneye/git/jTessBoxEditor/test/net/sourceforge/tessboxeditor/GuiWithTrainerTest.java:44: error: cannot find symbol
    [javac]     @Test
    [javac]      ^
    [javac]   symbol:   class Test
    [javac]   location: class GuiWithTrainerTest
    [javac] /home/neoneye/git/jTessBoxEditor/test/net/sourceforge/tessboxeditor/GuiWithTrainerTest.java:50: error: cannot find symbol
    [javac]         assertEquals(expResult, result);
    [javac]         ^
    [javac]   symbol:   method assertEquals(String,String)
    [javac]   location: class GuiWithTrainerTest
    [javac] 13 errors

BUILD FAILED
/home/neoneye/git/jTessBoxEditor/nbproject/build-impl.xml:1257: The following error occurred while executing this line:
/home/neoneye/git/jTessBoxEditor/nbproject/build-impl.xml:270: Compile failed; see the compiler error output for details.

Total time: 4 seconds
neoneye@neoneye-VirtualBox:~/git/jTessBoxEditor$ 

Train tesseract font with JTessboxeditor always return error

I have tried to train a new font for Tesseract using [JTessboxeditor][1], but it kept running this issue as displayed on the screenshot attached. I read ob some forum that I need to Cache the font – I did by issuing this command fc-cache -vf It returned the output as successful.

christdoes@Kehindes-MBP ~ % fc-cache -vf Font directories: /System/Library/Fonts /Library/Fonts /Users/christdoes/Library/Fonts /System/Library/AssetsV2/com_apple_MobileAsset_Font7 /Users/christdoes/.local/share/fonts /usr/local/share/fonts /usr/share/fonts /Users/christdoes/.fonts /System/Library/Fonts/Supplemental /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset/AssetData /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset/META-INF /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset/AssetData /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset/META-INF /System/Library/Fonts: caching, new cache contents: 872 fonts, 1 dirs /System/Library/Fonts/Supplemental: caching, new cache contents: 482 fonts, 0 dirs /Library/Fonts: caching, new cache contents: 37 fonts, 0 dirs /Users/christdoes/Library/Fonts: caching, new cache contents: 17 fonts, 0 dirs /System/Library/AssetsV2/com_apple_MobileAsset_Font7: caching, new cache contents: 0 fonts, 2 dirs /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset: caching, new cache contents: 0 fonts, 2 dirs /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset/AssetData: caching, new cache contents: 10 fonts, 0 dirs /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset/META-INF: caching, new cache contents: 0 fonts, 0 dirs /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset: caching, new cache contents: 0 fonts, 2 dirs /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset/AssetData: caching, new cache contents: 8 fonts, 0 dirs /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset/META-INF: caching, new cache contents: 0 fonts, 0 dirs /Users/christdoes/.local/share/fonts: skipping, no such directory /usr/local/share/fonts: skipping, no such directory /usr/share/fonts: skipping, no such directory /Users/christdoes/.fonts: skipping, no such directory /System/Library/Fonts/Supplemental: skipping, looped directory detected /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset: skipping, looped directory detected /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset: skipping, looped directory detected /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset/AssetData: skipping, looped directory detected /System/Library/AssetsV2/com_apple_MobileAsset_Font7/1d0b3e824e9e66b6052b7d210fff87fa6c9d135f.asset/META-INF: skipping, looped directory detected /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset/AssetData: skipping, looped directory detected /System/Library/AssetsV2/com_apple_MobileAsset_Font7/3a664750f87ebac0ccd5708d42f3844d06bb6f7b.asset/META-INF: skipping, looped directory detected /usr/local/var/cache/fontconfig: cleaning cache directory /Users/christdoes/.cache/fontconfig: not cleaning non-existent cache directory /Users/christdoes/.fontconfig: not cleaning non-existent cache directory fc-cache: succeeded

Then I listed all the fonts in the system, it returned among the list, the exact font I added. The fonts are Ubuntu and Inter. I used this command to list all the fonts text2image --fonts_dir /Library/Fonts --list_available_fonts

After doing all of these, the problem persists. I can select the font from the GUI but it always return the error.
Screen Shot 2022-04-07 at 14 06 31

Screen Shot 2022-04-07 at 14 23 09

Error: Unable to access jarfile jTessBoxEditor.jar

Hi there. So, I've just tried to use JTess, but when I run:
java -Xms128m -Xmx1024m -jar jTessBoxEditor
All i I get is:
Error: Unable to access jarfile jTessBoxEditor.jar

I noticed that in readme.html is written that jdk8+ is required, while github's readme says jdk7+. My current version is 7.3, could that be the problem?

train doesn't launch jTessBoxEditor on Ubuntu LTS 16.04.

Unzip jTessBoxEditor 1.7.3 on Ubuntu LTS 16.04. When I use the train script to launch jTessBoxEditor, I hit the following error:

$ ./train
Error: Could not find or load main class jTessBoxEditor

If I change the java launch option from "-cp" to "-java", then I can successfully launch jTessBoxEditor, i.e., from

$JAVACMD -Xms128m -Xmx1024m -cp "$PROGDIR/$PROGRAM.jar" $PROGRAM $@

to

$JAVACMD -Xms128m -Xmx1024m -jar "$PROGDIR/$PROGRAM.jar" $PROGRAM $@

FYI, the java version on my machine is as below:

$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

jTessBoxEditor crashes when eng.traineddata is not given

  • Environment : Ubuntu 16.04 LTS
  • Tesseract : 4.0.0-beta.1-376-gb1f79
  • openjdk version "1.8.0_171"
  • OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11)
  • OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)

I am trying to create box files for images using jTessBoxEditor. It requires me to explicitly specify the language along with giving the path to tesseract executable and the training data. I gave it a custom language which consisted only of digits, but the outputs came in form of digits, alphabets and even special characters!
I removed the eng.traineddata file from my tessdata directory, and jTessBoxEditor wouldn't even start to read the images. I get the following error log :

** Make Box Files **
[/home/soumik/local/bin/tesseract, img.f158.exp0.png, img.f158.exp0, batch.nochop, makebox]
Error opening data file /usr/local/share/tessdata/eng.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
Failed loading language 'eng'
Tesseract couldn't load any languages!
Could not initialize tesseract.

throw exception when click Edit -> Mark EOL

I run jTessBoxEditor version 2.2.0 on mac, I open a box file. And then click Editor -> Make EOL.
It crashed and the log is:

Stack: [0x0000700006e61000,0x0000700006f61000],  sp=0x0000700006f5f150,  free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libtesseract.dylib+0x20eee9]  ERRCODE::error(char const*, TessErrorLogCode, char const*, ...) const+0x179
C  [libtesseract.dylib+0x18cf]  tesseract::TessBaseAPI::TessBaseAPI()+0x10f
C  [libtesseract.dylib+0xbf8c]  TessBaseAPICreate+0x1c
C  [jna8103436955903599517.tmp+0xde74]  ffi_call_unix64+0x4c
C  0x0000700006f60058

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  com.sun.jna.Native.invokePointer(Lcom/sun/jna/Function;JI[Ljava/lang/Object;)J+0
j  com.sun.jna.Function.invokePointer(I[Ljava/lang/Object;)Lcom/sun/jna/Pointer;+7
j  com.sun.jna.Function.invoke([Ljava/lang/Object;Ljava/lang/Class;ZI)Ljava/lang/Object;+385
j  com.sun.jna.Function.invoke(Ljava/lang/reflect/Method;[Ljava/lang/Class;Ljava/lang/Class;[Ljava/lang/Object;Ljava/util/Map;)Ljava/lang/Object;+271
j  com.sun.jna.Library$Handler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object;+344
j  com.sun.proxy.$Proxy0.TessBaseAPICreate()Lnet/sourceforge/tess4j/ITessAPI$TessBaseAPI;+9
j  net.sourceforge.tess4j.Tesseract.init()V+12
j  net.sourceforge.tess4j.Tesseract.getSegmentedRegions(Ljava/awt/image/BufferedImage;I)Ljava/util/List;+1
j  net.sourceforge.tessboxeditor.GuiWithEdit.performSegment(Ljava/util/List;Ljava/util/List;Lnet/sourceforge/tess4j/ITesseract;)V+37
j  net.sourceforge.tessboxeditor.GuiWithEdit$OcrSegmentWorker.doInBackground()Ljava/lang/Void;+32
j  net.sourceforge.tessboxeditor.GuiWithEdit$OcrSegmentWorker.doInBackground()Ljava/lang/Object;+1
j  javax.swing.SwingWorker$1.call()Ljava/lang/Object;+14
j  java.util.concurrent.FutureTask.run()V+42
j  javax.swing.SwingWorker.run()V+4
j  java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+95
j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

Characters to Unicodes

Hi,

I wonder how I can convert the character in .box file into Unicode-form? Can it be changed in jTessBoxEditor itself?

Thank you in advance

how could run it on Mac?

dear,
latest java jdk-9 installed already, mac system.
how could make the program run correctly on Mac?

I was used to use version1.5 in the windows platform, it has a jTessBoxEditor.jar file, just double click, then work well.
 

Làm sao train đồng thời các loại box ?

Mình mới biết đến tesseract thôi, đang tính train thử một số font scratch từ các bộ phim, anime; nhưng mà thấy hơi khó sử dụng, các tài liệu trên mạng cũng ít và khó hiểu!

Cơ bản mình hiểu là có 3 loại box:

  • Standard Box: Cái này để train thêm font mới, nhưng không biết việc lặp lại của các ký tự có được không, vì ảnh scratch nên trông không mượt như font ttf được!
  • LSTM Box: Đây là box về sự tương quan giữa các từ, các chữ với nhau.
  • WordStr Box: Không rõ lắm, nhưng có thể là các từ đơn lẻ.

Để tạo nên một model thì chắc phải train cả 3 đúng không nhỉ ? nhưng jtessbox chỉ tạo một lần file.box nên cũng chả hiểu là như nào!

Có thử qua project TessTrain, cũng rất khó để hiểu nó hoạt động, theo Readme.md thì chỉ cần tạo LSTM box + hình ảnh(.png, .tiff) là train được, nhưng như vậy thì lại thiếu dữ liệu các ký tự, không biết là liệu nó hoạt động hay không... ?

Chinese langdata does not contain frequent_words_list

Instead I see chi_sim.training_text.bigram_freqs and chi_sim.training_text.unigram_freqs. The UI balks at this and keeps me from going further at Ln 103 in GuiWithTrainer.java.

        if (selectedMode == TrainingMode.Train_with_Existing_Box || selectedMode == TrainingMode.Dictionary || selectedMode == TrainingMode.Train_from_Scratch) {
            final String lang = jTextFieldLang.getText();
            boolean otherFilesExist = new File(trainDataDirectory, lang + ".font_properties").exists() && new File(trainDataDirectory, lang + ".frequent_words_list").exists() && new File(trainDataDirectory, lang + ".words_list").exists();

            if (!otherFilesExist) {
                msg = String.format("The required file %1$s.font_properties, %1$s.frequent_words_list, or %1$s.words_list does not exist.", lang);
                JOptionPane.showMessageDialog(this, msg, DIALOG_TITLE, JOptionPane.ERROR_MESSAGE);
                return;
            }
        }

Training Tesseract 4.0

Thanks @nguyenq for your hard work, you are appreciated
@nguyenq will you integrate training Tesseract 4.0 to jtessboxeditor?

The training process for Tesseract 4.0 is very simple and straight-forward, it consists of only 3 steps:

tesstrain.sh --fonts_dir ./fonts --lang eng --linedata_only --noextract_font_properties --fontlist "Times New Roman," --langdata_dir ./langdata --tessdata_dir ./tessdata --output_dir ./output
combine_tessdata -e ./tessdata/eng.traineddata ./output/eng.lstm
lstmtraining --model_output ./output/ --continue_from ./out/eng.lstm --traineddata ./tessdata/eng.traineddata --train_listfile ./output/eng.training_files.txt --target_error_rate 0.01 --debug_interval -1

You are already using the pre-built Tesseract 4.0 binary files from the Mannheim University (UB Mannheim), you only need to modify the training script, also allow users to customize.

I am willing to make some donation to you, to help you in the jtessboxeditor developing process.
Waiting for your reply

Support for Tesseract 4.1

I would like to ask if you are planning to add support of Tesseract 4.1 LTSM training in the next software version upgrade of jTessBoxEditor ?

Thanks

JTessBoxEditor idea of packaging

I wanted to package the source code with idea. I used Artifacts function to package it, but I tried several times without success.Is there a special packing method?Somebody help me, please

[Feature]support to draw a area to add box, zoom image

at present, add a new box must modify the location and width and height, it is hard to add for multiple text box image
1, suggest support to use mouse to draw a area box to add the box, just like this
https://github.com/PaddlePaddle/PaddleOCR/blob/dygraph/PPOCRLabel/data/gif/kie.gif

  1. suggest support zoom in and zoom out image, will be good for small images

thank you for your greate job for jTessBoxEditor, it is a very nice tool
hope you have a good day!

Support for white text

The data I try to parse is a png with a transparent background and white text.
This combination is not possible since the background of the box editor is also white and you can just see nothing.

Arabic character popup

Hello dear,
I have this problem when I peek into a character

screen shot 2017-02-14 at 00 32 16

as you can see, the Arabic letter 'و' has artifacts on it when displayed.

I am really hoping to help you as much as I can with your program.
Thanks a lot for it 👍

OSX- Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError

I have downloaded the master branch, and installed the ant.

The ant compile and ant jar were run successfully.

I also installed the Java 9 SDK and JRE 9 and tesseract 3.05.01.

When I try to run the

java -Xms128m -Xmx1024m -jar jTessBoxEditor.jar

or executing the train script ,

I get the following error in the command line:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: net/sourceforge/tess4j/ITesseract
	at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
	at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3139)
	at java.base/java.lang.Class.getDeclaredMethod(Class.java:2430)
	at java.desktop/java.awt.Component.isCoalesceEventsOverriden(Component.java:6263)
	at java.desktop/java.awt.Component.isCoalesceEventsOverriden(Component.java:6252)
	at java.desktop/java.awt.Component.isCoalesceEventsOverriden(Component.java:6252)
	at java.desktop/java.awt.Component.isCoalesceEventsOverriden(Component.java:6252)
	at java.desktop/java.awt.Component.isCoalesceEventsOverriden(Component.java:6252)
	at java.desktop/java.awt.Component.isCoalesceEventsOverriden(Component.java:6252)
	at java.desktop/java.awt.Component.isCoalesceEventsOverriden(Component.java:6252)
	at java.desktop/java.awt.Component.isCoalesceEventsOverriden(Component.java:6252)
	at java.desktop/java.awt.Component.access$400(Component.java:185)
	at java.desktop/java.awt.Component$3.run(Component.java:6217)
	at java.desktop/java.awt.Component$3.run(Component.java:6215)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.desktop/java.awt.Component.checkCoalescing(Component.java:6214)
	at java.desktop/java.awt.Component.<init>(Component.java:6183)
	at java.desktop/java.awt.Container.<init>(Container.java:292)
	at java.desktop/java.awt.Window.<init>(Window.java:533)
	at java.desktop/java.awt.Frame.<init>(Frame.java:423)
	at java.desktop/java.awt.Frame.<init>(Frame.java:388)
	at java.desktop/javax.swing.JFrame.<init>(JFrame.java:180)
	at net.sourceforge.tessboxeditor.Gui.<init>(Unknown Source)
	at net.sourceforge.tessboxeditor.GuiWithMRU.<init>(Unknown Source)
	at net.sourceforge.tessboxeditor.GuiWithEdit.<init>(Unknown Source)
	at net.sourceforge.tessboxeditor.GuiWithSpinner.<init>(Unknown Source)
	at net.sourceforge.tessboxeditor.GuiWithFont.<init>(Unknown Source)
	at net.sourceforge.tessboxeditor.GuiWithLaF.<init>(Unknown Source)
	at net.sourceforge.tessboxeditor.GuiWithTools.<init>(Unknown Source)
	at net.sourceforge.tessboxeditor.GuiWithGenerator.<init>(Unknown Source)
	at net.sourceforge.tessboxeditor.GuiWithTrainer.<init>(Unknown Source)
	at net.sourceforge.tessboxeditor.GuiWithValidator.<init>(Unknown Source)
	at net.sourceforge.tessboxeditor.GuiWithValidator$1.run(Unknown Source)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
	at java.desktop/java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:717)
	at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:711)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:89)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:199)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.ClassNotFoundException: net.sourceforge.tess4j.ITesseract
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
	... 47 more

Adding new font languge

Hey. I'm trying to use this librery to create box file to a habrew cherecters but there is no option to select hebrew in the font languge. How would I go about adding the support for hebrew?
Thank you!

Program "opening" but unable to bring it to focus.

I've had both times where it has worked and hasnt. I am currently running Windows 10 v2004.
The software does technically open, however i cannot see the window of it, nor can i bring it to focus, through clicking or alt+tab.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.