This project demonstrates real-time object detection using a webcam with Python and OpenCV. The webcam captures live video and a pre-trained object detection model detects objects frame by frame. Detected objects are displayed with bounding boxes and labels.
This workshop introduces the basics of computer vision and real-time object detection using a webcam.
- Capture video using webcam
- Detect objects in real time
- Draw bounding boxes around detected objects
- Display object labels with confidence score
- Understand the basics of computer vision
- Python
- OpenCV
- NumPy
- YOLO / Pre-trained object detection model
Install required libraries:
pip install opencv-python
pip install numpy
If using YOLO:
pip install ultralytics
Object-Detection-Webcam/
│── object_detection.py
│── coco.names
│── yolov3.cfg
│── yolov3.weights
│── README.md
- Open webcam using OpenCV
- Capture video frame continuously
- Pass frame to object detection model
- Detect objects in the frame
- Draw bounding box around detected object
- Display object label and confidence score
- Show output in real-time webcam window
Clone the repository
git clone
Move into project folder
cd Object-Detection-Webcam
Run the program
python object_detection.py
The webcam opens and detects objects in real time.
Example detected objects:
- Person
- Bottle
- Mobile Phone
- Chair
- Laptop
- Cup
- Keyboard
Each object is shown with:
- Bounding Box
- Label Name
- Confidence Score
- Security Surveillance
- Face Detection
- Smart Attendance System
- Autonomous Vehicles
- Traffic Monitoring
- Robotics
- Smart Home Automation
- Retail Object Tracking
Object Detection Using Webcam is a beginner-friendly computer vision project that performs real-time object detection using Python and OpenCV. It helps understand how AI can detect and recognize objects from live video input and can be extended into advanced applications like robotics, surveillance, and automation.
Workshop Project – Object Detection Using Webcam
Developed using Python and OpenCV for learning real-time object detection.