File size: 2,154 Bytes
590358d
 
 
 
 
 
 
 
 
 
 
 
d1b0482
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
title: Object Detection Chatbot
emoji: 🐒
colorFrom: blue
colorTo: gray
sdk: streamlit
sdk_version: 1.38.0
app_file: app.py
pinned: false
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
# πŸ” YOLOv8 Object Detection on Video

This Streamlit app allows you to upload a video file and perform object detection using the YOLOv8 model. The app processes the video, detects objects, and provides a downloadable version of the video with bounding boxes around detected objects.

## πŸš€ Live Demo

Check out the live demo of the app on Hugging Face Spaces:

πŸ”— [YOLOv8 Object Detection App on Hugging Face](https://huggingface.co/spaces/datascientist22/object-detection-chatbot)

## πŸ“‚ GitHub Repository

You can find the source code for this project on GitHub:

πŸ”— [GitHub Repository](https://github.com/mldatascientist23/Generative_AI_Projects)

## πŸ“‹ Features

- **Upload Video**: Upload your video file in MP4, AVI, or MOV format.
- **Object Detection**: Detects objects in the video using the YOLOv8 model.
- **Processed Video Download**: Download the processed video with bounding boxes around detected objects.

## πŸš€ How to Use

1. **Upload a Video**: Use the sidebar to upload a video file.
2. **Process the Video**: Click on the "Submit" button to start processing the video.
3. **Download the Result**: Once the processing is complete, download the processed video using the "Download Processed Video" button.

## πŸ› οΈ Installation

To run the app locally, follow these steps:

1. Clone the repository:
    ```bash
    git clone https://github.com/mldatascientist23/Generative_AI_Projects.git
    cd Generative_AI_Projects/YOLOv8_Object_Detection
    ```

2. Install the required packages:
    ```bash
    pip install -r requirements.txt
    ```

3. Run the Streamlit app:
    ```bash
    streamlit run app.py
    ```

## πŸ“¦ Requirements

- `streamlit`
- `opencv-python-headless`
- `ultralytics`
- `numpy`

## πŸ§‘β€πŸ’» Created By

This app was created by [Engr. Hamesh Raj](https://www.linkedin.com/in/datascientisthameshraj/). Feel free to connect with me on LinkedIn!