Download Jar. Libraryless. Click here for Pure Java version (5370L/37K).
1 | !7 |
2 | |
3 | static File yoloPath; |
4 | |
5 | p { |
6 | File imagePath = loadImageAsFile(#1101133); |
7 | |
8 | yoloPath = homeFile("dev/darknet"); |
9 | //set backtick_keepScript; |
10 | S result = backtick_raw(print("cd " + bashQuote(yoloPath) + " && ./darknet detector test cfg/voc.data cfg/tiny-yolo-voc.cfg tiny-yolo-voc.weights " + bashQuote(imagePath))); |
11 | //print(result); |
12 | pnl(result); |
13 | new Matches m; |
14 | for (S line : lines(result)) |
15 | if (regexpMatchGroups("(\\w+):\\s*(\\d+)%", line, m)) |
16 | printStruct(m); |
17 | } |
Install it first
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, iveijnkanddl, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013253 |
Snippet name: | Run TinyYOLO on stock image |
Eternal ID of this version: | #1013253/8 |
Text MD5: | 793f6f0a702265cafd4048cc095c9c6b |
Transpilation MD5: | 9536fd30d355428fa4a7a5e19a3a0a81 |
Author: | stefan |
Category: | javax / image recognition |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-30 04:15:59 |
Source code size: | 504 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 548 / 1195 |
Version history: | 7 change(s) |
Referenced in: | [show references] |