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

21
LINES

< > BotCompany Repo | #1006395 // ocr_explodedView1

JavaX fragment (include)

1  
static RGBImage ocr_explodedView1(RGBImage rgb) {
2  
  ocr_explodedView1_init();
3  
  new L<RGBImage> images;
4  
  for (Rect r : ocr_wideBlack_vsplit(rgb)) {
5  
    RGBImage line = rgb.clip(r);
6  
    new L<RGBImage> lineImages;
7  
    for (Rect r2 : ocr_highBlack_hsplit(line)) {
8  
      RGBImage cell = line.clip(r2);
9  
      if (rgbTall(cell, 2))
10  
        lineImages.add(mergeImagePartsVertically(cell, ocr_wideBlack_vsplit(cell)));
11  
      else
12  
        lineImages.add(cell);
13  
    }
14  
    images.add(mergeImagesHorizontally(lineImages));
15  
  }
16  
  ret mergeImagesVertically(images;
17  
}
18  
19  
svoid ocr_explodedView1_init() {
20  
  blackHigh_maxBrightness = wideBlack_maxBrightness = 0.12f;
21  
}

Author comment

Began life as a copy of #1006389

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006395
Snippet name: ocr_explodedView1
Eternal ID of this version: #1006395/1
Text MD5: a183d437551d8d495970ac669014b7fa
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-01 17:19:22
Source code size: 673 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 566 / 563
Referenced in: [show references]