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

19
LINES

< > BotCompany Repo | #1018515 // YOLO Recognition on Web Cam [Dyn Module, dev.]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (14773L/104K).

!7

sclass YOLO > DynPrintLog {
  transient File imagePath;
  
  start {
    imagePath = programFile("webcam.jpg");
    doEvery(10000, r {
      O webCam = dm_findResolvedModule("#1016673/LiveWebCam");
      if (webCam == null) ret; // with print("Web Cam Module not loaded");
      BufferedImage img = cast call(webCam, 'getImage);
      if (img == null) ret with print("Select web cam");
      printDateWithSeconds();
      saveJPEG(imagePath, img);
      L<Pair<S, Int>> results = runYolo(imagePath);
      printStruct(results);
    });
  }
}

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: 416 / 637
Version history: 7 change(s)
Referenced in: