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

19
LINES

< > BotCompany Repo | #1024881 // Auto Chess Board Recognizer v2 [dev.]

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

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

1  
!7
2  
3  
cmodule AutoChessBoardRecognizer > ChessOCR_DynChessBoardRecognizer {
4  
  S basePreset;
5  
  L<Rect> rectsTried;
6  
7  
  srecord Result(ParameterizedSegmenter segmenter, Rect boardPosition,
8  
    double score, S fen) {}
9  
  
10  
  JComponent segmenterSection() {
11  
    ret vstackWithSpacing(
12  
      withLabel("Base segmenter: ", main.onChange(rst, dm_comboBox basePreset(agiBlue_chessBoardSegmenterPresetNames()))),
13  
      dm_calculatedLabel(() -> "Locations tried: " + l(rectsTried)));
14  
  }
15  
16  
  Iterator<ParameterizedSegmenter> makeSegmenters() {
17  
    ret iteratorLL(parameterizedSegmenterFromAGIBlue(basePreset));
18  
  }
19  
}

Author comment

Began life as a copy of #1024871

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: #1024881
Snippet name: Auto Chess Board Recognizer v2 [dev.]
Eternal ID of this version: #1024881/1
Text MD5: ea9e4ce328cf80b660625f87d404cf04
Transpilation MD5: 61385fd806ea9f0d493ee982c9fccfe6
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-28 14:19:38
Source code size: 618 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 220 / 554
Referenced in: [show references]