Uses 18844K of libraries. Click here for Pure Java version (11195L/80K/275K).
1 | !7 |
2 | |
3 | static float scale = 0.25f; // scale image |
4 | |
5 | p-subst {
|
6 | hideConsole(); |
7 | sleep(500); |
8 | BufferedImage img, bigImg; |
9 | time "Make MBFImage" {
|
10 | MBFImage image = readMBF(img = scaleImage(bigImg = shootScreen2(), scale)); |
11 | } |
12 | showConsole(); |
13 | |
14 | SS lookup = imageDB_md5ToNameMap(); |
15 | printStruct(lookup); |
16 | |
17 | time "Segment" {
|
18 | L<ConnectedComponent> components = fhSegment(image); |
19 | } |
20 | |
21 | S n = n(components, "component"); |
22 | print("Have " + n);
|
23 | setFrameTitle(n, centerFrame(showZoomedImage(renderSegments(image, components), 2))); |
24 | |
25 | L<S> found = lookupAllOpt(lookup, md5sOfImageComponents(img, components)); |
26 | print("Found " + n(found, "thing") + ": " + sfu(found));
|
27 | |
28 | cycleSegmentedComponents2(img, bigImg, components); |
29 | } |
Began life as a copy of #1010064
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1010171 |
| Snippet name: | Test Felzenszwalb-Huttenlocher Segmenter on live screenshot v2 [OK] |
| Eternal ID of this version: | #1010171/7 |
| Text MD5: | a48c1600c8a7ce8248ab141dbe8f7a10 |
| Transpilation MD5: | c98a5bf767e54d54b752a57f75e1b741 |
| Author: | stefan |
| Category: | javax / imaging |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-06 00:51:29 |
| Source code size: | 765 bytes / 29 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 676 / 1121 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |