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

9
LINES

< > BotCompany Repo | #1019963 // dm_waitForWebCamImage

JavaX fragment (include)

1  
static BufferedImage dm_waitForWebCamImage(double seconds) {
2  
  long time = sysNow();
3  
  while (elapsedTime(time) < toMS(seconds)) {
4  
    BufferedImage img = dm_webCamImage();
5  
    if (img != null) ret img;
6  
    sleep(50);
7  
  }
8  
  null;
9  
}

Author comment

Began life as a copy of #1019052

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019963
Snippet name: dm_waitForWebCamImage
Eternal ID of this version: #1019963/1
Text MD5: 0b7dfc188e2ed9bf12ab26b850eb1aee
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-02 02:13:04
Source code size: 239 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 284 / 314
Referenced in: [show references]