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)

static Rect ocr_stepToTheRight(Rect r, L<Rect> rects) {
  if (r == null) null;
  new Lowest<Rect> best;
  for (Rect r2 : rects) {
    if (r2.x < r.x2()) continue;
    if (!rectsOverlapY(r, r2)) continue;
    best.put(r2, r2.x);
  }
  ret best.get();
}

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: 585 / 587
Referenced in: [show references]