Libraryless. Click here for Pure Java version (4923L/35K/123K).
!7 static ImageSurface isGood, isBad; p { repeat with sleep 1 { Rect r = randomScreenRect(50, 50); RGBImage clip = rgbShootScreen(r); float prec = rgbInnerPrecision(clip); print(prec); if (prec >= 0.5f) isGood = showImage(isGood, "Precise", clip); else isBad = showImage(isBad, "Wobbly", clip); } }
Began life as a copy of #1006798
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: | #1006812 |
Snippet name: | Check Precision Of Random Screen Parts [WORKS] |
Eternal ID of this version: | #1006812/7 |
Text MD5: | 78c42994e0a9c178e46ffd00aa05ff21 |
Transpilation MD5: | 1ddeca9aa1fa6ba392b22635b23084ac |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-05 03:36:58 |
Source code size: | 355 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 513 / 581 |
Version history: | 6 change(s) |
Referenced in: | [show references] |