Download src/exceptions.py from Abs6187/Vehicle_Speed_Estimation_and_Counting: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/spaces/Abs6187/Vehicle_Speed_Estimation_and_Counting/resolve/main/src/exceptions.py
- Command line
-
hf download hf://spaces/Abs6187/Vehicle_Speed_Estimation_and_Counting/src/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/Abs6187/Vehicle_Speed_Estimation_and_Counting/resolve/main/src/exceptions.py
1.11 kB
| """ | |
| Custom Exception Classes for Vehicle Detection System | |
| ====================================================== | |
| Defines custom exceptions for better error handling and user feedback. | |
| Authors: | |
| - Abhay Gupta (0205CC221005) | |
| - Aditi Lakhera (0205CC221011) | |
| - Balraj Patel (0205CC221049) | |
| - Bhumika Patel (0205CC221050) | |
| """ | |
| class VehicleDetectionError(Exception): | |
| """Base exception for vehicle detection system.""" | |
| pass | |
| class VideoProcessingError(VehicleDetectionError): | |
| """Raised when video processing fails.""" | |
| pass | |
| class ModelLoadError(VehicleDetectionError): | |
| """Raised when model loading fails.""" | |
| pass | |
| class ConfigurationError(VehicleDetectionError): | |
| """Raised when configuration is invalid.""" | |
| pass | |
| class DetectionError(VehicleDetectionError): | |
| """Raised when object detection fails.""" | |
| pass | |
| class TrackingError(VehicleDetectionError): | |
| """Raised when object tracking fails.""" | |
| pass | |
| class SpeedEstimationError(VehicleDetectionError): | |
| """Raised when speed estimation fails.""" | |
| pass | |