Libraryless. Click here for Pure Java version (3589L/23K).
1 | static ChessPieceProfile1 chessOCR_pieceProfileFromRawImage_1(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 | } |
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: | 272 / 374 |
Version history: | 7 change(s) |
Referenced in: | [show references] |