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

18
LINES

< > BotCompany Repo | #1024775 // Extract chess piece images from training images and upload them to agi.blue

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (11124L/61K).

1  
!7
2  
3  
cmodule ExtractPieceImages > DynSingleFunctionWithPrintLog {
4  
  transient new ChessOCR_SquareImagesCollector squareImagesCollector;
5  
6  
  void doIt {
7  
    agiBlue_whiteListMe();
8  
    squareImagesCollector.loadImagesFromAGIBlue();
9  
    new LLS queue;
10  
    temp tempSetTL(agiBlue_postInSlice_queue, queue);
11  
    for (ChessOCR_PieceImage i : squareImagesCollector.allImages)
12  
      chessOCR_uploadPieceImage(i.square, i.piece, i.img);
13  
      
14  
    print(agiBot_postMulti(keyPairForProgram(), map(queue, l ->
15  
      litmap(q := l.get(1), key := l.get(2), value := l.get(3))),
16  
      slice := agiBlue_chessPieceImagesSlice());
17  
  }
18  
}

Author comment

Began life as a copy of #1024760

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: #1024775
Snippet name: Extract chess piece images from training images and upload them to agi.blue
Eternal ID of this version: #1024775/4
Text MD5: 9948053d17e570ca02085d86f17e1618
Transpilation MD5: c31e6feb1c318581d7ea300f65b3cb2b
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-26 18:18:16
Source code size: 634 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 217 / 492
Version history: 3 change(s)
Referenced in: [show references]