This is a Java-based drone surveillance simulation project built using JavaFX. The project demonstrates a visual simulation where a drone moves within a city map, detects objects (humans and vehicles), and provides real-time updates on the drone’s position and detected objects. The application also features a background map for a realistic view and simulates objects moving randomly within the grid.
Clone the repository:
git clone https://github.com/yourusername/DroneSurveillanceJava.git
Compile the app
javac --module-path "/path/to/javafx-sdk-21.0.4/lib" --add-modules javafx.controls src/drone/*.java
Run the application:
After compiling, run the DroneVisualizer class:
java --module-path "/path/to/javafx-sdk-21.0.4/lib" --add-modules javafx.controls -cp src drone.DroneVisualizer
```bash
DroneSurveillanceJava/ ├── assets/ │ └── map.jpg # Map background image ├── src/ │ └── drone/ │ ├── Drone.java # Main drone logic │ ├── DroneVisualizer.java # Visualization and simulation logic │ ├── ObjectDetection.java # Logic for detecting and handling objects (humans, vehicles) │ ├── MapVisualization.java # (Optional) Utility for displaying map ├── README.md # This file
```
The drone starts at a random position on the map. It moves at a constant speed, and its movement is constrained within the grid. Objects (humans, vehicles) are detected within the drone’s range and displayed visually on the map. Detected Objects: Humans: Categorized as Male Adult and Female Adult. Vehicles: Categorized as SUV and Truck. Potential Improvements Constrained Movement: Objects can be made to move along predefined street paths. Drone Speed: Introduce variable speed for the drone. Multiple Drones: Add support for multiple drones navigating the map. Historical Tracking: Track the drone’s previous path or detected objects over time.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or issues, feel free to reach out at .