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)

1  
static ChessPieceProfile1 chessOCR_pieceProfileFromRawImage_v2(BufferedImage img, O... _) {
2  
  optPar bool withPreprocessedImages;
3  
  
4  
  BWImage bw = chessOCR_piecePreprocessing_1(img, _);
5  
  BWImage bw2 = chessOCR_piecePreprocessingForFillGrade_1(img);
6  
  ChessPieceProfile1 profile = new(
7  
    ocr_sideProfile_scaledTo127(20, 0.5, bw),
8  
    1f-bwAverageBrightness(bw2));
9  
  if (withPreprocessedImages)
10  
    profile.preprocessedImages = ll(bw, bw2);
11  
  ret profile;
12  
}

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