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).

1  
!752
2  
3  
!include #1004863 // Dynamic Concepts
4  
!include #1005530 // PIF Classes (Clip, Found, FullySearched)
5  
6  
p {
7  
  final Concepts in = new Concepts("#1005522").load();
8  
  
9  
  new MultiMap<Clip, Rect> positions;
10  
  for (Screenshot screenshot : in.list(Screenshot)) {
11  
    L<Found> found = in.findBackRefs(screenshot, Found);
12  
    for (Found f : found)
13  
      positions.put(f.clip!, f.fi.r);
14  
  }
15  
  print("\nPOSITIONS\n");
16  
  
17  
  new L<S> out;
18  
  for (Clip clip : positions.keySet()) {
19  
    L l = positions.get(clip);
20  
    L set = asList(new HashSet(l));
21  
    out.add(l(set) + "/" + l(l) + " " + clip.description + ": " + struct(set));
22  
  }
23  
  print(joinLines(reversed(orderByFirstInt(out))));
24  
}

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: 493 / 516
Referenced in: [show references]