Libraryless. Click here for Pure Java version (3480L/22K).
// threshold 0.75 + Cubed distance from black 3.0 + blur + min 3", static BWImage chessOCR_piecePreprocessing_1(BufferedImage img, O... _) { optPar int version = 1; BWImage bw = bwImageTo2Bit(0.75f, img_cubedDistanceFromColor_withGain(rgbBlack(), 3.0, blurFilterBufferedImage( minFilterBufferedImage(3, img)))); if (version == 1) bw = bwAutoCrop(bw); ret bw; }
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: | #1024731 |
Snippet name: | chessOCR_piecePreprocessing_1 |
Eternal ID of this version: | #1024731/5 |
Text MD5: | cbadd02fdff79a7e14e8cb5f1525cc14 |
Transpilation MD5: | 81824f57864921dee5e11e98b780bfc9 |
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:50:47 |
Source code size: | 406 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 250 / 346 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1024741 - chessOCR_pieceProfileFromRawImage_1 #1024750 - chessOCR_piecePreprocessingForFillGrade_1 - bad with pawns |