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
12
votes
3 answers

AVFoundation - how to mirror video from webcam - Mac OS X

I am trying to mirror video received from webcam on mac os x. I would like to avoid doing a manual flip/tranform after receiving the video buffer . So, I want to setup AVCaptureSession such that video buffer received in captureOutput method of…
kiranpradeep
  • 10,859
  • 4
  • 50
  • 82
8
votes
1 answer

Browser web cam stream has extremely low performance/frame rate

I am trying to test WebRTC and want to display my own stream as well as the peer's stream. I currently have a simple shim to obtain the camera's stream and pipe that into a video element, however the frame rate is extremely low. The rare thing about…
naughty boy
  • 2,089
  • 3
  • 18
  • 28
7
votes
1 answer

How to stream webcam to server and manipulate the stream

I'd like to stream a user's webcam (from the browser) to a server and I need the server to be able to manipulate the stream (run some C algorithms on that video stream) and send the user back information. I have heavily looked at WebRTC and…
nschoe
  • 1,967
  • 1
  • 19
  • 26
6
votes
1 answer

Switching from OpenCV 3 to OpenCV 4 causes webcam to record at a max of 5 fps instead the usual 30 fps

I'm having some trouble since I changed from OpenCV 3.x to 4.x (compiled from source) in my C++ project. I've replicated this behaviour in a small example that just opens a webcam and records for 5 seconds. With 3.x I am able to set the webcam…
dvilela
  • 1,200
  • 12
  • 29
6
votes
2 answers

How to save a jpg image/video captured with webcam in the local hard drive with HTML5

The problem appears simple, although I cannot find a suitable solution because of my lack of knowledge of HTML and Javascript. The task is simply to design a webpage where a button will activate the webcam and store either a still image or a video…
Della
  • 1,264
  • 2
  • 15
  • 32
6
votes
1 answer

Capture webcam video using PyQt

Given the following PyQt code, I can perfectly capture the webcam's streaming video. Now, I want to modify code, so a button named ''capture'' button is added that once pressed captures the streaming video and saves the image. How can I do…
yas yasi
  • 215
  • 1
  • 6
  • 16
6
votes
1 answer

Dlib webcam capture with face detection and shape prediction is slow

I am working on a program in C++ which should detect faces from webcam stream, than crop them using face landmarks and swap them. I programmed face detection using OpenCV and Viola-Jones face detection. Works fine. Than I searched for how to segment…
Gondil
  • 787
  • 3
  • 9
  • 28
6
votes
1 answer

GStreamer - Webcam stream from Raspberry to VLC-PC

I'm trying to stream webcam video from a Raspberry to a VLC player using gstreamer 1.0. Right now i got the following command for the Raspberry: gst-launch-1.0 -vv -e v4l2src device=/dev/video0 \ ! videoscale \ !…
DaveCode
  • 73
  • 2
  • 2
  • 5
6
votes
3 answers

HTML5 Mirroring webcam canvas

I'm trying to take a webcam feed - (landscape format), cut out the middle bit (portrait format) and have it render to a canvas so that it fills the screen portrait 1080px by 1920px (for this I scale the bit I cut out by 3.8). I then need to flip…
Rob
  • 1,576
  • 3
  • 22
  • 52
5
votes
3 answers

getusermedia freezes in mobile browsers

The JavaScript below captures still images from a webcam on a jQuery-mobile website. The code works perfectly on desktops, but on mobile phones (Android and iOS) the video plays then stops on the first frame! Code (sorry about the length): …
Zalaboza
  • 8,899
  • 16
  • 77
  • 142
4
votes
3 answers

How to maintain constant FPS when grabbing frames with opencv and python?

I am using OpenCV4 along with python 3 to open a webcam, grab the frames and display them in a window, just like the first code tutorial provided here. However, it takes a different amount of time grabbing different frames: sometimes it takes 0.01 s…
underfloor
  • 301
  • 3
  • 12
4
votes
1 answer

Webcam api : Maximizing the 720p capture

I am attempting to capture a video recording through an external camera, Logitec C922. Using java, I can make this possible through webcam api. com.github.sarxos
angryip
  • 2,140
  • 5
  • 33
  • 67
4
votes
0 answers

how to make my webcam streaming full screen with WebRTC using javascript

I have tested many css properties to make my webcam streaming full screen but i am not getting proper results. Sometimes the height gets overflow. I tried object-fit also, but did not get proper result. Sharing my code here…
Aman Gupta
  • 51
  • 4
4
votes
1 answer

Convert image from pygame to PIL image

we are using a Raspberry Pi + Python 3.4 + PyGame to capture an image from a specific USB webcam. We use this simple code to capture (it works ok): pygame.camera.init() cam =…
4
votes
2 answers

Streaming Video to PC in HD 60 fps

I am working on my final project in Software Engineering B.Sc. Our project includes tracking a ball in Foosball game. Actually with the size of the Foosball table I will need at least HD 1080p format (1920x1080 pixels) camera and because of the high…
Josse
  • 59
  • 1
  • 4
1
2 3
14 15