Libraryless. Click here for Pure Java version (14773L/104K).
1 | !7 |
2 | |
3 | sclass YOLO > DynPrintLog {
|
4 | transient File imagePath; |
5 | |
6 | start {
|
7 | imagePath = programFile("webcam.jpg");
|
8 | doEvery(10000, r {
|
9 | O webCam = dm_findResolvedModule("#1016673/LiveWebCam");
|
10 | if (webCam == null) ret; // with print("Web Cam Module not loaded");
|
11 | BufferedImage img = cast call(webCam, 'getImage); |
12 | if (img == null) ret with print("Select web cam");
|
13 | printDateWithSeconds(); |
14 | saveJPEG(imagePath, img); |
15 | L<Pair<S, Int>> results = runYolo(imagePath); |
16 | printStruct(results); |
17 | }); |
18 | } |
19 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1018515 |
| Snippet name: | YOLO Recognition on Web Cam [Dyn Module, dev.] |
| Eternal ID of this version: | #1018515/8 |
| Text MD5: | 327997d0538db06edd9db147fedf8a4c |
| Transpilation MD5: | 68beff1339387ef1e5a48b4dab0bddf0 |
| Author: | stefan |
| Category: | javax / image recognition |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-10-03 11:22:30 |
| Source code size: | 563 bytes / 19 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 642 / 907 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |