Metadata-Version: 2.1
Name: smartrail-obstacle-detector
Version: 0.1.1
Summary: Railway Obstacle Detection Model for SmartRailShield using YOLOv8
Author: Shunmugapriya
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: ultralytics
Requires-Dist: opencv-python-headless
Requires-Dist: torch
Requires-Dist: numpy

# SmartRail Obstacle Detector

A professional-grade railway obstacle detection system powered by YOLOv8. Part of the SmartRailShield safety suite.

## Features
- Real-time obstacle detection using calibrated YOLOv8 models.
- Automatic GPS-based location approximation for detected objects.
- Easy integration with Flask, Streamlit, or other Python backends.
- Pre-trained on railway-specific obstacles (trains, people, animals, vehicles on tracks).

## Installation

```bash
pip install smartrail-obstacle-detector
```

## Quick Start

```python
from railway_obstacle_detector import ObstacleDetector

# Initialize detector
detector = ObstacleDetector()

# Detect obstacles
obstacles, _ = detector.get_obstacles(current_location={"lat": 13.0827, "lon": 80.2707})

for obs in obstacles:
    print(f"Detected {obs['class']} at {obs['lat']}, {obs['lon']}")

# Cleanup
detector.release()
```

## License
MIT
