1 | static L<Rect> unixTerminalDollarFinder3(BufferedImage screenshot) { |
2 | S clipID = #1101260; |
3 | RGBImage clip = loadRGBImage(clipID); |
4 | RGBImage img = new RGBImage(screenshot); |
5 | L<FoundImg> l = findImageAll2(new BWImage(img), clipID, 0.85f); |
6 | //pnl(l); |
7 | L<Rect> rects = collect('r, l); |
8 | new L<Rect> rects2; |
9 | for (Rect r : rects) { |
10 | float sim = 1-rgbDistance(img.clip(r), clip); |
11 | //print(r + " => " + toIntPercent(sim) + "%"); |
12 | if (sim >= 0.80) rects2.add(r); |
13 | } |
14 | ret rects2; |
15 | } |
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: | 285 / 328 |
Referenced in: | [show references] |