- This app leverages YOLOv8 to detect vulnerable groups, such as individuals with wheelchairs, crutches, and prams, enhancing accessibility and safety at crosswalks.
- When a vulnerable group is detected, the app extends the red light and decreases the green light duration for
cars, ensuring safer and more accessible crossings for these individuals.
- To incorporate cvzone alongside YOLOv8, make sure you have the requirements installed.
pip install Pillow
pip install ultralytics
pip install cvzone
pip install opencv-python
If you encounter any issues where pandas or numpy are missing, you can install them separately:
pip install pandas
pip install numpy
- Select 'Select File' for video detection or 'Live Detection' for live detection.
![Screenshot 2024-06-16 at 5 46 41 PM](https://private-user-images.githubusercontent.com/92455486/340112829-5ffc1a0e-3297-4536-8a9f-0eef7d5905d8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTcyMTQsIm5iZiI6MTczOTMxNjkxNCwicGF0aCI6Ii85MjQ1NTQ4Ni8zNDAxMTI4MjktNWZmYzFhMGUtMzI5Ny00NTM2LThhOWYtMGVlZjdkNTkwNWQ4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIzMzUxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFiM2MyNThmODRlZDRmOTc5ODEwNzRiNTQ3ZjUwMDA5MzU3OTNlNzM3ZTE0ZTcxZjJjMjE0M2ZiYjVhMzNjYWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.SYEtBfcIJhE0CouTm9AB4vbCRpyeTEki8C7Qpy0fWGg)
Only mp4, avi, mov, mkv formats are supported!
- Click on 'Zone Configuration' to set the zone area's coordinates for the video.
If you choose not to configure any values, the default settings will be used.
Additionally, utilize the toggle button to enable or disable traffic light visualization.
![Screenshot 2024-06-16 at 5 46 55 PM](https://private-user-images.githubusercontent.com/92455486/340112918-9f9eb4ac-3530-45bc-94f5-a652c2b90633.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTcyMTQsIm5iZiI6MTczOTMxNjkxNCwicGF0aCI6Ii85MjQ1NTQ4Ni8zNDAxMTI5MTgtOWY5ZWI0YWMtMzUzMC00NWJjLTk0ZjUtYTY1MmMyYjkwNjMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIzMzUxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg2NThmYmJiODg0ODhhNWFhNzVjOTAzZjFiMjZhOWRkZjg3OGFkMWU0ZGQ2MmQ2ZTY0NDFmNGNmODJhOWNjM2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.QIZ6tPCnnWP1Wiq7fgPCRM3rbGupyd0EamKqSqhY94A)
- Note: The executable file is available in the Releases section of this repository.
- Platform: Currently, it only works on Windows! For macOS, you will need to run the code manually.
- Status: Please note that the executable is still under development and may contain bugs.
- Example videos can be downloaded using the following link.
A visual demonstrations of the application in action. It's clear and straightforward, indicating what users can expect when they view the video player.