{"id":23055682,"url":"https://github.com/victor-m16/python-traffic-signs-recognition-system","last_synced_at":"2025-04-03T05:18:00.637Z","repository":{"id":166939285,"uuid":"642489218","full_name":"Victor-M16/Python-Traffic-Signs-Recognition-System","owner":"Victor-M16","description":"This project is a Traffic Sign Classification System built using Python, TensorFlow/Keras, and Tkinter. It allows users to upload an image of a traffic sign, and the system will classify the sign using a pre-trained deep learning model.","archived":false,"fork":false,"pushed_at":"2024-12-01T10:41:57.000Z","size":2784,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T19:17:34.528Z","etag":null,"topics":["deep-learning","keras","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Victor-M16.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-18T17:24:28.000Z","updated_at":"2024-12-01T10:43:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e293fda-4555-4526-b147-f740bd03788a","html_url":"https://github.com/Victor-M16/Python-Traffic-Signs-Recognition-System","commit_stats":null,"previous_names":["victor-m16/python-traffic-signs-recognition-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Victor-M16%2FPython-Traffic-Signs-Recognition-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Victor-M16%2FPython-Traffic-Signs-Recognition-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Victor-M16%2FPython-Traffic-Signs-Recognition-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Victor-M16%2FPython-Traffic-Signs-Recognition-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Victor-M16","download_url":"https://codeload.github.com/Victor-M16/Python-Traffic-Signs-Recognition-System/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246939222,"owners_count":20857922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-learning","keras","python"],"created_at":"2024-12-16T01:12:58.223Z","updated_at":"2025-04-03T05:18:00.606Z","avatar_url":"https://github.com/Victor-M16.png","language":"Python","readme":"# Python Traffic Signs Recognition System\n\nThis project is a **Traffic Sign Classification System** built using Python, TensorFlow/Keras, and Tkinter. It allows users to upload an image of a traffic sign, and the system will classify the sign using a pre-trained deep learning model.\n\n---\n\n## Features\n\n- **User-friendly GUI**: Built with Tkinter for an intuitive user experience.\n- **Deep learning-powered classification**: Uses a trained `traffic_classifier.h5` model for accurate predictions.\n- **Predefined traffic sign classes**: Supports the classification of 43 different traffic signs based on a standardized dataset.\n- **Model Improvement Capability**: Allows training on new images to enhance model accuracy and robustness.\n\n---\n\n## Getting Started\n\n### Prerequisites\nEnsure you have the following installed:\n- Python 3.8+ \n- Required Python libraries (install via `requirements.txt`)\n\n### Installation\n\n1. **Clone the Repository**  \n   Clone the project to your local machine:\n   ```bash\n   git clone https://github.com/Victor-M16/Python-Traffic-Signs-Recognition-System.git\n   cd Python-Traffic-Signs-Recognition-System\n   ```\n\n2. **Install Dependencies**  \n   Install the required Python packages:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. **Run the Application**  \n   Launch the GUI application:\n   ```bash\n   python gui.py\n   ```\n\n---\n\n## Usage\n\n### Traffic Sign Classification\n\n1. **Start the Application**  \n   Run the application and wait for the GUI to appear.\n\n2. **Upload an Image**  \n   - Click the **\"Upload an image\"** button.\n   - Use the file explorer to select an image of a traffic sign.\n\n3. **Classify the Image**  \n   - Click the **\"Classify Image\"** button to analyze the uploaded image.\n   - The predicted traffic sign will be displayed at the bottom of the GUI.\n\n### Model Improvement with New Images\n\nThis project supports **incremental training** to improve the model using new images. Follow these steps:\n\n1. **Prepare Your Data**  \n   - Organize new traffic sign images into folders named according to their class IDs (e.g., `0`, `1`, `2`, etc.).\n   - Place these folders in a directory named `train`.\n\n2. **Update the Model**  \n   - Run the training script provided in the repository to include new images in the training process:\n     ```bash\n     python train.py\n     ```\n   - The script will:\n     - Load existing data and the new images.\n     - Preprocess the data by resizing images to 30x30 pixels and normalizing them.\n     - Retrain the model with both old and new data.\n\n3. **Replace the Old Model**  \n   - The updated model will be saved as `my_model.h5`.\n   - Replace the existing `traffic_classifier.h5` in the `gui.py` code with `my_model.h5` to use the improved version.\n\n---\n\n## Classes\n\nThe system can recognize the following traffic signs:\n\n1. Speed limit (20km/h)  \n2. Speed limit (30km/h)  \n3. Speed limit (50km/h)  \n...  \n*(Complete list available in the source code.)*\n\n---\n\n## File Structure\n\n- **`gui.py`**: Main application script for the GUI.\n- **`train.py`**: Script for training the model with new or additional images.\n- **`traffic_classifier.h5`**: Pre-trained model for classifying traffic signs.\n- **`requirements.txt`**: Python dependencies for the project.\n\n---\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\n## Contributing\n\nContributions are welcome! Feel free to fork the repository and submit a pull request.\n\n---\n\n## Acknowledgments\n\n- The pre-trained model is based on a standardized traffic signs dataset.\n- Tkinter was used to design the GUI for easy interaction.\n\nEnjoy using the Traffic Sign Classification System! 🚦\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictor-m16%2Fpython-traffic-signs-recognition-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictor-m16%2Fpython-traffic-signs-recognition-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictor-m16%2Fpython-traffic-signs-recognition-system/lists"}