This is the first task in the CodeAlpha AI internship.
This repository contains code for a real-time object tracker and detection system implemented using the YOLO (You Only Look Once) model specifically, YOLOv8. The system is capable of detecting and tracking objects in existing videos as well as in real-time using a webcam feed.
The project is divided into the following files:
detector.py
: module contains the work with the YOLO model in the two scenarios.app.py
: module contains simple UI usingtkinter
that deals withdetector.py
in the background.requirements.txt
: dependencies needed to be able to run the project.
- YOLOv8.
- OpenCV.
- Object detection and tracking in existing videos.
- Real-time object detection using a webcam.
- Support for multiple object classes.
- Adjustable versions of the YOLO model.
-
Clone the repository:
git clone [email protected]:mohamedhassan218/CodeAlpha_Object_Detector.git
-
Create a Virtual Environment:
python -m venv .venv
-
Activate the Virtual Environment:
-
On Windows:
.venv\Scripts\activate
-
On Unix or MacOS:
source .venv/bin/activate
-
-
Install the required dependencies:
pip install -r requirements.txt
-
Run the main script:
py app.py
Contributions are welcome! If you have any suggestions, bug fixes, or improvements, please feel free to open an issue or create a pull request.