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

15
LINES

< > BotCompany Repo | #1015484 // unixTerminalDollarFinder3

JavaX fragment (include)

static L<Rect> unixTerminalDollarFinder3(BufferedImage screenshot) {
  S clipID = #1101260;
  RGBImage clip = loadRGBImage(clipID);
  RGBImage img = new RGBImage(screenshot);
  L<FoundImg> l = findImageAll2(new BWImage(img), clipID, 0.85f);
  //pnl(l);
  L<Rect> rects = collect('r, l);
  new L<Rect> rects2;
  for (Rect r : rects) {
    float sim = 1-rgbDistance(img.clip(r), clip);
    //print(r + " => " + toIntPercent(sim) + "%");
    if (sim >= 0.80) rects2.add(r);
  }
  ret rects2;
}

Author comment

Began life as a copy of #1015483

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015484
Snippet name: unixTerminalDollarFinder3
Eternal ID of this version: #1015484/1
Text MD5: f10cffc941de0d319006bff2f40cdb5c
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-15 01:38:55
Source code size: 504 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 284 / 326
Referenced in: [show references]