Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1024908 // chessOCR_dcsRecognizer1

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (8455L/54K).

1  
static IF1<BufferedImage, L<Rect>> chessOCR_dcsRecognizer1() {
2  
  ParameterizedSegmenter base = cast unstruct([[ParameterizedSegmenter(contrastThreshold=fl "0.10711071", dc_b=175, dc_g=160, dc_gain=fl "4.465", dc_r=115, distanceFromColor=t, filter="min", filterLevel=0, gridSize=2, heightRange=DoubleRange(end=d("1.0"), start=d("0.28192819281928194")), widthRange=DoubleRange(end=d("1.0"), start=d("0.1489148914891489")), xRange=DoubleRange(end=d("1.0"), start=d("0.0372037203720372")), yRange=DoubleRange(end=d("1.0"), start=d("0.0")))]]);
3  
  DominantColorBasedSegmenter dcs = new(base);
4  
  ret (IF1<BufferedImage, L<Rect>>) img -> filter(r -> rectIsSquareish(r, 0.02), dcs.get(img));
5  
}

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: #1024908
Snippet name: chessOCR_dcsRecognizer1
Eternal ID of this version: #1024908/1
Text MD5: 1bb1517f7b017acfddf1e1a0dc98c32a
Transpilation MD5: 0ed9c86c741a4c4d114a3ebf016c3da6
Author: stefan
Category: javax / chess ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-29 13:28:12
Source code size: 688 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 234 / 347
Referenced in: [show references]