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

12
LINES

< > BotCompany Repo | #1024829 // chessOCR_pieceProfileFromRawImage_v2

JavaX fragment (include)

static ChessPieceProfile1 chessOCR_pieceProfileFromRawImage_v2(BufferedImage img, O... _) {
  optPar bool withPreprocessedImages;
  
  BWImage bw = chessOCR_piecePreprocessing_1(img, _);
  BWImage bw2 = chessOCR_piecePreprocessingForFillGrade_1(img);
  ChessPieceProfile1 profile = new(
    ocr_sideProfile_scaledTo127(20, 0.5, bw),
    1f-bwAverageBrightness(bw2));
  if (withPreprocessedImages)
    profile.preprocessedImages = ll(bw, bw2);
  ret profile;
}

Author comment

Began life as a copy of #1024741

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: #1024829
Snippet name: chessOCR_pieceProfileFromRawImage_v2
Eternal ID of this version: #1024829/1
Text MD5: 8a0f3deffa195986a4d2fcdd338ba074
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-26 14:48:12
Source code size: 470 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 122 / 156
Referenced in: [show references]