Libraryless. Click here for Pure Java version (7108L/47K).
1 | // returns <fen, score> |
2 | static Pair<S, Double> chessOCR_recognizeBoard_FENAndScore(BufferedImage board, ChessPieceRecognizer pieceRecognizer) { |
3 | LPair<S, Double> recognized = chessOCR_recognizeBoard(board, pieceRecognizer); |
4 | ret pair(chess_makeFEN(listToChunks(pairsA(recognized), 8)), |
5 | doubleAvg(pairsB(recognized))); |
6 | } |
Began life as a copy of #1024805
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: | #1024812 |
Snippet name: | chessOCR_recognizeBoard_FENAndScore |
Eternal ID of this version: | #1024812/1 |
Text MD5: | 5a88e771248e84b2bdade6d830aa4649 |
Transpilation MD5: | f46cebc09dfcb400f8f79bab10f57177 |
Author: | stefan |
Category: | javax / image recognition |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-26 12:02:55 |
Source code size: | 330 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 234 / 324 |
Referenced in: | [show references] |