Libraryless. Click here for Pure Java version (10325L/68K/227K).
!7 p { Concepts in = new Concepts("#1006104").safeLoad(); L<S> lines = (L) cget(first(list(in, "RecogInfo")), "lines"); new TreeSet<S> md5s; new Matches m; for (S s : lines) if (matchStart("the images *", s, m)) { md5s.addAll(splitAtSpace($1)); } print("MD5s we're looking for: " + struct(md5s)); Concepts in2 = new Concepts("#1005951").load(); new HashMap<S, BWImage> md5ToImage; for (GrabbedImage gi : list(in2, GrabbedImage)) { if (md5s.contains(gi.md5)) md5ToImage.put(gi.md5, gi.image); for (BWImage cImg : horizontalAutoSplitToImages(gi.image)) { S md5 = md5OfBWImage(cImg); if (md5s.contains(md5)) md5ToImage.put(md5, cImg); } } int found = 0; for (S md5 : md5s) { BWImage img = md5ToImage.get(md5); if (img != null) ++found; } print("Found: " + found + "/" + l(md5s)); }
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: | #1006191 | 
| Snippet name: | Find images for character MD5s | 
| Eternal ID of this version: | #1006191/2 | 
| Text MD5: | 643c974b196a621765f056a6a633a769 | 
| Transpilation MD5: | d1b283fbad7ad022f97c5cb26a1b83ad | 
| Author: | stefan | 
| Category: | javax / ocr | 
| Type: | JavaX source code | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2018-05-10 21:16:31 | 
| Source code size: | 904 bytes / 32 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 745 / 937 | 
| Version history: | 1 change(s) | 
| Referenced in: | [show references] |