static Set<S> thingsOnScreenMap_md5s; static MultiMap<S, Rect> thingsOnScreenMap() { ret thingsOnScreenMap(shootScreenBW()); } static MultiMap<S, Rect> thingsOnScreenMap(BWImage bwScreenShot) { SS comments = thingsOnScreenDefinitions(); L<Rect> segments = autoSegment(bwScreenShot); new MultiMap<S, Rect> map; new HashSet<S> md5s; for (Rect r : segments) { RGBImage clip = bwScreenShot.clip(r).toRGB(); S md5 = rgbMD5(clip); md5s.add(md5); S text = comments.get(md5); if (nempty(text)) map.put(text, r); } thingsOnScreenMap_md5s = md5s; ret map; }
Began life as a copy of #1010713
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: | #1010722 |
Snippet name: | thingsOnScreenMap |
Eternal ID of this version: | #1010722/7 |
Text MD5: | 06d7afb918009fc1d33634c207139eba |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-08 15:05:30 |
Source code size: | 609 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 413 / 498 |
Version history: | 6 change(s) |
Referenced in: | [show references] |