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; }
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: | 440 / 462 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |