1 | !7 |
2 | |
3 | static File yoloPath; |
4 | |
5 | p { |
6 | File imagePath = loadImageAsFile(#1101133); |
7 | |
8 | yoloPath = homeFile("c:\darknet"); |
9 | //set backtick_keepScript; |
10 | S result = backtick_raw(print("cd " + bashQuote(yoloPath) + " && ./darknet detector test cfg/voc.data cfg/yolov3.cfg yolov3.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 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, iveijnkanddl, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035244 |
Snippet name: | Run TinyYOLO on stock image {windows} |
Eternal ID of this version: | #1035244/1 |
Text MD5: | ab626b4c77798b34cce0ca35c3e82ffe |
Author: | someone |
Category: | |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-24 20:32:44 |
Source code size: | 489 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 171 / 171 |
Referenced in: | [show references] |