Skip to content

afaaq10/object-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-time object detection

This project uses YOLOv8 and OpenCV to perform real-time object detection with a webcam.
It detects objects like people, cars, animals, and more, and displays them on the screen with bounding boxes and labels.

Features

  • Real-time detection using your webcam
  • YOLOv8 nano (yolov8n.pt) pretrained model for fast performance
  • Displays detection boxes and confidence scores
  • Can be modified to detect objects in images or video files

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/object-detection.git
cd object-detection
  1. Create a virtual environment:
python -m venv venv
  1. Activate virtual environment:
venv\Scripts\activate
  1. Install dependencies::
pip install ultralytics opencv-python
  1. Run real-time webcam detection::
python main.py

Results

  • Here are my screenshots showing detection results
image image

About

Real-time object detection using YOLOv8 and OpenCV with webcam and image support

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages