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

10
LINES

< > BotCompany Repo | #1006449 // ocr_stepToTheRight - find next rect to the right

JavaX fragment (include)

1  
static Rect ocr_stepToTheRight(Rect r, L<Rect> rects) {
2  
  if (r == null) null;
3  
  new Lowest<Rect> best;
4  
  for (Rect r2 : rects) {
5  
    if (r2.x < r.x2()) continue;
6  
    if (!rectsOverlapY(r, r2)) continue;
7  
    best.put(r2, r2.x);
8  
  }
9  
  ret best.get();
10  
}

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: #1006449
Snippet name: ocr_stepToTheRight - find next rect to the right
Eternal ID of this version: #1006449/1
Text MD5: dd01e5508c649a3d8b9dd12a315b61b2
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-05 11:13:52
Source code size: 260 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 502 / 512
Referenced in: [show references]