Uses 1092K of libraries. Click here for Pure Java version (340L/3K/10K).
!752 lib 1003721 // lookup lib 1003724 // commons io lib 1003727 // commons lang lib 1003729 // jhlabs filters import com.github.axet.lookup.*; import com.github.axet.lookup.common.GFirst; import com.github.axet.lookup.common.GPoint; import com.github.axet.lookup.common.ImageBinaryGreyScale; static double scale = 1 /*0.5*/; // make images smaller to speed up search p { BufferedImage template = loadBufferedImage("#1003730"); LookupScale s = new LookupScale(0.2f, 10, 0.65f, 0.95f); BufferedImage image; ImageBinaryGreyScale si, st; time { image = shootScreen2(); si = new ImageBinaryGreyScale(scaleImage(image, scale)); st = new ImageBinaryGreyScale(scaleImage(template, scale)); } twice { time { print("Searching for logo..."); L<GPoint> pp = (L) s.lookupAll(si, st); Collections.sort(pp, new GFirst); for (GPoint p : pp) print(p); }} }
Began life as a copy of #1003728
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003732 |
Snippet name: | Try Finding Peppermint Logo On Screen |
Eternal ID of this version: | #1003732/1 |
Text MD5: | 4ae05a30a66fc81b982aeeaf1d06a3a5 |
Transpilation MD5: | e26b679c9c373f2680d19f8e7dff845f |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-26 17:40:17 |
Source code size: | 938 bytes / 36 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 575 / 666 |
Referenced in: | [show references] |