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:
pytestFor more information about PROLEAK Innovation and our products, please visit our website or contact us at:
- Website: proleakinnovation.com
- Email: center@proleakinnovation.com