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

24
LINES

< > BotCompany Repo | #1005842 // autoSegment

JavaX fragment (include)

static int autoSegment_g = 3;

// g = grid size - typical values are 3 or 4
static L<Rect> autoSegment(BWImage img, int g) {
  new AutoSegmenter as;
  as.g = g;
  ret as.go(img);
}

static L<Rect> autoSegment(BWImage img) {
  ret autoSegment(img, autoSegment_g);
}

static L<Rect> autoSegment(BufferedImage img) {
  ret autoSegment(new BWImage(img));
}

static L<Rect> autoSegment(BufferedImage img, int g) {
  ret autoSegment(new BWImage(img), g);
}

static L<Rect> autoSegment(RGBImage img) {
  ret autoSegment(new BWImage(img));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, iveijnkanddl, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005842
Snippet name: autoSegment
Eternal ID of this version: #1005842/5
Text MD5: 9a814a50fdba21304da2fa9eb8db8638
Author: stefan
Category: javax / ocr
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-14 23:39:33
Source code size: 556 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 629 / 647
Version history: 4 change(s)
Referenced in: [show references]