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

16
LINES

< > BotCompany Repo | #1024674 // Chess Board Recognizer [OK but with manual segmenter selection]

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

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

1  
!7
2  
3  
cmodule ChessBoardRecognizer > ChessOCR_DynChessBoardRecognizer {
4  
  replace Segmenter with IF1<BufferedImage, L<Rect>>.
5  
  
6  
  JComponent segmenterSection() {
7  
    ret withLabel("Segmenter preset: ", main.onChange(rst, dm_comboBox segmenterPreset(
8  
      itemPlusList("DCS 1", agiBlue_chessBoardSegmenterPresetNames()))));
9  
  }
10  
11  
  Iterator<? extends Segmenter> makeSegmenters() {
12  
    print("Segmenter Preset " + segmenterPreset);
13  
    if (eqic(segmenterPreset, "DCS 1")) ret singletonIterator(chessOCR_dcsRecognizer1());
14  
    ret singletonIteratorUnlessNull(parameterizedSegmenterFromAGIBlue(segmenterPreset));
15  
  }
16  
}

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: #1024674
Snippet name: Chess Board Recognizer [OK but with manual segmenter selection]
Eternal ID of this version: #1024674/110
Text MD5: c2bc6efb02cd8f0232b43f38faac04b1
Transpilation MD5: 4bf1a44b64623b7f6265c1a9d002bd17
Author: stefan
Category: javax / image recognition
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-29 13:33:40
Source code size: 628 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 493 / 1963
Version history: 109 change(s)
Referenced in: [show references]