Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1026084 // ocr_unpackGlyphTeachLogToScreenClipsDir

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3799L/25K).

svoid ocr_unpackGlyphTeachLogToScreenClipsDir() {
  for (S s : scanLog(glyphTeachLog())) {
    s = dropLeadingSquareBracketStuff(s); // drop date
    S md5 = dropPrefixOrNull("Image ", beforeColon(s); // image md5
    File imgFile = newFile(screenClipsDir(), md5 + ".png");
    if (!imgFile.exists()) continue with print("Image not found, skipping: " + imgFile);
    saveTextFileIfDifferentVerbose(replaceExtension(imgFile, ".line"), afterColon(s));
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1026084
Snippet name: ocr_unpackGlyphTeachLogToScreenClipsDir
Eternal ID of this version: #1026084/4
Text MD5: 5b8cc7f883494cdad7cadb7a1fbe81c7
Transpilation MD5: 29200e2ef7dbdcec817cb36f8a50d125
Author: stefan
Category: void
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-19 23:34:02
Source code size: 463 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 185 / 277
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)