Libraryless. Click here for Pure Java version (5887L/41K/145K).
1 | !752 |
2 | |
3 | p { |
4 | RGBImage img = shootScreen(); |
5 | Color color = Color.white; |
6 | L<Rect> clips = areasColored(img, color); |
7 | print(n(clips, "areas") + " found for color " + new RGB(color) + ": " + struct(clips)); |
8 | |
9 | //BufferedImage thumb = shrinkScreenshot(img.getBufferedImage()); |
10 | BufferedImage thumb = img.getBufferedImage(); |
11 | double factor = thumb.getWidth()/(double) img.w(); |
12 | showImageWithSelections(thumb, scaleRects(clips, factor)); |
13 | } |
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: | 487 / 587 |
Referenced in: | [show references] |