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

29
LINES

< > BotCompany Repo | #1006389 // Find Scroll Bar 3 - find positions too

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

Libraryless. Click here for Pure Java version (4272L/29K/99K).

!7

p {
  blackHigh_maxBrightness = wideBlack_maxBrightness = 0.12f;

  RGBImage rgb = loadImage(#1006358);
  L<Rect> clips = ocr_wideBlack_vsplit(rgb);
  
  new L<RGBImage> images;
  for (Rect r : clips) {
    RGBImage line = rgb.clip(r);
    L<Rect> lineClips = ocr_highBlack_hsplit(line);

    new L<RGBImage> lineImages;
    for (Rect r2 : lineClips) {
      RGBImage cell = line.clip(r2);
      if (rgbTall(cell, 2)) {
        L<Rect> cellClips = ocr_wideBlack_vsplit(cell);
        lineImages.add(mergeImagePartsVertically(cell, cellClips));
      } else
        lineImages.add(cell);
    }
    
    images.add(mergeImagesHorizontally(lineImages));
    //images.add(mergeImagePartsHorizontally(line, lineClips));
  }
  
  showImage(mergeImagesVertically(images;
}

Author comment

Began life as a copy of #1006383

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006389
Snippet name: Find Scroll Bar 3 - find positions too
Eternal ID of this version: #1006389/1
Text MD5: 5b4524a9afe0966318bc94e6d4ccacd8
Transpilation MD5: 07c5ce5bdf9e18145c92f5eefe7c1269
Author: stefan
Category: javax / ocr
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-30 00:27:59
Source code size: 797 bytes / 29 lines
Pitched / IR pitched: No / No
Views / Downloads: 508 / 599
Referenced in: #1006395 - ocr_explodedView1