realtime-object-detection
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.2%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: ch-ankit679
- Language: Python
- Default Branch: main
- Size: 1.81 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Real-Time Object Detection with YOLOv5

Figure 1: Detecting a person

Figure 2: Detecting mobile phone and person
📌 Overview
This project implements real-time object detection using YOLOv5 in Python. It captures live video from your webcam, detects objects, and draws bounding boxes with labels and confidence scores.
✨ Features
- Real-time object detection using YOLOv5
- Supports webcam or video file input
- Displays detection confidence scores
- Customizable detection threshold
- Lightweight and easy to deploy
⚙️ Setup & Installation
Clone the repository
bash git clone https://github.com/ch-ankit679/Realtime-Object-Detection.git cd Realtime-Object-DetectionInstall dependencies
bash pip install -r requirements.txtDownload YOLOv5 weights
bash wget https://github.com/ultralytics/yolov5/releases/download/v6.0/yolov5s.pt -P models/
📌 Usage
Run with default webcam
bash
python detect.py --source 0 # 0 for default webcam
Run with a video file
bash
python detect.py --source video.mp4
Optional Arguments
--conf-thres: Confidence threshold (default: 0.5)--view-img: Display detection in a window (default: True)--save-txt: Save detection results to a text file
Example:
bash
python detect.py --source 0 --conf-thres 0.7 --view-img
📌 Notes
- Requires a CUDA-enabled GPU for best performance (works on CPU but slower).
- Tested on Python 3.8+.
🤝 Contributing
Feel free to open issues or submit pull requests for improvements!
📜 License
MIT
Owner
- Login: ch-ankit679
- Kind: user
- Repositories: 1
- Profile: https://github.com/ch-ankit679
Citation (CITATION.cff)
cff-version: 1.2.0
preferred-citation:
type: software
message: If you use YOLOv5, please cite it as below.
authors:
- family-names: Jocher
given-names: Glenn
orcid: "https://orcid.org/0000-0001-5950-6979"
title: "YOLOv5 by Ultralytics"
version: 7.0
doi: 10.5281/zenodo.3908559
date-released: 2020-5-29
license: AGPL-3.0
url: "https://github.com/ultralytics/yolov5"
GitHub Events
Total
- Delete event: 1
- Issue comment event: 6
- Push event: 3
- Pull request event: 3
- Create event: 3
Last Year
- Delete event: 1
- Issue comment event: 6
- Push event: 3
- Pull request event: 3
- Create event: 3
Dependencies
- actions/checkout v4 composite
- actions/setup-python v5 composite
- slackapi/slack-github-action v1.27.0 composite
- contributor-assistant/github-action v2.6.1 composite
- actions/checkout v4 composite
- github/codeql-action/analyze v3 composite
- github/codeql-action/init v3 composite
- actions/checkout v4 composite
- docker/build-push-action v6 composite
- docker/login-action v3 composite
- docker/setup-buildx-action v3 composite
- docker/setup-qemu-action v3 composite
- ultralytics/actions main composite
- actions/checkout v4 composite
- ultralytics/actions/retry main composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- actions/stale v9 composite
- pytorch/pytorch 2.0.0-cuda11.7-cudnn8-runtime build
- gcr.io/google-appengine/python latest build
- matplotlib >=3.3.0
- numpy >=1.22.2
- opencv-python >=4.6.0
- pandas >=1.1.4
- pillow >=7.1.2
- psutil *
- py-cpuinfo *
- pyyaml >=5.3.1
- requests >=2.23.0
- scipy >=1.4.1
- seaborn >=0.11.0
- thop >=0.1.1
- torch >=1.8.0
- torchvision >=0.9.0
- tqdm >=4.64.0
- ultralytics >=8.1.47
- Flask ==2.3.2
- gunicorn ==22.0.0
- pip ==23.3
- werkzeug >=3.0.1
- zipp >=3.19.1