sarxos/webcam-capture
The goal of this project is to allow integrated or USB-connected webcams to be accessed directly from Java. Using provided libraries users are able to read camera images and detect motion. Main project consist of several sub projects - the root one, which contains required classes, build-in webcam driver compatible with Windows, Linux and Mac OS, which can stream images as fast as your camera can serve them (up to 50 FPS). Main project can be used standalone, but user is able to replace build-in driver with different one - such as OpenIMAJ, GStreamer, V4L4j, JMF, LTI-CIVIL, FMJ, etc. observed · 2026-08-28
Health v2 · maintenance only
46/100
- Activity 51
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5213
- days_rel: n/a
- days_push: 298
- n_releases_24m: 0
Adoption not part of the score
2356 stars · 1101 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Java library for accessing built-in or USB webcams (and MJPEG IP cameras) with a simple, thread-safe, driver-abstracted API. It includes a built-in driver for Windows/Linux/macOS, pluggable backends (GStreamer, OpenCV, VLC, etc.), Swing viewer components, and a ready-made motion detector.
Use cases
- capture webcam images from java
- detect motion with a webcam in java
- stream camera feed as mjpeg from java
- access ip camera mjpeg stream in java
- display live video feed in a swing app
- use webcam on raspberry pi with java
When to choose
- you need a pure-Java, cross-platform webcam API without native setup
- you want to swap capture backends (JMF, GStreamer, OpenCV) without rewriting code
- you need simple motion detection or Swing camera UI components
When to avoid
- you need high-performance video processing or modern codec pipelines
- you need a non-JVM language or Android support
- you need actively developed cutting-edge features (project is largely in maintenance)
Facets
library · maturity maintenance
image-processing computer-vision computer-vision image-processing cross-platform jvm cross-platform windows webcam camera-capture motion-detection mjpeg swing raspberry-pi linux macos
2 sources
- readme: https://github.com/sarxos/webcam-capture · fetched 2026-08-28 · ee61c459acd1
- homepage: http://webcam-capture.sarxos.pl · fetched 2026-08-29 · 1a33de26980d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sarxos/webcam-capture | main | 46 |
For agents
markdown · JSON · MCP: product_card(name="sarxos/webcam-capture")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem