1.7 KiB
1.7 KiB
Java Security Camera App
A Java desktop application for viewing live streams from both USB webcams and network MJPEG cameras.
Features
- View live streams from USB webcams
- Connect to network MJPEG cameras (e.g., DroidCamX)
- Take snapshots of the current view
- Simple and intuitive user interface
- Support for multiple camera sources
Requirements
- Java 11 or higher
- Maven
- USB webcam (for local camera support)
- Network camera with MJPEG stream support (for network camera support)
Building the Application
- Clone the repository
- Navigate to the project directory
- Build with Maven:
mvn clean package
Running the Application
After building, run the application using:
java -jar target/security-camera-app-1.0-SNAPSHOT-jar-with-dependencies.jar
Usage
- Launch the application
- Select the camera source from the dropdown:
- USB Camera: Uses your computer's webcam
- Network Camera: Connects to an MJPEG stream URL
- Click "Start" to begin streaming
- Use the "Snapshot" button to capture the current frame
- Click "Stop" to end the stream
Using with Network Cameras
For network cameras, you'll need to provide the MJPEG stream URL. Common formats include:
- DroidCamX:
http://[IP_ADDRESS]:4747/video - Generic IP Camera:
http://[IP_ADDRESS]/videoorhttp://[IP_ADDRESS]/mjpeg
Troubleshooting
-
No webcam detected:
- Ensure your webcam is properly connected
- Check if other applications are using the webcam
-
Network camera not connecting:
- Verify the camera URL is correct
- Ensure the camera is on the same network
- Check if the camera supports MJPEG streaming
License
This project is open source and available under the MIT License.