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

25
LINES

< > BotCompany Repo | #1016909 // Recognize Text On Image [Dyn Module]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 108K of libraries. Click here for Pure Java version (15904L/119K).

!7

module OCR {
  transient ImageSurface is;
  
  start {
    setMainDesktopPane(null); // separate frames is less confusing
  }
  
  visual
    withCenteredButtons(
      jscroll(is = imageSurfaceWithStandardOperations()),
      "Invert", rThread { invertImageSurface(is) },
      "Recognize", rThread recognize);

  void recognize {
    new OCRRecognizeAndTeach(is.getImage());
  }
  
  // API
  
  SimpleRecognizer recognizer() enter {
    ret filledSimpleRecognizer_cached();
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016909
Snippet name: Recognize Text On Image [Dyn Module]
Eternal ID of this version: #1016909/13
Text MD5: 6a10648fcbcdafe0e040e82c8f8b4c71
Transpilation MD5: 269aa842fc115a6fef9ebb2567d820f2
Author: stefan
Category: javax / ocr
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-19 20:20:11
Source code size: 510 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 567 / 4305
Version history: 12 change(s)
Referenced in: #1018240 - Recognize Text On Full Screen [Dyn Module]