Downloads · 30 days
0
Omar12125/Acs
Acs is a machine learning model from Omar12125. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This project is a CCTV accident detection application using the YOLO model, Streamlit, and Google Generative AI. The app analyzes video footage to detect accidents, generates detailed reports, and provides a user-frie…
Downloads · 30 days
0
Access
Public
Updated Oct 23, 2024
Repo size
46.2 MB
Likes
0
Public
Click a slice to open those files.
.h524.2 MB · 45%
From the Hugging Face model README
This project is a CCTV accident detection application using the YOLO model, Streamlit, and Google Generative AI. The app analyzes video footage to detect accidents, generates detailed reports, and provides a user-friendly interface for viewing and managing accident reports.
<video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/671903e9916f48b2c41863b1/3gAwk7SAp9-9vNLMphOaa.mp4"></video>
best_model_without_freeze.pt (YOLO model weights).env file)Clone the repository:
git clone https://github.com/your_username/cctv-accident-detection.git
cd cctv-accident-detection
Install the required libraries:
pip install -r requirements.txt
Set up the .env file:
Create a .env file in the project root and add your Google API key:
GOOGLE_API_KEY=your_api_key_here
Download the YOLO model weights:
Place the best_model_without_freeze.pt file in the project root.
Start the Streamlit app:
streamlit run main.py
Navigate to the app:
Open your browser and go to http://localhost:8501.
Video & Prediction Page:
Reports Page:
Class: Accident
Confidence: 0.85
Time: 2024-10-13_14-30-00
Description: Two vehicles involved, with visible damage on the front of one vehicle. Road conditions are wet, and traffic is partially blocked.
opencv-pythonstreamlitpandasultralyticsnumpygoogle-generativeaipython-dotenvgit checkout -b feature/YourFeature).git commit -m 'Add some feature').git push origin feature/YourFeature).This project is licensed under the MIT License.