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

Python Webcam image server via HTTP not showing image

I am trying to serve Webcam image via HTTP using Python socket and OpenCV but it doesn't work right. The server does not serve appropriate JPEG image captured from Webcam. It only shows some binary arrays. import io import socket import atexit from…
Joon
  • 45
  • 8
0
votes
1 answer

java.lang.UnsupportedOperationException: cannot encode with codec: CODEC_ID_MP3

i am running this simple sample from lib WebCam-capture with no success.Here is my code and below it i describe the exception problem File file = new File("output.ts"); IMediaWriter writer = ToolFactory.makeWriter(file.getName()); …
Panagiotis Drakatos
  • 2,851
  • 4
  • 31
  • 43
0
votes
0 answers

Quality of webcam affects Computer Vision?

I am new with OpenCV and Computer Vision and at the moment I am working on a program which needs to find circles while capturing videos. I am using OpenCV for Python with the class HoughCircles to find the needed shape. I actually need to capture…
ldg
  • 450
  • 3
  • 7
  • 27
0
votes
0 answers

How do I change recording framerate of a webcamera in Matlab?

I would like to know how I can record a video and how to change the recording framerate in MATLAB with my webcam using Support Package for USB Webcams (not using toolboxes, including Image Acquisition tool box). I am thinking about using it because…
0
votes
1 answer

How to show image from webcam

I never needed to work with camera before, so I do not know where to start. I need to display the image of a real-time camera, to capture and save to a file. I'm using python3 and gtk3. Does gtk has any feature for this?
Matheus Saraiva
  • 1,144
  • 1
  • 11
  • 33
0
votes
1 answer

OpenCV Creating Video From Text File

I am trying to build an application, which get data from webcam or external device, saves Video Frames into text file, then read frames from created text file. I don't know whether it is a good idea to save to text file, I'm open suggestions. So far…
Ahmet
  • 7,527
  • 3
  • 23
  • 47
0
votes
1 answer

Trigger event with snapshot button of external webcam

I am trying to trigger an event in javascript by clicking the snapshot button of my external webcam. I have the "Speedlink Reflect LED Webcam" with integrated snapshot button. I thought it should not be that hard since it is a some kind of a key it…
Carle B. Navy
  • 1,156
  • 10
  • 28
0
votes
1 answer

Hand gesture recognition in processing

I'm trying to change an int variable using a hand gesture. I'm trying to turn on the webcam in processing and if you swing your hand to the left the value changes and when you swing your hand to the right the value changes again. Any ideas on how to…
0
votes
1 answer

Browsersync camera acces video.play is not a function

Hi guys I started today to use browsersync with the simple configuration from https://browsersync.io/#install in a project to use the webcam to capture a picture. It was working pretty well but suddenly it stop working, now it doesn't show me the…
0
votes
1 answer

ISampleGrabberCB::SampleCB timestamp

I am trying to capture video stream from web camera by using DirectShow and ISampleGrabber interface. I would like to get timestamp for every grabbed frame. But SampleTime parameter in SampleCB(double SampleTime, IMediaSample *pSample) method is…
Dmitry
  • 59
  • 7
0
votes
1 answer

Capture images from webcam in c#

I've been working on an application which generates and reads(decode) QR codes. In decoding part the user capture the picture of QR code and the program will start process of decoding. My problem is I don't Know how I can take the photo. P.S: If you…
A. Hajeb
  • 37
  • 1
  • 11
0
votes
1 answer

Access "webcams" that don't show up in device manager as imaging devices

I've got some code (Winforms, C#, .Net 4) that uses the Directshow.Net library. I've run into a problem 2 times now where a device has a "webcam" but it doesn't show up in Device Manager as an imaging device, but as something else. When that…
Benji
  • 105
  • 8
0
votes
1 answer

How to get webcam feed to GTK window?

I need to get webcam video feed using C, GTK2/3, Cairo. However can't find any references about it. Below shows how did I try using opencv. It is unsuccessful.I need to know some other method using gstreamer, cairo. I'm expecting simple code to get…
inckka
  • 345
  • 7
  • 21
0
votes
0 answers

Microsoft SDK AMCap GetCurrentImage error

I am trying to modify the existing AmCap application, available through Microsoft's SDK Direct Show samples, in order to get an image of the captured stream when I press the space button. Below is the point in which I am handling the space keydown. …
mike1821
  • 1
  • 4
0
votes
1 answer

USB WebCam not detected in Android devices

I Created an UVC based application to connect USB External webcam [Logitech c170] with android device. I Follow the coding from this link. After building the project did Native NDK Build operations and copied the libs folder in to my directory. The…