Giter Site home page Giter Site logo

surenzimurenzi / objectdetection Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4 KB

This project demonstrates real-time object detection using the YOLO (You Only Look Once) modelwith a webcam feed. It utilizes OpenCV to capture video, process frames, and apply YOLO to identify and label objects.

Python 100.00%

objectdetection's Introduction

Object Detection with YOLOv3

This project implements real-time object detection using the YOLOv3 model. The script captures video from your webcam and detects objects in real-time. Features

-Real-time object detection using YOLOv3.

-Draws bounding boxes around detected objects.

-Displays the class label and confidence score for each detected object.

Preview

ObjectDetection

Requirements

Before running the script, make sure to install the necessary Python libraries and download the required YOLOv3 files. Dependencies

Create and activate a virtual environment (optional but recommended):

bash

python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate

Install dependencies:

bash

pip install -r requirements.txt

YOLOv3 Files

To get started with YOLOv3, download the following files and save them in your project directory:

  1. YOLOv3 Weights: Download yolov3.weights
  2. YOLOv3 Configuration: Download yolov3.cfg
  3. COCO Names File: Download coco.names

Ensure that these files are located in the same directory as the main.py script.

Usage

Run the script to start the object detection:

bash

python main.py

The script will open a webcam feed and start detecting objects in real-time. Configuration

Confidence Threshold: Adjust the confidence variable in the script to set the minimum confidence level for object detection.

Frame Resolution: The frame is resized to 416x416 to speed up processing. Modify this size in the script if needed.

Troubleshooting

Camera Issues: Ensure your webcam is properly connected and accessible.

Performance: Reducing the frame resolution or processing fewer frames per second can help with performance.

objectdetection's People

Contributors

surenzimurenzi avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.