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

22
LINES

< > BotCompany Repo | #1006275 // Get RecogInfo from Show & Recognize

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (7995L/55K/180K).

!752

p {
  L<S> lines = unnull((L<S>) getSingleFieldFromSingletonConcept(#1006104, "RecogInfo", "lines"));
  S s = joinLines(lines);
  //print(s);
  int l = l(lines);
  lines = throwOutBadWordEntries(lines);
  int thrownOut = l-l(lines);
  print("Threw out " + n(thrownOut, "entries"));
  psl(asTreeSet(map(f tok_lastQuotedString, lines)));
  s = null;
  final S s2 = joinLines(lines);
  print("Got " + l(s2) + " chars.");
  byte[] gz = gzipString(s2);
  print("Gzipped to " + l(gz) + " bytes.");
  showControlButton("Upload recognition info", r-thread {
    S id = ntUpload("ocr-data", "Recognition info from " + computerID(), s2);
    showDoneAnim("Uploaded as " + id + "!");
  });
  print("Read through the text above to see if anything embarrassing is up there. If not, press 'Upload recognition info' to upload to public database.");
}

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: #1006275
Snippet name: Get RecogInfo from Show & Recognize
Eternal ID of this version: #1006275/1
Text MD5: a6059129ec668d765df694f3b378666a
Transpilation MD5: ea69f42192f3677d1905055deeb010f5
Author: stefan
Category: javax / ocr
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-26 16:38:31
Source code size: 862 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 448 / 595
Referenced in: