Libraryless. Click here for Pure Java version (5887L/41K/145K).
!752 p { RGBImage img = shootScreen(); Color color = Color.white; L<Rect> clips = areasColored(img, color); print(n(clips, "areas") + " found for color " + new RGB(color) + ": " + struct(clips)); //BufferedImage thumb = shrinkScreenshot(img.getBufferedImage()); BufferedImage thumb = img.getBufferedImage(); double factor = thumb.getWidth()/(double) img.w(); showImageWithSelections(thumb, scaleRects(clips, factor)); }
Began life as a copy of #1006203
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, nnmtytuibrzp, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006216 |
| Snippet name: | Mark white areas on screen |
| Eternal ID of this version: | #1006216/1 |
| Text MD5: | 50e6b71b02397d6981cb64e9b042de06 |
| Transpilation MD5: | a16897aef10feff971f37d0b476bca05 |
| Author: | stefan |
| Category: | javax / ocr |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-02-24 11:31:42 |
| Source code size: | 451 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 698 / 840 |
| Referenced in: | [show references] |