Questions tagged [webcam-capture]

The Webcam Capture library makes it possible to use a build-in or external webcam directly from Java. It is designed to abstract commonly used camera features and support various capturing frameworks.

This library allows you to use your build-in or external webcam directly from Java. It's designed to abstract commonly used camera features and support various capturing frameworks.


Features

  • Simple, thread-safe and non-blocking API,
  • No additional software required,
  • Supports multiple platforms (Windows, Linux, Mac OS, etc) and various architectures (32-bit, 64-bit, ARM),
  • Get images from build-in or USB-connected PC webcams,
  • Get images from IP / network cameras (as MJPEG or JPEG),
  • Offers ready to use motion detector,
  • All required JARs Available in Maven Central,
  • Offers possibility to expose images as MJPEG stream,
  • It is available as Maven dependency or standalone ZIP binary (with all dependencies included),
  • Swing component to display video feed from camera,
  • Swing component to choose camera (drop down),
  • Multiple capturing frameworks are supported:
    • OpenIMAJ,
    • LTI CIVIL,
    • Java Media Framework (JMF),
    • Freedom for Media in Java (FMJ),
    • OpenCV via JavaCV,
    • VLC via vlcj,
    • GStreamer (0.10.x only) via gstreamer-java
    • MJPEG IP Cameras

For more Information, see the projects Github page.

221 questions
2
votes
0 answers

Webcam.set() not showing but Webcam.snap() works

I'm currently new to javascript and I'm attempting to learn to set my webcam and have it take a snap using js. However, only the Webcam.snap() works on my end. My Webcam.set() and Webcam.attach() won't show despite being able to take a…
2
votes
1 answer

v4l2 manual exposure not working compared to Windows 10

This question is very similar to V4L2 absolute exposure setting has (almost) not effect I have a UVC compliant camera that I am running on a Raspberry Pi CM3+ module. It appears as video0. Using the tools/drivers v4l2-ctl, qv4l2 or guvcview the…
tomdertech
  • 497
  • 1
  • 9
  • 27
2
votes
0 answers

How do I capture a video in a tensor4d on tensorflow.js?

I'm trying to build a web application that captures a series of images that need to be evenly spaced. I've noticed that the capture() function on tf.data.webcam() takes a variable amount of time. Is there a workaround to capture images evenly spaced…
2
votes
1 answer

Webcam.js Error: No supported webcam interface found

I'm using Webcam.js in my Laravel Project for capturing image. I have already come across from this thread (Webcam js Error in Chrome: Could not access webcam) I did same but still, I got this error: Webcam.js Error: No supported webcam interface…
Sayandeep Majumdar
  • 370
  • 1
  • 9
  • 20
2
votes
0 answers

Trying to screenshot from a webcam stream but not capturing the stream

I'm attempting to create a program to capture a screenshot every day at the same time for water clarity comparison. The problem is it's saving a screenshot but not including the web stream in the shot. How can I get the screengrab to get the still…
Alan Grosse
  • 33
  • 1
  • 5
2
votes
0 answers

Does "Webcam capture API" work with AdoptOpenJDK 11?

I am writing a simple webcam recorder using Webcam Capture API, Xuggler and Java's Sound API. I've been using JDK 1.8 for this project and almost completed it. I am able to record video with audio using those libraries. But when I switch to…
2
votes
0 answers

How to get webcam feed in chrome extension persistently when chrome is open?

I am trying to make a chrome extension where I need access to the webcam feed once the user has allowed permission and has toggled on button in the extension popup. The feed should (and the extension) should keep running persistently until the user…
2
votes
1 answer

How to align my OpenCV output from the webcam at the Centre of my screen

How can I align my OpenCV output from the webcam at the centre of my screen. The visuals are always positioned at the top right corner. I want the position exactly at middle of the screen or at top middle area(exactly under the webcam). I got an…
suhail
  • 21
  • 4
2
votes
2 answers

ngx-webcam how to identify if user allowed webcam permission or not - Angular 4+

I'm having issue with ngx-webcam plugin in Angular4+, as i'm using this plugin to capture images in my application but when user doesn't allow permission of using webcam then I should make a change from capturing to upload a image from computer or…
kishore
  • 356
  • 1
  • 3
  • 20
2
votes
2 answers

OpenCV code opens a video but displays a blocked camera

I am learning how to display video using python 3 and OpenCV. I use PyCharm for my IDE. When I run the code to display a continuous video from my webcam, it just gives me the symbol of a blocked webcam. Later, the saved file of that "video" is in my…
Lacrosse343
  • 491
  • 1
  • 3
  • 18
2
votes
2 answers

How to convert base64 dataUrl into image in typescript

i am using ng2-image cropper, for that is not taking "src" attribute it take "image" Attribute. So if i give dataUrl, image is not displaying in the cropper. I am using camera for image and i am getting base64 image from it. want to convert base64…
SaiRam Ponnuri
  • 21
  • 1
  • 1
  • 2
2
votes
0 answers

How to add the rear camera to options with getUserMedia?

I've just found "say-cheese" JS to open phone cam in a webpage. https://github.com/Kephson/html5qrcodereader My project is to read QR Codes with a smartphones camera and enter the data into a input field on a website. The JS library works just…
Björn C
  • 3,860
  • 10
  • 46
  • 85
2
votes
1 answer

How to access front/back camera using java (webcam-capture)

I am using this java library to access camera in laptop/pc. Webcam-capture Webcam webcam = Webcam.getDefault(); webcam.open(); ImageIO.write(webcam.getImage(), "PNG", new File(path)); Above code giving me back camera streaming, i want to switch…
THE INN-VISIBLE
  • 155
  • 1
  • 8
2
votes
0 answers

Python webcam record giving lower fps than desired

I am using opencv(cv2) in python to record videos(only video required) from multiple webcams simultaneously. Though they are not synchronized they record at a constant framerate. The problems are They record at 4fps when resolution is set to 1080p,…
2
votes
3 answers

Websocket server prints object Object instead of a string

I'm creating a website with node.js and using websocket. The client send an image as string to the server and the server prints object Object instead of a string. Where is the problem? app.js #!/usr/bin/env node var WebSocketServer =…
Tzeentch1987
  • 43
  • 1
  • 4
1
2
3
14 15