1 | // keys are md5s |
2 | static Map<S, BWImage> getLearnedCharacters2() { |
3 | Set<S> md5s = requiredPhraseImageMD5s(); |
4 | |
5 | new HashMap<S, BWImage> md5ToImage; |
6 | int nFound = 0; |
7 | for (S md5, File f : screenClipFilesContainedInMD5Set(md5s)) { |
8 | ++nFound; |
9 | |
10 | BWImage img = loadBWImage(f); |
11 | //md5ToImage.put(md5, img); |
12 | for (BWImage cImg : horizontalAutoSplitToImages(img)) { |
13 | S cMD5 = ocrMD5OfBWImage(cImg); |
14 | md5ToImage.put(cMD5, cImg); |
15 | } |
16 | } |
17 | |
18 | print("Loaded phrase images: " + nFound + "/" + l(md5s)); |
19 | ret md5ToImage; |
20 | } |
Began life as a copy of #1006191
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006193 |
Snippet name: | getLearnedCharacters2 (reads needed clips only) |
Eternal ID of this version: | #1006193/14 |
Text MD5: | fdcc9b9f8295f669c17c90078278683e |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-15 00:11:29 |
Source code size: | 561 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 551 / 565 |
Version history: | 13 change(s) |
Referenced in: | [show references] |