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

12
LINES

< > BotCompany Repo | #1024741 // chessOCR_pieceProfileFromRawImage_1

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3589L/23K).

static ChessPieceProfile1 chessOCR_pieceProfileFromRawImage_1(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 #1024731

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: #1024741
Snippet name: chessOCR_pieceProfileFromRawImage_1
Eternal ID of this version: #1024741/8
Text MD5: 2a767ad75262abb08d2e7507f72976db
Transpilation MD5: 9e944e61a8e50617fce6b1fe7bdf4908
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 13:42:41
Source code size: 466 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 271 / 372
Version history: 7 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1024829 - chessOCR_pieceProfileFromRawImage_v2