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

10
LINES

< > BotCompany Repo | #1018880 // horizontalAutoSplitThenAutoCrop

JavaX fragment (include)

1  
static L<Rect> horizontalAutoSplitThenAutoCrop(BWImage img) {
2  
  ret horizontalAutoSplitThenAutoCrop(img, horizontalAutoSplit_threshold);
3  
}
4  
5  
static L<Rect> horizontalAutoSplitThenAutoCrop(BWImage img, float threshold) {
6  
  new L<Rect> l;
7  
  for (Rect r : horizontalAutoSplit(img, threshold))
8  
    l.add(translateRect(autoCropOfBWImage(img.clip(r)), r.x, r.y));
9  
  ret l;
10  
}

Author comment

Began life as a copy of #1005949

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018880
Snippet name: horizontalAutoSplitThenAutoCrop
Eternal ID of this version: #1018880/3
Text MD5: 5cb258c2f1ef87b244b223dcd69ba635
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-14 23:58:19
Source code size: 376 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 229 / 262
Version history: 2 change(s)
Referenced in: [show references]