Libraryless. Click here for Pure Java version (5931L/38K/136K).
!752 concepts. concept Result { BWImage inputImage; float horizontalSplitThreshold; L<BWImage> characters; S text; } static new MultiMap<S, S> md5ToChar; p-awt { L<L> data = getData(); JTable table = showTableWithImages("Taught Characters", splitAtSpace("Image MD5 Character"), data); table.setRowHeight(25); } static L<L> getData() { Concepts in = new Concepts("#1005726").load(); new L<L> data; for (Result r : in.list(Result)) { S text = contains(r.text, "[") ? "" : r.text; for (int i = 0; i < l(r.characters); i++) { BWImage clip = autoCroppedBWImage(r.characters.get(i)); S md5 = md5OfBWImage(clip); S c = substring(text, i, i+1); S s = or2(c, "?"); if (nempty(c)) md5ToChar.setPut(md5, c); data.add(ll(clip.getBufferedImage(), md5, s)); } } sortByIndex(data, 2); ret data; }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005947 |
Snippet name: | Take learned characters from #1005726 |
Eternal ID of this version: | #1005947/1 |
Text MD5: | b6750c6e2e001c2f4f2a7ba3c9024561 |
Transpilation MD5: | 6ad8b28b923291102a5446b12f9a4176 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-13 04:12:12 |
Source code size: | 908 bytes / 38 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 426 / 764 |
Referenced in: | [show references] |