This commit is contained in:
rattatwinko
2025-05-27 16:34:09 +02:00
commit cceb0d44e8
21 changed files with 811 additions and 0 deletions

65
README.md Normal file
View File

@@ -0,0 +1,65 @@
# 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
1. Clone the repository
2. Navigate to the project directory
3. Build with Maven:
```bash
mvn clean package
```
## Running the Application
After building, run the application using:
```bash
java -jar target/security-camera-app-1.0-SNAPSHOT-jar-with-dependencies.jar
```
## Usage
1. Launch the application
2. Select the camera source from the dropdown:
- USB Camera: Uses your computer's webcam
- Network Camera: Connects to an MJPEG stream URL
3. Click "Start" to begin streaming
4. Use the "Snapshot" button to capture the current frame
5. 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]/video` or `http://[IP_ADDRESS]/mjpeg`
## Troubleshooting
1. No webcam detected:
- Ensure your webcam is properly connected
- Check if other applications are using the webcam
2. 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.