Download Jar. Uses 6469K of libraries. Click here for Pure Java version (7193L/49K).
!7 static WebcamPanel panel; static double saveEvery = 10.0; static volatile File latestSaved; p-substance-noconsole { panel = new WebcamPanel(openWebCam(), true); panel.setFPSDisplayed(true); frameIcon(#1009177, exitProgramOnFrameClose(alwaysOnTop(showPackedFrame("JavaX Live WebCam", panel))); bot("WebCam."); doEvery_daemon_now(saveEvery, f saveDefault); } answer { if "save jpeg at *" { saveJPEG(newFile($1), imageFromWebcamPanel(panel)); ret "OK"; } if "latest file" ret latestSaved == null ? "Not saved yet" : "OK " + quote(f2s(latestSaved)); } svoid saveDefault { File file = getProgramFile("live-" + dateWithSecondsForFile() + ".jpg"); saveJPEG(file, imageFromWebcamPanel(panel)); latestSaved = file; }
Began life as a copy of #1009113
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010735 |
Snippet name: | JavaX Live WebCam - Show live webcam image in frame v3 [with bot & live-saving] |
Eternal ID of this version: | #1010735/11 |
Text MD5: | f9b54c6773389f1c66a376f3bc66a528 |
Transpilation MD5: | 08f8fe26fa3a561e24bd281c7cb09adb |
Author: | stefan |
Category: | javax / desktop / camera |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-30 20:30:32 |
Source code size: | 782 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 627 / 1566 |
Version history: | 10 change(s) |
Referenced in: | #1013257 - Waifu v1 [Detect person in front of webcam & play sounds when coming/going] #1013489 - JavaX Live WebCam - Show live webcam image in frame v4 [with cam selection] |