Transpiled version (835L) is out of date.
!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; p { BufferedImage screen = loadBufferedImage("#1006074"); BufferedImage pat1 = loadBufferedImage("#1006069"); BufferedImage pat2 = loadBufferedImage("#1006072"); LookupScale s = new LookupScale(0.2f, 10, 0.65f, 0.95f); ImageBinaryGreyScale si = new ImageBinaryGreyScale(screen); ImageBinaryGreyScale st1 = new ImageBinaryGreyScale(pat1); ImageBinaryGreyScale st2 = new ImageBinaryGreyScale(pat2); print("Finding..."); List<GPoint> pp = (L) s.lookupAll(si, st1); Collections.sort(pp, new GFirst()); for (GPoint p : pp) print(p); print("Finding..."); pp = (L) s.lookupAll(si, st2); 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 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006075 |
Snippet name: | Use "Lookup" (On-Screen OCR) For Finding Chess Board (might work, but very slow) |
Eternal ID of this version: | #1006075/1 |
Text MD5: | dcfe340c426624ec089f707df05aa42e |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-17 01:04:25 |
Source code size: | 1013 bytes / 34 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 496 / 582 |
Referenced in: | -