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

24
LINES

< > BotCompany Repo | #1005562 // PIF Reasoning 2 [Clip positions, WORKS]

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

Libraryless. Click here for Pure Java version (4687L/29K/100K).

!752

!include #1004863 // Dynamic Concepts
!include #1005530 // PIF Classes (Clip, Found, FullySearched)

p {
  final Concepts in = new Concepts("#1005522").load();
  
  new MultiMap<Clip, Rect> positions;
  for (Screenshot screenshot : in.list(Screenshot)) {
    L<Found> found = in.findBackRefs(screenshot, Found);
    for (Found f : found)
      positions.put(f.clip!, f.fi.r);
  }
  print("\nPOSITIONS\n");
  
  new L<S> out;
  for (Clip clip : positions.keySet()) {
    L l = positions.get(clip);
    L set = asList(new HashSet(l));
    out.add(l(set) + "/" + l(l) + " " + clip.description + ": " + struct(set));
  }
  print(joinLines(reversed(orderByFirstInt(out))));
}

Author comment

Began life as a copy of #1005531

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1005562
Snippet name: PIF Reasoning 2 [Clip positions, WORKS]
Eternal ID of this version: #1005562/1
Text MD5: d8bf40921526f4bc92b86f91ed2fd926
Transpilation MD5: f4577e3724435736b951b9f58733168e
Author: stefan
Category: javax / ocr
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-27 14:30:40
Source code size: 699 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 554 / 597
Referenced in: