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
0
votes
1 answer

Is it possible to read webcam frames in parallel?

I have a simple Python script that captures a webcam using OpenCV. My webcam has the potential to stream 30 FPS, but since my Raspberry Pi isn't powerful enough, I can only read ~ 20 FPS. When running the script, one core of my CPU is maxed to 100%,…
Maxime Dupré
  • 5,319
  • 7
  • 38
  • 72
0
votes
3 answers

Capture and Record Desktop Screen with/as Webcam Video

Webcam lets others view either still pictures or motion video of a user or other object in front of it. I want to configure Webcam in a way that it start capturing desktop screen instead of what is in front of it. I want to manipulate desktop screen…
Bilal Ahmed Yaseen
  • 2,506
  • 2
  • 23
  • 48
0
votes
1 answer

Streaming webcam and mic inputs through browser

Short version: I need an in-browser solution to deliver the webcam and mic streams to a server. Long version: I'm trying to create a live streaming application. So far I've only managed to figure out this workflow: Client creates stream (some…
galactocalypse
  • 1,905
  • 1
  • 14
  • 29
0
votes
1 answer

WebcamCapture working in Netbeans but not in jar file?

Hello Guys I have folowwing problem. I am using Webcam Capture API to capture Pictures. The Problem is that when i compile everything in Netbeans everything works fine. But if i compile everything to one jar file and then run it again everything…
user3756431
  • 53
  • 1
  • 5
0
votes
3 answers

How to capture an image and save from webcam using grails?

Trying to capture an image from webcam and wanted save on a drive Using Grails 2.3.7 script code var video = document.querySelector("#videoElement"); var imageW; //check for getUserMedia support …
SAGAR MANE
  • 685
  • 2
  • 8
  • 23
0
votes
1 answer

Reading web camera with MediaCapture on windows desktop

I need to process frames from web camera on Windows 8.1 phones, tablets and desktop. I already have implementation for phones and tablets (=store apps) that uses custom media foundation transform to access the frames. Now I’m working on a desktop…
Soonts
  • 20,079
  • 9
  • 57
  • 130
0
votes
0 answers

Java Access to the Webcam when another program use the webcam

I need to create a program who can use webcam in same time of another program. So i use Sarxos Webcam-capture. I try to play with the lock like this : webcam.getLock().unlock(); Or webcam.getLock().disable(); But my program or the other program…
McKay1717
  • 1
  • 2
0
votes
0 answers

Visual Basic Webcam Integration

I have been trying to integrate a webcam into a visual basic application. The device needs to come on and display the webcam feed on the form and then save the image once the user clicks a button. I have tried using AForge.net but most of the…
0
votes
1 answer

Webcam capture in Python 3.4 on Windows

I have seen different modules like OpenCV and Videocapture for taking fast shots from the computer webcam, but these are only for Python 2. I thought I would make one work with Pygame, but I got many errors. I found different pages including…
0
votes
1 answer

OpenCV Error: Assertion failed (s >= 0) in setSize - while trying to place an image over a webcam feed

I am trying to overlay an image of a hat over the head in a webcam feed and I get the error in the following line - hat = cv2.resize(imghat, (hatWidth,hatHeight), interpolation = cv2.INTER_AREA) The program runs, but quickly exits and gives the…
Fusion 2015
  • 3
  • 1
  • 1
  • 4
0
votes
1 answer

Upload image with node from webcam

I have 2 files: index.html and server.js var express = require("express"); var multer = require('multer'); var app = express(); var done = false; app.use(multer({ dest: './uploads/', rename:…
Oscar LT
  • 787
  • 1
  • 4
  • 24
0
votes
1 answer

capture camera input at certain point without first draw to canvas

I am creating an app that capture the web-cam at a certain point(when an event is triggered), like taking a snapshot of the camera and encode the snapshot to base64. But looking at the example online, they first draw that snapshot to a canvas and…
Blake
  • 7,367
  • 19
  • 54
  • 80
0
votes
1 answer

PNG image shows white on transparent areas while overlaying on webcam feed. (OpenCV with Python)

Total newbie to OpenCV. I am trying to place a png image (of sunglasses) over the eyes in a webcam feed. While running the program, the transparent regions of the image is white. Here's the part of my code- # Create the mask for the…
user3699912
  • 158
  • 2
  • 3
  • 13
0
votes
1 answer

Automatically increment filename VideoWriter MATLAB

I have MATLAB set to record three webcams at the same time. I want to capture and save each feed to a file and automatically increment it the file name, it will be replaced by experiment_0001.avi, followed by experiment_0002.avi, etc. My code looks…
0
votes
1 answer

Memory leak on camera capture for high resolution

Memory reached to one extreme and application stopped working. I called the Runcamera in a timer. for the resolution 640*480 but having problem with 1920*1080. What am I missing? public void RunCamera() { imgWeb.Visibility =…
Jagan
  • 79
  • 1
  • 16