Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

21
LINES

< > BotCompany Repo | #1013789 // Test Sarxos Sikuli OCR (missing dependencies on Linux/64 and Windows)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 17034K of libraries. Click here for Pure Java version (5523L/36K).

!7

lib 1013788 // ocr
lib 1013791 // sikuli-script
lib 1003724 // commons io

import com.sarxos.ocr.sikulix.*;
import com.sarxos.ocr.sikulix.util.ImageFrame;

p {
  unzip(loadLibrary(#1013788), programDir());
  OCR.setStoragePath(programFile("glyphs").getPath());
  OCR ocr = OCR.getSpec("test");
  
  ImageFrame f = new ImageFrame(programFile("images/test.png").getPath());
  String text = ocr.read(f.getBounds());
  print(text);
  assertEquals("TEST1234", text);
  f.close();
  print("OK");
}

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: 656 / 1239
Version history: 6 change(s)
Referenced in: