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

!7

cmodule AutoChessBoardRecognizer > ChessOCR_DynChessBoardRecognizer {
  S basePreset;
  L<Rect> rectsTried;

  srecord Result(ParameterizedSegmenter segmenter, Rect boardPosition,
    double score, S fen) {}
  
  JComponent segmenterSection() {
    ret vstackWithSpacing(
      withLabel("Base segmenter: ", main.onChange(rst, dm_comboBox basePreset(agiBlue_chessBoardSegmenterPresetNames()))),
      dm_calculatedLabel(() -> "Locations tried: " + l(rectsTried)));
  }

  Iterator<ParameterizedSegmenter> makeSegmenters() {
    ret iteratorLL(parameterizedSegmenterFromAGIBlue(basePreset));
  }
}

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