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

17
LINES

< > BotCompany Repo | #1008986 // Detect Webcam [WORKS for me on Linux]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 2596K of libraries. Click here for Pure Java version (409L/3K).

!7

lib 1008985 // webcam
lib 1008987 // bridj
lib 1004016 // slf4j api

import com.github.sarxos.webcam.Webcam;

p {
  print("Finding webcam...");
  Webcam webcam = Webcam.getDefault();
  print();
  if (webcam != null)
    print("Found webcam! " + webcam.getName());
  else
    print("No webcam detected");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wtqryiryparv

No comments. add comment

Snippet ID: #1008986
Snippet name: Detect Webcam [WORKS for me on Linux]
Eternal ID of this version: #1008986/6
Text MD5: 4996ef0514272de356e79540885f2c04
Transpilation MD5: 1a04e42c8df97af9f0204815e7a9eef4
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-06-22 19:31:35
Source code size: 325 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 467 / 925
Version history: 5 change(s)
Referenced in: [show references]