A comprehensive traffic light control system designed specifically for Thai roads, supporting intersections from single-way up to five-way configurations. Developed by PROLEAK Innovation.
- Support for 1-way to 5-way intersections
- Thai-specific traffic light patterns and timing sequences
- Configurable timing parameters
- Modular and extensible architecture
- Comprehensive testing suite
- Real-time traffic flow optimization
- PROLEAK's advanced traffic management algorithms
thai_traffic_light/
├── intersections/ # Intersection-specific implementations
│ ├── one_way/ # Single-way intersection
│ ├── two_way/ # Two-way intersection
│ ├── three_way/ # Three-way intersection
│ ├── four_way/ # Four-way intersection
│ └── five_way/ # Five-way intersection
├── core/ # Core traffic light control logic
├── config/ # Configuration files
├── utils/ # Utility functions
└── tests/ # Test suite
- Clone the repository
- Create a virtual environment:
python -m venv venv source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
from thai_traffic_light.core.controller import TrafficLightController
from thai_traffic_light.intersections.four_way import FourWayIntersection
controller = TrafficLightController(FourWayIntersection())
controller.start()
Run the test suite:
pytest
For more information about PROLEAK Innovation and our products, please visit our website or contact us at:
- Website: proleakinnovation.com
- Email: [email protected]