Download Jar. Uses 17034K of libraries. Click here for Pure Java version (5523L/36K).
1 | !7 |
2 | |
3 | lib 1013788 // ocr |
4 | lib 1013791 // sikuli-script |
5 | lib 1003724 // commons io |
6 | |
7 | import com.sarxos.ocr.sikulix.*; |
8 | import com.sarxos.ocr.sikulix.util.ImageFrame; |
9 | |
10 | p { |
11 | unzip(loadLibrary(#1013788), programDir()); |
12 | OCR.setStoragePath(programFile("glyphs").getPath()); |
13 | OCR ocr = OCR.getSpec("test"); |
14 | |
15 | ImageFrame f = new ImageFrame(programFile("images/test.png").getPath()); |
16 | String text = ocr.read(f.getBounds()); |
17 | print(text); |
18 | assertEquals("TEST1234", text); |
19 | f.close(); |
20 | print("OK"); |
21 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013789 |
Snippet name: | Test Sarxos Sikuli OCR (missing dependencies on Linux/64 and Windows) |
Eternal ID of this version: | #1013789/7 |
Text MD5: | de9f4e929877a54c7ce718899c600484 |
Transpilation MD5: | 432838a1c41ee8848fbd001eacdb60db |
Author: | stefan |
Category: | javax / desktop / camera |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-02-27 18:02:44 |
Source code size: | 515 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 657 / 1244 |
Version history: | 6 change(s) |
Referenced in: | [show references] |