Image-Based Casualty Detection, Prioritization & Camp Assignment
This project implements an automated rescue decision system that analyzes aerial images to:
• Detect objects (casualties & rescue camps)
• Classify geometric shapes
• Identify land vs ocean regions
• Determine emergency severity levels
• Compute rescue priorities
• Measure distances to rescue camps
• Assign casualties based on priority & capacity
• Generate rescue efficiency metrics
• Rank images based on rescue performance
The system simulates how an Unmanned Aerial System (UAS) can assist in rescue mission planning.
The main objectives of this project are:
- Segment land and ocean areas from aerial images
- Detect and classify shapes representing casualties and camps
- Assign emergency levels based on color detection
- Compute rescue priority scores
- Allocate casualties to camps based on: • Distance • Camp capacity • Emergency severity
- Calculate rescue efficiency metrics
- Rank images by rescue effectiveness
• Convert image to HSV color space
• Apply color thresholds to detect:
- Land (Green)
- Ocean (Blue) • Clean masks using morphological operations
• Edge detection using Canny
• Contour extraction
• Shape classification into:
- Circle (Camp)
- Triangle
- Square
- Star
Emergency level is determined by color:
• Red → Severe
• Yellow → Mild
• Green → Safe
Circles are treated as camps and excluded from emergency scoring.
Priority is calculated based on:
• Shape weight
• Emergency severity
Euclidean distance is calculated between casualties and camps.
Casualties are assigned: • Based on highest priority • To the nearest available camp • While respecting camp capacity
Metrics calculated: • Total casualties • Total rescued • Rescue ratio • Total priority rescued
Rescue Ratio =
(Total Priority Rescued) ÷ (Total Number of Casualties)
uas_rescue_project/
│
├── segmentation.py → Main pipeline
├── classification.py → Shape classification
├── analysis.py → Object analysis
├── camp_logic.py → Camp detection logic
├── priority_logic.py → Priority scoring
├── distance_logic.py → Distance calculations
├── assignment_logic.py → Camp assignment
├── reporting_logic.py → Report generation
├── task_images/ → Dataset
└── README.md → Documentation
• Python
• OpenCV
• NumPy
The system produces:
• Object detection summary
• Camp assignments
• Priority scores
• Distance measurements
• Rescue ratio
• Image ranking by efficiency
-
Install dependencies: pip install opencv-python numpy
-
Place dataset in the folder: task_images/
-
Run: python segmentation.py
Images are ranked based on rescue ratio to evaluate mission effectiveness.
Dev Pandey, Project developed as part of the UAS Rescue Assignment Task.