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

19
LINES

< > BotCompany Repo | #1010901 // Auto-segment current screen, show 332 histogram

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

Download Jar. Libraryless. Click here for Pure Java version (6474L/46K).

!7

p {
  final RGBImage img = shootScreen();
  final L<Rect> rects = autoSegment(img);
  final ImageSurface is = showImageWithSelections(img, rects);
  final Var<Rect> highlighted = showImageWithSelections_highlighted;
  is.specialPurposed = true;
  
  ImageSurface isH = null;
  Rect last = null;
  repeat with sleep 1 {
    Rect r = highlighted!;
    if (neq(last, r)) {
      last = r;
      isH = show332Histogram(img.clip(r), isH);
    }
  }
}

Author comment

Began life as a copy of #1010714

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: #1010901
Snippet name: Auto-segment current screen, show 332 histogram
Eternal ID of this version: #1010901/2
Text MD5: da5f669ccff510fb946f87c2dc7123de
Transpilation MD5: 2ce7c7798e67ec01f6559e6587764fe1
Author: stefan
Category: javax / ocr
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-06 03:22:42
Source code size: 467 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 453 / 2049
Version history: 1 change(s)
Referenced in: [show references]